Subject: Re: Heads up: i386 MP config change
To: Frank van der Linden <fvdl@wasabisystems.com>
From: Olaf Seibert <rhialto@polderland.nl>
List: port-i386
Date: 01/12/2003 01:22:08
On Tue 07 Jan 2003 at 20:01:42 +0100, Frank van der Linden wrote:
> if the board manufacturer did his job right). To do that,
> also enable the
> 
> 	ioapic* at mainbus?
> 
> ..line in the config file.

If I include that line, I get a panic: can't find first ioapic.
That's on a new laptop with a VIA Twister chipset with VT8231 Interrupt
Router.

If I re-config without "ioapic* at mainbus?" and recompile, I get link
errors: mpacpi.o wants ioapic_find_bybase in 5 instances.

Failing boot messages (incl. some local patches that influence and print
interrupt choices):

NetBSD 1.6L (LOELAPPIE-CURRENT) #27: Sun Jan 12 00:36:14 CET 2003
    rhialto@loelappie.falu.nl:/home/rhialto/LOELAPPIE-CURRENT
total memory = 495 MB
avail memory = 455 MB
using 6144 buffers containing 25472 KB of memory
BIOS32 rev. 0 found at 0xfdb30
PCI BIOS rev. 2.1 found at 0xfdb51
pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
PCI IRQ Routing Table rev. 1.0 found at 0xf80e0, size 112 bytes (5 entries)
PCI Interrupt Router at 000:17:0 (VIA Technologies VT8231 IDE Controller)
mainbus0 (root)
 tbxface-0198 [01] AcpiLoadTables        : ACPI Tables successfully acquired
Parsing all Control Methods:
Table [DSDT] - 495 Objects with 43 Devices 140 Methods 24 Regions
ACPI Namespace successfully loaded at root 0xc0423318
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Athlon XP 1900+ (686-class), 1599.65 MHz, id 0x680
cpu0: features c3cbf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
cpu0: features c3cbf9ff<PGE,MCA,CMOV,PAT,PSE36,MPC,MMXX,MMX>
cpu0: features c3cbf9ff<FXSR,SSE,3DNOW2,3DNOW>
cpu0: I-cache 64 KB 64b/line 2-way, D-cache 64 KB 64b/line 2-way
cpu0: L2 cache 256 KB 64b/line 16-way
cpu0: ITLB 16 4 KB entries fully associative, 8 4 MB entries fully associative
cpu0: DTLB 32 4 KB entries fully associative, 8 4 MB entries 4-way
cpu0: 8 page colors
acpi0 at mainbus0
acpi0: X/RSDT: OemId <AMIINT,VIA_K7  ,00000010>, AslId <MSFT,00000097>
evxfevnt-0173 [02] AcpiEnable            : Transition to ACPI mode successful
acpi0: SCI interrupting at irq 9
acpi0: fixed-feature power button present
acpi_pci_fixup starts:
acpi0: fixup: _BBN success, bus # was 0 now 0
acpi0: fixing up PCI bus 0 at level 1
NumberOfInterrupts 1
         0
acpi_get_intr: return 0
acpi0: fixing up intr link \134_SB_.LNKA
Possbile irq
NumberOfInterrupts: 6
        5 9 10 11 14 15 
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
NumberOfInterrupts 1
         0
acpi_get_intr: return 0
acpi0: fixing up intr link \134_SB_.LNKB
Possbile irq
NumberOfInterrupts: 6
        5 9 10 11 14 15 
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
NumberOfInterrupts 1
         0
acpi_get_intr: return 0
acpi0: fixing up intr link \134_SB_.LNKC
Possbile irq
NumberOfInterrupts: 6
        5 9 10 11 14 15 
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
acpi fixup pci intr: 0:17:5 C: 10 -> 11
acpi fixup pci intr: 0:17:6 C: 10 -> 11
NumberOfInterrupts 1
         0
acpi_get_intr: return 0
acpi0: fixing up intr link \134_SB_.LNKD
Possbile irq
NumberOfInterrupts: 6
        5 9 10 11 14 15 
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
acpi fixup pci intr: 0:17:2 D: 10 -> 11
acpi fixup pci intr: 0:17:3 D: 10 -> 11
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
acpi fixup pci intr: 0:8:0 A: 255 -> 11
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
acpi fixup pci intr: 0:16:0 A: 10 -> 11
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
acpi fixup pci intr: 0:18:0 A: 9 -> 11
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
NumberOfInterrupts 1
         11
acpi_get_intr: return 11
mpacpi: found 1 PCI busses, max bus # is 0
panic: can't find first ioapic

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert - rhialto@       -- Woe betide the one who feels
\X/ polderland.nl  -- remorse without sin - Tom Poes, "Het boze oog", 4444.