Re: radeon panics kernels

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Thu, 3 Oct 2019 09:17:32 +0200
On 2019-10-02 23:19, Steve Kargl wrote:
> troutmask.apl.washington.edu dumped core - see /var/crash/vmcore.7
> 
> Wed Oct  2 14:12:38 PDT 2019
> 

This looks like a simple NULL pointer.

Can you re-compile the drm ports module with debugging symbols and then 
reproduce?

--HPS

> FreeBSD troutmask.apl.washington.edu 13.0-CURRENT FreeBSD 13.0-CURRENT r352812 HPC  amd64
> 
> panic: page fault
> 
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 10
> fault virtual address = 0x0
> fault code  = supervisor write data, page not present
> instruction pointer = 0x20:0xffffffff8177ba1c
> stack pointer         = 0x28:0xfffffe00b437ff50
> frame pointer         = 0x28:0xfffffe00b437ff70
> code segment  = base 0x0, limit 0xfffff, type 0x1b
>     = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags = interrupt enabled, resume, IOPL = 0
> current process  = 782 (X:rcs0)
> trap number  = 12
> panic: page fault
> cpuid = 0
> time = 1570050659
> KDB: stack backtrace:
> db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe00b437fc00
> vpanic() at vpanic+0x19d/frame 0xfffffe00b437fc50
> panic() at panic+0x43/frame 0xfffffe00b437fcb0
> trap_fatal() at trap_fatal+0x394/frame 0xfffffe00b437fd10
> trap_pfault() at trap_pfault+0x4f/frame 0xfffffe00b437fd70
> trap() at trap+0x2a1/frame 0xfffffe00b437fe80
> calltrap() at calltrap+0x8/frame 0xfffffe00b437fe80
> --- trap 0xc, rip = 0xffffffff8177ba1c, rsp = 0xfffffe00b437ff50, rbp = 0xfffffe00b437ff70 ---
> r100_mm_rreg_slow() at r100_mm_rreg_slow+0x3c/frame 0xfffffe00b437ff70
> radeon_fence_activity() at radeon_fence_activity+0x103/frame 0xfffffe00b437ffd0
> radeon_fence_signaled() at radeon_fence_signaled+0x59/frame 0xfffffe00b4380010
> radeon_sa_bo_new() at radeon_sa_bo_new+0x251/frame 0xfffffe00b4380170
> radeon_ib_get() at radeon_ib_get+0x2f/frame 0xfffffe00b43801b0
> radeon_cs_ioctl() at radeon_cs_ioctl+0x25d/frame 0xfffffe00b4380630
> drm_ioctl_kernel() at drm_ioctl_kernel+0xf5/frame 0xfffffe00b4380680
> drm_ioctl() at drm_ioctl+0x27a/frame 0xfffffe00b4380770
> linux_file_ioctl() at linux_file_ioctl+0x298/frame 0xfffffe00b43807d0
> kern_ioctl() at kern_ioctl+0x284/frame 0xfffffe00b4380840
> sys_ioctl() at sys_ioctl+0x158/frame 0xfffffe00b4380910
> amd64_syscall() at amd64_syscall+0x275/frame 0xfffffe00b4380a30
> fast_syscall_common() at fast_syscall_common+0x101/frame 0xfffffe00b4380a30
> --- syscall (54, FreeBSD ELF64, sys_ioctl), rip = 0x200cc95ca, rsp = 0x7fffbfffde98, rbp = 0x7fffbfffdec0 ---
> Uptime: 5d1h10m44s
> Dumping 1764 out of 16327 MB:..1%..11% (CTRL-C to abort) ..21%..31%..41%..51%..61%..71%..81%..91%
> 
> __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
> 55  __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
> (kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
> #1  doadump (textdump=1) at /usr/src/sys/kern/kern_shutdown.c:392
> #2  0xffffffff805e26aa in kern_reboot (howto=260)
>      at /usr/src/sys/kern/kern_shutdown.c:479
> #3  0xffffffff805e2b09 in vpanic (fmt=<optimized out>, ap=<optimized out>)
>      at /usr/src/sys/kern/kern_shutdown.c:908
> #4  0xffffffff805e2903 in panic (fmt=<unavailable>)
>      at /usr/src/sys/kern/kern_shutdown.c:835
> #5  0xffffffff808b8884 in trap_fatal (frame=0xfffffe00b437fe90, eva=0)
>      at /usr/src/sys/amd64/amd64/trap.c:925
> #6  0xffffffff808b88df in trap_pfault (frame=0xfffffe00b437fe90,
>      usermode=<optimized out>, signo=<optimized out>, ucode=<optimized out>)
>      at /usr/src/sys/amd64/amd64/trap.c:743
> #7  0xffffffff808b7f71 in trap (frame=0xfffffe00b437fe90)
>      at /usr/src/sys/amd64/amd64/trap.c:407
> #8  <signal handler called>
> #9  0xffffffff8177ba1c in r100_mm_rreg_slow () from /boot/modules/radeonkms.ko
> #10 0xffffffff817ba613 in radeon_fence_activity ()
>     from /boot/modules/radeonkms.ko
> #11 0xffffffff817ba6e9 in radeon_fence_signaled ()
>     from /boot/modules/radeonkms.ko
> #12 0xffffffff817d2601 in radeon_sa_bo_new () from /boot/modules/radeonkms.ko
> #13 0xffffffff817c1a4f in radeon_ib_get () from /boot/modules/radeonkms.ko
> #14 0xffffffff817ad6ed in radeon_cs_ioctl () from /boot/modules/radeonkms.ko
> #15 0xffffffff818a82f5 in drm_ioctl_kernel () from /boot/modules/drm.ko
> #16 0xffffffff818a858a in drm_ioctl () from /boot/modules/drm.ko
> #17 0xffffffff807cf568 in linux_file_ioctl_sub (fp=<optimized out>,
>      filp=<optimized out>, fop=<optimized out>, cmd=<optimized out>, data=0x0,
>      td=<optimized out>)
>      at /usr/src/sys/compat/linuxkpi/common/src/linux_compat.c:965
> #18 linux_file_ioctl (fp=<optimized out>, cmd=<optimized out>,
>      data=<optimized out>, cred=<optimized out>, td=<optimized out>)
>      at /usr/src/sys/compat/linuxkpi/common/src/linux_compat.c:1558
> #19 0xffffffff80643694 in fo_ioctl (fp=<optimized out>, com=3223348326,
>      data=0xffffffff8185dd5c, active_cred=0xfffff8001be3a001,
>      td=<optimized out>) at /usr/src/sys/sys/file.h:341
> #20 kern_ioctl (td=0xfffff8001be3a000, fd=<optimized out>, com=3223348326,
>      data=0xffffffff8185dd5c "/usr/ports/graphics/drm-current-kmod/work/kms-drm-2d2852e/drivers/gpu/drm/radeon/r100.c") at /usr/src/sys/kern/sys_generic.c:804
> #21 0xffffffff80643398 in sys_ioctl (td=0xfffff8001be3a000,
>      uap=0xfffff8001be3a3c8) at /usr/src/sys/kern/sys_generic.c:712
> #22 0xffffffff808b92e5 in syscallenter (td=0xfffff8001be3a000)
>      at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:144
> #23 amd64_syscall (td=0xfffff8001be3a000, traced=0)
>      at /usr/src/sys/amd64/amd64/trap.c:1162
> #24 <signal handler called>
> #25 0x0000000200cc95ca in ?? ()
> Backtrace stopped: Cannot access memory at address 0x7fffbfffde98
> 
Received on Thu Oct 03 2019 - 05:18:25 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:22 UTC