drm/radeon/cik: Read back SDMA WPTR register after writing it
authorMichel Dänzer <michel.daenzer@amd.com>
Tue, 29 Jul 2014 09:47:22 +0000 (18:47 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Aug 2014 12:53:42 +0000 (08:53 -0400)
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>
drivers/gpu/drm/radeon/cik_sdma.c

index d629cea865f2a35522894f4465ba65b4dfd7ef12..db8ce30ff31ff7cbe222211c54dac68fa089020b 100644 (file)
@@ -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);
 }
 
 /**