View Full Version : Nvidia driver under 7.0-CURRENT. . .
Hey all,
This week I attempted to updated to FreeBSD 7.0 on my main machine. However, I am having some trouble with the Nvidia driver. While it does compile and load, my experience under X is a bit flaky. I am now at the point where I can actually get into X without crashing immediately. However, if I try to quit out of X or attempt to run a program which utilizes GLX, my machine hardlocks and shuts itself off soon after. I think there are some other actions which can cause a hardlock, such as changing the resolution. I'm assuming that it has panicked, but there is no way for me to see what the error is. Upon one of the crashes, I did see an error in the console before it shutoff. I did not read the whole error, but it was something along the lines of "NVRM: Xid " followed by a lot of numbers. It did work fine in 6.2, but that doesn't really help to pinpoint the problem.
I don't think it is an IRQ sharing problem, since the card does not appear to be sharing any IRQs with other devices (though it is supposed to be sharing it with the first USB controller). I lowered AGP rate to 4x and it does seem to crash less, though it doesn't fix the problem.
Here is some info pertaining to my system:
Specifications:
FreeBSD 7.0
Xorg 7.x Modular
Nvidia driver 1.0-9625 compile without FreeBSD AGP support
Athlon 64 X2 3800+
2 GB PC3200 DDR
Asus A8V-MX w/ newest available BIOS
Nvidia 6800GT (though it doesn't work with a Quadro 4 XGL either)
sysctl -a | grep nvidia
hw.nvidia.agp.card.rates: 8x 4x
hw.nvidia.agp.card.fw: supported
hw.nvidia.agp.card.sba: supported
hw.nvidia.agp.card.registers: 0xff000e1b:0x1f000301
hw.nvidia.agp.status.status: enabled
hw.nvidia.agp.status.driver: nvidia
hw.nvidia.agp.status.rate: 4x
hw.nvidia.agp.status.fw: disabled
hw.nvidia.agp.status.sba: enabled
hw.nvidia.version: NVIDIA FreeBSD x86 Kernel Module 1.0-9625 Thu Sep 14 15:34:07 PDT 2
006
hw.nvidia.registry.EnableVia4x: 0
hw.nvidia.registry.EnableALiAGP: 0
hw.nvidia.registry.NvAGP: 1
hw.nvidia.registry.EnableAGPSBA: 0
hw.nvidia.registry.EnableAGPFW: 0
hw.nvidia.registry.SoftEDIDs: 1
hw.nvidia.registry.Mobile: 4294967295
hw.nvidia.registry.ResmanDebugLevel: 4294967295
hw.nvidia.registry.FlatPanelMode: 0
hw.nvidia.registry.DevicesConnected: 0
hw.nvidia.registry.RmLogonRC: 1
hw.nvidia.registry.DetectPrimaryVga: 1
hw.nvidia.registry.dwords:
hw.nvidia.cards.0.model: GeForce 6800 GT
hw.nvidia.cards.0.irq: 16
hw.nvidia.cards.0.vbios: 05.40.02.32.00
hw.nvidia.cards.0.type: AGP
dev.nvidia.0.%desc: GeForce 6800 GT
dev.nvidia.0.%driver: nvidia
dev.nvidia.0.%location: slot=0 function=0
dev.nvidia.0.%pnpinfo: vendor=0x10de device=0x0045 subvendor=0x107d subdevice=0x2996 cla
ss=0x030000
dev.nvidia.0.%parent: pci1
vmstat -i
interrupt total rate
irq6: fdc0 8 0
irq14: ata0 81 0
irq16: nvidia0 640234 136
irq17: skc0 48058 10
irq20: uhci0 57448 12
irq21: atapci0+ 277366 58
irq22: uhci1 ehci0 7 0
cpu0: timer 9406784 1999
cpu1: timer 9399452 1998
Total 19829438 4215
Seems to interrupt an awful lot but I assume that is normal, since my laptop seems to have a lot of Nvidia interrupts too.
I have also attached the output of dmesg and my xorg.conf. If you need anything else, I can easily provide it. Any suggestions would be greatly appreciated.
Had another crash when running mplayer:
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x0
fault code = supervisor write, page not present
instruction pointer = 0x20:0xc0592537
stack pointer = 0x28:0xe7ec3a14
frame pointer = 0x28:0xe7ec3a2c
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 28199 (mplayer)
trap number = 12
panic: page fault
cpuid = 0
Uptime: 1h8m29s
Unfortunately, it reboots before I can run a stack trace or do any serious debugging. I'll see if I can get more of the fault errors which result from doing different things in X.
I think the problem is the nv driver doesn't support the 6x or 7x geforces. vesa works and nvidia's driver for these cards.
nicblais
12-09-06, 03:14 PM
Malus, I am having the same problems as you are having. Everything was fine with 1.0.8776 but now I get freezes when I CTRL-ALT-F(x) out to a terminal or when I exit nvidia-settings.
If you find a solution, please post!
(II) NVIDIA dlloader X Driver 1.0-9631 Thu Nov 9 17:40:39 PST 2006
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 01:00:0
(--) Assigning device section with no busID to primary device
(--) Chipset NVIDIA GPU found
(II) Loading sub module "fb"
(II) LoadModule: "fb"
(II) Loading /usr/X11R6/lib/modules/libfb.so
(II) Module fb: vendor="X.Org Foundation"
compiled for 6.9.0, module version = 1.0.0
ABI class: X.Org ANSI C Emulation, version 0.2
(II) Loading sub module "ramdac"
(II) LoadModule: "ramdac"
(II) Loading /usr/X11R6/lib/modules/libramdac.so
(II) Module ramdac: vendor="X.Org Foundation"
compiled for 6.9.0, module version = 0.1.0
ABI class: X.Org Video Driver, version 0.8
(II) resource ranges after xf86ClaimFixedResources() call:
[0] -1 0 0xffe00000 - 0xffffffff (0x200000) MX[B](B)
[1] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
[2] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[3] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[4] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[5] -1 0 0xf9e00000 - 0xf9efffff (0x100000) MX[B]E
[6] -1 0 0xf9c00000 - 0xf9dfffff (0x200000) MX[B]E
[7] -1 0 0xdff00000 - 0xdfffffff (0x100000) MX[B]E
[8] -1 0 0xf9900000 - 0xf99fffff (0x100000) MX[B]E
[9] -1 0 0xf9a00000 - 0xf9bfffff (0x200000) MX[B]E
[10] -1 0 0xf9800000 - 0xf98fffff (0x100000) MX[B]E
[11] -1 0 0xd8000000 - 0xd7ffffff (0x0) MX[B]EO
[12] -1 0 0xf9f00000 - 0xf9f1ffff (0x20000) MX[B](B)
[13] -1 0 0xfa000000 - 0xfaffffff (0x1000000) MX[B](B)
[14] -1 0 0xe0000000 - 0xefffffff (0x10000000) MX[B](B)
[15] -1 0 0xfb000000 - 0xfbffffff (0x1000000) MX[B](B)
[16] -1 0 0xdfe00000 - 0xdfe00fff (0x1000) MX[B](B)
[17] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[18] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
[19] -1 0 0x0000e800 - 0x0000e8ff (0x100) IX[B]E
[20] -1 0 0x0000e400 - 0x0000e4ff (0x100) IX[B]E
[21] -1 0 0x0000e000 - 0x0000e0ff (0x100) IX[B]E
[22] -1 0 0x0000d800 - 0x0000d8ff (0x100) IX[B]E
[23] -1 0 0x0000d400 - 0x0000d4ff (0x100) IX[B]E
[24] -1 0 0x0000fc00 - 0x0000fcff (0x100) IX[B]E
[25] -1 0 0x0000b400 - 0x0000b4ff (0x100) IX[B]E
[26] -1 0 0x0000b800 - 0x0000b8ff (0x100) IX[B]E
[27] -1 0 0x0000c000 - 0x0000c0ff (0x100) IX[B]E
[28] -1 0 0x0000c400 - 0x0000c4ff (0x100) IX[B]E
[29] -1 0 0x0000c800 - 0x0000c8ff (0x100) IX[B]E
[30] -1 0 0x0000d000 - 0x0000d0ff (0x100) IX[B]E
[31] -1 0 0x0000b000 - 0x0000b0ff (0x100) IX[B]E
[32] -1 0 0x0000a000 - 0x0000a0ff (0x100) IX[B]E
[33] -1 0 0x0000a400 - 0x0000a4ff (0x100) IX[B]E
[34] -1 0 0x0000a800 - 0x0000a8ff (0x100) IX[B]E
[35] -1 0 0x00009800 - 0x000098ff (0x100) IX[B]E
(II) resource ranges after probing:
[0] -1 0 0xffe00000 - 0xffffffff (0x200000) MX[B](B)
[1] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
[2] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[3] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[4] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[5] -1 0 0xf9e00000 - 0xf9efffff (0x100000) MX[B]E
[6] -1 0 0xf9c00000 - 0xf9dfffff (0x200000) MX[B]E
[7] -1 0 0xdff00000 - 0xdfffffff (0x100000) MX[B]E
[8] -1 0 0xf9900000 - 0xf99fffff (0x100000) MX[B]E
[9] -1 0 0xf9a00000 - 0xf9bfffff (0x200000) MX[B]E
[10] -1 0 0xf9800000 - 0xf98fffff (0x100000) MX[B]E
[11] -1 0 0xd8000000 - 0xd7ffffff (0x0) MX[B]EO
[12] -1 0 0xf9f00000 - 0xf9f1ffff (0x20000) MX[B](B)
[13] -1 0 0xfa000000 - 0xfaffffff (0x1000000) MX[B](B)
[14] -1 0 0xe0000000 - 0xefffffff (0x10000000) MX[B](B)
[15] -1 0 0xfb000000 - 0xfbffffff (0x1000000) MX[B](B)
[16] -1 0 0xdfe00000 - 0xdfe00fff (0x1000) MX[B](B)
[17] 0 0 0x000a0000 - 0x000affff (0x10000) MS[B]
[18] 0 0 0x000b0000 - 0x000b7fff (0x8000) MS[B]
[19] 0 0 0x000b8000 - 0x000bffff (0x8000) MS[B]
[20] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[21] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
[22] -1 0 0x0000e800 - 0x0000e8ff (0x100) IX[B]E
[23] -1 0 0x0000e400 - 0x0000e4ff (0x100) IX[B]E
[24] -1 0 0x0000e000 - 0x0000e0ff (0x100) IX[B]E
[25] -1 0 0x0000d800 - 0x0000d8ff (0x100) IX[B]E
[26] -1 0 0x0000d400 - 0x0000d4ff (0x100) IX[B]E
[27] -1 0 0x0000fc00 - 0x0000fcff (0x100) IX[B]E
[28] -1 0 0x0000b400 - 0x0000b4ff (0x100) IX[B]E
[29] -1 0 0x0000b800 - 0x0000b8ff (0x100) IX[B]E
[30] -1 0 0x0000c000 - 0x0000c0ff (0x100) IX[B]E
[31] -1 0 0x0000c400 - 0x0000c4ff (0x100) IX[B]E
[32] -1 0 0x0000c800 - 0x0000c8ff (0x100) IX[B]E
[33] -1 0 0x0000d000 - 0x0000d0ff (0x100) IX[B]E
[34] -1 0 0x0000b000 - 0x0000b0ff (0x100) IX[B]E
[35] -1 0 0x0000a000 - 0x0000a0ff (0x100) IX[B]E
[36] -1 0 0x0000a400 - 0x0000a4ff (0x100) IX[B]E
[37] -1 0 0x0000a800 - 0x0000a8ff (0x100) IX[B]E
[38] -1 0 0x00009800 - 0x000098ff (0x100) IX[B]E
[39] 0 0 0x000003b0 - 0x000003bb (0xc) IS[B]
[40] 0 0 0x000003c0 - 0x000003df (0x20) IS[B]
(II) Setting vga for screen 0.
(**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) NVIDIA(0): Option "TVStandard" "NTSC-M"
(**) NVIDIA(0): Option "Coolbits" "1"
(**) NVIDIA(0): Option "UseDisplayDevice" "DFP"
(**) NVIDIA(0): Enabling RENDER acceleration
(**) NVIDIA(0): TV Standard string: "NTSC-M"
(II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
(II) NVIDIA(0): enabled.
(II) NVIDIA(0): NVIDIA GPU GeForce 6600 LE at PCI:1:0:0 (GPU-0)
(--) NVIDIA(0): Memory: 262144 kBytes
(--) NVIDIA(0): VideoBIOS: 05.43.02.66.01
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce 6600 LE at PCI:1:0:0:
(--) NVIDIA(0): Samsung SyncMaster (CRT-1)
(--) NVIDIA(0): Samsung SyncMaster (CRT-1): 400.0 MHz maximum pixel clock
(WW) NVIDIA(0): Option "UseDisplayDevice" requested "DFP", but no unused DFPs
(WW) NVIDIA(0): are available.
(II) NVIDIA(0): Option "UseDisplayDevice" "DFP" converted to "".
(WW) NVIDIA(0): Unable to find any of the requested display device "" in the
(WW) NVIDIA(0): list of available display devices "CRT-1".
(II) NVIDIA(0): Assigned Display Device: CRT-1
(II) NVIDIA(0): Validated modes:
(II) NVIDIA(0): "1280x1024"
(II) NVIDIA(0): "1024x768"
(II) NVIDIA(0): "800x600"
(II) NVIDIA(0): Virtual screen size determined to be 1280 x 1024
(--) NVIDIA(0): DPI set to (95, 96); computed from "UseEdidDpi" X config
(--) NVIDIA(0): option
(--) Depth 24 pixmap format is 32 bpp
(II) do I need RAC? No, I don't.
(II) resource ranges after preInit:
[0] 0 0 0xfa000000 - 0xfaffffff (0x1000000) MX[B]
[1] 0 0 0xe0000000 - 0xefffffff (0x10000000) MX[B]
[2] 0 0 0xfb000000 - 0xfbffffff (0x1000000) MX[B]
[3] -1 0 0xffe00000 - 0xffffffff (0x200000) MX[B](B)
[4] -1 0 0x00100000 - 0x3fffffff (0x3ff00000) MX[B]E(B)
[5] -1 0 0x000f0000 - 0x000fffff (0x10000) MX[B]
[6] -1 0 0x000c0000 - 0x000effff (0x30000) MX[B]
[7] -1 0 0x00000000 - 0x0009ffff (0xa0000) MX[B]
[8] -1 0 0xf9e00000 - 0xf9efffff (0x100000) MX[B]E
[9] -1 0 0xf9c00000 - 0xf9dfffff (0x200000) MX[B]E
[10] -1 0 0xdff00000 - 0xdfffffff (0x100000) MX[B]E
[11] -1 0 0xf9900000 - 0xf99fffff (0x100000) MX[B]E
[12] -1 0 0xf9a00000 - 0xf9bfffff (0x200000) MX[B]E
[13] -1 0 0xf9800000 - 0xf98fffff (0x100000) MX[B]E
[14] -1 0 0xd8000000 - 0xd7ffffff (0x0) MX[B]EO
[15] -1 0 0xf9f00000 - 0xf9f1ffff (0x20000) MX[B](B)
[16] -1 0 0xfa000000 - 0xfaffffff (0x1000000) MX[B](B)
[17] -1 0 0xe0000000 - 0xefffffff (0x10000000) MX[B](B)
[18] -1 0 0xfb000000 - 0xfbffffff (0x1000000) MX[B](B)
[19] -1 0 0xdfe00000 - 0xdfe00fff (0x1000) MX[B](B)
[20] 0 0 0x000a0000 - 0x000affff (0x10000) MS[B](OprD)
[21] 0 0 0x000b0000 - 0x000b7fff (0x8000) MS[B](OprD)
[22] 0 0 0x000b8000 - 0x000bffff (0x8000) MS[B](OprD)
[23] -1 0 0x0000ffff - 0x0000ffff (0x1) IX[B]
[24] -1 0 0x00000000 - 0x000000ff (0x100) IX[B]
[25] -1 0 0x0000e800 - 0x0000e8ff (0x100) IX[B]E
[26] -1 0 0x0000e400 - 0x0000e4ff (0x100) IX[B]E
[27] -1 0 0x0000e000 - 0x0000e0ff (0x100) IX[B]E
[28] -1 0 0x0000d800 - 0x0000d8ff (0x100) IX[B]E
[29] -1 0 0x0000d400 - 0x0000d4ff (0x100) IX[B]E
[30] -1 0 0x0000fc00 - 0x0000fcff (0x100) IX[B]E
[31] -1 0 0x0000b400 - 0x0000b4ff (0x100) IX[B]E
[32] -1 0 0x0000b800 - 0x0000b8ff (0x100) IX[B]E
[33] -1 0 0x0000c000 - 0x0000c0ff (0x100) IX[B]E
[34] -1 0 0x0000c400 - 0x0000c4ff (0x100) IX[B]E
[35] -1 0 0x0000c800 - 0x0000c8ff (0x100) IX[B]E
[36] -1 0 0x0000d000 - 0x0000d0ff (0x100) IX[B]E
[37] -1 0 0x0000b000 - 0x0000b0ff (0x100) IX[B]E
[38] -1 0 0x0000a000 - 0x0000a0ff (0x100) IX[B]E
[39] -1 0 0x0000a400 - 0x0000a4ff (0x100) IX[B]E
[40] -1 0 0x0000a800 - 0x0000a8ff (0x100) IX[B]E
[41] -1 0 0x00009800 - 0x000098ff (0x100) IX[B]E
[42] 0 0 0x000003b0 - 0x000003bb (0xc) IS[B](OprU)
[43] 0 0 0x000003c0 - 0x000003df (0x20) IS[B](OprU)
(II) NVIDIA(0): Setting mode "1280x1024"
(II) Loading extension NV-GLX
(II) NVIDIA(0): NVIDIA 3D Acceleration Architecture Initialized
(II) NVIDIA(0): Using the NVIDIA 2D acceleration architecture
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(**) Option "dpms"
(**) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(==) RandR enabled
(II) Initializing built-in extension MIT-SHM
(II) Initializing built-in extension XInputExtension
(II) Initializing built-in extension XTEST
(II) Initializing built-in extension XKEYBOARD
(II) Initializing built-in extension XC-APPGROUP
(II) Initializing built-in extension SECURITY
(II) Initializing built-in extension XINERAMA
(II) Initializing built-in extension XFIXES
(II) Initializing built-in extension XFree86-Bigfont
(II) Initializing built-in extension RENDER
(II) Initializing built-in extension RANDR
(II) Initializing built-in extension COMPOSITE
(II) Initializing built-in extension DAMAGE
(II) Initializing built-in extension XEVIE
(II) Initializing extension GLX
(**) Option "Protocol" "Auto"
(**) Mouse0: Device: "/dev/sysmouse"
(**) Mouse0: Protocol: "Auto"
(**) Option "CorePointer"
(**) Mouse0: Core Pointer
(**) Option "Device" "/dev/sysmouse"
(==) Mouse0: Emulate3Buttons, Emulate3Timeout: 50
(**) Option "ZAxisMapping" "4 5"
(**) Mouse0: ZAxisMapping: buttons 4 and 5
(**) Mouse0: Buttons: 9
(**) Option "CoreKeyboard"
(**) Keyboard0: Core Keyboard
(**) Option "Protocol" "standard"
(**) Keyboard0: Protocol: standard
(**) Option "AutoRepeat" "500 30"
(**) Option "XkbRules" "xorg"
(**) Keyboard0: XkbRules: "xorg"
(**) Keyboard0: XkbModel: "pc104"
(**) Option "XkbLayout" "ca"
(**) Keyboard0: XkbLayout: "ca"
(**) Option "CustomKeycodes" "off"
(**) Keyboard0: CustomKeycodes disabled
(II) XINPUT: Adding extended input device "Keyboard0" (type: KEYBOARD)
(II) XINPUT: Adding extended input device "Mouse0" (type: MOUSE)
(II) XINPUT: Adding extended input device "NVIDIA Damage Notification Manager" (type: Other)
(II) XINPUT: Adding extended input device "NVIDIA Kernel RC Handler" (type: Other)
(II) XINPUT: Adding extended input device "NVIDIA Event Handler" (type: Other)
(II) Mouse0: SetupAuto: hw.iftype is 4, hw.model is 0
(II) Mouse0: SetupAuto: protocol is SysMouse
sysctl -a | grep nvidia
hw.nvidia.agp.card.rates: 8x 4x
hw.nvidia.agp.card.fw: supported
hw.nvidia.agp.card.sba: supported
hw.nvidia.agp.card.registers: 0xff000e1b:0x00000000
hw.nvidia.agp.status.status: disabled
hw.nvidia.agp.status.driver: n/a (unused)
hw.nvidia.agp.status.rate: n/a (disabled)
hw.nvidia.agp.status.fw: n/a (disabled)
hw.nvidia.agp.status.sba: n/a (disabled)
hw.nvidia.version: NVIDIA FreeBSD x86 Kernel Module 1.0-9631 Thu Nov 9 17:38:06 PST 2006
hw.nvidia.registry.EnableVia4x: 0
hw.nvidia.registry.EnableALiAGP: 0
hw.nvidia.registry.NvAGP: 1
hw.nvidia.registry.EnableAGPSBA: 0
hw.nvidia.registry.EnableAGPFW: 0
hw.nvidia.registry.SoftEDIDs: 1
hw.nvidia.registry.Mobile: 4294967295
hw.nvidia.registry.ResmanDebugLevel: 4294967295
hw.nvidia.registry.FlatPanelMode: 0
hw.nvidia.registry.DevicesConnected: 0
hw.nvidia.registry.RmLogonRC: 1
hw.nvidia.registry.DetectPrimaryVga: 1
hw.nvidia.registry.dwords:
hw.nvidia.cards.0.model: GeForce 6600 LE
hw.nvidia.cards.0.irq: 16
hw.nvidia.cards.0.vbios: 05.43.02.66.01
hw.nvidia.cards.0.type: AGP
dev.nvidia.0.%desc: GeForce 6600 LE
dev.nvidia.0.%driver: nvidia
dev.nvidia.0.%location: slot=0 function=0
dev.nvidia.0.%pnpinfo: vendor=0x10de device=0x00f4 subvendor=0x0000 subdevice=0x0285 class=0x030000
dev.nvidia.0.%parent: pci1
adamk75
12-11-06, 03:46 PM
I get similar problems with the 9*** series on -CURRENT. If I startx with gnome-session, I get an immediate lockup of X and the machine pretty quickly crashes. If I startx with fvwm2, I can use the machine without problems till I try and run an GL application. Most of the time, the GL application runs fine. However, even after I close the application, the process never stops running. Within a few minutes, the machine crashes. It will also crash if I try and launch a second GL app.
Adam
Unfortunately, I have downgraded to 6-STABLE, so I cannot really comment on how later versions of the driver work on it. Hopefully they can fix the issues with it, since I was getting excellent performance with 7-CURRENT (especially with the reimplementation of malloc).
adamk75
12-12-06, 10:20 AM
If anyone from nVidia is interested, this is the crash:
login: NVRM: detected agp.ko, aborting NVIDIA AGP setup!
Kernel page fault with the following non-sleepable locks held:
exclusive sleep mutex cdev r = 0 (0xc0a29984) locked @ /usr/src/sys/kern/kern_conf.c:61
KDB: stack backtrace:
db_trace_self_wrapper(c092dba0) at db_trace_self_wrapper+0x25
kdb_backtrace(1,c4433460,c,c42ea380,e64439c8,...) at kdb_backtrace+0x29
witness_warn(5,0,c09530c0) at witness_warn+0x192
trap(8,28,c0920028,c484bb00,66666667,...) at trap+0x108
calltrap() at calltrap+0x5
--- trap 0xc, eip = 0xc068cdf3, esp = 0xe6443a10, ebp = 0xe6443a24 ---
destroy_devl(c484bb00,e6443a54,c0f37bf4,c484bb00,c 496c680,...) at destroy_devl+0x23b
destroy_dev(c484bb00,c496c680,c109ea00,0,c484bb00, ...) at destroy_dev+0x10
nvidia_dev_close(c484bb00,3,2000,c42ea380,c0a2ad48 ,0,c0926b72,11b) at nvidia_dev_close+0x94
giant_close(c484bb00,3,2000,c42ea380,c414702c,...) at giant_close+0x30
devfs_close(e6443b00) at devfs_close+0x32c
VOP_CLOSE_APV(c09cab00,e6443b00) at VOP_CLOSE_APV+0x7e
vn_close(c499ca78,3,c46b7480,c42ea380) at vn_close+0x95
vn_closefile(c4664e58,c42ea380,e6443bb8,c06951b0,c 4664e58,...) at vn_closefile+0xca
devfs_close_f(c4664e58,c42ea380) at devfs_close_f+0xf
fdrop_locked(c4664e58,c42ea380,c3bf33b8,0,c09275cc ,...) at fdrop_locked+0x88
fdrop(c4664e58,c42ea380,6ba,c0a319f4,0,...) at fdrop+0x24
closef(c4664e58,c42ea380,0,0,0,...) at closef+0x367
kern_close(c42ea380,7,e6443d30,c08aafe2,c42ea380,. ..) at kern_close+0x1b6
close(c42ea380,e6443d04) at close+0x10
syscall(3b,3b,842003b,0,0,...) at syscall+0x256
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (6, FreeBSD ELF32, close), eip = 0x283b72fb, esp = 0xbfbfe61c, ebp = 0xbfbfe638 ---
Fatal trap 12: page fault while in kernel mode
cpuid = 0; apic id = 00
fault virtual address = 0x0
fault code = supervisor read, page not present
instruction pointer = 0x20:0xc068cdf3
stack pointer = 0x28:0xe6443a10
frame pointer = 0x28:0xe6443a24
code segment = base 0x0, limit 0xfffff, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process = 1447 (glxgears)
[thread pid 1447 tid 100107 ]
Stopped at destroy_devl+0x23b: cmpl %ebx,0(%eax)
db> bt
Tracing pid 1447 tid 100107 td 0xc42ea380
destroy_devl(c484bb00,e6443a54,c0f37bf4,c484bb00,c 496c680,...) at destroy_devl+0x23b
destroy_dev(c484bb00,c496c680,c109ea00,0,c484bb00, ...) at destroy_dev+0x10
nvidia_dev_close(c484bb00,3,2000,c42ea380,c0a2ad48 ,0,c0926b72,11b) at nvidia_dev_close+0x94
giant_close(c484bb00,3,2000,c42ea380,c414702c,...) at giant_close+0x30
devfs_close(e6443b00) at devfs_close+0x32c
VOP_CLOSE_APV(c09cab00,e6443b00) at VOP_CLOSE_APV+0x7e
vn_close(c499ca78,3,c46b7480,c42ea380) at vn_close+0x95
vn_closefile(c4664e58,c42ea380,e6443bb8,c06951b0,c 4664e58,...) at vn_closefile+0xca
devfs_close_f(c4664e58,c42ea380) at devfs_close_f+0xf
fdrop_locked(c4664e58,c42ea380,c3bf33b8,0,c09275cc ,...) at fdrop_locked+0x88
fdrop(c4664e58,c42ea380,6ba,c0a319f4,0,...) at fdrop+0x24
closef(c4664e58,c42ea380,0,0,0,...) at closef+0x367
kern_close(c42ea380,7,e6443d30,c08aafe2,c42ea380,. ..) at kern_close+0x1b6
close(c42ea380,e6443d04) at close+0x10
syscall(3b,3b,842003b,0,0,...) at syscall+0x256
Xint0x80_syscall() at Xint0x80_syscall+0x1f
--- syscall (6, FreeBSD ELF32, close), eip = 0x283b72fb, esp = 0xbfbfe61c, ebp = 0xbfbfe638 ---
db> reboot
I am not using NVIDIA's AGP support in this crash, but I get the same results even if I switch.
Adam
@adamk75: do you only see this with 1.0-9xxx series drivers or does the crash also happen with 1.0-87xx?
adamk75
12-12-06, 02:49 PM
Everything works fine with the 1.0-8776 drivers.
Adam
@adamk75: without having looked at this problem, my guess is that the problems are due to an interaction problem between the logic in 1.0-9xxx+ that takes advantage of the device cloning mechanism and 7.0-CURRENT kernels. Do you know if this is a recent regression?
adamk75
12-12-06, 03:12 PM
Sorry, I couldn't say. I only recently (in the last month) installed FreeBSD on these machines and went straight from a fresh 6.2 RC1 install to -CURRENT. I used 8776 from the ports tree for a while and only tried the newer 9*** drivers when they showed up in the ports tree recently.
adamk75
12-12-06, 04:43 PM
If I have some time, I'll see about pulling an older version of the source tree and getting an older kernel up and running, but it probably won't happen soon :-)
I don't think that will be necessary. I'll try to setup an up-to-date FreeBSD 7.0-CURRENT and take a look at this in the near future.
nicblais
12-14-06, 07:51 PM
As I mentioned above, 8776 works fine under the -CURRENT kernel if that's any help.
I looked at 1.0-9xxx FreeBSD 7.0-CURRENT compatibility last week. It looks like there're multiple problems with the device cloning mechanism, not all of which are trivially solvable; some more research/testing is needed.
The attached patch works around most of the device cloning related problems and should allow 1.0-9746 to work more reliably with FreeBSD 7.0-CURRENT. Please note, however, that these changes haven't seen extensive testing and aren't officially supported, yet.
*** The patch has been removed; please see http://www.nvnews.net/vbulletin/showpost.php?p=1143321&postcount=27 for a replacement ***
nicblais
01-03-07, 08:51 PM
I am happy to say that your patch fixed the issues I reported. I had to apply the patch on 9631 as that was what was available in the port tree but it works so far!
Thanks!
roddierod
01-03-07, 11:09 PM
I'm using xorg 7rc3 on current with X11BASE=/usr/local and the driver loads but then it core dumps. There are no (EE) lines in the log.
I switched to X11BASE to /usr/local because this is seeming going to be the plan when xorg 7 is offically release in FreeBSD.
Would anyone have an idea what I need to do to get the driver to work with it??
@roddierod: this sounds like a different issue, please start a new thread; please also attach the X log file generated at the time of the crash.
adamk75
01-04-07, 09:36 AM
Well, I've only been using X for about an hour or so, but it's definitely working better than without the patch :-) And, finally, I've managed to get beryl to work under FreeBSD. Thanks for fixing this so quickly, Zander.
Adam
Eight Konquers
01-05-07, 07:20 AM
Okay. Well, here's something interesting.. I'm using FBSD 6.2-PRE. I have an nVidia Geforce FX 5200... Never had a problem until now. And my _MAIN_ problem seems to be GL applications...
While I'm logged into X now (XFCE) it seems there are no issues. However, if I run any GL applications, I'll be lucky to not have a complete system lock. Every once in a while I'm able to CTRL+C out of something and not have to reboot.
These issues seemed to have begun once I updated to the 9631 driver (Although I can't be 100% sure). I do know, however, that downgrading drivers doesn't help at all. I've even taken it as far as version 8774 with no luck. =/
If I run "glxgears" to test my FPS, I get a _SERIOUS_ system choke. There are errors though. The same errors reported by others... Something along the lines of:
NVRM: Xid (0001:00): 8, Channel 00000002
NVRM: Xid (0001:00): 29, L1 -> L0
NVRM: Xid (0001:00): 8, Channel 00000002
NVRM: Xid (0001:00): 29, L1 -> L0
NVRM: Xid (0001:00): 8, Channel 00000002
NVRM: Xid (0001:00): 29, L1 -> L0
NVRM: Xid (0001:00): 8, Channel 00000002
NVRM: Xid (0001:00): 29, L1 -> L0
NVRM: Xid (0001:00): 8, Channel 00000002
NVRM: Xid (0001:00): 29, L1 -> L0
... and that's it.
I'll download the newest drivers with the patch mentioned above and see if anything helps. The card is wonderful and I have no issues with it (Besides going through GPU fans like toilet paper :)... ) But, that's of no issue.
I'll post again if the patch above gives doo-doo for results...
Regards,
Janky Jay, III
Harvey Pooka
01-05-07, 01:05 PM
I have two RELENG_6 systems (pre-release of 6.2). While one works without a problem, the other core dumps during shutdown (halt -p). This patch appears to have fixed 9631 on that system. If it happens again, I will let you know.
Eight Konquers
01-05-07, 05:29 PM
Welp, I downloaded the newest drivers and the patch and still have the problem. I've messed around online trying to find others with the same issue. Although, I have found quite a few people with nearly the exact same issue, they seem to have fixed their problems with portdowngrade (Which I mentioned wouldn't work for me...) So, I suppose I'll keep my eye open for a new fix and just jump back to either the "vesa" driver or my ATi.
The attached patch works around most of the device cloning related problems and should allow 1.0-9746 to work more reliably with FreeBSD 7.0-CURRENT. Please note, however, that these changes haven't seen extensive testing and aren't officially supported, yet.
I had an issue with X.org 7.2r3 hanging every time I tried to quit/kill X, causing my system to crash unexpectedly under FreeBSD 7-CURRENT. Applying this patch to the 1.0-9631 driver fixed the issue for me. I cannot test 1.0-9746 however, since the laptop I tried it on has a GeForce4 440 Go, which is now a "legacy" card.
vBulletin® v3.7.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.