Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Jun 2025 20:43:07 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 287367] [amdgpu][drm-6.6] panic: Assertion td->td_lkpi_task == NULL
Message-ID:  <bug-287367-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=287367

            Bug ID: 287367
           Summary: [amdgpu][drm-6.6] panic: Assertion td->td_lkpi_task ==
                    NULL
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: Axel.Rau@Chaos1.DE

After installing FreeBSD 15.0-CURRENT #2 main-n277727-fa02d9fceab7
and drm-66-kmod: 6.6.25.1500043_3 [FreeBSD-kmods], I see this panic on kld
amdgpu:

```
...
drmn0: successfully loaded firmware image 'amdgpu/yellow_carp_vcn.bin'
[drm] JPEG decode is enabled in VM mode
drmn0: Trusted Memory Zone (TMZ) feature disabled as experimental (default)
drmn0: PCIE atomic ops is not supported
[drm] vm size is 262144 GB, 4 levels, block size is 9-bit, fragment size is
9-bit
drmn0: VRAM: 1024M 0x000000F400000000 - 0x000000F43FFFFFFF (1024M used)
drmn0: GART: 1024M 0x0000000000000000 - 0x000000003FFFFFFF
drmn0: AGP: 267419648M 0x000000F800000000 - 0x0000FFFFFFFFFFFF
[drm ERROR :amdgpu_bo_init] Unable to set WC memtype for the aperture base
[drm] Detected VRAM RAM=1024M, BAR=1024M
[drm] RAM width 64bits DDR5
[drm] amdgpu: 1024M of VRAM memory ready
[drm] amdgpu: 7536M of GTT memory ready.
[drm] GART: num cpu pages 262144, num gpu pages 262144
[drm] PCIE GART of 1024M enabled (table at 0x000000F43FC00000).
[drm] Loading DMUB firmware via PSP: version=0x0400003C
amdgpu/yellow_carp_sdma.bin: could not load binary firmware
/boot/firmware/amdgpu/yellow_carp_sdma.bin either
yellow_carp_sdma.bin: could not load binary firmware
/boot/firmware/yellow_carp_sdma.bin either
amdgpu_yellow_carp_sdma.bin: could not load binary firmware
/boot/firmware/amdgpu_yellow_carp_sdma.bin either
drmn0: successfully loaded firmware image 'amdgpu/yellow_carp_sdma.bin'
[drm] use_doorbell being set to: [true]
[drm] Found VCN firmware Version ENC: 1.27 DEC: 2 VEP: 0 Revision: 0
drmn0: Will use PSP to load VCN firmware
[drm] reserve 0xa00000 from 0xf43e000000 for PSP TMR
drmn0: RAS: optional ras ta ucode is not available
drmn0: RAP: optional rap ta ucode is not available
drmn0: SECUREDISPLAY: securedisplay ta ucode is not available
drmn0: SMU is initialized successfully!
panic: Assertion td->td_lkpi_task == NULL failed at
/usr/src/sys/compat/linuxkpi/common/src/linux_current.c:85
cpuid = 6
time = 1749326364
KDB: stack backtrace:
db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00d1eb0298
vpanic() at vpanic+0x136/frame 0xfffffe00d1eb03c8
panic() at panic+0x43/frame 0xfffffe00d1eb0428
linux_alloc_current() at linux_alloc_current+0x314/frame 0xfffffe00d1eb0488
dc_assert_fp_enabled() at dc_assert_fp_enabled+0x77/frame 0xfffffe00d1eb04a8
dcn31_update_bw_bounding_box() at dcn31_update_bw_bounding_box+0x1b/frame
0xfffffe00d1eb04d0
dc_create() at dc_create+0x3aa/frame 0xfffffe00d1eb0510
dm_hw_init() at dm_hw_init+0x367/frame 0xfffffe00d1eb0700
amdgpu_device_ip_hw_init_phase2() at amdgpu_device_ip_hw_init_phase2+0x5a/frame
0xfffffe00d1eb0730
amdgpu_device_ip_init() at amdgpu_device_ip_init+0x3cd/frame 0xfffffe00d1eb07a0
amdgpu_device_init() at amdgpu_device_init+0x1bc8/frame 0xfffffe00d1eb0860
amdgpu_driver_load_kms() at amdgpu_driver_load_kms+0x16/frame
0xfffffe00d1eb0890
amdgpu_pci_probe() at amdgpu_pci_probe+0x29f/frame 0xfffffe00d1eb08e0
linux_pci_attach_device() at linux_pci_attach_device+0x440/frame
0xfffffe00d1eb0930
device_attach() at device_attach+0x45b/frame 0xfffffe00d1eb0980
bus_generic_driver_added() at bus_generic_driver_added+0x90/frame
0xfffffe00d1eb09a0
devclass_driver_added() at devclass_driver_added+0x29/frame 0xfffffe00d1eb09d0
devclass_add_driver() at devclass_add_driver+0x138/frame 0xfffffe00d1eb0a10
_linux_pci_register_driver() at _linux_pci_register_driver+0xc1/frame
0xfffffe00d1eb0a40
amdgpu_evh() at amdgpu_evh+0x73/frame 0xfffffe00d1eb0a50
module_register_init() at module_register_init+0xb0/frame 0xfffffe00d1eb0a80
linker_load_module() at linker_load_module+0xc51/frame 0xfffffe00d1eb0d80
kern_kldload() at kern_kldload+0x16e/frame 0xfffffe00d1eb0dd0
sys_kldload() at sys_kldload+0x59/frame 0xfffffe00d1eb0e00
amd64_syscall() at amd64_syscall+0x169/frame 0xfffffe00d1eb0f30
fast_syscall_common() at fast_syscall_common+0xf8/frame 0xfffffe00d1eb0f30
--- syscall (304, FreeBSD ELF64, kldload), rip = 0x1bcf2d5f2baa, rsp =
0x1bcf2b363eb8, rbp = 0x1bcf2b364430 ---
KDB: enter: panic

#10 0xffffffff80b76e3b in vpanic (
  fmt=0xffffffff8126b809 "Assertion %s failed at %s:%d",
  ap=ap@entry=0xfffffe00d1eb0408) at /usr/src/sys/kern/kern_shutdown.c:967
      buf = "Assertion td->td_lkpi_task == NULL failed at
/usr/src/sys/compat/linuxkpi/common/src/linux_current.c:85", '\000' <repeats
152 times>
      __pc = 0x0
      __pc = 0x0
      __pc = 0x0
      other_cpus = {__bits = {4031, 0 <repeats 15 times>}}
      td = 0xfffff80006fac000
      bootopt = <optimized out>
      newpanic = <optimized out>
#11 0xffffffff80b76ca3 in panic (
  fmt=0xffffffff81d9d450 <cnputs_mtx> "\311\352\031\201\377\377\377\377")
  at /usr/src/sys/kern/kern_shutdown.c:892
      ap = {{gp_offset = 32, fp_offset = 48,
          overflow_arg_area = 0xfffffe00d1eb0438,
          reg_save_area = 0xfffffe00d1eb03d8}}
#12 0xffffffff80e287d4 in linux_alloc_current (td=<optimized out>,
  flags=<optimized out>)
  at /usr/src/sys/compat/linuxkpi/common/src/linux_current.c:85
      ts = <optimized out>
      mm = <optimized out>
      proc = <optimized out>
      mm_other = <optimized out>
#13 0xffffffff84428787 in dc_assert_fp_enabled () from /boot/modules/amdgpu.ko
No symbol table info available.
#14 0xffffffff845d1a7b in dcn31_update_bw_bounding_box ()
 from /boot/modules/amdgpu.ko
No symbol table info available.
#15 0xffffffff8444e0ba in dc_create () from /boot/modules/amdgpu.ko
No symbol table info available.
#16 0xffffffff8441c1c7 in dm_hw_init () from /boot/modules/amdgpu.ko
No symbol table info available.
#17 0xffffffff8421af6a in amdgpu_device_ip_hw_init_phase2 ()
 from /boot/modules/amdgpu.ko
No symbol table info available.
#18 0x000000000000000a in ?? ()
No symbol table info available.
#19 0xfffffe012912a000 in ?? ()
No symbol table info available.
#20 0xfffffe0129179029 in ?? ()
No symbol table info available.
#21 0x000000000000000a in ?? ()
No symbol table info available.
#22 0xfffffe00d1eb07a0 in ?? ()
No symbol table info available.
#23 0xffffffff84216a1d in amdgpu_device_ip_init () from /boot/modules/amdgpu.ko
No symbol table info available.
Backtrace stopped: frame did not save the PC
```

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-287367-227>