aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/1496-drm-amdkfd-Fix-kernel-panic-in-PPR-handler.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/1496-drm-amdkfd-Fix-kernel-panic-in-PPR-handler.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/1496-drm-amdkfd-Fix-kernel-panic-in-PPR-handler.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/1496-drm-amdkfd-Fix-kernel-panic-in-PPR-handler.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/1496-drm-amdkfd-Fix-kernel-panic-in-PPR-handler.patch
new file mode 100644
index 00000000..5c4e6e16
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/1496-drm-amdkfd-Fix-kernel-panic-in-PPR-handler.patch
@@ -0,0 +1,34 @@
+From dc3584a5b81f68c8018a43fd4034dd8b67bcf618 Mon Sep 17 00:00:00 2001
+From: Felix Kuehling <Felix.Kuehling@amd.com>
+Date: Mon, 29 Aug 2016 19:38:54 -0400
+Subject: [PATCH 1496/4131] drm/amdkfd: Fix kernel panic in PPR handler
+
+Use the correct function to release the reference to mm_struct in
+kfd_signal_iommu_event. The counterpart to get_task_mm is mmput,
+not mmdrop. This fixes a kernel panic after getting PPR events
+from the IOMMUv2.
+
+Bug: SWDEV-101197
+
+Change-Id: Iba45bf4ce98e5c02ee11cb86d199d0c9f69c2c42
+Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
+---
+ drivers/gpu/drm/amd/amdkfd/kfd_events.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_events.c b/drivers/gpu/drm/amd/amdkfd/kfd_events.c
+index f110eba..939b7e7 100644
+--- a/drivers/gpu/drm/amd/amdkfd/kfd_events.c
++++ b/drivers/gpu/drm/amd/amdkfd/kfd_events.c
+@@ -1070,7 +1070,7 @@ void kfd_signal_iommu_event(struct kfd_dev *dev, unsigned int pasid,
+ }
+
+ up_read(&mm->mmap_sem);
+- mmdrop(mm);
++ mmput(mm);
+
+ mutex_lock(&p->event_mutex);
+
+--
+2.7.4
+