Aaaaah, this machine doesn't have an APIC table so acpimadt doesn't
attach and cpu0's cpu_acpi_proc_id is thus the default 0 when acpicpu0,
which has proc_id == 1, tried to attach.

It looks like we need to make sure cpus are attached before acpicpu is
attached.  I'm not sure how to do that, so in the mean time, Johan, can
you try applying the diff below and rebuilding the kernel and see if it
boots?  This is just a revert of acpicpu.c rev 1.75 back to the old unit#
based matching.

Didn't think I'd have time to test this until late this evening but build
was faster than expected. This solves the problem for me, host now boots
as expected with a rebuilt kernel. I've attached a dmesg for completeness
sake, let me know if you want any additional information which might be
helpful.

thanks again,

.jh


Philip Guenther


Index: dev/acpi/acpicpu.c
===================================================================
RCS file: /data/src/openbsd/src/sys/dev/acpi/acpicpu.c,v
retrieving revision 1.76
diff -u -p -r1.76 acpicpu.c
--- dev/acpi/acpicpu.c  2 Sep 2016 13:59:51 -0000       1.76
+++ dev/acpi/acpicpu.c  8 Sep 2016 04:18:04 -0000
@@ -675,7 +675,7 @@ acpicpu_attach(struct device *parent, st

        /* link in the matching cpu_info */
        CPU_INFO_FOREACH(cii, ci)
-               if (ci->ci_acpi_proc_id == sc->sc_cpu) {
+               if (ci->ci_cpuid == sc->sc_dev.dv_unit) {
                        ci->ci_acpicpudev = self;
                        sc->sc_ci = ci;
                        break;

OpenBSD 6.0-current (GENERIC) #2: Thu Sep  8 06:42:49 EDT 2016
    
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) 4 Mobile CPU 1.70GHz ("GenuineIntel" 686-class) 1.20 
GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PERF
real mem  = 536240128 (511MB)
avail mem = 513351680 (489MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 01/07/04, BIOS32 rev. 0 @ 0xffe90, SMBIOS rev. 2.3 @ 
0xf76b0 (62 entries)
bios0: vendor Dell Computer Corporation version "A11" date 01/07/2004
bios0: Dell Computer Corporation Inspiron 8200
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S3 S4 S5
acpi0: tables DSDT FACP
acpi0: wakeup devices LID_(S3) PBTN(S4) PCI0(S3) UAR1(S3) USB0(S1) USB1(S1) 
USB2(S1) MODM(S3) PCIE(S3) MPCI(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (AGP_)
acpiprt2 at acpi0: bus 2 (PCIE)
acpiprt3 at acpi0: bus -1 (MPCI)
acpicpu0 at acpi0acpicpu0: struck PSS entry, core frequency equals  last
acpicpu0: struck PSS entry, core frequency equals  last
acpicpu0: invalid _PSS length
: !C2(@50 io@0x8e4), C1(@1 halt!)
acpipwrres0 at acpi0: PADA, resource for ADPT
acpitz0 at acpi0: critical temperature is 94 degC
acpiac0 at acpi0: AC unit online
acpibat0 at acpi0: BAT0 not present
acpibat1 at acpi0: BAT1 model "LIP8120DLP" serial 20216 type LION oem "Sony 
Corp."
acpibtn0 at acpi0: LID_
acpibtn1 at acpi0: PBTN
acpibtn2 at acpi0: SBTN
"PNP0F13" at acpi0 not configured
"PNP0303" at acpi0 not configured
"PNP0700" at acpi0 not configured
"PNP0501" at acpi0 not configured
"PNP0401" at acpi0 not configured
acpidock0 at acpi0: GDCK not docked (0)
acpivideo0 at acpi0: VID_
bios0: ROM list: 0xc0000/0xf800 0xcf800/0x800!
cpu0 at mainbus0: (uniprocessor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82845 Host" rev 0x04
intelagp0 at pchb0
agp0 at intelagp0: aperture at 0xe8000000, size 0x4000000
ppb0 at pci0 dev 1 function 0 "Intel 82845 AGP" rev 0x04
pci1 at ppb0 bus 1
1:0:0: mem address conflict 0x80000000/0x20000
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce4 440 Go" rev 0xa3
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
uhci0 at pci0 dev 29 function 0 "Intel 82801CA/CAM USB" rev 0x02: irq 11
uhci1 at pci0 dev 29 function 2 "Intel 82801CA/CAM USB" rev 0x02: irq 11
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0x42
pci2 at ppb1 bus 2
xl0 at pci2 dev 0 function 0 "3Com 3c905C 100Base-TX" rev 0x78: irq 11, address 
00:08:74:e3:08:86
exphy0 at xl0 phy 24: 3Com internal media interface
cbb0 at pci2 dev 1 function 0 "TI PCI4451 CardBus" rev 0x00: irq 11
cbb1 at pci2 dev 1 function 1 "TI PCI4451 CardBus" rev 0x00: irq 11
"TI PCI4451 FireWire" rev 0x00 at pci2 dev 1 function 2 not configured
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 4 device 0 cacheline 0x8, lattimer 0x20
pcmcia0 at cardslot0
cardslot1 at cbb1 slot 1 flags 0
cardbus1 at cardslot1: bus 5 device 0 cacheline 0x8, lattimer 0x20
pcmcia1 at cardslot1
ichpcib0 at pci0 dev 31 function 0 "Intel 82801CAM LPC" rev 0x02
pciide0 at pci0 dev 31 function 1 "Intel 82801CAM IDE" rev 0x02: DMA, channel 0 
configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK23EB-40>
wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVD-ROM GDR8081N, 0108> ATAPI 5/cdrom 
removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
cd0(pciide0:0:1): using PIO mode 4, DMA mode 2
atapiscsi1 at pciide0 channel 1 drive 0
scsibus2 at atapiscsi1: 2 targets
cd1 at scsibus2 targ 0 lun 0: <TEAC, CD-W224E, L.0E> ATAPI 5/cdrom removable
cd1(pciide0:1:0): using PIO mode 4, DMA mode 2
auich0 at pci0 dev 31 function 5 "Intel 82801CA/CAM AC97" rev 0x02: irq 11, 
ICH3 AC97
ac97: codec id 0x4352595b (Cirrus Logic CS4205 rev 3)
ac97: codec features mic channel, tone, simulated stereo, bass boost, 20 bit 
DAC, 18 bit ADC, SRS 3D
audio0 at auich0
"Intel 82801CA/CAM Modem" rev 0x02 at pci0 dev 31 function 6 not configured
usb0 at uhci0: USB revision 1.0
uhub0 at usb0 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
addr 1
usb1 at uhci1: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
addr 1
isa0 at ichpcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pms0: ALPS Dualpoint, version 0x2222
wsmouse1 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
uhub2 at uhub0 port 1 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" 
rev 2.00/85.37 addr 2
uhidev0 at uhub2 port 3 configuration 1 interface 0 "American Power Conversion 
Smart-UPS 2200 FW:UPS 09.2 / ID=18" rev 2.00/1.06 addr 3
uhidev0: iclass 3/0, 146 report ids
upd0 at uhidev0
uplcom0 at uhub2 port 4 configuration 1 interface 0 "Prolific Technology Inc. 
USB-Serial Controller D" rev 1.10/4.00 addr 4
ucom0 at uplcom0
uhub3 at uhub1 port 1 configuration 1 interface 0 "Genesys Logic USB2.0 Hub" 
rev 2.00/77.64 addr 2
uplcom1 at uhub3 port 1 configuration 1 interface 0 "Prolific Technology Inc. 
USB-Serial Controller D" rev 1.10/4.00 addr 3
ucom1 at uplcom1
uplcom2 at uhub3 port 2 configuration 1 interface 0 "Prolific Technology Inc. 
USB-Serial Controller D" rev 1.10/4.00 addr 4
ucom2 at uplcom2
uplcom3 at uhub3 port 3 configuration 1 interface 0 "Prolific Technology Inc. 
USB-Serial Controller D" rev 1.10/4.00 addr 5
ucom3 at uplcom3
uplcom4 at uhub3 port 4 configuration 1 interface 0 "Prolific Technology Inc. 
USB-Serial Controller D" rev 1.10/4.00 addr 6
ucom4 at uplcom4
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on wd0a (bde744ae38325c1c.a) swap on wd0b dump on wd0b

Reply via email to