drm/radeon: Read back ring buffer before updating WPTR
Subsystems (2)
PATCH 1/1 drm/radeon: Read back ring buffer before updating WPTR
From: Michel Dänzer <[email protected]>
This fixes a ring test failure reported on a Kabini system which was triggered by write-combined CPU mappings of the ring buffers.
Reported-and-Tested-by Will Trives <[email protected]>
Signed-off-by Michel Dänzer <[email protected]>
--- drivers/gpu/drm/radeon/radeon_ring.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/gpu/drm/radeon/radeon_ring.c +4 -0
@@ -193,6 +193,10 @@ void radeon_ring_commit(struct radeon_device *rdev, struct radeon_ring *ring)radeon_ring_write (ring, ring->nop); }mb (); +/* This is necessary to prevent ring test failures on some systems +* with write-combined CPU mappings of the ring buffers +*/ + (void )ring->ring[ring->wptr];/* If we are emitting the HDP flush via MMIO, we need to do it after * all CPU writes to VRAM finished. */
Signature · 6 lines
2.0.1 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedQuoted 7 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
This fixes a ring test failure reported on a Kabini system which was triggered by write-combined CPU mappings of the ring buffers.
Reported-and-Tested-by Will Trives <[email protected]>Signed-off-by Michel Dänzer <[email protected]>
Applied to my fixes tree.
Alex
Quoted 22 lines
--- drivers/gpu/drm/radeon/radeon_ring.c | 4 ++++ 1 file changed, 4 insertions(+)drivers/gpu/drm/radeon/radeon_ring.c +4
-1@@ -193,6 +193,10 @@ void radeon_ring_commit(struct radeon_device *rdev, struct radeon_ring *ring)radeon_ring_write (ring, ring->nop); }mb (); +/* This is necessary to prevent ring test failures on some systems +* with write-combined CPU mappings of the ring buffers +*/ + (void )ring->ring[ring->wptr];/* If we are emitting the HDP flush via MMIO, we need to do it after * all CPU writes to VRAM finished. */ --2.0.1
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel