diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2014-03-12 15:15:58 -0400 |
---|---|---|
committer | Jiri Slaby <jslaby@suse.cz> | 2014-03-22 22:02:00 +0100 |
commit | 703ee1e3778f1d287b5e4d902285ab64a124f519 (patch) | |
tree | e81617717308b8582c606a6c7423cec73cb1034a /drivers/gpu | |
parent | 62871f155922ac201f45c7178c5e0bb568ab6d50 (diff) |
drm/radeon/cik: properly set sdma ring status on disable
commit 7b1bbe883b3ed962ca2be4daf321f318f5091340 upstream.
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>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/cik_sdma.c | 2 |
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 aaf7ffce8b5..c0c9b1b8af0 100644 --- a/drivers/gpu/drm/radeon/cik_sdma.c +++ b/drivers/gpu/drm/radeon/cik_sdma.c @@ -174,6 +174,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; } /** |