Skip to content

Commit f77c4f0

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/radeon: try to enable VM flushing once more
Let's try to fix bugs related to this instead of just disabling it. Signed-off-by: Christian König <[email protected]> Tested-by: Michel Dänzer <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 0aea5e4 commit f77c4f0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/radeon/radeon_vm.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,7 @@ void radeon_vm_flush(struct radeon_device *rdev,
238238
uint64_t pd_addr = radeon_bo_gpu_offset(vm->page_directory);
239239

240240
/* if we can't remember our last VM flush then flush now! */
241-
/* XXX figure out why we have to flush all the time */
242-
if (!vm->last_flush || true || pd_addr != vm->pd_gpu_addr) {
241+
if (!vm->last_flush || pd_addr != vm->pd_gpu_addr) {
243242
trace_radeon_vm_flush(pd_addr, ring, vm->id);
244243
vm->pd_gpu_addr = pd_addr;
245244
radeon_ring_vm_flush(rdev, ring, vm);

0 commit comments

Comments
 (0)