problems with X after upgrading xorg-server and nvidia-driver/nouveau

Rick C. Petty rick-freebsd2008 at
Mon Aug 17 16:01:55 UTC 2009

On an i386 7.2-STABLE system (RELENG_7 as of early June), I was
successfully using X with:

A few days ago, I upgraded RELENG_7 and my ports to:

And X would start successfully but then crash with SIGSEGV typically within
60 seconds.  I could induce an immediate crash by trying to run something
using GL (e.g. bzflag).  Note that in both cases, I forcibly installed
nvidia-driver after the others since it overwrites a couple of the libs.

Having been fed up with nvidia-driver recently, I uninstalled it,
reinstalled libGL, libGLU, libX11, and xorg-server and installed
xf86-video-nouveau-  I followed the instructions in that
port's message and patched my GENERIC+DDB kernel appropriately and rebuild
the nouveau port.  Now instead of X crashing, my machine hangs immediately
when trying to kldload nouveau.ko.  It looks like there is a panic--
although I cannot see it on the console (and hence cannot interact with DDB
in any meaningful way) but I do see some stuff in my dmesg.boot (which I'll
attach below).  I have no additional information to report about the crash,
other than it's fairly annoying.

I have an nVidia GeForce 6600 TurboCache PCI-e card and I'll attach my
xorg.conf below.  Any help would be greatly appreciated!

-- Rick C. Petty

~~~  From dmesg.boot:  ~~~

drm0: <NVidia Display Adapter> on vgapci0
panic: resource_list_alloc: resource entry is busy
cpuid = 1
KDB: stack backtrace:
db_trace_self_wrapper(c0bb1b43,e876a7c4,c07f9ae9,c0bd34c8,1,...) at 0xc0499c26 = db_trace_self_wrapper+0x26
kdb_backtrace(c0bd34c8,1,c0bb16cd,e876a7d0,1,...) at 0xc08265b9 = kdb_backtrace+0x29
panic(c0bb16cd,1,0,c0cec438,0,...) at 0xc07f9ae9 = panic+0x119
resource_list_alloc(c628b304,c6285880,c6285800,1,c657a1d8,...) at 0xc08226a6 = resource_list_alloc+0xd6
pci_alloc_resource(c6285880,c6285800,1,c657a1d8,0,ffffffff,1,6) at 0xc06b4617 = pci_alloc_resource+0x557
bus_alloc_resource(c6285800,1,c657a1d8,0,ffffffff,...) at 0xc082252c = bus_alloc_resource+0x7c
vga_pci_alloc_resource(c6285800,c6285580,1,c657a1d8,0,ffffffff,1,6) at 0xc06ba8f2 = vga_pci_alloc_resource+0xd2
bus_alloc_resource(c6285580,1,c657a1d8,0,ffffffff,...) at 0xc082252c = bus_alloc_resource+0x7c
drm_attach(c6285580,cc128000,102,c6285800,c62855cc,...) at 0xcc024e41 = drm_attach+0x2f1
nouveau_attach(c6285580,c6579854,c0c763b0,c0bb1525,80000000,...) at 0xcc10a538 = nouveau_attach+0xf8
device_attach(c6285580,c6285580,c6285800,c6285580,c6285800,...) at 0xc082126f = device_attach+0x36f
device_probe_and_attach(c6285580,c6285800,c0c763a0,c6285800,0,...) at 0xc08221fd = device_probe_and_attach+0xdd
bus_generic_driver_added(c6285800,cc12807c,c0c761f0,0,cc128068,...) at 0xc08222b5 = bus_generic_driver_added+0x65
devclass_add_driver(c6140400,cc12807c,e876aa2c,2d,cc12807c,...) at 0xc08200e8 = devclass_add_driver+0xc8
driver_module_handler(c7781b00,0,cc128068,0,0,...) at 0xc0820e29 = driver_module_handler+0x79
module_register_init(cc12805c,c0badb50,e876ac1c,e876ac18,0,...) at 0xc07e94c7 = module_register_init+0x107
linker_load_module(0,e876ac4c,c206d5a0,0,2,...) at 0xc07e205f = linker_load_module+0xa6f
kern_kldload(c6b0cd80,c6231000,e876ac70,0,c6b06b00,...) at 0xc07e256c = kern_kldload+0xec
kldload(c6b0cd80,e876acfc,4,e876ad38,e876ad2c,...) at 0xc07e2644 = kldload+0x74
syscall(e876ad38) at 0xc0b061e5 = syscall+0x335
Xint0x80_syscall() at 0xc0aeab80 = Xint0x80_syscall+0x20
--- syscall (304, FreeBSD ELF32, kldload), eip = 0x380caa5b, esp = 0xbfbfeb2c, ebp = 0xbfbfeb58 ---
KDB: enter: panic
Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.2-STABLE #3: Fri Aug 14 16:12:36 CDT 2009
    root at myhost:/usr/obj/usr/src/sys/DDB
