drm/radeon: Always flush the VM
Subsystems (2)
PATCH 1/1 drm/radeon: Always flush the VM
From: Jerome Glisse <[email protected]>
This is slightly cleaned up version of Jerome's patch. There seems to be an issue tracking the last flush of the VM which results in hangs in certain cases when VM is used. For now just flush the VM for every IB.
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=62959
https://bugs.freedesktop.org/show_bug.cgi?id=62997
--- drivers/gpu/drm/radeon/radeon_ring.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
drivers/gpu/drm/radeon/radeon_ring.c +2 -1
@@ -180,7 +180,8 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib,radeon_semaphore_free (rdev, &ib->semaphore,NULL ); }/* if we can't remember our last VM flush then flush now! */ -if (ib->vm && !ib->vm->last_flush) { +/* XXX figure out why we have to flush for every IB */ +if (ib->vm/*&& !ib->vm->last_flush*/ ) {radeon_ring_vm_flush (rdev, ib->ring, ib->vm); }if (const_ib) {
Signature · 1 line
1.7.7.5
Am 16.04.2013 18:26, schrieb [email protected]:
Quoted 7 lines
From: Jerome Glisse <[email protected]>
This is slightly cleaned up version of Jerome's patch. There seems to be an issue tracking the last flush of the VM which results in hangs in certain cases when VM is used. For now just flush the VM for every IB.
Quoted 5 lines
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=62959
https://bugs.freedesktop.org/show_bug.cgi?id=62997Signed-off-by Alex Deucher <[email protected]>
Quoted 19 lines
--- drivers/gpu/drm/radeon/radeon_ring.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)drivers/gpu/drm/radeon/radeon_ring.c +2
-1@@ -180,7 +180,8 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib,radeon_semaphore_free (rdev, &ib->semaphore,NULL ); }/* if we can't remember our last VM flush then flush now! */ -if (ib->vm && !ib->vm->last_flush) { +/* XXX figure out why we have to flush for every IB */ +if (ib->vm/*&& !ib->vm->last_flush*/ ) {radeon_ring_vm_flush (rdev, ib->ring, ib->vm); }if (const_ib) {