From owner-freebsd-smp@FreeBSD.ORG Sun Jun 8 09:14:22 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 515CB37B401 for ; Sun, 8 Jun 2003 09:14:22 -0700 (PDT) Received: from chiller.chillinthemost.com (dsl093-024-089.hou1.dsl.speakeasy.net [66.93.24.89]) by mx1.FreeBSD.org (Postfix) with SMTP id ACB2443FD7 for ; Sun, 8 Jun 2003 09:14:21 -0700 (PDT) (envelope-from thechiller@chillinthemost.com) Received: (qmail 21164 invoked by uid 80); 8 Jun 2003 16:14:03 -0000 Date: 8 Jun 2003 16:14:03 -0000 Message-ID: <20030608161403.21163.qmail@chiller.chillinthemost.com> From: "Stefan" To: "FreeBSD-SMP" X-Mailer: NeoMail 1.25 X-IPAddress: 66.93.24.89 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: Terminate ACPI hangs on Tyan S1834 SMP Kernel X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: thechiller@chillinthemost.com List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2003 16:14:22 -0000 Hello, I was wondering if anyone might know of any special options I should set when building an SMP kernel using a Tyan S1834 board? I enabled the default SMP options in the GENERIC kernel config and the machine runs fine but it hangs when I do a shutdown -r or shutdown -h It looks as if the system hangs when it tries to terminate ACPI To double check I recompiled the kernel without SMP and the system shutdown fine. I would appreciate any info. Thanks, Stefan From owner-freebsd-smp@FreeBSD.ORG Tue Jun 10 05:20:56 2003 Return-Path: Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A9F4D37B404; Tue, 10 Jun 2003 05:20:56 -0700 (PDT) Received: from humphrey.dyndns.org (12-211-118-21.client.attbi.com [12.211.118.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 263CA43FE0; Tue, 10 Jun 2003 05:20:54 -0700 (PDT) (envelope-from wendy.humphrey@comcast.net) Received: from bigboot.humphrey.world (bigboot.humphrey.world [192.168.8.3]) h5A5GYj03236; Mon, 9 Jun 2003 22:16:34 -0700 (PDT) From: Brendon and Wendy To: freebsd-current@freebsd.org Date: Mon, 9 Jun 2003 22:17:08 -0700 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200306092217.08270.wendy.humphrey@comcast.net> cc: freebsd-smp@freebsd.org Subject: Twin CPU machine running with only one cpu? X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 12:20:57 -0000 Dear All, Just installed 5.1 RC1 on my Dual Prestonia Xeon box. Works great. In fact this is the first time i've had much success with the 5.x branch. Anyway, heres my question. Despite the fact that I've recompiled my kernel with SMP and IOAPIC enabled, I seem to have only one CPU running. At boot time the kernel reports starting CPU#1 at the end of boot time. The machdep.* systctls claim that I have two cpus, but no matter what I do I cannot get the CPU load over 48% (for instance running two c programs that loop infinitely with no delay)! Running top shows the "C" column that one only normally gets in SMP mode. However all processes are assigned to CPU zero. Is it possible that the system is using two cores on one CPU only? HTT is disabled in the BIOS... I've tried with/without ACPI. MPS 1.1/1.4/upgrading to this evenings current with no change (did not do a buildworld after current might start one when this mail is sent). The machine is a SuperMicro p4dce+. It has run SMP normally in 4.8 as well as older revisions of 5.x (where is tended to panic a lot!). Exerpts from boot process, top and sysctl are below..... Thanks for any clues or suggestions. Regards, Brendon /------------------------------------------------------------------------------------------------------------- / top /------------------------------------------------------------------------------------------------------------- last pid: 1232; load averages: 0.01, 0.11, 0.13 up 0+00:18:34 22:12:15 43 processes: 3 running, 40 sleeping CPU states: 0.5% user, 0.0% nice, 0.5% system, 0.2% interrupt, 98.8% idle Mem: 105M Active, 116M Inact, 58M Wired, 1120K Cache, 60M Buf, 215M Free Swap: 1003M Total, 1003M Free PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND 1158 brendy 96 0 26948K 22716K select 0 0:02 0.05% 0.05% kdeinit 955 root 96 0 276M 31060K RUN 0 0:09 0.00% 0.00% XFree86 1160 brendy 96 0 36444K 31620K select 0 0:07 0.00% 0.00% kmail 1112 brendy 96 0 27180K 22352K select 0 0:04 0.00% 0.00% kdeinit 1182 brendy 96 0 35776K 31140K select 0 0:02 0.00% 0.00% kdeinit 1140 brendy 60 -36 8308K 7512K select 0 0:02 0.00% 0.00% artsd 1150 brendy 96 0 29116K 24360K select 0 0:01 0.00% 0.00% kdeinit 1148 brendy 96 0 27924K 23748K select 0 0:01 0.00% 0.00% kdeinit 1146 brendy 96 0 27180K 22500K select 0 0:01 0.00% 0.00% kdeinit 953 root 96 0 2336K 1672K select 0 0:01 0.00% 0.00% top 1213 brendy 96 0 28172K 23336K RUN 0 0:00 0.00% 0.00% kdeinit 1154 brendy 96 0 26316K 21720K select 0 0:00 0.00% 0.00% kdeinit 1156 brendy 96 0 25596K 20736K select 0 0:00 0.00% 0.00% kdeinit 1142 brendy 96 0 29284K 23956K select 0 0:00 0.00% 0.00% kdeinit 1145 brendy 96 0 25496K 20556K select 0 0:00 0.00% 0.00% kdeinit 1103 brendy 96 0 23676K 18376K select 0 0:00 0.00% 0.00% kdeinit 1106 brendy 96 0 23372K 18044K select 0 0:00 0.00% 0.00% kdeinit /------------------------------------------------------------------------------------------------------------- / dmesg /------------------------------------------------------------------------------------------------------------- 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.1-CURRENT #1: Mon Jun 9 21:41:13 PDT 2003 root@bigboot.humphrey.world:/usr/obj/usr/src/sys/SMP Preloaded elf kernel "/boot/kernel/kernel" at 0xc0794000. Preloaded elf module "/boot/kernel/linux.ko" at 0xc07941f4. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc07942a0. Timecounter "i8254" frequency 1193182 Hz Timecounter "TSC" frequency 1982523548 Hz CPU: Intel(R) XEON(TM) CPU 2.00GHz (1982.52-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 Features=0x3febfbff Hyperthreading: 2 logical CPUs real memory = 536805376 (511 MB) avail memory = 513204224 (489 MB) Programming 24 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00050014, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00178020, at 0xfec00000 Pentium Pro MTRR support enabled npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard pcibios: BIOS version 2.10 Using $PIR table, 9 entries at 0xc00fded0 acpi0: power button is handled as a fixed feature programming model. Timecounter "ACPI-fast" frequency 3579545 Hz acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 acpi_cpu0: port 0x530-0x537 on acpi0 acpi_cpu1: port 0x530-0x537 on acpi0 acpi_cpu2: port 0x530-0x537 on acpi0 acpi_cpu3: port 0x530-0x537 on acpi0 acpi_tz0: on acpi0 acpi_button0: on acpi0 pcib0: port 0x4000-0x40f7,0xcf8-0xcff on acpi0 pci0: on pcib0 IOAPIC #0 intpin 19 -> irq 2 IOAPIC #0 intpin 23 -> irq 3 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 IOAPIC #0 intpin 22 -> irq 5 pci1: at device 0.0 (no driver attached) pcib2: at device 2.0 on pci0 pcib2: could not get PCI interrupt routing table for \\_SB_.PCI0.HUBA - AE_NOT_FOUND pci2: on pcib2 pcib3: at device 31.0 on pci2 ACPI-0188: *** Error: No object was returned from [\\_SB_.PCI0.HUBA.HUBB._PRT] (Node 0xc401e0c0), AE_NOT_EXIST pcib3: could not get PCI interrupt routing table for \\_SB_.PCI0.HUBA.HUBB - AE_NOT_EXIST pci3: on pcib3 pci3: at device 0.0 (no driver attached) pcib4: at device 30.0 on pci0 pci4: on pcib4 IOAPIC #0 intpin 17 -> irq 7 IOAPIC #0 intpin 16 -> irq 10 pcm0: port 0xc000-0xc01f irq 7 at device 1.0 on pci4 pcm0: fxp0: port 0xc800-0xc83f mem 0xe7000000-0xe70fffff,0xe7105000-0xe7105fff irq 10 at device 4.0 on pci4 fxp0: Ethernet address 00:30:48:23:23:ca miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fwohci0: mem 0xe7100000-0xe7103fff,0xe7104000-0xe71047ff irq 10 at device 7.0 on pci4 fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channel is 4. fwohci0: EUI64 00:30:95:26:b0:03:35:68 fwohci0: Phy 1394a available S400, 3 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 if_fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:30:95:03:35:68 sbp0: on firewire0 fwohci0: Initiate bus reset isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xf000-0xf00f at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 uhci0: port 0xd000-0xd01f irq 2 at device 31.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uscanner0: EPSON EPSON Scanner, rev 1.10/1.00, addr 2 pci0: at device 31.3 (no driver attached) uhci1: port 0xd400-0xd41f irq 3 at device 31.4 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: flags 0x1 irq 1 on atkbdc0 kbd0 at atkbd0 psm0: irq 12 on atkbdc0 psm0: model IntelliMouse, device ID 3 orm0: