diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2014-07-29 18:47:22 +0900 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2014-08-05 08:53:42 -0400 |
commit | f069dc1dbc1e17b04b2ec65f65d1c9e9af667ff5 (patch) | |
tree | 58cb6afc744761ebc7f67a175a0d88efe5a3bec8 /drivers/gpu/drm/radeon | |
parent | 810b73d1909298b67db5c7c047ed99b487ff7341 (diff) | |
download | op-kernel-dev-f069dc1dbc1e17b04b2ec65f65d1c9e9af667ff5.zip op-kernel-dev-f069dc1dbc1e17b04b2ec65f65d1c9e9af667ff5.tar.gz |
drm/radeon/cik: Read back SDMA WPTR register after writing it
For symmetry with other *_set_wptr hooks.
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon')
-rw-r--r-- | drivers/gpu/drm/radeon/cik_sdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c index d629cea..db8ce30 100644 --- a/drivers/gpu/drm/radeon/cik_sdma.c +++ b/drivers/gpu/drm/radeon/cik_sdma.c @@ -119,6 +119,7 @@ void cik_sdma_set_wptr(struct radeon_device *rdev, reg = SDMA0_GFX_RB_WPTR + SDMA1_REGISTER_OFFSET; WREG32(reg, (ring->wptr << 2) & 0x3fffc); + (void)RREG32(reg); } /** |