mirror of https://gitee.com/openkylin/linux.git
drm/amdgpu/renoir: move gfxoff handling into gfx9 module
To properly handle the option parsing ordering. Reviewed-by: Yong Zhao <yong.zhao@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
365f7f8db8
commit
ad4d81dc57
|
@ -1059,6 +1059,12 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev)
|
||||||
!adev->gfx.rlc.is_rlc_v2_1))
|
!adev->gfx.rlc.is_rlc_v2_1))
|
||||||
adev->pm.pp_feature &= ~PP_GFXOFF_MASK;
|
adev->pm.pp_feature &= ~PP_GFXOFF_MASK;
|
||||||
|
|
||||||
|
if (adev->pm.pp_feature & PP_GFXOFF_MASK)
|
||||||
|
adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG |
|
||||||
|
AMD_PG_SUPPORT_CP |
|
||||||
|
AMD_PG_SUPPORT_RLC_SMU_HS;
|
||||||
|
break;
|
||||||
|
case CHIP_RENOIR:
|
||||||
if (adev->pm.pp_feature & PP_GFXOFF_MASK)
|
if (adev->pm.pp_feature & PP_GFXOFF_MASK)
|
||||||
adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG |
|
adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG |
|
||||||
AMD_PG_SUPPORT_CP |
|
AMD_PG_SUPPORT_CP |
|
||||||
|
|
|
@ -1237,11 +1237,6 @@ static int soc15_common_early_init(void *handle)
|
||||||
AMD_PG_SUPPORT_VCN |
|
AMD_PG_SUPPORT_VCN |
|
||||||
AMD_PG_SUPPORT_VCN_DPG;
|
AMD_PG_SUPPORT_VCN_DPG;
|
||||||
adev->external_rev_id = adev->rev_id + 0x91;
|
adev->external_rev_id = adev->rev_id + 0x91;
|
||||||
|
|
||||||
if (adev->pm.pp_feature & PP_GFXOFF_MASK)
|
|
||||||
adev->pg_flags |= AMD_PG_SUPPORT_GFX_PG |
|
|
||||||
AMD_PG_SUPPORT_CP |
|
|
||||||
AMD_PG_SUPPORT_RLC_SMU_HS;
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
/* FIXME: not supported yet */
|
/* FIXME: not supported yet */
|
||||||
|
|
Loading…
Reference in New Issue