Subject: Re: NetBSD 1.6ZE + HyperThreading
To: Christos Zoulas <christos@zoulas.com>
From: Pawel Kurczak <kura@cyberion.pl>
List: regional-pl
Date: 10/28/2003 19:32:42
No, system sie odpalil... wykryl dwa procesory, a znow sa bledy
:) mianowicie.

NetBSD 1.6ZE (aural) #3: Tue Oct 28 19:02:55 CET 2003
        root@aural:/usr/src/sys/arch/i386/compile/aural
total memory = 510 MB
avail memory = 470 MB
using 6144 buffers containing 26252 KB of memory
BIOS32 rev. 0 found at 0xf0010
mainbus0 (root)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium 4 (686-class), 2394.11 MHz, id 0xf29
cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64b/line 4-way
cpu0: L2 cache 512 KB 64b/line 8-way
cpu0: ITLB 4K/4M: 64 entries
cpu0: DTLB 4K/4M: 64 entries
cpu0: calibrating local timer
cpu0: apic clock running at 199 MHz
cpu0: 16 page colors
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Pentium 4 (686-class), 2394.01 MHz, id 0xf29
cpu1: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
cpu1: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
cpu1: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
cpu1: I-cache 12K uOp cache 8-way, D-cache 8 KB 64b/line 4-way
cpu1: L2 cache 512 KB 64b/line 8-way
cpu1: ITLB 4K/4M: 64 entries
cpu1: DTLB 4K/4M: 64 entries
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 20, 24 pins
mainbus0: Intel MP Specification (Version 1.4) (         Springdale-G)
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type PCI   
mpbios: bus 2 is type PCI   
mpbios: bus 3 is type ISA   
acpi0 at mainbus0
acpi0: using Intel ACPI CA subsystem version 20030228
acpi0: X/RSDT: OemId <INTEL ,D865PERL,20030502>, AslId <MSFT,00000097>
acpi0: SCI interrupting at int 9
acpi0: fixed-feature power button present
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpi: activated PNP0C0F
acpi: activated PNP0C0F
acpi: activated PNP0C0F
acpi: activated PNP0C0F
PNP0A03 at acpi0 not configured
PNP0000 at acpi0 not configured
PNP0200 at acpi0 not configured
PNP0100 at acpi0 not configured
PNP0B00 at acpi0 not configured
PNP0303 at acpi0 not configured
PNP0F03 at acpi0 not configured
PNP0800 at acpi0 not configured
PNP0C04 at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
ACPI Object Type 'Power' (0x0b) at acpi0 not configured
PNP0C02 at acpi0 not configured
INT0800 at acpi0 not configured
PNP0C02 at acpi0 not configured
PNP0C01 at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0F at acpi0 not configured
PNP0C0E at acpi0 not configured
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82865 Host (rev. 0x02)
pchb0: random number generator enabled
agp0 at pchb0: aperture at 0xf8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82865 AGP (rev. 0x02)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Nvidia Corporation GeForce FX 5200
(rev. 0xa1)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
Intel 82801EB/ER USB UHCI Controller #0 (USB serial bus, revision 0x02) at
pci0 dev 29 function 0 not configured
Intel 82801EB/ER USB UHCI Controller #1 (USB serial bus, revision 0x02) at
pci0 dev 29 function 1 not configured
Intel 82801EB/ER USB UHCI Controller #2 (USB serial bus, revision 0x02) at
pci0 dev 29 function 2 not configured
Intel 82801EB/ER USB UHCI Controller #3 (USB serial bus, revision 0x02) at
pci0 dev 29 function 3 not configured
ppb1 at pci0 dev 30 function 0: Intel 82801BA Hub-to-PCI Bridge
(rev. 0xc2)
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled
rtk0 at pci2 dev 2 function 0: RealTek 8139 10/100BaseTX
rtk0: interrupting at ioapic0 pin 17 (irq 5)
rtk0: Ethernet address 00:10:a7:03:0b:09
ukphy0 at rtk0 phy 7: Generic IEEE 802.3u media interface
ukphy0: OUI 0x000000, model 0x0000, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
emuxki0 at pci2 dev 3 function 0: Creative Labs SBLive! EMU 10000 (audio
multimedia, revision 0x07)
emuxki0: interrupting at ioapic0 pin 19 (irq 9)
emuxki0: ac97: SigmaTel STAC9708 codec; 18 bit DAC, 18 bit ADC, SigmaTel
3D
emuxki0: ac97: ext id 80<SDAC>
audio0 at emuxki0: full duplex, mmap, independent
Creative Labs PCI Gameport Joystick (miscellaneous input, revision
0x07) at pci2 dev 3 function 1 not configured
pcib0 at pci0 dev 31 function 0
pcib0: Intel 82801EB LPC Interface Bridge (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801EB IDE Controller (ICH5) (rev. 0x02)
piixide0: bus-master DMA support present
piixide0: primary channel wired to compatibility mode
piixide0: primary channel interrupting at ioapic0 pin 14 (irq 14)
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at ioapic0 pin 15 (irq 15)
atabus1 at piixide0 channel 1
piixide1 at pci0 dev 31 function 2
piixide1: Intel 82801EB Serial ATA Controller (rev. 0x02)
piixide1: bus-master DMA support present
piixide1: primary channel configured to native-PCI mode
piixide1: using ioapic0 pin 18 (irq 10) for native-PCI interrupt
atabus2 at piixide1 channel 0
piixide1: secondary channel configured to native-PCI mode
atabus3 at piixide1 channel 1
Intel 82801EB/ER SMBus Controller (SMBus serial bus, revision 0x02) at
pci0 dev 31 function 3 not configured
isa0 at pcib0
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
npx0 at isa0 port 0xf0-0xff: using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
ioapic0: enabling
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
wd0 at atabus0 drive 1: <ST380021A>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd0(piixide0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using
DMA data transfers)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <SAMSUNG DVD-ROM SD-616F, , F100> cdrom
removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd1 at atapibus0 drive 1: <LITE-ON LTR-16101B, , TS0W> cdrom removable
cd1: 32-bit data port
cd1: drive supports PIO mode 4, DMA mode 2
cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using
DMA data transfers)
cd1(piixide0:1:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
wd1 at atabus2 drive 0: <WDC WD360GD-00FNA0>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 35304 MB, 71730 cyl, 16 head, 63 sec, 512 bytes/sect x 72303840
sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
wd1(piixide1:0:0): using PIO mode 4, Ultra-DMA mode 6 (Ultra/133) (using
DMA data transfers)
boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
cpu1: CPU 1 running
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
usl_detachtimeout
usl_detachack: not detaching
usl_detachtimeout
usl_detachack: not detaching


To jest caly dmesg, jak widac cos sie pluje do acpi, czyzby nie znal mojej
plyty? kolejna sprawa...

load averages:  0.34,  0.44,  0.38 19:30:39
67 processes:  1 runnable, 65 sleeping, 1 on processor
CPU states:  0.0% user,  0.0% nice,  0.0% system, 36.8% interrupt, 63.2%
idle
Memory: 84M Act, 1144K Wired, 15M Exec, 34M File, 377M Free
Swap: 129M Total, 129M Free

strasznie duzo procka na przerwaniu wpieprza, TOP pokazuje statsy tylko z
jednego procesora, a raczej sa one laczne z dwoch procesorow, a powinno
byc CPU0 CPU1, a widac ze na procesorze numer 1 (z HT) sa odpalone jakies
procesy. Nastepnie.... hw.ncpu = 2 z sysloga... oczywiscie tak sie dzieje,
po zpatchowaniu kernela, ponizszym patchem...


Pozdrawiam.

-- Qra

#!/usr/bin/perl
$_=q<Pawel Kurczak | kura@openbsd.net.pl | kura@cyberion.pl | gg#1458779>;
$.=q<print "#!/usr/bin/perl \n\$_=q<$_>;\n\$.=q<$.>;\n$.\n";>;
print "#!/usr/bin/perl \n\$_=q<$_>;\n\$.=q<$.>;\n$.\n";


On Tue, 28 Oct 2003, Christos Zoulas wrote:

> In article <Pine.LNX.4.21.0310280111450.22843-100000@cyberion.pl>,
> Pawel Kurczak <kura@cyberion.pl> wrote:
> 
> 
> Index: acpi_quirks.c
> ===================================================================
> RCS file: /cvsroot/src/sys/dev/acpi/acpi_quirks.c,v
> retrieving revision 1.2
> diff -u -u -r1.2 acpi_quirks.c
> --- acpi_quirks.c	2 Oct 2003 16:05:33 -0000	1.2
> +++ acpi_quirks.c	28 Oct 2003 13:06:44 -0000
> @@ -65,6 +65,7 @@
>  	 * in the ACPI tables.
>  	 */
>  	{ "A M I ", 0x02000304, ACPI_QUIRK_BADPCI | ACPI_QUIRK_BADIRQ },
> +	{ "INTEL ", 0x20030502, ACPI_QUIRK_BADPCI | ACPI_QUIRK_BADIRQ },
>  };
>  
>  /*
> 
> christos
> 
> >
> >
> >Witam.
> >
> >Czy komus z grupowiczow udalo sie odpalic HyperThreading pod NetBSD? Ja
> >staram sie jak moge, ale skonczymy mi sie pomysly :) przegooglowalem juz
> >chyba wszystkie strony ktore mialy cos o HyperThreading, mam nastepujacy
> >blad:
> >
> >
> >NetBSD 1.6ZE (aural) #1: Tue Oct 28 00:55:30 CET 2003
> >        root@aural:/usr/src/sys/arch/i386/compile/aural
> >total memory = 510 MB
> >avail memory = 470 MB
> >using 6144 buffers containing 26252 KB of memory
> >BIOS32 rev. 0 found at 0xf0010
> >mainbus0 (root)
> >cpu0 at mainbus0: apid 0 (boot processor)
> >cpu0: Intel Pentium 4 (686-class), 2394.07 MHz, id 0xf29
> >cpu0: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
> >cpu0: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
> >cpu0: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
> >cpu0: I-cache 12K uOp cache 8-way, D-cache 8 KB 64b/line 4-way
> >cpu0: L2 cache 512 KB 64b/line 8-way
> >cpu0: ITLB 4K/4M: 64 entries
> >cpu0: DTLB 4K/4M: 64 entries
> >cpu0: calibrating local timer
> >cpu0: apic clock running at 199 MHz
> >cpu0: 16 page colors
> >cpu1 at mainbus0: apid 1 (application processor)
> >cpu1: starting
> >cpu1: Intel Pentium 4 (686-class), 2394.01 MHz, id 0xf29
> >cpu1: features bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR>
> >cpu1: features bfebfbff<PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX>
> >cpu1: features bfebfbff<FXSR,SSE,SSE2,SS,HTT,TM,SBF>
> >cpu1: I-cache 12K uOp cache 8-way, D-cache 8 KB 64b/line 4-way
> >cpu1: L2 cache 512 KB 64b/line 8-way
> >cpu1: ITLB 4K/4M: 64 entries
> >cpu1: DTLB 4K/4M: 64 entries
> >ioapic0 at mainbus0 apid 2 (I/O APIC)
> >ioapic0: pa 0xfec00000, version 20, 24 pins
> >acpi0 at mainbus0
> >acpi0: using Intel ACPI CA subsystem version 20030228
> >acpi0: X/RSDT: OemId <INTEL ,D865PERL,20030502>, AslId <MSFT,00000097>
> >acpi0: SCI interrupting at int 9
> >acpi0: fixed-feature power button present
> >panic: mpacpi: couldn't find all PCI bus numbers
> >
> >The operating system has halted.
> >Please press any key to reboot.
> >
> >rebooting...
> >
> >
> >
> >jak widac, acpi i MPACPI sa wkompilowane, to oraz MULTIPROCESSOR sa
> >potrzebne do odpalenia HT, a tutaj jak widac sie cos gryzie... posiadam
> >Pentium4 2.4 Ghz na 800 mhz szynie z obsluga HyperThreadingu, i plyte
> >glowna Intel Rock Lake D865PERL, Moze komus z was udalo sie to
> >uruchomic? najlepiej, jakby ktos mial taki blad i udalo mu sie z tym
> >uporac :) bo z tego co widzialem na google, udalo sie kilku osoba to
> >odpalic, no chyba ze NetBSD nie radzi sobie zbytnio z moja plyta glowna,
> >prosze o jakies sugestie. Ponizej jeszcze podaje linie jakie podaje do
> >obslugi HT w configu:
> >
> >options         MULTIPROCESSOR
> >options         COM_MPLOCK 
> >options         APM_NO_IDLE
> >options         ACPI_PCI_FIXUP
> >options         ACPI_ACTIVATE_DEV
> >options         MPBIOS
> >options         MPACPI
> >
> >mainbus0 at root
> >acpi0           at mainbus0
> >cpu* at mainbus?
> >ioapic* at mainbus?
> >
> >
> >
> >Pozdrawiam.
> >
> >-- Qra
> >
> >#!/usr/bin/perl
> >$_=q<Pawel Kurczak | kura@openbsd.net.pl | kura@cyberion.pl | gg#1458779>;
> >$.=q<print "#!/usr/bin/perl \n\$_=q<$_>;\n\$.=q<$.>;\n$.\n";>;
> >print "#!/usr/bin/perl \n\$_=q<$_>;\n\$.=q<$.>;\n$.\n";
> >
> >
> 
> 
>