diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3294-drm-amdgpu-remove-WARN_ON-when-VM-isn-t-found-v2.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3294-drm-amdgpu-remove-WARN_ON-when-VM-isn-t-found-v2.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3294-drm-amdgpu-remove-WARN_ON-when-VM-isn-t-found-v2.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3294-drm-amdgpu-remove-WARN_ON-when-VM-isn-t-found-v2.patch new file mode 100644 index 00000000..d791ea42 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3294-drm-amdgpu-remove-WARN_ON-when-VM-isn-t-found-v2.patch @@ -0,0 +1,35 @@ +From 0c6933e08e7b8dcf8f481857091edf5f071f067e Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Wed, 24 Jan 2018 13:38:52 +0100 +Subject: [PATCH 3294/4131] drm/amdgpu: remove WARN_ON when VM isn't found v2 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +It can easily be that the VM is already destroyed when this runs. + +v2: fix test inversion + +Change-Id: I93c94972e0fe4deaaa465d774db8ed2b73a40015 +Signed-off-by: Christian König <christian.koenig@amd.com> +Acked-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/vega10_ih.c b/drivers/gpu/drm/amd/amdgpu/vega10_ih.c +index 9589e0a..cc8ce7e 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); +-- +2.7.4 + |