Deterministic panic 9.0-BETA2 with X + drm/radeon

Kostik Belousov kostikbel at gmail.com
Wed Sep 21 09:55:22 UTC 2011


On Wed, Sep 21, 2011 at 12:33:10PM +0300, Andriy Gapon wrote:
> on 21/09/2011 10:12 Lawrence Stewart said the following:
> > Kernel page fault with the following non-sleepable locks held:
> > exclusive sleep mutex drmdev (drmdev) r = 0 (0xfffffe000f831ca0) locked @
> > /usr/src/sys/modules/drm/drm/../../../dev/drm/drm_drv.c:791
> 
> I think that this is a well-known but not yet fixed issue.
> I think that it should already be addressed in the general drm part of kib's
> Intel GEM code.
> Please see this thread for some earlier history:
> http://lists.freebsd.org/pipermail/freebsd-current/2010-November/020914.html
> 
It is, but only for Intel driver. The approach cannot be applied to the
old dri1 drm drivers, because they need the drm device lock held in the
interrupt handler.

> I personally keep using a patch from that thread which turns the panic into a LOR.
> 
> > KDB: stack backtrace:
> > db_trace_self_wrapper() at db_trace_self_wrapper+0x2a
> > kdb_backtrace() at kdb_backtrace+0x37
> > _witness_debugger() at _witness_debugger+0x2e
> > witness_warn() at witness_warn+0x2c4
> > trap() at trap+0x2fe
> > calltrap() at calltrap+0x8
> > --- trap 0xc, rip = 0xffffffff80b09af3, rsp = 0xffffff834d687950, rbp =
> > 0xffffff834d6879a0 ---
> > copyout() at copyout+0x43
> > drm_ioctl() at drm_ioctl+0x2f2
> > devfs_ioctl_f() at devfs_ioctl_f+0x7a
> > kern_ioctl() at kern_ioctl+0xcd
> > ioctl() at ioctl+0xfd
> > amd64_syscall() at amd64_syscall+0x3ba
> > Xfast_syscall() at Xfast_syscall+0xf7
> > --- syscall (54, FreeBSD ELF64, ioctl), rip = 0x802ca437c, rsp = 0x7fffffffd968,
> > rbp = 0x7fffffffd9b0 ---
> 
> 
> -- 
> Andriy Gapon
> _______________________________________________
> freebsd-x11 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-x11
> To unsubscribe, send any mail to "freebsd-x11-unsubscribe at freebsd.org"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20110921/28b2a67b/attachment.pgp


More information about the freebsd-x11 mailing list