diff options
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c index a0376fd36a82..5277c10d901d 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c @@ -2059,7 +2059,7 @@ static void amdgpu_vm_prt_fini(struct amdgpu_device *adev, struct amdgpu_vm *vm)  	struct dma_resv_iter cursor;  	struct dma_fence *fence; -	dma_resv_for_each_fence(&cursor, resv, DMA_RESV_USAGE_READ, fence) { +	dma_resv_for_each_fence(&cursor, resv, DMA_RESV_USAGE_BOOKKEEP, fence) {  		/* Add a callback for each fence in the reservation object */  		amdgpu_vm_prt_get(adev);  		amdgpu_vm_add_prt_cb(adev, fence); @@ -2665,7 +2665,7 @@ bool amdgpu_vm_evictable(struct amdgpu_bo *bo)  		return true;  	/* Don't evict VM page tables while they are busy */ -	if (!dma_resv_test_signaled(bo->tbo.base.resv, DMA_RESV_USAGE_READ)) +	if (!dma_resv_test_signaled(bo->tbo.base.resv, DMA_RESV_USAGE_BOOKKEEP))  		return false;  	/* Try to block ongoing updates */ @@ -2846,7 +2846,7 @@ void amdgpu_vm_adjust_size(struct amdgpu_device *adev, uint32_t min_vm_size,  long amdgpu_vm_wait_idle(struct amdgpu_vm *vm, long timeout)  {  	timeout = dma_resv_wait_timeout(vm->root.bo->tbo.base.resv, -					DMA_RESV_USAGE_READ, +					DMA_RESV_USAGE_BOOKKEEP,  					true, timeout);  	if (timeout <= 0)  		return timeout; | 
