Radeon DRIVER

Robert Noland rnoland at FreeBSD.org
Fri Mar 6 12:35:52 PST 2009


On Fri, 2009-03-06 at 20:30 +0100, Gary Jennejohn wrote:
> On Fri, 06 Mar 2009 12:16:48 -0600
> Robert Noland <rnoland at FreeBSD.org> wrote:
> 
> > 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 at ewinter.org> wrote:
> > > 
> > > > On Thu, 05 Mar 2009, Robert Noland wrote:
> > > > > Which patch set are you using?
> > > > > 
> > > [snip extraneous stuff]
> > > > The one Gary Jennyjohn sent me, it is from you and the latest as far
> > > > as I knw.
> > > > 
> > > 
> > > Not a very useful answer, Ernst :-P
> > > 
> > > I sent him radeon-r6-7xx-support-022409.patch.
> > 
> > Cool, If you guys could test this one, I'll commit it later today.
> > 
> > http://people.freebsd.org/~rnoland/radeon-drm-next-r6-7xx-030609.patch
> > 
> 
> This causes a kernel panic (8-current).  Below some kgdb output:
> 
> 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 conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-marcel-freebsd"...
> 
> Unread portion of the kernel message buffer:
> 
> 
> Fatal trap 12: page fault while in kernel mode
> cpuid = 0; apic id = 00
> fault virtual address   = 0x148
> fault code              = supervisor read data, page not present
> instruction pointer     = 0x8:0xffffffff801fff63
> stack pointer           = 0x10:0xfffffffeb73ef970
> frame pointer           = 0x10:0xfffffffeb73ef9c0
> code segment            = base 0x0, limit 0xfffff, type 0x1b
>                         = DPL 0, pres 1, long 1, def32 0, gran 1
> processor eflags        = interrupt enabled, resume, IOPL = 3
> current process         = 1340 (initial thread)
> trap number             = 12
> panic: page fault
> cpuid = 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
> 
> 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 /boot/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/test/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=260)
>     at /usr/src/sys/kern/kern_shutdown.c:420
> #2  0xffffffff8033bbcc in panic (fmt=Variable "fmt" is not available.
> )
>     at /usr/src/sys/kern/kern_shutdown.c:576
> #3  0xffffffff805110ed in trap_fatal (frame=0xc, eva=Variable "eva" is not available.
> )
>     at /usr/src/sys/amd64/amd64/trap.c:752
> #4  0xffffffff805114d4 in trap_pfault (frame=0xfffffffeb73ef8c0, usermode=0)
>     at /usr/src/sys/amd64/amd64/trap.c:668
> #5  0xffffffff80511e21 in trap (frame=0xfffffffeb73ef8c0)
>     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=0xffffff0001624c00, 
>     data=0xffffff0005e66230, file_priv=Variable "file_priv" is not available.
> )

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=Variable "kdev" is not available.
> )
>     at /usr/src/sys/dev/drm/drm_drv.c:775
> #9  0xffffffff802c26b7 in devfs_ioctl_f (fp=0xffffff0007667d70, 
>     com=3222299725, data=Variable "data" is not available.
> ) at /usr/src/sys/fs/devfs/devfs_vnops.c:669
> #10 0xffffffff803794b0 in kern_ioctl (td=0xffffff0005fc6000, fd=Variable "fd" is not available.
> )
>     at file.h:262
> #11 0xffffffff803796ed in ioctl (td=0xffffff0005fc6000, 
>     uap=0xfffffffeb73efbf0) at /usr/src/sys/kern/sys_generic.c:676
> #12 0xffffffff805116e1 in syscall (frame=0xfffffffeb73efc80)
>     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
> 
> ---
> Gary Jennejohn
-- 
Robert Noland <rnoland at FreeBSD.org>
FreeBSD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: This is a digitally signed message part
Url : http://lists.freebsd.org/pipermail/freebsd-x11/attachments/20090306/62783425/attachment.pgp


More information about the freebsd-x11 mailing list