From owner-freebsd-x11@FreeBSD.ORG Mon Aug 17 16:01:55 2009 Return-Path: Delivered-To: x11@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A7C0C106568E for ; Mon, 17 Aug 2009 16:01:55 +0000 (UTC) (envelope-from rick@kiwi-computer.com) Received: from hamlet.setfilepointer.com (hamlet.SetFilePointer.com [63.224.10.2]) by mx1.freebsd.org (Postfix) with SMTP id 3203A8FC16 for ; Mon, 17 Aug 2009 16:01:54 +0000 (UTC) Received: (qmail 77970 invoked from network); 17 Aug 2009 10:35:13 -0500 Received: from keira.kiwi-computer.com (HELO kiwi-computer.com) (63.224.10.3) by hamlet.setfilepointer.com with SMTP; 17 Aug 2009 10:35:13 -0500 Received: (qmail 25388 invoked by uid 2001); 17 Aug 2009 15:35:13 -0000 Date: Mon, 17 Aug 2009 10:35:13 -0500 From: "Rick C. Petty" To: x11@freebsd.org Message-ID: <20090817153513.GA25131@keira.kiwi-computer.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Cc: Subject: problems with X after upgrading xorg-server and nvidia-driver/nouveau X-BeenThere: freebsd-x11@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: rick-freebsd2008@kiwi-computer.com List-Id: X11 on FreeBSD -- maintaining and support List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Aug 2009 16:01:55 -0000 On an i386 7.2-STABLE system (RELENG_7 as of early June), I was successfully using X with: libGL-7.4 libGLU-7.4 libX11-1.2,1 nvidia-driver-180.29 xorg-server-1.5.3_8,1 A few days ago, I upgraded RELENG_7 and my ports to: libGL-7.4.4 libGLU-7.4.4 libX11-1.2.1_1,1 nvidia-driver-185.18.29 xorg-server-1.6.1,1 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-0.0.10.20090728. 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: 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@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 Features=0x178bfbff Features2=0x2001 AMD Features=0xea500800 AMD Features2=0x1f 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 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: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 25000000 Hz quality 900 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pci0: at device 0.0 (no driver attached) isab0: port 0x900-0x9ff at device 1.0 on pci0 isa0: on isab0 pci0: at device 1.1 (no driver attached) pci0: at device 1.2 (no driver attached) ohci0: mem 0xddeff000-0xddefffff irq 21 at device 2.0 on pci0 ohci0: [GIANT-LOCKED] ohci0: [ITHREAD] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 10 ports with 10 removable, self powered ehci0: mem 0xddefec00-0xddefecff irq 22 at device 2.1 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb1: EHCI version 1.0 usb1: companion controller, 10 ports each: usb0 usb1: on ehci0 usb1: USB revision 2.0 uhub1: on usb1 uhub1: 10 ports with 10 removable, self powered nfe0: port 0xe080-0xe087 mem 0xddefd000-0xddefdfff irq 23 at device 6.0 on pci0 miibus0: on nfe0 atphy0: 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: mem 0xddef4000-0xddef7fff irq 20 at device 7.0 on pci0 hdac0: HDA Driver Revision: 20090624_0136 hdac0: [ITHREAD] pcib1: at device 8.0 on pci0 pci1: on pcib1 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 9.0 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] atapci1: 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: on atapci1 ata2: [ITHREAD] ata3: on atapci1 ata3: [ITHREAD] pcib2: at device 11.0 on pci0 pci2: on pcib2 pcib3: at device 12.0 on pci0 pci3: on pcib3 pcib4: at device 13.0 on pci0 pci4: on pcib4 vgapci0: mem 0xdf000000-0xdfffffff,0xc0000000-0xcfffffff,0xde000000-0xdeffffff irq 16 at device 0.0 on pci4 nvidia0: 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: at device 14.0 on pci0 pci5: on pcib5 acpi_button0: on acpi0 speaker0: port 0x61 on acpi0 fdc0: 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: on acpi0 powernow0: on cpu0 device_attach: powernow0 attach returned 6 cpu1: on acpi0 powernow1: on cpu1 device_attach: powernow1 attach returned 6 pmtimer0 on isa0 atkbdc0: at port 0x60,0x64 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 ppbus0: [ITHREAD] plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: 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: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ums0: on uhub0 ums0: 3 buttons and Z dir. ukbd0: 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 at ata2-master UDMA33 ad6: 305245MB at ata3-master UDMA33 hdac0: HDA Codec #0: Realtek ALC883 pcm0: at cad 0 nid 1 on hdac0 pcm1: at cad 0 nid 1 on hdac0 pcm2: 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" EndSection Section "Files" FontPath "/usr/local/lib/X11/fonts/75dpi/:unscaled" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "XkbModel" "pc104" Option "XkbOptions" "ctrl:nocaps" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Emulate3Buttons" "false" Option "Protocol" "auto" Option "Device" "/dev/sysmouse" EndSection Section "Screen" Identifier "Screens" Device "Device" Monitor "Monitors" DefaultDepth 16 SubSection "Display" Virtual 3200 1920 EndSubSection EndSection Section "Device" Identifier "Device" Driver "nouveau" EndSection Section "Monitor" Identifier "Dell E173FP" Option "LeftOf" "Dell 2405FPW" EndSection Section "Monitor" Identifier "Dell 2405FPW" Option "PreferredMode" "1920x1200" EndSection