diff options
author | Christian König <christian.koenig@amd.com> | 2018-01-24 13:38:52 +0100 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-01-29 23:17:20 -0500 |
commit | 147f255884a7d9bd3707d4674a8bbacf24efbcf5 (patch) | |
tree | 2eefd56eacf6fc9aa1f1ee5c5355c46fa0f0e1f9 /drivers/gpu | |
parent | 153b9e1b75441cd51f69e88b4748c23166de0d64 (diff) | |
download | linux-147f255884a7d9bd3707d4674a8bbacf24efbcf5.tar.bz2 |
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 <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c index 746748e6b731..ee14d78be2a9 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); |