module_register: module cpu/ichss already exists!
Module cpu/ichss failed to register: 17
module_register: module cpu/est already exists!
Module cpu/est failed to register: 17
module_register: module cpu/p4tcc already exists!
Module cpu/p4tcc failed to register: 17
module_register: module cpu/powernow already exists!
Module cpu/powernow failed to register: 17
module_register: module cpu/smist already exists!
Module cpu/smist failed to register: 17
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (2009.13-MHz 686-class CPU)
  Origin = "AuthenticAMD"  Id = 0x40fb2  Stepping = 2
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
  Cores per package: 2
real memory  = 2147221504 (2047 MB)
avail memory = 2078924800 (1982 MB)
ACPI APIC Table: <033007 APIC1150>
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd0 at kbdmux0
acpi0: <033007 RSDT1150> on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
unknown: I/O range not supported
acpi0: reservation of fec00000, 1000 (3) failed
acpi0: reservation of fee00000, 1000 (3) failed
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 7ff00000 (3) failed
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x508-0x50b on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 25000000 Hz quality 900
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pci0: <memory, RAM> at device 0.0 (no driver attached)
isab0: <PCI-ISA bridge> port 0x900-0x9ff at device 1.0 on pci0
isa0: <ISA bus> on isab0
pci0: <serial bus, SMBus> at device 1.1 (no driver attached)
pci0: <memory, RAM> at device 1.2 (no driver attached)
ohci0: <OHCI (generic) USB controller> mem 0xddeff000-0xddefffff irq 21 at device 2.0 on pci0
ohci0: [ITHREAD]
usb0: OHCI version 1.0, legacy support
usb0: SMM does not respond, resetting
usb0: <OHCI (generic) USB controller> on ohci0
usb0: USB revision 1.0
uhub0: <nVidia OHCI root hub, class 9/0, rev 1.00/1.00, addr 1> on usb0
uhub0: 10 ports with 10 removable, self powered
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xddefec00-0xddefecff irq 22 at device 2.1 on pci0
ehci0: [ITHREAD]
usb1: EHCI version 1.0
usb1: companion controller, 10 ports each: usb0
usb1: <EHCI (generic) USB 2.0 controller> on ehci0
usb1: USB revision 2.0
uhub1: <nVidia EHCI root hub, class 9/0, rev 2.00/1.00, addr 1> on usb1
uhub1: 10 ports with 10 removable, self powered
nfe0: <NVIDIA nForce MCP65 Networking Adapter> port 0xe080-0xe087 mem 0xddefd000-0xddefdfff irq 23 at device 6.0 on pci0
miibus0: <MII bus> on nfe0
atphy0: <Atheros F2 10/100 PHY> PHY 1 on miibus0
atphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
nfe0: Ethernet address: 00:1a:92:e1:ed:d1
nfe0: [FILTER]
nfe0: [FILTER]
nfe0: [FILTER]
nfe0: [FILTER]
nfe0: [FILTER]
nfe0: [FILTER]
nfe0: [FILTER]
nfe0: [FILTER]
hdac0: <NVidia MCP65 High Definition Audio Controller> mem 0xddef4000-0xddef7fff irq 20 at device 7.0 on pci0
hdac0: HDA Driver Revision: 20090624_0136
hdac0: [ITHREAD]
pcib1: <ACPI PCI-PCI bridge> at device 8.0 on pci0
pci1: <ACPI PCI bus> on pcib1
atapci0: <nVidia nForce MCP65 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 9.0 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <nVidia ATA controller> port 0xf80-0xf87,0xf00-0xf03,0xe80-0xe87,0xe00-0xe03,0xd480-0xd48f mem 0xddef2000-0xddef3fff irq 21 at device 10.0 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
pcib2: <ACPI PCI-PCI bridge> at device 11.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> at device 12.0 on pci0
pci3: <ACPI PCI bus> on pcib3
pcib4: <ACPI PCI-PCI bridge> at device 13.0 on pci0
pci4: <ACPI PCI bus> on pcib4
vgapci0: <VGA-compatible display> mem 0xdf000000-0xdfffffff,0xc0000000-0xcfffffff,0xde000000-0xdeffffff irq 16 at device 0.0 on pci4
nvidia0: <GeForce 6200 TurboCache(TM)> on vgapci0
vgapci0: child nvidia0 requested pci_enable_busmaster
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia0: [GIANT-LOCKED]
nvidia0: [ITHREAD]
pcib5: <ACPI PCI-PCI bridge> at device 14.0 on pci0
pci5: <ACPI PCI bus> on pcib5
acpi_button0: <Power Button> on acpi0
speaker0: <PC speaker> port 0x61 on acpi0
fdc0: <floppy drive controller (FDE)> port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
cpu0: <ACPI CPU> on acpi0
powernow0: <PowerNow! K8> on cpu0
device_attach: powernow0 attach returned 6
cpu1: <ACPI CPU> on acpi0
powernow1: <PowerNow! K8> on cpu1
device_attach: powernow1 attach returned 6
pmtimer0 on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
ppbus0: <Parallel port bus> on ppc0
ppbus0: [ITHREAD]
plip0: <PLIP network interface> on ppbus0
plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
ppc0: [ITHREAD]
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ums0: <Logitech USB-PS/2 Optical Mouse, class 0/0, rev 2.00/11.10, addr 2> on uhub0
ums0: 3 buttons and Z dir.
ukbd0: <Unicomp Endura Keyboard, class 0/0, rev 1.10/2.0c, addr 3> on uhub0
kbd1 at ukbd0
Timecounters tick every 1.000 msec
acd0: DMA limited to UDMA33, device found non-ATA66 cable
acd0: DVDR <16X8 DVD DUAL/A070> at ata0-master UDMA33
ad4: 305245MB <WDC WD3200AAKS-00B3A0 01.03A01> at ata2-master UDMA33
ad6: 305245MB <WDC WD3200AAKS-00B3A0 01.03A01> at ata3-master UDMA33
hdac0: HDA Codec #0: Realtek ALC883
pcm0: <HDA Realtek ALC883 PCM #0 Analog> at cad 0 nid 1 on hdac0
pcm1: <HDA Realtek ALC883 PCM #1 Analog> at cad 0 nid 1 on hdac0
pcm2: <HDA Realtek ALC883 PCM #2 Digital> at cad 0 nid 1 on hdac0
SMP: AP CPU #1 Launched!
GEOM_MIRROR: Device mirror/fawkes0 launched (2/2).
Trying to mount root from ufs:/dev/mirror/fawkes0a
WARNING: / was not properly dismounted
WARNING: /var was not properly dismounted
/var: mount pending error: blocks 16 files 0
WARNING: /usr was not properly dismounted
WARNING: /home was not properly dismounted
WARNING: /stage was not properly dismounted
nfe0: tx v2 error 0x6100

~~~  xorg.conf  ~~~

Section	"ServerLayout"
	Identifier	"nVidia X.Org"
	Screen	"Screens"	0	0
	InputDevice	"Keyboard0" "CoreKeyboard"
	InputDevice	"Mouse0" "CorePointer"
	Option	"AllowEmptyInput"	"off"
	Option	"DontZap"	"off"
	Option	"AllowDeactivateGrabs"	"true"
	Option	"AllowClosedownGrabs"	"true"

Section "Files"
	FontPath	"/usr/local/lib/X11/fonts/75dpi/:unscaled"

Section	"InputDevice"
	Identifier	"Keyboard0"
	Driver	"keyboard"
	Option	"XkbModel"	"pc104"
	Option	"XkbOptions"	"ctrl:nocaps"

Section	"InputDevice"
	Identifier	"Mouse0"
	Driver	"mouse"
	Option	"Emulate3Buttons"	"false"
	Option	"Protocol"	"auto"
	Option	"Device"	"/dev/sysmouse"

Section	"Screen"
	Identifier	"Screens"
	Device	"Device"
	Monitor	"Monitors"
	DefaultDepth	16
	SubSection	"Display"
		Virtual	3200	1920

Section	"Device"
	Identifier	"Device"
	Driver	"nouveau"

Section	"Monitor"
	Identifier	"Dell E173FP"
	Option	"LeftOf" "Dell 2405FPW"

Section "Monitor"
	Identifier	"Dell 2405FPW"
	Option	"PreferredMode"	"1920x1200"

More information about the freebsd-x11 mailing list