Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Mar 2009 14:35:34 -0600
From:      Robert Noland <rnoland@FreeBSD.org>
To:        gary.jennejohn@freenet.de
Cc:        freebsd-x11@FreeBSD.org
Subject:   Re: Radeon DRIVER
Message-ID:  <1236371734.1671.5.camel@balrog.2hip.net>
In-Reply-To: <20090306203055.582faa02@ernst.jennejohn.org>
References:  <20090305161651.GB1369@lobo.ewinter.org> <1236275215.1384.50.camel@widget.2hip.net> <20090305180523.GA2039@lobo.ewinter.org> <20090306133119.1af6894c@ernst.jennejohn.org> <1236363408.55221.16.camel@balrog.2hip.net> <20090306203055.582faa02@ernst.jennejohn.org>

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

--=-NxCndKXhs3Ae7V6trleG
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2009-03-06 at 20:30 +0100, Gary Jennejohn wrote:
> On Fri, 06 Mar 2009 12:16:48 -0600
> Robert Noland <rnoland@FreeBSD.org> wrote:
>=20
> > On Fri, 2009-03-06 at 13:31 +0100, Gary Jennejohn wrote:
> > > On Thu, 5 Mar 2009 19:05:23 +0100
> > > "Ernst W. Winter" <ewinter@ewinter.org> wrote:
> > >=20
> > > > On Thu, 05 Mar 2009, Robert Noland wrote:
> > > > > Which patch set are you using?
> > > > >=20
> > > [snip extraneous stuff]
> > > > The one Gary Jennyjohn sent me, it is from you and the latest as fa=
r
> > > > as I knw.
> > > >=20
> > >=20
> > > Not a very useful answer, Ernst :-P
> > >=20
> > > I sent him radeon-r6-7xx-support-022409.patch.
> >=20
> > Cool, If you guys could test this one, I'll commit it later today.
> >=20
> > http://people.freebsd.org/~rnoland/radeon-drm-next-r6-7xx-030609.patch
> >=20
>=20
> This causes a kernel panic (8-current).  Below some kgdb output:
>=20
> kgdb /boot/test/kernel vmcore.1
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you =
are
> welcome to change it and/or distribute copies of it under certain conditi=
ons.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for detail=
s.
> This GDB was configured as "amd64-marcel-freebsd"...
>=20
> Unread portion of the kernel message buffer:
>=20
>=20
> Fatal trap 12: page fault while in kernel mode
> cpuid =3D 0; apic id =3D 00
> fault virtual address   =3D 0x148
> fault code              =3D supervisor read data, page not present
> instruction pointer     =3D 0x8:0xffffffff801fff63
> stack pointer           =3D 0x10:0xfffffffeb73ef970
> frame pointer           =3D 0x10:0xfffffffeb73ef9c0
> code segment            =3D base 0x0, limit 0xfffff, type 0x1b
>                         =3D DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags        =3D interrupt enabled, resume, IOPL =3D 3
> current process         =3D 1340 (initial thread)
> trap number             =3D 12
> panic: page fault
> cpuid =3D 0
> Uptime: 1m18s
> Physical memory: 3955 MB
> Dumping 296 MB: 281 265 249 233 217 201 185 169 153 137 121 105 89 73 57 =
41 25 9
>=20
> Reading symbols from /boot/test/zfs.ko...Reading symbols from /boot/test/=
zfs.ko.symbols...done.
> done.
> Loaded symbols for /boot/test/zfs.ko
> Reading symbols from /boot/test/opensolaris.ko...Reading symbols from /bo=
ot/test/opensolaris.ko.symbols...done.
> done.
> Loaded symbols for /boot/test/opensolaris.ko
> Reading symbols from /boot/test/linprocfs.ko...Reading symbols from /boot=
/test/linprocfs.ko.symbols...done.
> done.
> Loaded symbols for /boot/test/linprocfs.ko
> Reading symbols from /boot/test/linux.ko...Reading symbols from /boot/tes=
t/linux.ko.symbols...done.
> done.
> Loaded symbols for /boot/test/linux.ko
> Reading symbols from /boot/modules/kqemu.ko...done.
> Loaded symbols for /boot/modules/kqemu.ko
> Reading symbols from /usr/local/modules/rtc.ko...done.
> Loaded symbols for /usr/local/modules/rtc.ko
> #0  doadump () at pcpu.h:196
> 196     pcpu.h: No such file or directory.
>         in pcpu.h
> (kgdb) bt
> #0  doadump () at pcpu.h:196
> #1  0xffffffff8033b768 in boot (howto=3D260)
>     at /usr/src/sys/kern/kern_shutdown.c:420
> #2  0xffffffff8033bbcc in panic (fmt=3DVariable "fmt" is not available.
> )
>     at /usr/src/sys/kern/kern_shutdown.c:576
> #3  0xffffffff805110ed in trap_fatal (frame=3D0xc, eva=3DVariable "eva" i=
s not available.
> )
>     at /usr/src/sys/amd64/amd64/trap.c:752
> #4  0xffffffff805114d4 in trap_pfault (frame=3D0xfffffffeb73ef8c0, usermo=
de=3D0)
>     at /usr/src/sys/amd64/amd64/trap.c:668
> #5  0xffffffff80511e21 in trap (frame=3D0xfffffffeb73ef8c0)
>     at /usr/src/sys/amd64/amd64/trap.c:439
> #6  0xffffffff804ee5de in calltrap ()
>     at /usr/src/sys/amd64/amd64/exception.S:217
> #7  0xffffffff801fff63 in radeon_cp_indirect (dev=3D0xffffff0001624c00,=20
>     data=3D0xffffff0005e66230, file_priv=3DVariable "file_priv" is not av=
ailable.
> )

