From: Changfeng Date: Fri, 9 Oct 2020 04:42:06 +0000 (+0800) Subject: drm/amdgpu: modify cp_flags to pg_flags in gfx_v10_cntl_power_gating X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7ca917ecb3e7b56f13ef2460268a01e768504694;p=linux.git drm/amdgpu: modify cp_flags to pg_flags in gfx_v10_cntl_power_gating It needs to use adev->pg_flags other than adev->cg_glags in gfx_v10_cntl_power_gating Signed-off-by: Changfeng Reviewed-by: Huang Rui Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 9a8d3f7b7b159..32360023e8eb6 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -7588,7 +7588,7 @@ static void gfx_v10_cntl_power_gating(struct amdgpu_device *adev, bool enable) { u32 data = RREG32_SOC15(GC, 0, mmRLC_PG_CNTL); - if (enable && (adev->cg_flags & AMD_PG_SUPPORT_GFX_PG)) + if (enable && (adev->pg_flags & AMD_PG_SUPPORT_GFX_PG)) data |= RLC_PG_CNTL__GFX_POWER_GATING_ENABLE_MASK; else data &= ~RLC_PG_CNTL__GFX_POWER_GATING_ENABLE_MASK;