diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2016-04-07 18:38:00 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-04 20:21:48 -0400 |
commit | 14698b6c7987bafff1d8942a820c1b569fbb7444 (patch) | |
tree | 311608c0e4d853b6222a96b7c0125cea0a51b811 /drivers/gpu/drm/amd/amdgpu/vi.c | |
parent | 4fae91c5e29b920a37afab3e432c4b72a9fbe90d (diff) |
drm/amdgpu/gfx: add proper CG flags for fiji
We were already enabling these CG features, this uses
the standard interface for doing so.
Acked-by: Tom St Denis <tom.stdenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/vi.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vi.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vi.c b/drivers/gpu/drm/amd/amdgpu/vi.c index 39647905417f..8d9b03f62491 100644 --- a/drivers/gpu/drm/amd/amdgpu/vi.c +++ b/drivers/gpu/drm/amd/amdgpu/vi.c | |||
@@ -1076,7 +1076,14 @@ static int vi_common_early_init(void *handle) | |||
1076 | adev->external_rev_id = 0x1; | 1076 | adev->external_rev_id = 0x1; |
1077 | break; | 1077 | break; |
1078 | case CHIP_FIJI: | 1078 | case CHIP_FIJI: |
1079 | adev->cg_flags = 0; | 1079 | adev->cg_flags = AMD_CG_SUPPORT_GFX_MGCG | |
1080 | AMD_CG_SUPPORT_GFX_MGLS | | ||
1081 | AMD_CG_SUPPORT_GFX_RLC_LS | | ||
1082 | AMD_CG_SUPPORT_GFX_CP_LS | | ||
1083 | AMD_CG_SUPPORT_GFX_CGTS | | ||
1084 | AMD_CG_SUPPORT_GFX_CGTS_LS | | ||
1085 | AMD_CG_SUPPORT_GFX_CGCG | | ||
1086 | AMD_CG_SUPPORT_GFX_CGLS; | ||
1080 | adev->pg_flags = 0; | 1087 | adev->pg_flags = 0; |
1081 | adev->external_rev_id = adev->rev_id + 0x3c; | 1088 | adev->external_rev_id = adev->rev_id + 0x3c; |
1082 | break; | 1089 | break; |