Oops, I fixed it for the non r600+ case.

Please try,
http://people.freebsd.org/~rnoland/radeon-drm-next-r6-7xx-030609-2.patch

robert.

>     at /usr/src/sys/dev/drm/radeon_state.c:2470
> #8  0xffffffff801ea7d6 in drm_ioctl (kdev=3DVariable "kdev" is not availa=
ble.
> )
>     at /usr/src/sys/dev/drm/drm_drv.c:775
> #9  0xffffffff802c26b7 in devfs_ioctl_f (fp=3D0xffffff0007667d70,=20
>     com=3D3222299725, data=3DVariable "data" is not available.
> ) at /usr/src/sys/fs/devfs/devfs_vnops.c:669
> #10 0xffffffff803794b0 in kern_ioctl (td=3D0xffffff0005fc6000, fd=3DVaria=
ble "fd" is not available.
> )
>     at file.h:262
> #11 0xffffffff803796ed in ioctl (td=3D0xffffff0005fc6000,=20
>     uap=3D0xfffffffeb73efbf0) at /usr/src/sys/kern/sys_generic.c:676
> #12 0xffffffff805116e1 in syscall (frame=3D0xfffffffeb73efc80)
>     at /usr/src/sys/amd64/amd64/trap.c:891
> #13 0xffffffff804ee7eb in Xfast_syscall ()
>     at /usr/src/sys/amd64/amd64/exception.S:338
> #14 0x000000080168a6fc in ?? ()
> Previous frame inner to this frame (corrupt stack?)
> (kgdb) quit
>=20
> ---
> Gary Jennejohn
--=20
Robert Noland <rnoland@FreeBSD.org>
FreeBSD

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

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

iEYEABECAAYFAkmxiRYACgkQM4TrQ4qfROMB2ACfaEDgVoFWE/YGtjRHecvxYTRH
j58An0jGBhf77oArObt/HJgj/JOeOjPg
=MLtI
-----END PGP SIGNATURE-----

--=-NxCndKXhs3Ae7V6trleG--




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