mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-08 00:29:36 -04:00
drm/amdgpu: remove check for BO reservation add assert instead
We should leave such checks to lockdep and not implement something manually. Signed-off-by: Christian König <christian.koenig@amd.com> Acked-by: Sunil Khatri <sunil.khatri@amd.com> Reviewed-by: Prike Liang <Prike.Liang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
beae798b68
commit
930595df25
@@ -651,18 +651,7 @@ int amdgpu_vm_validate(struct amdgpu_device *adev, struct amdgpu_vm *vm,
|
||||
spin_unlock(&vm->status_lock);
|
||||
|
||||
bo = bo_base->bo;
|
||||
|
||||
if (dma_resv_locking_ctx(bo->tbo.base.resv) != ticket) {
|
||||
struct amdgpu_task_info *ti = amdgpu_vm_get_task_info_vm(vm);
|
||||
|
||||
pr_warn_ratelimited("Evicted user BO is not reserved\n");
|
||||
if (ti) {
|
||||
pr_warn_ratelimited("pid %d\n", ti->task.pid);
|
||||
amdgpu_vm_put_task_info(ti);
|
||||
}
|
||||
|
||||
return -EINVAL;
|
||||
}
|
||||
dma_resv_assert_held(bo->tbo.base.resv);
|
||||
|
||||
r = validate(param, bo);
|
||||
if (r)
|
||||
|
||||
Reference in New Issue
Block a user