Skip to contentSkip to conversation

amdgpu-a-null-mm-does-not-mean-a-thread-is-a-kthread.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 16, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled

     Subject: amdgpu: a NULL ->mm does not mean a thread is a kthread

has been removed from the -mm tree. Its filename was
amdgpu-a-null-mm-does-not-mean-a-thread-is-a-kthread.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Christoph Hellwig <[email protected]>
Subject: amdgpu: a NULL ->mm does not mean a thread is a kthread

Use the proper API instead.

Fixes 70539bd795002 ("drm/amd: Update MEC HQD loading code for KFD")
Cc Al Viro <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Zhenyu Wang <[email protected]>
Cc Zhi Wang <[email protected]>
Cc Felipe Balbi <[email protected]>
Cc "Michael S. Tsirkin" <[email protected]>
Cc Jason Wang <[email protected]>
Cc Greg Kroah-Hartman <[email protected]>

---

 drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h renamed from drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.h~amdgpu-a-null-mm-does-not-mean-a-thread-is-a-kthread +1 -1
@@ -196,7 +196,7 @@ uint8_t amdgpu_amdkfd_get_xgmi_hops_coun
 			pagefault_disable();				\
 			if ((mmptr) == current->mm) {			\
 				valid = !get_user((dst), (wptr));	\
-			} else if (current->mm == NULL) {		\
+			} else if (current->flags & PF_KTHREAD) {	\
 				kthread_use_mm(mmptr);			\
 				valid = !get_user((dst), (wptr));	\
 				kthread_unuse_mm(mmptr);		\

_

Patches currently in -mm which might be from [email protected] are