From: Michel Dänzer Date: Tue, 29 Jul 2014 09:47:22 +0000 (+0900) Subject: drm/radeon/cik: Read back SDMA WPTR register after writing it X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f069dc1dbc1e17b04b2ec65f65d1c9e9af667ff5;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/radeon/cik: Read back SDMA WPTR register after writing it For symmetry with other *_set_wptr hooks. Signed-off-by: Michel Dänzer Reviewed-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/radeon/cik_sdma.c b/drivers/gpu/drm/radeon/cik_sdma.c index d629cea865f2..db8ce30ff31f 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); } /**