Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 03 Sep 2008 00:39:53 -0400
From:      Robert Noland <rnoland@FreeBSD.org>
To:        Steve Kargl <sgk@troutmask.apl.washington.edu>
Cc:        freebsd-current@freebsd.org
Subject:   Re: drm causes kernel panic
Message-ID:  <1220416793.1848.1.camel@wombat.2hip.net>
In-Reply-To: <20080903011612.GA1242@troutmask.apl.washington.edu>
References:  <20080903011612.GA1242@troutmask.apl.washington.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-pF+u94eHghb0cOlLiEgP
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Tue, 2008-09-02 at 18:16 -0700, Steve Kargl wrote:
> Built world/kernel with today sources.  Upon starting Xorg=20
> as a normal user, I was greeted with
>=20
> Script started on Tue Sep  2 18:12:22 2008
> Unread portion of the kernel message buffer:
> panic: lock (sleep mutex) drmdev not locked @ /usr/src/sys/dev/drm/drm_pc=
i.c:77
> cpuid =3D 0
> Uptime: 24s
> Physical memory: 8118 MB
> Dumping 346 MB: 331 315 299 283 267 251 235 219 203 187 171 155 139 123 1=
07 91 75 59 43 27 11
>=20
> #0  doadump () at pcpu.h:195
> 195	pcpu.h: No such file or directory.
> 	in pcpu.h
> (kgdb) bt
> #0  doadump () at pcpu.h:195
> #1  0xffffffff802ee4da in boot (howto=3D260)
>     at /usr/src/sys/kern/kern_shutdown.c:418
> #2  0xffffffff802ee947 in panic (fmt=3DVariable "fmt" is not available.
> )
>     at /usr/src/sys/kern/kern_shutdown.c:572
> #3  0xffffffff803301ca in witness_unlock (lock=3D0xffffffff806f3d60, flag=
s=3D8,=20
>     file=3D0xffffffff8055dc88 "/usr/src/sys/dev/drm/drm_pci.c", line=3D77=
)
>     at /usr/src/sys/kern/subr_witness.c:1460
> #4  0xffffffff802e20c6 in _mtx_unlock_flags (m=3D0xffffff00017b41a8, opts=
=3D0,=20
>     file=3D0xffffffff8055dc88 "/usr/src/sys/dev/drm/drm_pci.c", line=3D77=
)
>     at /usr/src/sys/kern/kern_mutex.c:199
> #5  0xffffffff8021a945 in drm_pci_alloc (dev=3DVariable "dev" is not avai=
lable.
> )
>     at /usr/src/sys/dev/drm/drm_pci.c:77
> #6  0xffffffff80214654 in drm_addmap (dev=3D0xffffff00017b4000, offset=3D=
0,=20
>     size=3D16384, type=3D_DRM_CONSISTENT, flags=3DVariable "flags" is not=
 available.
> )
>     at /usr/src/sys/dev/drm/drm_bufs.c:247
> #7  0xffffffff80214b8b in drm_addmap_ioctl (dev=3D0xffffff00017b4000,=20
>     data=3D0xffffff000576c480, file_priv=3DVariable "file_priv" is not av=
ailable.
> )
>     at /usr/src/sys/dev/drm/drm_bufs.c:291

I can't quite tell how we got here from this trace... What graphics
hardware are you using and can you tell me what was going on when it
paniced?

robert.

> #8  0xffffffff8021786e in drm_ioctl (kdev=3DVariable "kdev" is not availa=
ble.
> )
>     at /usr/src/sys/dev/drm/drm_drv.c:952
> #9  0xffffffff802bb4e5 in giant_ioctl (dev=3D0xffffff000188e400,=20
>     cmd=3D3223872533, data=3D0xffffff000576c480 "", fflag=3D67,=20
>     td=3D0xffffff0005a25a20) at /usr/src/sys/kern/kern_conf.c:407
> ---Type <return> to continue, or q <return> to quit---
> #10 0xffffffff80288eea in devfs_ioctl_f (fp=3D0xffffff0005665c30,=20
>     com=3D3223872533, data=3D0xffffff000576c480, cred=3DVariable "cred" i=
s not available.
> )
>     at /usr/src/sys/fs/devfs/devfs_vnops.c:585
> #11 0xffffffff80332942 in kern_ioctl (td=3D0xffffff0005a25a20, fd=3DVaria=
ble "fd" is not available.
> )
>     at file.h:262
> #12 0xffffffff80332ba0 in ioctl (td=3D0xffffff0005a25a20,=20
>     uap=3D0xffffffff2231fbf0) at /usr/src/sys/kern/sys_generic.c:677
> #13 0xffffffff804f4f9f in syscall (frame=3D0xffffffff2231fc80)
>     at /usr/src/sys/amd64/amd64/trap.c:897
> #14 0xffffffff804d8b6b in Xfast_syscall ()
>     at /usr/src/sys/amd64/amd64/exception.S:338
> #15 0x000000020185340c in ?? ()
> Previous frame inner to this frame (corrupt stack?)
> (kgdb) quit
> exit
>=20
> Script done on Tue Sep  2 18:13:12 2008

--=-pF+u94eHghb0cOlLiEgP
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (FreeBSD)

iEYEABECAAYFAki+FRkACgkQM4TrQ4qfRONiIwCeMLzJmJCTFwDS8K1xoFWkEsnd
dv8An3CUjUwf9T3bBkFqdo9L4sBT7vm4
=oCCx
-----END PGP SIGNATURE-----

--=-pF+u94eHghb0cOlLiEgP--




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