From: Christian König Date: Wed, 24 Jan 2018 12:38:52 +0000 (+0100) Subject: drm/amdgpu: remove WARN_ON when VM isn't found v2 X-Git-Tag: v4.16-rc1~31^2~1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=147f255884a7d9bd3707d4674a8bbacf24efbcf5;p=thirdparty%2Flinux.git drm/amdgpu: remove WARN_ON when VM isn't found v2 It can easily be that the VM is already destroyed when this runs. v2: fix test inversion Signed-off-by: Christian König Acked-by: Alex Deucher Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c index 746748e6b7315..ee14d78be2a90 100644 --- a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c +++ b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c @@ -278,7 +278,7 @@ static bool vega10_ih_prescreen_iv(struct amdgpu_device *adev) /* Track retry faults in per-VM fault FIFO. */ spin_lock(&adev->vm_manager.pasid_lock); vm = idr_find(&adev->vm_manager.pasid_idr, pasid); - if (WARN_ON_ONCE(!vm)) { + if (!vm) { /* VM not found, process it normally */ spin_unlock(&adev->vm_manager.pasid_lock); amdgpu_ih_clear_fault(adev, key);