Skip to content

Commit 5473790

Browse files
committed
fixup! rust: drm: gpuvm: Switch to DRM_GPUVM_IMMEDIATE_MODE
1 parent db4cbfa commit 5473790

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rust/kernel/drm/gpuvm.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,10 @@ unsafe impl<T: DriverGpuVm> AlwaysRefCounted for GpuVmBo<T> {
328328
// The drm_gpuvm_put function satisfies the requirements for dec_ref().
329329
// (We do not support custom locks yet.)
330330
unsafe {
331-
obj.as_mut().lock_gpuva();
331+
let resv = (*obj.as_mut().bo.obj).resv;
332+
bindings::dma_resv_lock(resv, core::ptr::null_mut());
332333
bindings::drm_gpuvm_bo_put(&mut obj.as_mut().bo);
333-
obj.as_mut().unlock_gpuva();
334+
bindings::dma_resv_unlock(resv);
334335
}
335336
}
336337
}

0 commit comments

Comments
 (0)