diff options
author | Christian König <christian.koenig@amd.com> | 2014-02-18 08:52:33 -0500 |
---|---|---|
committer | Christian König <christian.koenig@amd.com> | 2014-02-18 11:49:19 -0500 |
commit | ff212f25feb44a915ce9c0144faef7fae27a6e61 (patch) | |
tree | 4cfdebae7d47c5504d087ef8950e068a426f1270 /drivers/gpu/drm/radeon/cik_sdma.c | |
parent | a1d6f97c8cfa7c3554d0391c0b16505d1d97f380 (diff) |
drm/radeon: drop drivers copy of the rptr
In all cases where it really matters we are using the read functions anyway.
Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/cik_sdma.c')
-rw-r--r-- | drivers/gpu/drm/radeon/cik_sdma.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c index 1ecb3f1070e3..e474760d714c 100644 --- a/drivers/gpu/drm/radeon/cik_sdma.c +++ b/drivers/gpu/drm/radeon/cik_sdma.c | |||
@@ -362,8 +362,6 @@ static int cik_sdma_gfx_resume(struct radeon_device *rdev) | |||
362 | ring->wptr = 0; | 362 | ring->wptr = 0; |
363 | WREG32(SDMA0_GFX_RB_WPTR + reg_offset, ring->wptr << 2); | 363 | WREG32(SDMA0_GFX_RB_WPTR + reg_offset, ring->wptr << 2); |
364 | 364 | ||
365 | ring->rptr = RREG32(SDMA0_GFX_RB_RPTR + reg_offset) >> 2; | ||
366 | |||
367 | /* enable DMA RB */ | 365 | /* enable DMA RB */ |
368 | WREG32(SDMA0_GFX_RB_CNTL + reg_offset, rb_cntl | SDMA_RB_ENABLE); | 366 | WREG32(SDMA0_GFX_RB_CNTL + reg_offset, rb_cntl | SDMA_RB_ENABLE); |
369 | 367 | ||
@@ -713,7 +711,7 @@ bool cik_sdma_is_lockup(struct radeon_device *rdev, struct radeon_ring *ring) | |||
713 | mask = RADEON_RESET_DMA1; | 711 | mask = RADEON_RESET_DMA1; |
714 | 712 | ||
715 | if (!(reset_mask & mask)) { | 713 | if (!(reset_mask & mask)) { |
716 | radeon_ring_lockup_update(ring); | 714 | radeon_ring_lockup_update(rdev, ring); |
717 | return false; | 715 | return false; |
718 | } | 716 | } |
719 | /* force ring activities */ | 717 | /* force ring activities */ |