drm/amdgpu/gfx9: update pg_flags after determining if gfx off is possible
Subsystems (2)
PATCH 1/1 drm/amdgpu/gfx9: update pg_flags after determining if gfx off is possible
We need to set certain power gating flags after we determine if the firmware version is sufficient to support gfxoff. Previously we set the pg flags in early init, but we later we might have disabled gfxoff if the firmware versions didn't support it. Move adding the additional pg flags after we determine whether or not to support gfxoff.
Fixes 005440066f92 ("drm/amdgpu: enable gfxoff again on raven series (v2)")
Tested-by Kai-Heng Feng <[email protected]>
Signed-off-by Alex Deucher <[email protected]>
Cc Kai-Heng Feng <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++++ drivers/gpu/drm/amd/amdgpu/soc15.c | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c +4 -0
@@ -1037,6 +1037,10 @@ static void gfx_v9_0_check_if_need_gfxoff(struct amdgpu_device *adev) (adev->gfx.rlc_feature_version <1 ) || !adev->gfx.rlc.is_rlc_v2_1) 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 ;default :break ;
drivers/gpu/drm/amd/amdgpu/soc15.c +0 -5
@@ -1133,11 +1133,6 @@ static int soc15_common_early_init(void *handle) adev->pg_flags =AMD_PG_SUPPORT_SDMA |AMD_PG_SUPPORT_VCN ; } - -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_ARCTURUS : adev->asic_funcs = &vega20_asic_funcs;
Signature · 6 lines
2.20.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx