kern/121337: Kernel panic on 7.0-RELEASE using ati/radeon drivers (might apply to other drivers)

Johan Granath johan at artcraft.se
Mon Mar 3 23:30:06 UTC 2008


>Number:         121337
>Category:       kern
>Synopsis:       Kernel panic on 7.0-RELEASE using ati/radeon drivers (might apply to other drivers)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 03 23:30:05 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Johan Granath
>Release:        FreeBSD 7.0-RELEASE
>Organization:
-
>Environment:
frodo# uname -a
FreeBSD frodo.dontexist.com 7.0-RELEASE FreeBSD 7.0-RELEASE #1: Mon Mar  3 07:17:28 CET 2008     root at frodo.dontexist.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
I've been using ati/radeon drivers for my ATI Radeon 9200SE on 6.2-RELEASE without issues. 

I did an upgrade (according to the 'canonical way' as usual) to 7.0-RELEASE and discovered this issue.

I've run Xorg with 'vesa'-driver and this issue won't happen.

I've tried to disable 'dri' and 'glx' in xorg.conf - nothing to the better.

I suspect (from kgdb) it has something to do with kernel drm-support. However I am not used to dig into kernel code so I share this to more experienced people.

I have also tested this on 6.3-RELEASE with same fatal results - the dump is from 7.0-RELEASE thou.

------ kgdm dump -----------

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 "i386-marcel-freebsd".

Unread portion of the kernel message buffer:
panic: vm_fault: fault on nofault entry, addr: dcf27000 <-- always same address
cpuid = 0
Uptime: 28s
Physical memory: 499 MB
Dumping 94 MB: 79 63 47 31 15

#0  doadump () at pcpu.h:195
195		__asm __volatile("movl %%fs:0,%0" : "=r" (td));
(kgdb) bt
#0  doadump () at pcpu.h:195
#1  0xc0754457 in boot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:409
#2  0xc0754719 in panic (fmt=) at /usr/src/sys/kern/kern_shutdown.c:563
#3  0xc096c258 in vm_fault (map=0xc1471000, vaddr=3706875904, fault_type=1 '\001', fault_flags=0)
    at /usr/src/sys/vm/vm_fault.c:275
#4  0xc0a4927e in trap_pfault (frame=0xd60e7a64, usermode=0, eva=3706875904) at /usr/src/sys/i386/i386/trap.c:801
#5  0xc0a49c8c in trap (frame=0xd60e7a64) at /usr/src/sys/i386/i386/trap.c:490
#6  0xc0a2fc0b in calltrap () at /usr/src/sys/i386/i386/exception.s:139
#7  0xc0a5acb7 in agp_nvidia_flush_tlb (dev=0xc2ed7080, offset=-1025201880) at /usr/src/sys/pci/agp_nvidia.c:377
#8  0xc08fd8a0 in agp_generic_bind_memory (dev=0xc2ed7080, mem=0xc3519c00, offset=0) at agp_if.h:76
#9  0xc08fccf1 in agp_bind_memory (dev=0xc2ed7080, handle=0xc3519c00, offset=0) at agp_if.h:128
#10 0xc35b8b6f in ?? ()
#11 0xc2ed7080 in ?? ()
#12 0xc3519c00 in ?? ()
#13 0x00000000 in ?? ()
#14 0x0000014a in ?? ()
#15 0xc301b0d8 in ?? ()
#16 0xc301b000 in ?? ()
#17 0xc301b0d8 in ?? ()
#18 0x00000000 in ?? ()
#19 0xd60e7b6c in ?? ()
#20 0xc35b8c41 in ?? ()
#21 0xc301b000 in ?? ()
#22 0xd60e7b5c in ?? ()
#23 0xc35c195d in ?? ()
#24 0x0000015b in ?? ()
#25 0xc3519c00 in ?? ()
#26 0x00000000 in ?? ()
#27 0xc35c31b0 in ?? ()
#28 0xc35b8bf0 in ?? ()
#29 0xd60e7bc4 in ?? ()
#30 0xc35bdafd in ?? ()
#31 0xc31a0c00 in ?? ()
#32 0x80086436 in ?? ()
#33 0xc2ed5400 in ?? ()
#34 0x00000043 in ?? ()
#35 0xc3513840 in ?? ()
#36 0x000003e2 in ?? ()
#37 0xd60e7bc4 in ?? ()
#38 0x00000000 in ?? ()
#39 0xc301b0d8 in ?? ()
#40 0xc3513840 in ?? ()
#41 0x00000043 in ?? ()
#42 0xc2ed5400 in ?? ()
#43 0x80086436 in ?? ()
#44 0xc31a0c00 in ?? ()
#45 0x000003e2 in ?? ()
#46 0x00000036 in ?? ()
#47 0x00000000 in ?? ()
#48 0xc31a0c00 in ?? ()
#49 0x80086436 in ?? ()
#50 0xc3175318 in ?? ()
#51 0xd60e7be4 in ?? ()
#52 0xc0720d1a in giant_ioctl (dev=0x0, cmd=3591273308, 
    data=0xc35c195d "/usr/src/sys/modules/drm/drm/../../../dev/drm/drm_agpsupport.c", fflag=347, td=0xc3519c00)
    at /usr/src/sys/kern/kern_conf.c:349
(kgdb) q
>How-To-Repeat:
To make this apply you must use (to my knowledge) a ATI Radeon 9200SE

Add in xorg.conf:

 Driver "ati"

Start Xorg:
startx

Failure happens as soon as video tries to initialize. Reboots.
>Fix:
None at the moment

>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list