diff options
| author | Changfeng <Changfeng.Zhu@amd.com> | 2020-10-09 12:42:06 +0800 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2020-10-09 14:48:48 -0400 |
| commit | 7ca917ecb3e7b56f13ef2460268a01e768504694 (patch) | |
| tree | 46b1f5602c4af757bd03a5957336204310f186f6 /drivers/gpu/drm/amd/amdgpu | |
| parent | drm/amdgpu: Remove warning for virtual_display (diff) | |
| download | linux-7ca917ecb3e7b56f13ef2460268a01e768504694.tar.gz linux-7ca917ecb3e7b56f13ef2460268a01e768504694.zip | |
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 <Changfeng.Zhu@amd.com>
Reviewed-by: Huang Rui <ray.huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index 9a8d3f7b7b15..32360023e8eb 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; |
