diff options
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 6 | ||||
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc15.c | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c index 2b04cac4b308..dfca83a2de47 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | |||
@@ -1051,6 +1051,12 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) | |||
1051 | AMD_PG_SUPPORT_CP | | 1051 | AMD_PG_SUPPORT_CP | |
1052 | AMD_PG_SUPPORT_RLC_SMU_HS; | 1052 | AMD_PG_SUPPORT_RLC_SMU_HS; |
1053 | break; | 1053 | break; |
1054 | case CHIP_RENOIR: | ||
1055 | if (adev->pm.pp_feature & PP_GFXOFF_MASK) | ||
1056 | adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG | | ||
1057 | AMD_PG_SUPPORT_CP | | ||
1058 | AMD_PG_SUPPORT_RLC_SMU_HS; | ||
1059 | break; | ||
1054 | default: | 1060 | default: |
1055 | break; | 1061 | break; |
1056 | } | 1062 | } |
diff --git a/drivers/gpu/drm/amd/amdgpu/soc15.c b/drivers/gpu/drm/amd/amdgpu/soc15.c index f8ab80c8801b..4ccfcdf8f16a 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc15.c +++ b/drivers/gpu/drm/amd/amdgpu/soc15.c | |||
@@ -1186,11 +1186,6 @@ static int soc15_common_early_init(void *handle) | |||
1186 | AMD_PG_SUPPORT_VCN | | 1186 | AMD_PG_SUPPORT_VCN | |
1187 | AMD_PG_SUPPORT_VCN_DPG; | 1187 | AMD_PG_SUPPORT_VCN_DPG; |
1188 | adev->external_rev_id = adev->rev_id + 0x91; | 1188 | adev->external_rev_id = adev->rev_id + 0x91; |
1189 | |||
1190 | if (adev->pm.pp_feature & PP_GFXOFF_MASK) | ||
1191 | adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG | | ||
1192 | AMD_PG_SUPPORT_CP | | ||
1193 | AMD_PG_SUPPORT_RLC_SMU_HS; | ||
1194 | break; | 1189 | break; |
1195 | default: | 1190 | default: |
1196 | /* FIXME: not supported yet */ | 1191 | /* FIXME: not supported yet */ |