summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlex Deucher <alexander.deucher@amd.com>2014-03-12 20:15:58 +0100
committerAlex Deucher <alexander.deucher@amd.com>2014-03-12 20:53:24 +0100
commit7b1bbe883b3ed962ca2be4daf321f318f5091340 (patch)
tree74a3a9ef3df94cf6e6bdf11cc9cda21ebce3b4e8 /drivers
parentdrm/radeon: fix runpm disabling on non-PX harder (diff)
downloadlinux-7b1bbe883b3ed962ca2be4daf321f318f5091340.tar.xz
linux-7b1bbe883b3ed962ca2be4daf321f318f5091340.zip
drm/radeon/cik: properly set sdma ring status on disable
When we disable the rings, set the status properly. If not other code pathes may try and use the rings which are not functional at this point. Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers')
-rw-r--r--drivers/gpu/drm/radeon/cik_sdma.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c
index 1ecb3f1070e3..5d7a5fa3741a 100644
--- a/drivers/gpu/drm/radeon/cik_sdma.c
+++ b/drivers/gpu/drm/radeon/cik_sdma.c
@@ -264,6 +264,8 @@ static void cik_sdma_gfx_stop(struct radeon_device *rdev)
WREG32(SDMA0_GFX_RB_CNTL + reg_offset, rb_cntl);
WREG32(SDMA0_GFX_IB_CNTL + reg_offset, 0);
}
+ rdev->ring[R600_RING_TYPE_DMA_INDEX].ready = false;
+ rdev->ring[CAYMAN_RING_TYPE_DMA1_INDEX].ready = false;
}
/**