From owner-freebsd-questions@FreeBSD.ORG Sun Dec 14 07:30:46 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1B87916A4CE for ; Sun, 14 Dec 2003 07:30:46 -0800 (PST) Received: from ns1.tcbug.org (12-218-40-24.client.mchsi.com [12.218.40.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 137E143D09 for ; Sun, 14 Dec 2003 07:30:41 -0800 (PST) (envelope-from friar_josh@ns1.tcbug.org) Received: by ns1.tcbug.org (Postfix, from userid 1003) id 1D35BBA6B; Sun, 14 Dec 2003 09:30:04 +0000 (GMT) Date: Sun, 14 Dec 2003 09:30:03 +0000 From: Josh Paetzel To: matti k Message-ID: <20031214093002.GA10018@ns1.tcbug.org> References: <20031214163413.7416b9ba.matti@optusnet.com.au> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="YZ5djTAD1cGYuMQK" Content-Disposition: inline In-Reply-To: <20031214163413.7416b9ba.matti@optusnet.com.au> User-Agent: Mutt/1.4.1i cc: freebsd-questions@freebsd.org Subject: Re: Nvidia vs SMP/apic X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 15:30:46 -0000 --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sun, Dec 14, 2003 at 04:34:13PM +1100, matti k wrote: > I have a problem whereby the nvidia drivers cause my system to > hang/reboot a few seconds after startx. I have discovered that > disabling the SMP/apic lines in the kernel fixes the problem. This > occurs on 5.2-CURRENT and 4.9-RELEASE. > > I first noticed this problem after a motherboard swap. The old > motherboard was a Tyan Tiger MP and it was running 5.1-CURRENT at the > time and nvidia drivers were working fine with SMP kernel. The > motherboard died so I replaced it with a MSI K7D Master-L (MPX > chipset). After that the nvidia drivers stopped working if SMP kernel > enabled. > > I have tried NO_MIXED_MODE, disabling acpi and a lot of other BIOS > options but no luck. I don't know if this is an nvidia driver issue or > a problem with this particular motherboard/chipset. Any help > appreciated. Thanks. > I just upgraded my single socket A gigabyte GA-VAXP motherboard to a dual socket A gigabyte GA-DPXDW+ yesterday. This motherboard is also using the MPX chipset. I am having the same issue: As soon as I enable SMP and apic in the kernel the nvidia drivers lock up. This wouldn't be such a big deal to me, except I need the nvidia drivers to use both heads on my video card (at least as far as I know) I'm attaching a dmesg both with and without SMP enabled, as well as a copy of my kernel config file, (I'm just toggling between SMP in there) and a copy of my XF86Config (Once again, just toggling between the nv and nvidia driver) I can give someone a shell on this box if it will help troubleshoot, otherwise I can provide more information as needed. FreeBSD twinathlon.tcbug.org 5.2-CURRENT FreeBSD 5.2-CURRENT #4: Sun Dec 14 09:08:14 GMT 2003 jpaetzel@twinathlon.tcbug.org:/usr/src/sys/i386/compile/TWINATHLON i386 Thanks, Josh Paetzel friar_josh@tcbug.org --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=TWINATHLON # # GENERIC -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.384.2.2 2003/05/31 15:18:41 scottl Exp $ machine i386 cpu I686_CPU ident TWINATHLON #To statically compile in device wiring instead of /boot/device.hints #hints "GENERIC.hints" #Default places to look for devices. #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options SCHED_4BSD #4BSD scheduler options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options SOFTUPDATES #Enable FFS soft updates support options UFS_ACL #Support for access control lists options UFS_DIRHASH #Improve performance on big directories options MD_ROOT #MD is a potential root device options NFSCLIENT #Network Filesystem Client options NFSSERVER #Network Filesystem Server options NFS_ROOT #NFS usable as root device, requires NFSCLIENT options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options PROCFS #Process filesystem (requires PSEUDOFS) options PSEUDOFS #Pseudo-filesystem framework options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 #Compatible with FreeBSD4 options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. # Debugging for use in -current #options DDB #Enable the kernel debugger #options INVARIANTS #Enable calls of extra sanity checking #options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS #options WITNESS #Enable checks to detect deadlocks and cycles #options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed # To make an SMP kernel, the next two are needed #options SMP # Symmetric MultiProcessor Kernel #device apic # Symmetric (APIC) I/O device isa device pci # Floppy drives device fdc # ATA and ATAPI devices device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device ataraid options ATA_STATIC_ID #Static device numbering # SCSI peripherals device scbus # SCSI bus (required) device da # Direct Access (disks) device sa # Sequential Access (tape etc) device pass # Passthrough device (direct SCSI access) # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc # AT keyboard controller device atkbd # AT keyboard device psm # PS/2 mouse device vga # VGA video card driver device splash # Splash screen and screen saver support # syscons is the default console driver, resembling an SCO console device sc # Enable this for the pcvt (VT220 compatible) console driver #device vt #options XSERVER # support for X server on a vt console #options FAT_CURSOR # start with block cursor device agp # support several AGP chipsets # Floating point support - do not disable. device npx # Power management support (see NOTES for more options) #device apm # Add suspend/resume support for the i8254. device pmtimer # Serial (COM) ports device sio # 8250, 16[45]50 based serial ports # Parallel port device ppc device ppbus # Parallel port bus (required) device lpt # Printer device plip # TCP/IP over parallel device ppi # Parallel port interface device #device vpo # Requires scbus and da # PCI Ethernet NICs that use the common MII bus controller code. # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs! device miibus # MII bus support device fxp # Intel EtherExpress PRO/100B (82557, 82558) device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # Pseudo devices - the number indicates how many units to allocate. device random # Entropy device device loop # Network loopback device ether # Ethernet support device sl # Kernel SLIP device ppp # Kernel PPP device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! device bpf # Berkeley packet filter # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device usb # USB Bus (required) device ugen # Generic device uhid # "Human Interface Devices" device ums # Mouse device uscanner # Scanners device pcm --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=XF86Config Section "ServerLayout" Identifier "Layout0" Screen 0 "Screen0" 0 0 InputDevice "Keyboard0" "CoreKeyboard" InputDevice "Mouse0" "CorePointer" EndSection Section "Files" EndSection Section "Module" # Load "freetype" # Load "xtt" Load "extmod" Load "glx" Load "dri" Load "dbe" Load "record" Load "xtrap" Load "type1" Load "speedo" EndSection Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "Auto" Option "Device" "/dev/ums0" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "Keyboard0" Driver "keyboard" Option "XkbModel" "pc101" Option "XkbLayout" "us" EndSection Section "Monitor" Identifier "Monitor0" HorizSync 31.5 - 64.3 VertRefresh 40.0 - 150.0 EndSection Section "Device" Identifier "Card0" Driver "nvidia" #ChipSet "GeForce4 Ti 4200" Card "nv GeForce4 Ti 4200" EndSection Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" DefaultDepth 24 SubSection "Display" Depth 24 Modes "1024x768" EndSubSection EndSection --YZ5djTAD1cGYuMQK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.today" Copyright (c) 1992-2003 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 5.2-CURRENT #3: Fri Dec 12 23:13:11 GMT 2003 jpaetzel@twinathlon.tcbug.org:/usr/src/sys/i386/compile/TWINATHLON Preloaded elf kernel "/boot/kernel/kernel" at 0xc0a2b000. Preloaded elf module "/boot/kernel/linux.ko" at 0xc0a2b1f4. Preloaded elf module "/boot/kernel/nvidia.ko" at 0xc0a2b2a0. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0a2b34c. ACPI APIC Table: Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) MP 2400+ (2000.08-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x681 Stepping = 1 Features=0x383fbff AMD Features=0xc0480000 real memory = 805240832 (767 MB) avail memory = 772472832 (736 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard Pentium Pro MTRR support enabled npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 11 entries at 0xc00fcc00 acpi0: Power Button (fixed) acpi0: Sleep Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x5008-0x500b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_cpu1: port 0x530-0x537 on acpi0 acpi_button0: on acpi0 pcib0: port 0x50e0-0x50ff,0x5000-0x50df,0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: port 0xc000-0xc003 mem 0xfc000000-0xfc000fff,0xe0000000-0xe7ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 nvidia0: mem 0xf0000000-0xf007ffff,0xe8000000-0xefffffff,0xf8000000-0xf8ffffff irq 17 at device 5.0 on pci1 isab0: at device 7.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 7.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] pci0: at device 7.3 (no driver attached) pcib2: at device 16.0 on pci0 pci2: on pcib2 ohci0: mem 0xfb025000-0xfb025fff irq 19 at device 0.0 on pci2 usb0: OHCI version 1.0, legacy support usb0: on ohci0 usb0: USB revision 1.0 uhub0: AMD OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/13.20, addr 2, iclass 3/1 ums0: 4 buttons and Z dir. pcm0: port 0x9000-0x901f irq 17 at device 5.0 on pci2 pcm0: fxp0: port 0x9800-0x983f mem 0xfb000000-0xfb01ffff,0xfb024000-0xfb024fff irq 16 at device 7.0 on pci2 fxp0: Ethernet address 00:0d:61:20:2d:ad miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto atapci1: port 0xac00-0xac0f,0xa800-0xa803,0xa400-0xa407,0xa000-0xa003,0x9c00-0x9c07 mem 0xfb020000-0xfb023fff irq 18 at device 8.0 on pci2 atapci1: [MPSAFE] ata2: at 0x9c00 on atapci1 ata2: [MPSAFE] ata3: at 0xa400 on atapci1 ata3: [MPSAFE] sio0 port 0x3f8-0x3ff irq 4 on acpi0 sio0: type 16550A ppc0 port 0x778-0x77b,0x378-0x37f irq 7 on acpi0 ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 orm0: