From owner-freebsd-current@FreeBSD.ORG Tue Nov 30 11:29:47 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A6FF116A4CE for ; Tue, 30 Nov 2004 11:29:47 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07F5D43D3F for ; Tue, 30 Nov 2004 11:29:47 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by rproxy.gmail.com with SMTP id b11so485416rne for ; Tue, 30 Nov 2004 03:29:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=W5FfflwdTq4gyGRr3t0eoVzynBuWJXu9gPR+lFjpcBqqgAjb2tdACyuCwMsZxdJN/FBzcHVzAPqXItk1A31IO409MK8+Hu3N7oCwABwbotA0B10w0Ph4g6oyFX+0fQzmoSKBXHXTR9Op+sgqJMkwouX5r8vn/P+kuXCQjs1GOgM= Received: by 10.38.162.18 with SMTP id k18mr425544rne; Tue, 30 Nov 2004 03:29:45 -0800 (PST) Received: by 10.38.13.6 with HTTP; Tue, 30 Nov 2004 03:29:45 -0800 (PST) Message-ID: <84dead720411300329249d4bf3@mail.gmail.com> Date: Tue, 30 Nov 2004 16:59:45 +0530 From: Joseph Koshy To: freebsd-current Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_769_12954910.1101814185802" Subject: Dual CPU detection problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Joseph Koshy List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Nov 2004 11:29:47 -0000 ------=_Part_769_12954910.1101814185802 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline Strange problem. On an IBM xSeries 335 machine with TWO P4 HTT cpus (mptable, dmesg output enclosed) FreeBSD -CURRENT will sometimes detect both the physical CPUs and will sometimes detect only one. FreeBSD 5.3 reliably detects the 2 physical / 4 logical CPUs that are present. Any suggestions on how to debug this? ------=_Part_769_12954910.1101814185802 Content-Type: text/plain; name=mptable.txt; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="mptable.txt" =============================================================================== MPTable, version 2.0.15 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: EBDA physical address: 0x0009e140 signature: '_MP_' length: 16 bytes version: 1.4 checksum: 0x97 mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x0009f010 signature: 'PCMP' base table length: 260 version: 1.4 checksum: 0x36 OEM ID: 'IBM ENSW' Product ID: 'TURQUIOSESMP' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 24 local APIC address: 0xfee00000 extended table length: 208 extended table checksum: 84 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 0 0x14 BSP, usable 15 2 9 0x0301 6 0x14 AP, usable 15 2 9 0x0301 -- Bus: Bus ID Type 0 PCI 1 PCI 2 PCI 3 ISA -- I/O APICs: APIC ID Version State Address 14 0x11 usable 0xfec00000 13 0x11 usable 0xfec01000 12 0x11 usable 0xfec02000 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# INT conforms conforms 3 1 14 1 INT conforms conforms 3 0 14 2 INT conforms conforms 3 4 14 4 INT conforms conforms 3 6 14 6 INT conforms conforms 3 8 14 8 INT conforms conforms 3 12 14 12 INT conforms conforms 3 13 14 13 INT conforms conforms 3 14 14 14 INT conforms conforms 3 15 14 15 INT conforms conforms 0 1:A 13 10 INT conforms conforms 0 15:A 14 10 INT conforms conforms 2 1:A 13 8 INT conforms conforms 2 2:A 13 9 -- Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# NMI conforms conforms 3 0 255 1 ExtINT conforms conforms 3 0 255 0 ------------------------------------------------------------------------------- MP Config Extended Table Entries: -- System Address Space bus ID: 0 address type: memory address address base: 0xa0000 address range: 0x20000 -- System Address Space bus ID: 0 address type: memory address address base: 0xc8000 address range: 0x18000 -- System Address Space bus ID: 0 address type: memory address address base: 0xfc000000 address range: 0x4000000 -- System Address Space bus ID: 2 address type: memory address address base: 0xfa000000 address range: 0x2000000 -- System Address Space bus ID: 0 address type: I/O address address base: 0x0 address range: 0x3b0 -- System Address Space bus ID: 0 address type: I/O address address base: 0x3b0 address range: 0xc -- System Address Space bus ID: 0 address type: I/O address address base: 0x3bc address range: 0x4 -- System Address Space bus ID: 0 address type: I/O address address base: 0x3c0 address range: 0x20 -- System Address Space bus ID: 0 address type: I/O address address base: 0x3e0 address range: 0x1f20 -- System Address Space bus ID: 2 address type: I/O address address base: 0x2300 address range: 0xdd00 -- Bus Heirarchy bus ID: 3 bus info: 0x01 parent bus ID: 0 =============================================================================== ------=_Part_769_12954910.1101814185802 Content-Type: text/plain; name=dmesg-current.txt; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="dmesg-current.txt" Copyright (c) 1992-2004 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 6.0-CURRENT #23: Tue Nov 30 16:06:14 IST 2004 root@mismatcher.hq.netapp.com:/usr/obj/home/fcpi/src/sys/MISMATCHER WARNING: WITNESS option enabled, expect reduced performance. Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 3.06GHz (3056.50-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 Features=0xbfebfbff Hyperthreading: 2 logical CPUs real memory = 1610530816 (1535 MB) avail memory = 1573531648 (1500 MB) MPTable: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 6 ioapic0: Assuming intbase of 0 ioapic1: Assuming intbase of 16 ioapic2: Assuming intbase of 32 ioapic2 irqs 32-47 on motherboard ioapic1 irqs 16-31 on motherboard ioapic0 irqs 0-15 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface pcib0: pcibus 0 on motherboard pci0: on pcib0 pci0: at device 1.0 (no driver attached) atapci0: port 0x700-0x70f,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 15.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 pci0: at device 15.2 (no driver attached) isab0: at device 15.3 on pci0 isa0: on isab0 pcib3: pcibus 3 on motherboard pci3: on pcib3 pcib1: pcibus 1 on motherboard pci1: on pcib1 pcib2: pcibus 2 on motherboard pci2: on pcib2 bge0: mem 0xfbff0000-0xfbffffff irq 24 at device 1.0 on pci2 miibus0: on bge0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge0: Ethernet address: 00:0d:60:d5:93:ce bge1: mem 0xfbfe0000-0xfbfeffff irq 25 at device 2.0 on pci2 miibus1: on bge1 brgphy1: on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge1: Ethernet address: 00:0d:60:d5:93:cf cpu0 on motherboard cpu1 on motherboard orm0: at iomem 0xc0000-0xc7fff on isa0 pmtimer0 on isa0 atkbdc0: at port 0x64,0x60 on isa0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model IntelliMouse Explorer, device ID 4 fdc0: at port 0x3f0-0x3f5 irq 6 drq 2 on isa0 fdc0: [FAST] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio0 at port 0x3f8-0x3ff irq 4 flags 0x90 on isa0 sio0: type 16550A sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 unknown: can't assign resources (port) unknown: can't assign resources (port) unknown: can't assign resources (irq) unknown: can't assign resources (port) Timecounters tick every 1.000 msec ad0: 38162MB [77536/16/63] at ata0-master UDMA100 acd0: CDROM at ata1-master UDMA33 SMP: AP CPU #1 Launched! Trying to mount root from ufs:/dev/ad0s1d ohci0: mem 0xfebfe000-0xfebfefff irq 10 at device 15.2 on pci0 ohci0: [GIANT-LOCKED] usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered ------=_Part_769_12954910.1101814185802--