From owner-freebsd-current@FreeBSD.ORG Tue Oct 4 15:05:46 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org 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 704BB16A41F; Tue, 4 Oct 2005 15:05:46 +0000 (GMT) (envelope-from mike@sentex.net) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.FreeBSD.org (Postfix) with ESMTP id 74B9243D46; Tue, 4 Oct 2005 15:05:45 +0000 (GMT) (envelope-from mike@sentex.net) Received: from pumice6.sentex.ca (pumice6.sentex.ca [64.7.153.21]) by smarthost1.sentex.ca (8.13.3/8.13.3) with ESMTP id j94F5iiN021632; Tue, 4 Oct 2005 11:05:44 -0400 (EDT) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (pyroxene.sentex.ca [199.212.134.18]) by pumice6.sentex.ca (8.13.3/8.13.3) with ESMTP id j94F5iG7027790; Tue, 4 Oct 2005 11:05:44 -0400 (EDT) (envelope-from mike@sentex.net) Received: from simian.sentex.net (simeon.sentex.ca [192.168.43.27]) by lava.sentex.ca (8.13.3/8.13.3) with ESMTP id j94F5gSr061431 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 4 Oct 2005 11:05:42 -0400 (EDT) (envelope-from mike@sentex.net) Message-Id: <6.2.3.4.0.20051004104724.083c6ba8@64.7.153.2> X-Mailer: QUALCOMM Windows Eudora Version 6.2.3.4 Date: Tue, 04 Oct 2005 11:05:07 -0400 To: Jung-uk Kim , obrien@freebsd.org From: Mike Tancsa In-Reply-To: <200509261626.47937.jkim@FreeBSD.org> References: <200509211550.27524.jkim@FreeBSD.org> <20050926160431.GA1649@dragon.NUXI.org> <200509261626.47937.jkim@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: by amavisd-new X-Scanned-By: MIMEDefang 2.51 on 64.7.153.18 X-Scanned-By: MIMEDefang 2.53 on 64.7.153.21 Cc: freebsd-current@freebsd.org Subject: Re: AMD/Intel multicore detection (Was: Re: [PATCH] AMD multicore detection) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 15:05:46 -0000 At 04:26 PM 26/09/2005, Jung-uk Kim wrote: >Okay. I have a new patch here: > >http://people.freebsd.org/~jkim/multicore-20050926.diff > >I removed mp_machdep.c patch and added proper multicore identification >for both AMD and Intel CPUs. I hope this does not overlap with your >work. Please review/test. Hi, Just got an AMD 3800 X2 to test with. Running just a beta5 kernel from a few days ago does not see the second CPU and nor does it with your latest patch Running the cpuid program shows ./a.out CPUID function %eax %ebx %ecx %edx -------------------------------------------------- 0h 00000001 68747541 444d4163 69746e65 1h 00020fb1 00000800 00000001 078bfbff 8000_0000h 80000018 68747541 444d4163 69746e65 8000_0001h 00020fb1 00000150 00000001 e3d3fbff 8000_0002h 20444d41 6d6d6148 46207265 6c696d61 8000_0003h 72702079 7365636f 20726f73 6f4d202d 8000_0004h 206c6564 6e6b6e55 006e776f 00000000 8000_0005h ff08ff08 ff20ff20 40020140 40020140 8000_0006h 00000000 42004200 02008140 00000000 8000_0007h 00000000 00000000 00000000 0000000f 8000_0008h 00003028 00000000 00000001 00000000 8000_0009h 00000000 00000000 00000000 00000000 8000_000ah 00000000 00000000 00000000 00000000 8000_000bh 00000000 00000000 00000000 00000000 8000_000ch 00000000 00000000 00000000 00000000 8000_000dh 00000000 00000000 00000000 00000000 8000_000eh 00000000 00000000 00000000 00000000 8000_000fh 00000000 00000000 00000000 00000000 8000_0010h 00000000 00000000 00000000 00000000 8000_0011h 00000000 00000000 00000000 00000000 8000_0012h 00000000 00000000 00000000 00000000 8000_0013h 00000000 00000000 00000000 00000000 8000_0014h 00000000 00000000 00000000 00000000 8000_0015h 00000000 00000000 00000000 00000000 8000_0016h 00000000 00000000 00000000 00000000 8000_0017h 00000000 00000000 00000000 00000000 8000_0018h 00000000 00000000 00000000 00000000 # dmesg Copyright (c) 1992-2005 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-BETA5 #0: Wed Sep 28 17:49:46 EDT 2005 mdtancsa@formerly-itx-vpn.sentex.ca:/usr/obj/usr/src/sys/smp Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Hammer Family processor - Model Unknown (1999.79-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20fb1 Stepping = 1 Features=0x78bfbff Features2=0x1 AMD Features=0xe2500800,LM,3DNow+,3DNow> real memory = 1055850496 (1006 MB) avail memory = 1024147456 (976 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 21 ACPI-0438: *** Error: Looking up [\\_SB_.PCI0.LPC0.LNK0] in namespace, AE_NOT_FOUND SearchNode 0xc22d25c0 StartNode 0xc22d25c0 ReturnNode 0 acpi0: Power Button (fixed) pci_link0: irq 0 on acpi0 pci_link1: irq 0 on acpi0 pci_link2: irq 0 on acpi0 pci_link3: irq 0 on acpi0 pci_link4: irq 0 on acpi0 pci_link5: irq 0 on acpi0 pci_link6: irq 11 on acpi0 pci_link7: irq 5 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) pci0: at device 19.0 (no driver attached) pci0: at device 19.1 (no driver attached) ehci0: mem 0xfe02d000-0xfe02dfff irq 19 at device 19.2 on pci0 ehci0: [GIANT-LOCKED] usb0: EHCI version 1.0 usb0: wrong number of companions (2 != 0) usb0: on ehci0 usb0: USB revision 2.0 uhub0: (0x1002) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub0: 8 ports with 8 removable, self powered pci0: at device 20.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfd00-0xfd0f at device 20.1 on pci0 ata0: on atapci0 ata1: on atapci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib2: at device 20.4 on pci0 pci2: on pcib2 rl0: port 0xdf00-0xdfff mem 0xfddff000-0xfddff0ff irq 22 at device 5.0 on pci2 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:14:2a:1a:49:f6 fwohci0: mem 0xfddfe000-0xfddfe7ff,0xfddf8000-0xfddfbfff irq 23 at device 6.0 on pci2 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:00:0a:e6:ff:33:76:4b fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:00:0a:33:76:4b fwe0: Ethernet address: 02:00:0a:33:76:4b fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pci0: at device 20.5 (no driver attached) acpi_tz0: on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A, console sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 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 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xccfff,0xd0000-0xd3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1999790735 Hz quality 800 Timecounters tick every 1.000 msec Fast IPsec: Initialized Security Association Processing. ad0: 38166MB at ata0-master UDMA33 Trying to mount root from ufs:/dev/ad0s1a rl0: link state changed to DOWN rl0: link state changed to UP and with your patch, still no difference dmesg Copyright (c) 1992-2005 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-BETA5 #1: Tue Oct 4 10:54:37 EDT 2005 mdtancsa@formerly-itx-vpn.sentex.ca:/usr/obj/usr/src/sys/smp Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Hammer Family processor - Model Unknown (1999.79-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x20fb1 Stepping = 1 Features=0x78bfbff Features2=0x1 AMD Features=0xe2500800 real memory = 1055850496 (1006 MB) avail memory = 1024147456 (976 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Overriding SCI Interrupt from IRQ 9 to IRQ 21 ACPI-0438: *** Error: Looking up [\\_SB_.PCI0.LPC0.LNK0] in namespace, AE_NOT_FOUND SearchNode 0xc22d25c0 StartNode 0xc22d25c0 ReturnNode 0 acpi0: Power Button (fixed) pci_link0: irq 0 on acpi0 pci_link1: irq 0 on acpi0 pci_link2: irq 0 on acpi0 pci_link3: irq 0 on acpi0 pci_link4: irq 0 on acpi0 pci_link5: irq 0 on acpi0 pci_link6: irq 11 on acpi0 pci_link7: irq 5 on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_throttle0: on cpu0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 5.0 (no driver attached) pci0: at device 19.0 (no driver attached) pci0: at device 19.1 (no driver attached) ehci0: mem 0xfe02d000-0xfe02dfff irq 19 at device 19.2 on pci0 ehci0: [GIANT-LOCKED] usb0: EHCI version 1.0 usb0: wrong number of companions (2 != 0) usb0: on ehci0 usb0: USB revision 2.0 uhub0: (0x1002) EHCI root hub, class 9/0, rev 2.00/1.00, addr 1 uhub0: 8 ports with 8 removable, self powered pci0: at device 20.0 (no driver attached) atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfd00-0xfd0f at device 20.1 on pci0 ata0: on atapci0 ata1: on atapci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib2: at device 20.4 on pci0 pci2: on pcib2 rl0: port 0xdf00-0xdfff mem 0xfddff000-0xfddff0ff irq 22 at device 5.0 on pci2 miibus0: on rl0 rlphy0: on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto rl0: Ethernet address: 00:14:2a:1a:49:f6 fwohci0: mem 0xfddfe000-0xfddfe7ff,0xfddf8000-0xfddfbfff irq 23 at device 6.0 on pci2 fwohci0: OHCI version 1.10 (ROM=1) fwohci0: No. of Isochronous channels is 4. fwohci0: EUI64 00:00:0a:e6:ff:33:76:4b fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 fwe0: on firewire0 if_fwe0: Fake Ethernet address: 02:00:0a:33:76:4b fwe0: Ethernet address: 02:00:0a:33:76:4b fwe0: if_start running deferred for Giant sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) pci0: at device 20.5 (no driver attached) acpi_tz0: on acpi0 fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FAST] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A, console sio1: <16550A-compatible COM port> port 0x2f8-0x2ff irq 3 on acpi0 sio1: type 16550A ppc0: port 0x378-0x37f,0x778-0x77b irq 7 drq 3 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 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] pmtimer0 on isa0 orm0: at iomem 0xc0000-0xccfff,0xd0000-0xd3fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounter "TSC" frequency 1999787075 Hz quality 800 Timecounters tick every 1.000 msec Fast IPsec: Initialized Security Association Processing. ad0: 38166MB at ata0-master UDMA33 Trying to mount root from ufs:/dev/ad0s1a MB is an RS480-M with ATI chipset. http://www.ecs.com.tw/ECSWeb/Products/ProductsDetail.aspx?MenuID=90&LanID=0&DetailID=506&DetailName=BIOS