From 9f6f705d7ebfa23b6580b379a4d2bb0dba379f5f Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Wed, 14 Sep 2016 09:45:41 -0400 Subject: [PATCH] drm/amdgpu/si/dpm: fix swapped ck enable Fixes a regression in: drm/amd/amdgpu: Tidy up SI SMC code bug: https://bugs.freedesktop.org/show_bug.cgi?id=97801 Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/si_smc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_smc.c b/drivers/gpu/drm/amd/amdgpu/si_smc.c index 2cc628c..47bbb40 100644 --- a/drivers/gpu/drm/amd/amdgpu/si_smc.c +++ b/drivers/gpu/drm/amd/amdgpu/si_smc.c @@ -143,9 +143,9 @@ void si_smc_clock(struct amdgpu_device *adev, bool enable) u32 tmp = RREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0); if (enable) - tmp |= CK_DISABLE; - else tmp &= ~CK_DISABLE; + else + tmp |= CK_DISABLE; WREG32_SMC(SMC_SYSCON_CLOCK_CNTL_0, tmp); } -- 2.5.5