From owner-freebsd-smp Mon May 4 14:34:51 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA01054 for freebsd-smp-outgoing; Mon, 4 May 1998 14:34:51 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from cc.owu.edu (cc.owu.edu [192.68.223.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA00915 for ; Mon, 4 May 1998 14:34:15 -0700 (PDT) (envelope-from jnderr@CC.OWU.EDU) Received: from cc.owu.edu ([192.68.223.4]) by CC.OWU.EDU (PMDF V5.1-7 #20255) with ESMTP id <01IWN6VHC3IO00CUQM@CC.OWU.EDU> for freebsd-smp@freebsd.org; Mon, 4 May 1998 17:35:53 EDT Date: Mon, 04 May 1998 17:38:41 -0400 From: "John N. Derr" Subject: Old SMP releases To: freebsd-smp@FreeBSD.ORG Message-id: <354E3561.10109E97@cc.owu.edu> MIME-version: 1.0 X-Mailer: Mozilla 4.04 [en] (Win95; I) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I am interested in getting started with using the SMP kernel. The "Getting started with SMP" guid suggested using the 970815-SNAP, I was wondering if there is a site where I can get that release. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon May 4 18:38:10 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA21405 for freebsd-smp-outgoing; Mon, 4 May 1998 18:38:10 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from cs.utah.edu (cs.utah.edu [128.110.4.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA21292 for ; Mon, 4 May 1998 18:37:19 -0700 (PDT) (envelope-from vanmaren@fast.cs.utah.edu) Received: from fast.cs.utah.edu (fast.cs.utah.edu [155.99.212.1]) by cs.utah.edu (8.8.7/8.8.7) with SMTP id TAA28676 for ; Mon, 4 May 1998 19:37:11 -0600 (MDT) Received: by fast.cs.utah.edu (8.6.10/utah-2.15-leaf) id TAA18034; Mon, 4 May 1998 19:37:11 -0600 Date: Mon, 4 May 1998 19:37:11 -0600 From: vanmaren@fast.cs.utah.edu (Kevin Van Maren) Message-Id: <199805050137.TAA18034@fast.cs.utah.edu> To: freebsd-smp@FreeBSD.ORG Subject: FreeBSD on Quad SMP Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The quad Pentium Pro/166 box showed up today. I plugged in a -CURRENT Jaz disk I made last friday from the latest snapshot. [It uses an AMI Goliath-II motherboard]. My first SMP kernel failed because NCPU=4 wasn't defined. ACK. By default FreeBSD-SMP only supports two processors. After fixing that, I booted the new kernel: ==== boot: /kernel.SMP Booting 0:sd(0,a)/kernel.SMP @ 0x100000 text=0x11f000 data=0x13000 bss=0x1ca54 symbols=[+0x5ac+0x4+0x146f4+0x4+0x1c433] Can't find file /kernel.SMP.config total=0x27fb2f entry point=0x100000 BIOS basemem (638K) != RTC basemem (640K), setting to BIOS value Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.0-980426-SNAP #0: Mon May 4 15:29:26 MDT 1998 root@mish.cs.utah.edu:/usr/src/sys/compile/SMP2 Timecounter "i8254" frequency 1193182 Hz cost 5103 ns CPU: Pentium Pro (686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping=9 Features=0xfbff real memory = 268435456 (262144K bytes) avail memory = 258928640 (252860K bytes) EISA INTCONTROL = 00000c00 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu2 (AP): apic id: 2, version: 0x00040011, at 0xfee00000 cpu3 (AP): apic id: 3, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x000f0011, at 0xfec00000 eisa0: Probing for devices on the EISA bus Probing for devices on PCI bus 0: chip0: rev 0x15 on pci0.2.0 fxp0: rev 0x02 int a irq 11 on pci0.5.0 fxp0: Ethernet address 00:a0:c9:86:04:f5 ncr0: rev 0x03 int a irq 10 on pci0.6.0 scbus0 at ncr0 bus 0 sd0 at scbus0 target 0 lun 0 sd0: type 0 removable SCSI 2 sd0: Direct-Access sd0: 10.0 MB/s (100 ns, offset 15) sd0: ILLEGAL REQUEST asc:24,0 Invalid field in CDB sd0 could not mode sense (4). Using ficticious geometry 1021MB (2091050 512 byte sectors) vga0: rev 0x41 on pci0.9.0 chip1: rev 0x05 on pci0.20.0 chip2: rev 0x06 on pci0.25.0 chip3: rev 0x06 on pci0.26.0 Probing for devices on PCI bus 1: Freeing (NOT implemented) redirected ISA irq 0. ncr1: rev 0x04 int a irq 2 on pci1.10.0 Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 not found at 0x280 sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A, console sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface psm0: failed to get data. psm0 at 0x60-0x64 irq 12 on motherboard psm0: model Generic PS/2 mouse, device ID 0 fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (atapi): , removable, accel, ovlap, dma, iordy wcd0: 4133/4134Kb/sec, 256Kb cache, audio play, 255 volume levels, ejectable tray wcd0: no disc inside, unlocked wdc1 not found at 0x170 bt0 not found at 0x330 aha0 not found at 0x330 aic0 not found at 0x340 le0 not found at 0x300 npx0 on motherboard npx0: INT 16 interface APIC_IO: routing 8254 via pin 2 SMP: AP CPU #3 Launched! Spanic: apic_ipi was stuck mp_lock = 01000002; cpuid = 1; lapic.id = 01000000 boot() called on cpu#1 I'm on cpu#1, I need to be on cpu#0, sleeping.. Fatal trap 12: page fault while in kernel mode mp_lock = 01000003; cpuid = 1; lapic.id = 01000000 fault virtual address = 0xb8 fault code = supervisor read, page not present instruction pointer = 0x8:0xf0117d9f stack pointer = 0x10:0xff804e04 frame pointer = 0x10:0xff804e18 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 = Idle interrupt mask = <- SMP: XXX trap number = 12 panic: page fault mp_lock = 01000003; cpuid = 1; lapic.id = 01000000 Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot <-- Rebooting... ==== Double ACK! So I ran mptable to see what it said: ==== mish# mptable -verbose -dmesg =============================================================================== MPTable, version 2.0.15 looking for EBDA pointer @ 0x040e, found, searching EBDA @ 0x0009f800 searching CMOS 'top of mem' @ 0x0009f400 (637K) searching default 'top of mem' @ 0x0009fc00 (639K) searching BIOS @ 0x000f0000 MP FPS found in BIOS @ physical addr: 0x000fc040 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: BIOS physical address: 0x000fc040 signature: '_MP_' length: 16 bytes version: 1.1 checksum: 0x2f mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x000f75f0 signature: 'PCMP' base table length: 292 version: 1.4 checksum: 0x4e OEM ID: 'AMI ' Product ID: 'SERIES-751 ' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 25 local APIC address: 0xfee00000 extended table length: 144 extended table checksum: 167 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 0 0x11 BSP, usable 6 1 9 0xfbff 1 0x11 AP, usable 6 1 9 0xfbff 2 0x11 AP, usable 6 1 9 0xfbff 3 0x11 AP, usable 6 1 9 0xfbff -- Bus: Bus ID Type 0 PCI 1 PCI 2 EISA -- I/O APICs: APIC ID Version State Address 2 0x11 usable 0xfec00000 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# INT conforms conforms 2 1 2 1 INT conforms conforms 2 0 2 2 INT conforms conforms 2 3 2 3 INT conforms conforms 2 4 2 4 INT conforms conforms 2 5 2 5 INT conforms conforms 2 6 2 6 INT conforms conforms 2 7 2 7 INT active-hi edge 2 8 2 8 INT conforms conforms 2 9 2 9 INT conforms conforms 2 10 2 10 INT conforms conforms 2 11 2 11 INT conforms conforms 2 12 2 12 INT conforms conforms 2 13 2 13 INT conforms conforms 2 14 2 14 INT conforms conforms 2 15 2 15 -- Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT conforms conforms 0 0:A 255 0 NMI conforms conforms 0 0:A 255 1 ------------------------------------------------------------------------------- MP Config Extended Table Entries: Extended Table HOSED! mish# ==== Tripple ACK! ==== So, stating the obvious: It appears that the problem is that the APIC and CPU2 share the APIC ID. It also looks like it is claiming MP version 1.1, althought I am fairly certain 1.4 was enabled in the BIOS. I'll have to check that again tomorrow. (ncr1 is the disabled, integrated 875 controller) But that doesn't explain the problem with the extended MP table. So, what can we do about "apic_ipi was stuck"? I doubt taking out the panic will make things "just work". BTW, it gets about 130MB/sec with Fast-Page DRAM (4x64 DIMMs). I can't benchmark SMP until it boots. Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Mon May 4 18:43:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA22104 for freebsd-smp-outgoing; Mon, 4 May 1998 18:43:04 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from smtp2.mailsrvcs.net (smtp2.gte.net [207.115.153.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id SAA21927 for ; Mon, 4 May 1998 18:41:31 -0700 (PDT) (envelope-from orthoefe@gte.net) Received: from moltar.oshea.lan (1Cust50.tnt1.tampa2.fl.da.uu.net [208.251.99.50]) by smtp2.mailsrvcs.net with SMTP id UAA02633; Mon, 4 May 1998 20:40:18 -0500 (CDT) Date: Mon, 4 May 1998 21:43:40 -0400 (EDT) From: Joe Orthoefer X-Sender: orthoefe@moltar.oshea.lan To: "John N. Derr" cc: freebsd-smp@FreeBSD.ORG Subject: Re: Old SMP releases In-Reply-To: <354E3561.10109E97@cc.owu.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Try using the latest 3.0-SNAP from ftp.freebsd.org. Install the snap, then run the "mptable" program to get the kernel config options you'll likely need. Build a new kernel including those options, install it, and reboot. It'll be that simple :) (isn't it always?) On Mon, 4 May 1998, John N. Derr wrote: > I am interested in getting started with using the SMP kernel. The > "Getting started with SMP" > guid suggested using the 970815-SNAP, I was wondering if there is a site > where I can get that release. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-smp" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Tue May 5 22:55:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA14858 for freebsd-smp-outgoing; Tue, 5 May 1998 22:55:42 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from cs.utah.edu (cs.utah.edu [128.110.4.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA14811 for ; Tue, 5 May 1998 22:55:27 -0700 (PDT) (envelope-from vanmaren@fast.cs.utah.edu) Received: from fast.cs.utah.edu (fast.cs.utah.edu [155.99.212.1]) by cs.utah.edu (8.8.7/8.8.7) with SMTP id XAA26539 for ; Tue, 5 May 1998 23:28:25 -0600 (MDT) Received: by fast.cs.utah.edu (8.6.10/utah-2.15-leaf) id XAA03942; Tue, 5 May 1998 23:28:16 -0600 Date: Tue, 5 May 1998 23:28:16 -0600 From: vanmaren@fast.cs.utah.edu (Kevin Van Maren) Message-Id: <199805060528.XAA03942@fast.cs.utah.edu> To: freebsd-smp@FreeBSD.ORG Subject: Re: FreeBSD on Quad SMP Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I installed NT Server 4.0 today to see if it had any problems running. Workstation only found 2 processors, but server found and used all 4 CPUs. The BIOS did have 1.4 selected; mptable likes the BIOS set on 1.1 better, though. I've included the latest output, although the SMP kernel still doesn't work. ==== mptable -verbose -dmesg =============================================================================== MPTable, version 2.0.15 looking for EBDA pointer @ 0x040e, found, searching EBDA @ 0x0009f400 searching CMOS 'top of mem' @ 0x0009f000 (636K) searching default 'top of mem' @ 0x0009fc00 (639K) searching BIOS @ 0x000f0000 MP FPS found in BIOS @ physical addr: 0x000fc040 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: BIOS physical address: 0x000fc040 signature: '_MP_' length: 16 bytes version: 1.1 checksum: 0x2f mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x000f75f0 signature: 'PCMP' base table length: 292 version: 1.1 checksum: 0x88 OEM ID: 'AMI ' Product ID: 'SERIES-751 ' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 25 local APIC address: 0xfee00000 extended table length: 0 extended table checksum: 0 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 0 0x11 BSP, usable 6 1 9 0xfbff 1 0x11 AP, usable 6 1 9 0xfbff 2 0x11 AP, usable 6 1 9 0xfbff 3 0x11 AP, usable 6 1 9 0xfbff -- Bus: Bus ID Type 0 PCI 1 PCI 2 EISA -- I/O APICs: APIC ID Version State Address 2 0x11 usable 0xfec00000 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# INT conforms conforms 2 1 2 1 INT conforms conforms 2 0 2 2 INT conforms conforms 2 3 2 3 INT conforms conforms 2 4 2 4 INT conforms conforms 2 5 2 5 INT conforms conforms 2 6 2 6 INT conforms conforms 2 7 2 7 INT active-hi edge 2 8 2 8 INT conforms conforms 2 9 2 9 INT conforms conforms 2 10 2 10 INT conforms conforms 2 11 2 11 INT conforms conforms 2 12 2 12 INT conforms conforms 2 13 2 13 INT conforms conforms 2 14 2 14 INT conforms conforms 2 15 2 15 -- Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT conforms conforms 0 0:A 255 0 NMI conforms conforms 0 0:A 255 1 ------------------------------------------------------------------------------- # SMP kernel config file options: # Required: options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O # Optional (built-in defaults will work in most cases): #options NCPU=4 # number of CPUs #options NBUS=3 # number of busses #options NAPIC=1 # number of IO APICs #options NINTR=24 # number of INTs ------------------------------------------------------------------------------- dmesg output: Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.0-980426-SNAP #0: Fri May 1 13:46:33 MDT 1998 root@mish.cs.utah.edu:/usr/src/sys/compile/GENERIC Timecounter "i8254" frequency 1193182 Hz cost 5058 ns Timecounter "TSC" frequency 199433253 Hz cost 291 ns CPU: Pentium Pro (199.43-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping=9 Features=0xfbff real memory = 268435456 (262144K bytes) avail memory = 258977792 (252908K bytes) eisa0: Probing for devices on the EISA bus Probing for devices on PCI bus 0: chip0: rev 0x15 on pci0.2.0 fxp0: rev 0x02 int a irq 9 on pci0.5.0 fxp0: Ethernet address 00:a0:c9:86:04:f5 ahc0: rev 0x03 int a irq 11 on pci0.6.0 ahc0: aic7870 Single Channel, SCSI Id=7, 16 SCBs scbus0 at ahc0 bus 0 sd0 at scbus0 target 0 lun 0 sd0: type 0 removable SCSI 2 sd0: Direct-Access sd0: ILLEGAL REQUEST asc:24,0 Invalid field in CDB sd0 could not mode sense (4). Using ficticious geometry 1021MB (2091050 512 byte sectors) ncr0: rev 0x02 int a irq 10 on pci0.7.0 scbus1 at ncr0 bus 0 vga0: rev 0x41 on pci0.9.0 chip1: rev 0x05 on pci0.20.0 chip2: rev 0x06 on pci0.25.0 chip3: rev 0x06 on pci0.26.0 Probing for devices on PCI bus 1: ncr1: rev 0x04 int a irq 5 on pci1.10.0 scbus2 at ncr1 bus 0 sd1 at scbus2 target 0 lun 0 sd1: type 0 fixed SCSI 2 sd1: Direct-Access sd1: WIDE SCSI (16 bit) enabled sd1: 40.0 MB/s (50 ns, offset 15) 4339MB (8887200 512 byte sectors) Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 not found at 0x280 sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A, console sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface psm0: failed to get data. psm0 at 0x60-0x64 irq 12 on motherboard psm0: model Generic PS/2 mouse, device ID 0 fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (atapi): , removable, accel, ovlap, dma, iordy wcd0: 4133/4134Kb/sec, 256Kb cache, audio play, 255 volume levels, ejectable tray wcd0: no disc inside, unlocked wdc1 not found at 0x170 bt0 not found at 0x330 aha0 not found at 0x330 aic0 not found at 0x340 le0 not found at 0x300 npx0 on motherboard npx0: INT 16 interface =============================================================================== ==== boot: kernel.SMP Booting 0:sd(0,a)kernel.SMP @ 0x100000 text=0x11f000 data=0x13000 bss=0x1ca54 symbols=[+0x5ac+0x4+0x146f4+0x4+0x1c433] Can't find file kernel.SMP.config total=0x27fb2f entry point=0x100000 BIOS basemem (637K) != RTC basemem (640K), setting to BIOS value Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.0-980426-SNAP #0: Mon May 4 15:29:26 MDT 1998 root@mish.cs.utah.edu:/usr/src/sys/compile/SMP2 Timecounter "i8254" frequency 1193182 Hz cost 5044 ns CPU: Pentium Pro (686-class CPU) Origin = "GenuineIntel" Id = 0x619 Stepping=9 Features=0xfbff real memory = 268435456 (262144K bytes) avail memory = 258928640 (252860K bytes) EISA INTCONTROL = 00000e20 FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 0, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu2 (AP): apic id: 2, version: 0x00040011, at 0xfee00000 cpu3 (AP): apic id: 3, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x000f0011, at 0xfec00000 eisa0: Probing for devices on the EISA bus Probing for devices on PCI bus 0: chip0: rev 0x15 on pci0.2.0 fxp0: rev 0x02 int a irq 9 on pci0.5.0 fxp0: Ethernet address 00:a0:c9:86:04:f5 ahc0: rev 0x03 int a irq 11 on pci0.6.0 ahc0: aic7870 Single Channel, SCSI Id=7, 16 SCBs scbus0 at ahc0 bus 0 sd0 at scbus0 target 0 lun 0 sd0: type 0 removable SCSI 2 sd0: Direct-Access sd0: ILLEGAL REQUEST asc:24,0 Invalid field in CDB sd0 could not mode sense (4). Using ficticious geometry 1021MB (2091050 512 byte sectors) ncr0: rev 0x02 int a irq 10 on pci0.7.0 scbus1 at ncr0 bus 0 vga0: rev 0x41 on pci0.9.0 chip1: rev 0x05 on pci0.20.0 chip2: rev 0x06 on pci0.25.0 chip3: rev 0x06 on pci0.26.0 Probing for devices on PCI bus 1: ncr1: rev 0x04 int a irq 5 on pci1.10.0 scbus2 at ncr1 bus 0 sd1 at scbus2 target 0 lun 0 sd1: type 0 fixed SCSI 2 sd1: Direct-Access sd1: WIDE SCSI (16 bit) enabled sd1: 40.0 MB/s (50 ns, offset 15) 4339MB (8887200 512 byte sectors) Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> ed0 not found at 0x280 sio0 at 0x3f8-0x3ff irq 4 flags 0x10 on isa sio0: type 16550A, console sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface psm0: failed to get data. psm0 at 0x60-0x64 irq 12 on motherboard psm0: model Generic PS/2 mouse, device ID 0 fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (atapi): , removable, accel, ovlap, dma, iordy wcd0: 4133/4134Kb/sec, 256Kb cache, audio play, 255 volume levels, ejectable tray wcd0: no disc inside, unlocked wdc1 not found at 0x170 bt0 not found at 0x330 aha0 not found at 0x330 aic0 not found at 0x340 le0 not found at 0x300 npx0 on motherboard npx0: INT 16 interface APIC_IO: routing 8254 via pin 2 SMP: AP CPU #1 Launched! SMP: AP CPU #2 Launched! SMP: cpuid = 2 SMP: apic_id = 0 PTD[MPPTDI] = 00993023 panic: cpuid mismatch! boom!! mp_lock = 02000001; cpuid = 2; lapic.id = 02000000 boot() called on cpu#2 I'm on cpu#2, I need to be on cpu#0, sleeping.. Fatal trap 12: page fault while in kernel mode mp_lock = 02000002; cpuid = 2; lapic.id = 02000000 fault virtual address = 0xb8 fault code = supervisor read, page not present instruction pointer = 0x8:0xf0117d9f stack pointer = 0x10:0xff804f74 frame pointer = 0x10:0xff804f88 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = Idle interrupt mask = <- SMP: XXX trap number = 12 panic: page fault mp_lock = 02000002; cpuid = 2; lapic.id = 02000000 Automatic reboot in 15 seconds - press a key on the console to abort === npx0 on motherboard npx0: INT 16 interface APIC_IO: routing 8254 via pin 2 SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! forward_statclock: checkstate 3 panic: apic_ipi was stuck mp_lock = 03000002; cpuid = 3; lapic.id = 03000000 boot() called on cpu#3 I'm on cpu#3, I need to be on cpu#0, sleeping.. I'm on cpu#3, I need to be on cpu#0, sleeping.. I'm on cpu#3, I need to be on cpu#0, sleeping.. I'm on cpu#3, I need to be on cpu#0, sleeping.. I'm on cpu#3, I need to be on cpu#0, sleeping.. [...] I'm on cpu#3, I need to be on cpu#0, sleeping.. timeout waiting for cpu #0! syncing disks... done Automatic reboot in 15 seconds - press a key on the console to abort Rebooting... === Any feedback on what the problem is and/or what to do? I'd call AMI in a heartbeet if NT had failed, but it seemed to work. Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Wed May 6 02:06:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA16162 for freebsd-smp-outgoing; Wed, 6 May 1998 02:06:32 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA16146 for ; Wed, 6 May 1998 02:06:17 -0700 (PDT) (envelope-from jhay@zibbi.mikom.csir.co.za) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.9.0.Beta5/8.9.0.Beta5) id LAA08683; Wed, 6 May 1998 11:05:25 +0200 (SAT) From: John Hay Message-Id: <199805060905.LAA08683@zibbi.mikom.csir.co.za> Subject: Re: FreeBSD on Quad SMP In-Reply-To: <199805060528.XAA03942@fast.cs.utah.edu> from Kevin Van Maren at "May 5, 98 11:28:16 pm" To: vanmaren@fast.cs.utah.edu (Kevin Van Maren) Date: Wed, 6 May 1998 11:05:25 +0200 (SAT) Cc: freebsd-smp@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I installed NT Server 4.0 today to see if it had any problems running. > Workstation only found 2 processors, but server found and used all 4 CPUs. > The BIOS did have 1.4 selected; mptable likes the BIOS set on 1.1 better, > though. I've included the latest output, although the SMP kernel > still doesn't work. > > ==== > mptable -verbose -dmesg > ... > > MP Config Base Table Entries: > > -- > Processors: APIC ID Version State Family Model Step Flags > 0 0x11 BSP, usable 6 1 9 0xfbff > 1 0x11 AP, usable 6 1 9 0xfbff > 2 0x11 AP, usable 6 1 9 0xfbff > 3 0x11 AP, usable 6 1 9 0xfbff ... > -- > I/O APICs: APIC ID Version State Address > 2 0x11 usable 0xfec00000 > ... > > Any feedback on what the problem is and/or what to do? > I'd call AMI in a heartbeet if NT had failed, but it seemed to work. > I think that is because of the APIC ID clash. Your third processor and the I/O APIC have the same ID. According to the MP spec it is the job of the operating system to make sure that there are no id clashes and to change the id of the I/O APIC if it does clash. (section 3.6.6 in the mp spec v1.4) So it is probably FreeBSD's job to move it. John -- John Hay -- John.Hay@mikom.csir.co.za To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Wed May 6 05:58:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id FAA24836 for freebsd-smp-outgoing; Wed, 6 May 1998 05:58:57 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from cs.utah.edu (cs.utah.edu [128.110.4.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id FAA24830 for ; Wed, 6 May 1998 05:58:55 -0700 (PDT) (envelope-from vanmaren@fast.cs.utah.edu) Received: from fast.cs.utah.edu (fast.cs.utah.edu [155.99.212.1]) by cs.utah.edu (8.8.7/8.8.7) with SMTP id GAA01910; Wed, 6 May 1998 06:58:27 -0600 (MDT) Received: by fast.cs.utah.edu (8.6.10/utah-2.15-leaf) id GAA15551; Wed, 6 May 1998 06:58:10 -0600 Date: Wed, 6 May 1998 06:58:10 -0600 From: vanmaren@fast.cs.utah.edu (Kevin Van Maren) Message-Id: <199805061258.GAA15551@fast.cs.utah.edu> To: jhay@mikom.csir.co.za, vanmaren@fast.cs.utah.edu Subject: Re: FreeBSD on Quad SMP Cc: freebsd-smp@FreeBSD.ORG Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > MP Config Base Table Entries: > > > > -- > > Processors: APIC ID Version State Family Model Step Flags > > 0 0x11 BSP, usable 6 1 9 0xfbff > > 1 0x11 AP, usable 6 1 9 0xfbff > > 2 0x11 AP, usable 6 1 9 0xfbff > > 3 0x11 AP, usable 6 1 9 0xfbff > ... > > -- > > I/O APICs: APIC ID Version State Address > > 2 0x11 usable 0xfec00000 > > > ... > > > > Any feedback on what the problem is and/or what to do? > > I'd call AMI in a heartbeet if NT had failed, but it seemed to work. > > > > I think that is because of the APIC ID clash. Your third processor and > the I/O APIC have the same ID. According to the MP spec it is the job > of the operating system to make sure that there are no id clashes and > to change the id of the I/O APIC if it does clash. (section 3.6.6 in > the mp spec v1.4) So it is probably FreeBSD's job to move it. > > John > -- > John Hay -- John.Hay@mikom.csir.co.za > It certainly sounds like I'll have to dust off my copy of the spec and start hacking. I won't have a chance for a day or two, but I'll give it a try. Kevin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Fri May 8 07:11:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA27257 for freebsd-smp-outgoing; Fri, 8 May 1998 07:11:06 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from mail.xmission.com (mail.xmission.com [198.60.22.22]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id HAA27250 for ; Fri, 8 May 1998 07:11:03 -0700 (PDT) (envelope-from seth@pengar.com) Received: from ([192.168.0.2]) [166.70.9.39] by mail.xmission.com with esmtp (Exim 1.82 #2) id 0yXnrb-0007eK-00; Fri, 8 May 1998 08:11:04 -0600 X-Sender: seth-pc@hobbiton.shire.net Message-Id: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Date: Fri, 8 May 1998 08:13:49 +0100 To: freebsd-smp@FreeBSD.ORG From: Seth Leigh Subject: What about the FreeBSD implementation of Pthreads? Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello all. I have been reading a lot about threads and SMP in general lately, and am trying to get an MP motherboard and run the SMP kernel. I have a few questions regarding the implementation of pthreads on FreeBSD. Are all pthreads for a given process independently schedulable among any and all available cpus? If one thread blocks, does the whole process block, or do threads block just themselves? Do we have thread-safe C and C++ libraries? (thread-safe new and delete, malloc and free, etc.?) How complete is the FreeBSD implementation of Pthreads? I just ordered the Dave Butenhof book (Programming with Pthreads), and I want to know if the calls listed and explained in that book will all be available on FreeBSD. Thanks! Seth Leigh seth@pengar.com leighs@iomega.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Fri May 8 16:24:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA09190 for freebsd-smp-outgoing; Fri, 8 May 1998 16:24:24 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from parkplace.cet.co.jp (parkplace.cet.co.jp [202.32.64.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA09118 for ; Fri, 8 May 1998 16:24:04 -0700 (PDT) (envelope-from michaelh@cet.co.jp) Received: from localhost (michaelh@localhost) by parkplace.cet.co.jp (8.8.8/CET-v2.2) with SMTP id XAA12524; Fri, 8 May 1998 23:23:05 GMT Date: Sat, 9 May 1998 08:23:04 +0900 (JST) From: Michael Hancock To: Seth Leigh cc: freebsd-smp@FreeBSD.ORG Subject: Re: What about the FreeBSD implementation of Pthreads? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The current implementation only has one execution context per process. A two-level implementation is in the works. Regards, Mike On Fri, 8 May 1998, Seth Leigh wrote: > Hello all. > I have been reading a lot about threads and SMP in general lately, and am > trying to get an MP motherboard and run the SMP kernel. I have a few > questions regarding the implementation of pthreads on FreeBSD. > > Are all pthreads for a given process independently schedulable among any > and all available cpus? > > If one thread blocks, does the whole process block, or do threads block > just themselves? > > Do we have thread-safe C and C++ libraries? (thread-safe new and delete, > malloc and free, etc.?) > > How complete is the FreeBSD implementation of Pthreads? I just ordered the > Dave Butenhof book (Programming with Pthreads), and I want to know if the > calls listed and explained in that book will all be available on FreeBSD. > > Thanks! > > Seth Leigh > seth@pengar.com > leighs@iomega.com > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-smp" in the body of the message > -- michaelh@cet.co.jp http://www.cet.co.jp CET Inc., Daiichi Kasuya BLDG 8F, 2-5-12 Higashi Shinbashi, Minato-ku, Tokyo 105 Japan Tel: +81-3-3437-1761 Fax: +81-3-3437-1766 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message