]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
6.6-stable patches
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Dec 2024 15:52:59 +0000 (16:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Dec 2024 15:52:59 +0000 (16:52 +0100)
added patches:
drm-amdgpu-handle-null-bo-tbo.resource-again-in-amdgpu_vm_bo_update.patch

queue-6.6/drm-amdgpu-handle-null-bo-tbo.resource-again-in-amdgpu_vm_bo_update.patch [new file with mode: 0644]
queue-6.6/series

diff --git a/queue-6.6/drm-amdgpu-handle-null-bo-tbo.resource-again-in-amdgpu_vm_bo_update.patch b/queue-6.6/drm-amdgpu-handle-null-bo-tbo.resource-again-in-amdgpu_vm_bo_update.patch
new file mode 100644 (file)
index 0000000..866159c
--- /dev/null
@@ -0,0 +1,42 @@
+From 85230ee36d88e7a09fb062d43203035659dd10a5 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Michel=20D=C3=A4nzer?= <mdaenzer@redhat.com>
+Date: Tue, 17 Dec 2024 18:22:56 +0100
+Subject: drm/amdgpu: Handle NULL bo->tbo.resource (again) in amdgpu_vm_bo_update
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+From: Michel Dänzer <mdaenzer@redhat.com>
+
+commit 85230ee36d88e7a09fb062d43203035659dd10a5 upstream.
+
+Third time's the charm, I hope?
+
+Fixes: d3116756a710 ("drm/ttm: rename bo->mem and make it a pointer")
+Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/3837
+Reviewed-by: Christian König <christian.koenig@amd.com>
+Signed-off-by: Michel Dänzer <mdaenzer@redhat.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+(cherry picked from commit 695c2c745e5dff201b75da8a1d237ce403600d04)
+Cc: stable@vger.kernel.org
+Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c |    7 +++----
+ 1 file changed, 3 insertions(+), 4 deletions(-)
+
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
+@@ -1161,10 +1161,9 @@ int amdgpu_vm_bo_update(struct amdgpu_de
+        * next command submission.
+        */
+       if (bo && bo->tbo.base.resv == vm->root.bo->tbo.base.resv) {
+-              uint32_t mem_type = bo->tbo.resource->mem_type;
+-
+-              if (!(bo->preferred_domains &
+-                    amdgpu_mem_type_to_domain(mem_type)))
++              if (bo->tbo.resource &&
++                  !(bo->preferred_domains &
++                    amdgpu_mem_type_to_domain(bo->tbo.resource->mem_type)))
+                       amdgpu_vm_bo_evicted(&bo_va->base);
+               else
+                       amdgpu_vm_bo_idle(&bo_va->base);
index ad62a10b37f7b1fac363c5622b629f25f49f3739..17612ceccfd956c353c491eb50c93bfb9ea1f6c6 100644 (file)
@@ -113,3 +113,4 @@ io_uring-rw-treat-eopnotsupp-for-iocb_nowait-like-eagain.patch
 io_uring-rw-avoid-punting-to-io-wq-directly.patch
 net-fec-refactor-pps-channel-configuration.patch
 net-fec-make-pps-channel-configurable.patch
+drm-amdgpu-handle-null-bo-tbo.resource-again-in-amdgpu_vm_bo_update.patch