Skip to content

Commit 466476d

Browse files
Jerome Glissealexdeucher
authored andcommitted
drm/radeon: Always flush the VM
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 Signed-off-by: Jerome Glisse <jglisse@redhat.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Cc: stable@vger.kernel.org
1 parent 2ab91ad commit 466476d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎drivers/gpu/drm/radeon/radeon_ring.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ int radeon_ib_schedule(struct radeon_device *rdev, struct radeon_ib *ib,
180180
radeon_semaphore_free(rdev, &ib->semaphore, NULL);
181181
}
182182
/* if we can't remember our last VM flush then flush now! */
183-
if (ib->vm && !ib->vm->last_flush) {
183+
/* XXX figure out why we have to flush for every IB */
184+
if (ib->vm /*&& !ib->vm->last_flush*/) {
184185
radeon_ring_vm_flush(rdev, ib->ring, ib->vm);
185186
}
186187
if (const_ib) {

0 commit comments

Comments
 (0)