Re: radeon panics kernels

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Thu, 3 Oct 2019 13:26:43 -0700
On Thu, Oct 03, 2019 at 03:05:27PM +0200, Hans Petter Selasky wrote:
> 
> If you leave the port debug knob for drm-current-kmod AS-IS, I think you 
> can get away with:
> 
> make DEBUG_FLAGS="-g"
> 
> Then re-load the vmcore file in GDB/KGDB from ports (!) and add the 
> symbol files for the modules loaded. Then get the backtrace using bt 
> command.
> 
> BTW: Did you try drm-devel-kmod for 13-current?
> 

Took a bit of trial and error.  If I skip the panic
and trap frames (#0 through #8). I find the backtrace
that follows by sig.  If I move to frame #11, I see

(kgdb) frame 11
#11 r100_mm_rreg_slow (rdev=0xfffff80135766a70, reg=<optimized out>)
    at /usr/ports/graphics/drm-current-kmod/work/kms-drm-2d2852e/drivers/gpu/drm/radeon/r100.c:4114
4114            writel(reg, ((void __iomem *)rdev->rmmio) + RADEON_MM_INDEX);
(kgdb) p rdev->rmmio
$3 = (void *) 0x0

So, your guess of a NULL pointer seems correct.

-- 
Steve

#9  __raw_writel (v=1932408418, addr=<optimized out>) at /usr/src/sys/compat/linuxkpi/common/include/linux/io.h:111
#10 writel (v=1932408418, addr=<optimized out>) at /usr/src/sys/compat/linuxkpi/common/include/linux/io.h:199
#11 r100_mm_rreg_slow (rdev=0xfffff80135766a70, reg=<optimized out>)
    at PATH/drivers/gpu/drm/radeon/r100.c:4114
#12 0xffffffff817ba613 in r100_mm_rreg (rdev=<optimized out>, reg=<optimized out>, always_indirect=false)
    at PATH/drivers/gpu/drm/radeon/radeon.h:2481
#13 radeon_fence_read (rdev=<optimized out>, ring=<optimized out>)
    at PATH/drivers/gpu/drm/radeon/radeon_fence.c:95
#14 radeon_fence_activity (rdev=0xfffff80135766a70, ring=<optimized out>)
    at PATH/drivers/gpu/drm/radeon/radeon_fence.c:229
#15 0xffffffff817ba6e9 in radeon_fence_process (rdev=0xfffff80135766a70, ring=0)
    at PATH/drivers/gpu/drm/radeon/radeon_fence.c:324
#16 radeon_fence_seq_signaled (rdev=<optimized out>, seq=<optimized out>, ring=<optimized out>)
    at PATH/drivers/gpu/drm/radeon/radeon_fence.c:349
#17 radeon_fence_signaled (fence=0xfffff801f7a62700)
    at PATH/drivers/gpu/drm/radeon/radeon_fence.c:438
#18 0xffffffff817d2601 in radeon_sa_bo_try_free (sa_manager=<optimized out>)
    at PATH/drivers/gpu/drm/radeon/radeon_sa.c:163
#19 radeon_sa_bo_new (rdev=0xfffffe00b07fc000, sa_manager=0xfffffe00b07fdf18, sa_bo=0xfffffe00b4380450, size=11168, 
    align=256) at PATH/drivers/gpu/drm/radeon/radeon_sa.c:341
#20 0xffffffff817c1a4f in radeon_ib_get (rdev=0xfffffe00b07fc000, ring=0, ib=0xfffffe00b4380450, vm=0x0, size=0)
    at PATH/drivers/gpu/drm/radeon/radeon_ib.c:61
#21 0xffffffff817ad6ed in radeon_cs_ib_fill (rdev=<optimized out>, parser=<optimized out>)
    at PATH/drivers/gpu/drm/radeon/radeon_cs.c:640
#22 radeon_cs_ioctl (dev=<optimized out>, data=<optimized out>, filp=<optimized out>)
    at PATH/drivers/gpu/drm/radeon/radeon_cs.c:687
#23 0xffffffff818a82f5 in drm_ioctl_kernel (linux_file=<optimized out>, func=0xffffffff817ad490 <radeon_cs_ioctl>, 
    kdata=0xfffffe00b43806c0, flags=33)
    at PATH/drivers/gpu/drm/drm_ioctl.c:760
#24 0xffffffff818a858a in drm_ioctl (filp=0xfffff8001ba48e00, cmd=<optimized out>, arg=65536)
    at PATH/drivers/gpu/drm/drm_ioctl.c:856
#25 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
#26 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
#27 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
#28 kern_ioctl (td=0xfffff8001be3a000, fd=<optimized out>, com=3223348326, 
    data=0xffffffff8185dd5c "PATH/drivers/gpu/drm/radeon/r100.c")
    at /usr/src/sys/kern/sys_generic.c:804
#29 0xffffffff80643398 in sys_ioctl (td=0xfffff8001be3a000, uap=0xfffff8001be3a3c8)
    at /usr/src/sys/kern/sys_generic.c:712
#30 0xffffffff808b92e5 in syscallenter (td=0xfffff8001be3a000)
    at /usr/src/sys/amd64/amd64/../../kern/subr_syscall.c:144
#31 amd64_syscall (td=0xfffff8001be3a000, traced=0) at /usr/src/sys/amd64/amd64/trap.c:1162
Received on Thu Oct 03 2019 - 18:26:49 UTC

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