From nobody@FreeBSD.org Sat Dec 9 22:23:34 2000 Return-Path: Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 27A0F37B400 for ; Sat, 9 Dec 2000 22:23:34 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id eBA6NXm55671; Sat, 9 Dec 2000 22:23:33 -0800 (PST) (envelope-from nobody) Message-Id: <200012100623.eBA6NXm55671@freefall.freebsd.org> Date: Sat, 9 Dec 2000 22:23:33 -0800 (PST) From: shon@misproductions.com Sender: nobody@FreeBSD.org To: freebsd-gnats-submit@FreeBSD.org Subject: SMP Kernel Freezes Machines on Dual Processor TYAN Tiger Motherboard System. X-Send-Pr-Version: www-1.0 >Number: 23411 >Category: kern >Synopsis: SMP Kernel Freezes Machines on Dual Processor TYAN Tiger Motherboard System. >Confidential: no >Severity: critical >Priority: high >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Dec 09 22:30:01 PST 2000 >Closed-Date: Thu Aug 29 13:52:16 PDT 2002 >Last-Modified: Thu Aug 29 13:52:16 PDT 2002 >Originator: Shon Elliott >Release: 4.2-STABLE >Organization: MiS Productions >Environment: FreeBSD www.m2ktalk.com 4.2-STABLE FreeBSD 4.2-STABLE #0: Sat Dec 9 21:30:44 PST 2000 root@www.m2ktalk.com:/usr/obj/usr/src/sys/KERNELv1 i386 >Description: Hardware: 2x Pentium III 800mhz processors TYAN Tiger Motherboard When Compiling an SMP Kernel for this system, it just hard locks the machine. Below is attached our kernel config file # # 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/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 ./LINT configuration file. If you are # in doubt as to the purpose or necessity of a line, check first in LINT. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.20 2000/10/31 23:16:07 n_hibma Exp $ machine i386 # cpu I386_CPU # cpu I486_CPU cpu I586_CPU cpu I686_CPU ident KERNELv1 maxusers 128 #makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options MATH_EMULATE #Support for x87 emulation options INET #InterNETworking options INET6 #IPv6 communications protocols options FFS #Berkeley Fast Filesystem options FFS_ROOT #FFS usable as root device [keep this!] options SOFTUPDATES #Enable FFS soft updates support options MFS #Memory Filesystem options MD_ROOT #MD is a potential root device options NFS #Network Filesystem options NFS_ROOT #NFS usable as root device, NFS required options MSDOSFS #MSDOS Filesystem options CD9660 #ISO 9660 Filesystem options CD9660_ROOT #CD-ROM usable as root, CD9660 required options PROCFS #Process filesystem options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] # options SCSI_DELAY=15000 #Delay (in ms) before probing SCSI options UCONSOLE #Allow users to grab the console options USERCONFIG #boot -c editor options VISUAL_USERCONFIG #visual boot -c editor options KTRACE #ktrace(1) support options SYSVSHM #SYSV-style shared memory options SYSVMSG #SYSV-style message queues options SYSVSEM #SYSV-style semaphores options P1003_1B #Posix P1003_1B real-time extensions options _KPOSIX_PRIORITY_SCHEDULING # options ICMP_BANDLIM #Rate limit bad replies options KBD_INSTALL_CDEV # install a CDEV entry in /dev options QUOTA # added for quota support for fs/se 12-9-2000 # To make an SMP kernel, the next two are needed options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O #### # # added for major network support, se 12-9-2000 # # # options NMBCLUSTERS=8192 #added for major network support kerns/se # options MAXDSIZ="(512*1024*2048)" # options DFLDSIZ="(512*1024*2048)" # # # end of code #### device isa device eisa device pci # Floppy drives device fdc0 at isa? port IO_FD1 irq 6 drq 2 device fd0 at fdc0 drive 0 device fd1 at fdc0 drive 1 # ATA and ATAPI devices device ata0 at isa? port IO_WD1 irq 14 device ata1 at isa? port IO_WD2 irq 15 device ata device atadisk # ATA disk drives device atapicd # ATAPI CDROM drives device atapifd # ATAPI floppy drives device atapist # ATAPI tape drives options ATA_STATIC_ID #Static device numbering options ATA_ENABLE_ATAPI_DMA #Enable DMA on ATAPI devices # SCSI Controllers # device ahb # EISA AHA1742 family # device ahc # AHA2940 and onboard AIC7xxx devices # device amd # AMD 53C974 (Teckram DC-390(T)) # device isp # Qlogic family # device ncr # NCR/Symbios Logic # device sym # NCR/Symbios Logic (newer chipsets) # options SYM_SETUP_LP_PROBE_MAP=0x40 # Allow ncr to attach legacy NCR devices when # both sym and ncr are configured # device adv0 at isa? # device adw # device bt0 at isa? # device aha0 at isa? # device aic0 at isa? # device ncv # NCR 53C500 # device nsp # Workbit Ninja SCSI-3 # device stg # TMC 18C30/18C50 # SCSI peripherals # device scbus # SCSI bus (required) # device da # Direct Access (disks) # device sa # Sequential Access (tape etc) # device cd # CD # device pass # Passthrough device (direct SCSI access) # RAID controllers interfaced to the SCSI subsystem # device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID # device dpt # DPT Smartcache - See LINT for options! # device mly # Mylex AcceleRAID/eXtremeRAID # RAID controllers # device ida # Compaq Smart RAID # device amr # AMI MegaRAID # device mlx # Mylex DAC960 family # device twe # 3ware Escalade # atkbdc0 controls both the keyboard and the PS/2 mouse device atkbdc0 at isa? port IO_KBD device atkbd0 at atkbdc? irq 1 flags 0x1 device psm0 at atkbdc? irq 12 device vga0 at isa? # splash screen/screen saver pseudo-device splash # syscons is the default console driver, resembling an SCO console device sc0 at isa? flags 0x100 # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver #device vt0 at isa? #options XSERVER # support for X server on a vt console #options FAT_CURSOR # start with block cursor # If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines #options PCVT_SCANSET=2 # IBM keyboards are non-std # Floating point support - do not disable. device npx0 at nexus? port IO_NPX irq 13 # Power management support (see LINT for more options) device apm0 at nexus? disable flags 0x20 # Advanced Power Management # PCCARD (PCMCIA) support # device card # device pcic0 at isa? irq 0 port 0x3e0 iomem 0xd0000 # device pcic1 at isa? irq 0 port 0x3e2 iomem 0xd4000 disable # Serial (COM) ports device sio0 at isa? port IO_COM1 flags 0x30 irq 4 # device sio1 at isa? port IO_COM2 irq 3 # device sio2 at isa? disable port IO_COM3 irq 5 # device sio3 at isa? disable port IO_COM4 irq 9 # Parallel port # device ppc0 at isa? irq 7 # 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. # device de # DEC/Intel DC21x4x (``Tulip'') # device fxp # Intel EtherExpress PRO/100B (82557, 82558) # device tx # SMC 9432TX (83c170 ``EPIC'') # device vx # 3Com 3c590, 3c595 (``Vortex'') # device wx # Intel Gigabit Ethernet Card (``Wiseman'') # 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 dc # DEC/Intel 21143 and various workalikes # device pcn # AMD Am79C79x PCI 10/100 NICs # device rl # RealTek 8129/8139 # device sf # Adaptec AIC-6915 (``Starfire'') # device sis # Silicon Integrated Systems SiS 900/SiS 7016 # device ste # Sundance ST201 (D-Link DFE-550TX) # device tl # Texas Instruments ThunderLAN # device vr # VIA Rhine, Rhine II # device wb # Winbond W89C840F device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'') # ISA Ethernet NICs. # device ed0 at isa? port 0x280 irq 10 iomem 0xd8000 # device ex # device ep # device fe0 at isa? port 0x300 # WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really # exists only as a PCMCIA device, so there is no ISA attatement needed # and resources will always be dynamically assigned by the pccard code. # device wi # Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below will # work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP # mode (the factory default). If you set the switches on your ISA # card for a manually chosen I/O address and IRQ, you must specify # those paremeters here. # device an # Xircom Ethernet # device xe # The probe order of these is presently determined by i386/isa/isa_compat.c. # device ie0 at isa? port 0x300 irq 10 iomem 0xd0000 # device le0 at isa? port 0x300 irq 5 iomem 0xd0000 # device lnc0 at isa? port 0x280 irq 10 drq 0 # device cs0 at isa? port 0x300 # device sn0 at isa? port 0x300 irq 10 # Pseudo devices - the number indicates how many units to allocated. pseudo-device loop # Network loopback pseudo-device ether # Ethernet support pseudo-device sl 1 # Kernel SLIP pseudo-device ppp 1 # Kernel PPP pseudo-device tun # Packet tunnel. pseudo-device pty # Pseudo-ttys (telnet etc) pseudo-device md # Memory "disks" pseudo-device gif 4 # IPv6 and IPv4 tunneling pseudo-device faith 1 # IPv6-to-IPv4 relaying (translation) # The `bpf' pseudo-device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! pseudo-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 ukbd # Keyboard device ulpt # Printer # device umass # Disks/Mass storage - Requires scbus and da device ums # Mouse device uscanner # Scanners # USB Ethernet, requires mii device aue # ADMtek USB ethernet device cue # CATC USB ethernet device kue # Kawasaki LSI USB ethernet >How-To-Repeat: We can repeat it by running the SMP kernel. >Fix: >Release-Note: >Audit-Trail: State-Changed-From-To: open->feedback State-Changed-By: iedowse State-Changed-When: Sun Nov 18 08:27:45 PST 2001 State-Changed-Why: Does this problem still exist? http://www.FreeBSD.org/cgi/query-pr.cgi?pr=23411 From: "MiS Productions - Fresno, CA. Studio" To: freebsd-gnats-submit@FreeBSD.org, shon@misproductions.com Cc: Subject: Re: kern/23411: SMP Kernel Freezes Machines on Dual Processor TYAN Tiger Motherboard System. Date: Sun, 18 Nov 2001 15:18:11 -0800 YES... IT DOES. No word from anyone on what is causing the problem. We have simply disabled the SMP kernel until someone can figure it out. We can't afford to TEST it on this production box. -- Sincerely, Shon Elliott From: Bob Bishop To: shon@misproductions.com Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: kern/23411: SMP Kernel Freezes Machines on Dual Processor TYAN Tiger Motherboard System. Date: Mon, 19 Nov 2001 00:05:08 +0000 Hi, FWIW we've got 4.3R running SMP rock-stable here on 9 Tyan Tiger200-based systems, all 2x1G PIII. Do your m/b's have the onboard Intel dual NICs? If so, have you disabled them in the BIOS? Do you have power management disabled in the BIOS? Are you running the latest BIOS firmware? -- Bob Bishop (0118) 977 4017 international code +44 118 rb@gid.co.uk fax (0118) 989 4254 From: Giorgos Keramidas To: shon@misproductions.com Cc: freebsd-gnats-submit@freebsd.org Subject: Re: kern/23411: SMP Kernel Freezes Machines on Dual Processor TYAN Tiger Motherboard System. Date: Wed, 28 Nov 2001 04:28:03 +0200 Adding this to the audit trail, from a misfiled PR. From: Hiten Pandya Date: Thu, 22 Nov 2001 11:31:54 -0800 (PST) Message-Id: <20011122193154.15907.qmail@web21106.mail.yahoo.com> have u tried to use the option from the LINT file, which allows you to go around an SMP bug... try this option... it may.. work ;) options I4B_SMP_WORKAROUND, and.. did u try looking into LINT, or GENERIC.hints.. jus curious... thanks... Hiten Pandya From: "Hiten Pandya" To: freebsd-gnats-submit@FreeBSD.org Cc: shon@misproductions.com Subject: Re: kern/23411: SMP Kernel Freezes Machines on Dual Processor TYAN Tiger Motherboard System. Date: Mon, 21 Jan 2002 15:04:30 GMT This might not be the solution, but it can get rid of bugs in your kernel configuration. According to the kernel config file you submitted, it seems that there is a minute un-noticeable error (to my eyes anyway): 01: machine i386 02: # cpu I386_CPU 03: # cpu I486_CPU 04: cpu I586_CPU 05: cpu I686_CPU If you notice, on line 04 and 05, you can only have one type of processor I beleive. According to the way SMP works, on intel, you can't mix and match CPU types. I would say, that you look at your dmesg output and see what type of processors you have (it should be an i686 neway). Either way, you should only have one CPU type in the kernel config file, i.e. you need to comment out either 586 or 686 in your kernel config file. cpu 1686_CPU This technique worked on my system, which is : VIA Apollo Motherboard, (Gigabyte) 2x 933MHz Pentium III (i686) In addition, you can also have a look at the various options available for the different CPUs, and motherboard limitations. You could also send me your dmesg(8) output, and I will try to analyse it, if the above solution doesn't work. (my email address below) One last thing, also enquire if there are any other options in your kernel config file, which conflict with the SMP options, or with any other options. (these should be documented in the LINT file.) regards, Hiten Pandya Security Fingerprint: 45 a5 9c f2 fb 07 da 70 18 02 0b f3 63 f1 7a a6 hitenp@hpdi.ath.cx From: Sheldon Hearn To: "Hiten Pandya" Cc: bug-followup@freebsd.org Subject: Re: kern/23411: SMP Kernel Freezes Machines on Dual Processor TYAN Tiger Motherboard System. Date: Thu, 31 Jan 2002 14:32:40 +0200 On Mon, 21 Jan 2002 07:10:02 PST, "Hiten Pandya" wrote: > According to the kernel config file you submitted, it seems that there > is a minute un-noticeable error (to my eyes anyway): > > 01: machine i386 > 02: # cpu I386_CPU > 03: # cpu I486_CPU > 04: cpu I586_CPU > 05: cpu I686_CPU > > If you notice, on line 04 and 05, you can only have one type of > processor I beleive. According to the way SMP works, on intel, > you can't mix and match CPU types. I don't think this is true. Just take a look at GENERIC. :-) Ciao, Sheldon. From: "Hiten Pandya" To: shon@misproductions.com Cc: bug-followup@FreeBSD.org Subject: Re: kern/23411 (Dual Proccessor Hangs on Tyan Tiger MB) Date: Wed, 10 Apr 2002 03:54:38 GMT To the originator: If this problem stille exists, with newer releases such as FreeBSD 4.4, or 4.5, could you please send us your dmesg(1) output. Also, please use "boot -v", so we can get a very detailed dmesg(1). -- Hiten Pandya Finger hiten@storm.uk.FreeBSD.org for PGP public key --- 4FB9 C4A9 4925 CF97 9BF3 ADDA 861D 5DBD E4E3 03C3 --- State-Changed-From-To: feedback->closed State-Changed-By: ceri State-Changed-When: Thu Aug 29 13:51:58 PDT 2002 State-Changed-Why: Feedback timeout. http://www.freebsd.org/cgi/query-pr.cgi?pr=23411 >Unformatted: