aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRex Zhu <Rex.Zhu@amd.com>2016-12-07 04:22:25 -0500
committerAlex Deucher <alexander.deucher@amd.com>2016-12-15 15:16:22 -0500
commiteb584241226958d45aa1f07f4f6a6ea9da98b29e (patch)
tree05325283a29d0d4e49f6beb9f80d3584c008e936
parent54971406b7731efd5dbe0b1ccc42dfbd8af1f3b2 (diff)
drm/amdgpu: fix enable_cp_power_gating in gfx_v8.0.
the CP_PG_DISABLE bit was reversed. Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
index 6324f67bdb1f..2dbe6a1d8973 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c
@@ -3996,7 +3996,7 @@ static void cz_enable_sck_slow_down_on_power_down(struct amdgpu_device *adev,
3996 3996
3997static void cz_enable_cp_power_gating(struct amdgpu_device *adev, bool enable) 3997static void cz_enable_cp_power_gating(struct amdgpu_device *adev, bool enable)
3998{ 3998{
3999 WREG32_FIELD(RLC_PG_CNTL, CP_PG_DISABLE, enable ? 1 : 0); 3999 WREG32_FIELD(RLC_PG_CNTL, CP_PG_DISABLE, enable ? 0 : 1);
4000} 4000}
4001 4001
4002static void gfx_v8_0_init_pg(struct amdgpu_device *adev) 4002static void gfx_v8_0_init_pg(struct amdgpu_device *adev)