commit:     758a2efc940adc136ace9c5242c140c5dd9e3735
Author:     Arisu Tachibana <alicef <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 19 08:45:58 2025 +0000
Commit:     Arisu Tachibana <alicef <AT> gentoo <DOT> org>
CommitDate: Fri Dec 19 08:45:58 2025 +0000
URL:        https://gitweb.gentoo.org/proj/linux-patches.git/commit/?id=758a2efc

Add 2701 Fix amdgpu module kernel oops with GCN 1.0

Signed-off-by: Arisu Tachibana <alicef <AT> gentoo.org>

 0000_README                                        |  4 +++
 ...-amdgpu-don-t-attach-the-tlb-fence-for-SI.patch | 34 ++++++++++++++++++++++
 2 files changed, 38 insertions(+)

diff --git a/0000_README b/0000_README
index 08c475a0..e019ea24 100644
--- a/0000_README
+++ b/0000_README
@@ -111,6 +111,10 @@ Patch:  
2000_BT-Check-key-sizes-only-if-Secure-Simple-Pairing-enabled.patch
 From:   
https://lore.kernel.org/linux-bluetooth/[email protected]/raw
 Desc:   Bluetooth: Check key sizes only when Secure Simple Pairing is enabled. 
See bug #686758
 
+Patch:  2701-drm-amdgpu-don-t-attach-the-tlb-fence-for-SI.patch
+From:   https://gitlab.freedesktop.org/drm/amd/-/issues/4744
+Desc:   amdgpu module kernel oops with GCN 1.0
+
 Patch:  2901_permit-menuconfig-sorting.patch
 From:   https://lore.kernel.org/
 Desc:   menuconfig: Allow sorting the entries alphabetically

diff --git a/2701-drm-amdgpu-don-t-attach-the-tlb-fence-for-SI.patch 
b/2701-drm-amdgpu-don-t-attach-the-tlb-fence-for-SI.patch
new file mode 100644
index 00000000..93db717b
--- /dev/null
+++ b/2701-drm-amdgpu-don-t-attach-the-tlb-fence-for-SI.patch
@@ -0,0 +1,34 @@
+From e7a5371d625fdb071f60b038c5c6445bf043a7bd Mon Sep 17 00:00:00 2001
+From: Alex Deucher <[email protected]>
+Date: Tue, 2 Dec 2025 14:24:03 -0500
+Subject: [PATCH] drm/amdgpu: don't attach the tlb fence for SI
+
+SI hardware doesn't support pasids, user mode queues, or
+KIQ/MES so there is no need for this.  Doing so results in
+a segfault as these callbacks are non-existent for SI.
+
+Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/4744
+Fixes: f3854e04b708 ("drm/amdgpu: attach tlb fence to the PTs update")
+Signed-off-by: Alex Deucher <[email protected]>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 4 +++-
+ 1 file changed, 3 insertions(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c 
b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+index 6a2ea200d90c8..0eccb31793ca7 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+@@ -1069,7 +1069,9 @@ amdgpu_vm_tlb_flush(struct amdgpu_vm_update_params 
*params,
+       }
+ 
+       /* Prepare a TLB flush fence to be attached to PTs */
+-      if (!params->unlocked) {
++      if (!params->unlocked &&
++          /* SI doesn't support pasid or KIQ/MES */
++          params->adev->family > AMDGPU_FAMILY_SI) {
+               amdgpu_vm_tlb_fence_create(params->adev, vm, fence);
+ 
+               /* Makes sure no PD/PT is freed before the flush */
+-- 
+2.51.1
+

Reply via email to