On Wed, Nov 11, 2026 at 10:18:02PM +1100, Jonathan Gray wrote:
> On Wed, Nov 11, 2026 at 10:52:13AM +0000, Jakub Bystron wrote:
> > Hi,
> > experiencing amdgpu crash after today's update in drm/amd. No crashes 
> > before this patchset. X crashed, xenodm recovered.
> > 
> > Machine: ThinkPad P14s Gen 5 AMD, Ryzen 7 PRO 8840HS, Radeon 780M.
> > What was running: glmark2
> > 
> > dmesg + pcidump -v attached
> > 
> > (Kernel is -current plus one local diff: the missing comma in
> > sys/dev/pv/vmt.c 1.33, needed to compile.  vmt(4) does not attach
> > on this machine.)
> 
> If you could bisect the commits marked 6.18.63 that would help.
> 
> A kernel with the 6.18.63 changes ran X on t495 (picasso)
> when I was testing them.

a guess:

drm/amdgpu: wait for pending page table updates before switching a VM to CPU 
updates
2368f9aed09cbabb5a8980c2fbc78bde98e170e9 in linux-6.18.y/6.18.63
53d9ef2f518add783bb48a69d77bbc8aea99e911 in mainline linux

this diff reverts that commit

Index: sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c,v
diff -u -p -r1.43 amdgpu_vm.c
--- sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c      11 Nov 2026 03:20:50 -0000      
1.43
+++ sys/dev/pci/drm/amd/amdgpu/amdgpu_vm.c      11 Nov 2026 11:39:58 -0000
@@ -2808,7 +2808,10 @@ int amdgpu_vm_make_compute(struct amdgpu
 
        if (vm->use_cpu_for_update) {
                /* Sync with last SDMA update/clear before switching to CPU */
-               dma_fence_wait(vm->last_update, false);
+               r = amdgpu_bo_sync_wait(vm->root.bo,
+                                       AMDGPU_FENCE_OWNER_UNDEFINED, true);
+               if (r)
+                       goto unreserve_bo;
 
                vm->update_funcs = &amdgpu_vm_cpu_funcs;
                r = amdgpu_vm_pt_map_tables(adev, vm);
Index: sys/dev/pci/drm/amd/amdgpu/amdgpu_vm_pt.c
===================================================================
RCS file: /cvs/src/sys/dev/pci/drm/amd/amdgpu/amdgpu_vm_pt.c,v
diff -u -p -r1.10 amdgpu_vm_pt.c
--- sys/dev/pci/drm/amd/amdgpu/amdgpu_vm_pt.c   11 Nov 2026 03:20:50 -0000      
1.10
+++ sys/dev/pci/drm/amd/amdgpu/amdgpu_vm_pt.c   11 Nov 2026 11:39:58 -0000
@@ -421,7 +421,7 @@ int amdgpu_vm_pt_clear(struct amdgpu_dev
        if (r)
                goto exit;
 
-       r = vm->update_funcs->commit(&params, &vm->last_update);
+       r = vm->update_funcs->commit(&params, NULL);
 exit:
        drm_dev_exit(idx);
        return r;

Reply via email to