Subject: Re: pckbc(4) and ACPI still not working with 4.0_RC1 GENERIC.MP kernel....
To: NetBSD/i386 Discussion List <port-i386@NetBSD.org>
From: Greg A. Woods <woods@planix.ca>
List: port-i386
Date: 09/27/2007 11:28:37
--pgp-sign-Multipart_Thu_Sep_27_11:28:36_2007-1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

At Thu, 27 Sep 2007 00:25:14 -0400, Me-planix.ca wrote:
Subject: Re: pckbc(4) still not working with 4.0_RC1 GENERIC.MP kernel....
>=20
> [1  <text/plain; US-ASCII (quoted-printable)>]
> At Thu, 06 Sep 2007 15:24:34 -0400, Me-planix.com wrote:
> Subject: pckbc(4) still not working with 4.0_RC1 GENERIC.MP kernel....
> >=20
> > Perhaps unrelated, but any ACPI kernel still fails miserably on my Asus
> > P2B-D machine too.  The keyboard doesn't work and interrupts for the
> > piixide(4) driver seem to be lost....  FreeBSD-6.2 works fine on this
> > machine with its ACPI support so there must be a secret to be found
> > there somewhere.
>=20
> From netbsd-4 sourced updated yesterday, 2007/09/26, now also with:
>=20
> 	options 	PCIINTR_DEBUG
> 	options 	PCI_BUS_FIXUP
> 	options 	PCI_INTR_FIXUP


On the other non-working machine, the IBM x336 server, things are even
worse -- an attempt with "boot -c<CR>disable acpi<CR>" ends up with an
endlessly rebooting machine.  Even if I "disable ipmi" as well, I still
get the NMI, and then eventually an automatic reset while the kernel is
still probing devices.  I don't think it's the BMC watchdog because if I
pause it at the boot prompt, it'll stay quiet all night without
rebooting.

I'm about to load FreeBSD on it, just to prove to myself that the
hardware is all happy with the current BIOS/BMC settings.


WARNING: skipping large memory map entry: 0x100000000/0x30000000/0x1
kenter: 0x00002000
acpi: wakecode is installed at 0x2000, size=3D376
BIOS CFG: Model-SubM-Rev: fc-01-0c, 0x5874<EBDA,KBDINT,RTC,IC2,CPUF,MMF,KBD=
F>
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2=
006
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 4.0_RC1 (GENERIC.MP) #4: Wed Sep 26 15:33:17 EDT 2007
        woods@once:/build/woods/once/netbsd-4-i386-i386-ppro-obj/building/w=
ork/woods/m-NetBSD-4/sys/arch/i386/compile/GENERIC.MP
total memory =3D 3327 MB
rbus: rbus_min_start set to 0xc0000000
avail memory =3D 3257 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xfd6f1
SMBIOS rev. 2.3 @ 0xf5eea (52 entries)
PCI BIOS rev. 2.1 found at 0xfd72e
PIR Entry 0:
        Bus: 0  Device: 29
                INTA: link 0x60 bitmap 0xdeb8
                INTB: link 0x00 bitmap 0x0000
                INTC: link 0x00 bitmap 0x0000
                INTD: link 0x00 bitmap 0x0000
PIR Entry 1:
        Bus: 0  Device: 29
                INTA: link 0x63 bitmap 0xdeb8
                INTB: link 0x00 bitmap 0x0000
                INTC: link 0x00 bitmap 0x0000
                INTD: link 0x00 bitmap 0x0000
PIR Entry 2:
        Bus: 0  Device: 31
                INTA: link 0x61 bitmap 0xdeb8
                INTB: link 0x00 bitmap 0x0000
                INTC: link 0x00 bitmap 0x0000
                INTD: link 0x00 bitmap 0x0000
PIR Entry 3:
        Bus: 0  Device: 29
                INTA: link 0x6b bitmap 0xdeb8
                INTB: link 0x00 bitmap 0x0000
                INTC: link 0x00 bitmap 0x0000
                INTD: link 0x00 bitmap 0x0000
PIR Entry 4:
        Bus: 1  Device: 1
                INTA: link 0x60 bitmap 0xdeb8
                INTB: link 0x00 bitmap 0x0000
                INTC: link 0x00 bitmap 0x0000
                INTD: link 0x00 bitmap 0x0000
PIR Entry 5:
        Bus: 2  Device: 1
                INTA: link 0x60 bitmap 0xdeb8
                INTB: link 0x61 bitmap 0x0000
                INTC: link 0x62 bitmap 0x0000
                INTD: link 0x63 bitmap 0x0000
PIR Entry 6:
        Bus: 5  Device: 1
                INTA: link 0x60 bitmap 0xdeb8
                INTB: link 0x61 bitmap 0x0000
                INTC: link 0x62 bitmap 0x0000
                INTD: link 0x63 bitmap 0x0000
PIR Entry 7:
        Bus: 4  Device: 1
                INTA: link 0x60 bitmap 0xdeb8
                INTB: link 0x61 bitmap 0x0000
                INTC: link 0x00 bitmap 0x0000
                INTD: link 0x00 bitmap 0x0000
PIR Entry 8:
        Bus: 4  Device: 2
                INTA: link 0x60 bitmap 0xdeb8
                INTB: link 0x61 bitmap 0x0000
                INTC: link 0x62 bitmap 0x0000
                INTD: link 0x63 bitmap 0x0000
PIR Entry 9:
        Bus: 7  Device: 0
                INTA: link 0x60 bitmap 0xdeb8
                INTB: link 0x00 bitmap 0x0000
                INTC: link 0x00 bitmap 0x0000
                INTD: link 0x00 bitmap 0x0000
PIR Entry 10:
        Bus: 8  Device: 0
                INTA: link 0x60 bitmap 0xdeb8
                INTB: link 0x00 bitmap 0x0000
                INTC: link 0x00 bitmap 0x0000
                INTD: link 0x00 bitmap 0x0000
pciintr_link_init: bus 2 device 1 link 0x61: bad irq bitmap 0x0000, should =
be 0xdeb8
pciintr_link_init: bus 2 device 1 link 0x63: bad irq bitmap 0x0000, should =
be 0xdeb8
pciintr_link_fixup: PIRQ 0x00 already connected to IRQ 11
pciintr_link_fixup: PIRQ 0x03 already connected to IRQ 3
pciintr_link_fixup: PIRQ 0x01 already connected to IRQ 11
pciintr_link_fixup: PIRQ 0x07 already connected to IRQ 3
pciintr_link_fixup: PIRQ 0x02 already connected to IRQ 3
pciintr_link_route: route of PIRQ 0x00 -> IRQ 11 preserved BIOS setting
pciintr_link_route: route of PIRQ 0x03 -> IRQ 3 preserved BIOS setting
pciintr_link_route: route of PIRQ 0x01 -> IRQ 11 preserved BIOS setting
pciintr_link_route: route of PIRQ 0x07 -> IRQ 3 preserved BIOS setting
pciintr_link_route: route of PIRQ 0x02 -> IRQ 3 preserved BIOS setting
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:29:0 0x8086 0x24d2   A  0x00  11  0    already assigned
000:31:2 0x8086 0x24d1   A  0x01  11  0    fixed up
001:01:0 0x1002 0x5159   A  0x00  11  0    already assigned
004:01:0 0x1000 0x0030   A  0x00  11  0    already assigned
007:00:0 0x14e4 0x1659   A  0x00  11  0    already assigned
008:00:0 0x14e4 0x1659   A  0x00  11  0    already assigned
------------------------------------------
pciintr_irq_release: fixup pciirq level/edge map 0x0808NMI ... going to deb=
ugger
Stopped in pid 0.1 (swapper) at netbsd:pci_conf_read+0x87:      xorl    %ea=
x,%ea
x
db{0}> bt
pci_conf_read(0,80010000,0,0,0) at netbsd:pci_conf_read+0x87
pci_device_foreach_min(0,1,1,c04c9e90,c0b32a30) at netbsd:pci_device_foreac=
h_min
+0x8a
pci_bridge_foreach(0,1,1,c06125c0,0) at netbsd:pci_bridge_foreach+0x3b
pci_bus_fixup(0,1,18,ff0100,0) at netbsd:pci_bus_fixup+0x44
pci_bus_fixup(0,0,8,0,0) at netbsd:pci_bus_fixup+0x25f
mainbus_attach(0,c49dbfc0,0,c0b32bb4,c09afe50) at netbsd:mainbus_attach+0x1=
a7
config_attach_loc(0,c09afe50,0,0,0) at netbsd:config_attach_loc+0x390
config_attach(0,c09afe50,0,0,1) at netbsd:config_attach+0x2c
config_rootfound(c0901dca,0,c0b32c28,c042e37f,c0914aab) at netbsd:config_ro=
otfou
nd+0x44
cpu_configure(c0914aab,0,0,1,c0a49d40) at netbsd:cpu_configure+0x2c
configure(0,1,0,0,ffff) at netbsd:configure+0x2f
main(fbff,c01002d2,0,0,0) at netbsd:main+0xed
db{0}>=20

If I leave it sit there then a watchdog reset happens (probably because
the BMC has a watchdog timer enabled I think).


If I type "continue" then there's some problem enabling ACPI, a short
hang trying to get in touch with the BMC for IPMI stuff, then a watchdog
reset of the system:

db{0}> cont
 tbxface-0196 [01] LoadTables            : ACPI Tables successfully acquired
Parsing all Control Methods:
Table [DSDT](id 0005) - 262 Objects with 37 Devices 71 Methods 9 Regions
ACPI Namespace successfully loaded at root 0xc0a5cf44
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel (686-class), 3000.31 MHz, id 0xf43
cpu0: "Intel(R) Xeon(TM) CPU 3.00GHz"
cpu0: using thermal monitor 1
cpu0: calibrating local timer
cpu0: apic clock running at 200 MHz
cpu1 at mainbus0: apid 6 (application processor)
cpu1: starting
cpu1: Intel (686-class), 3000.12 MHz, id 0xf43
cpu1: "Intel(R) Xeon(TM) CPU 3.00GHz"
cpu1: using thermal monitor 1
cpu2 at mainbus0: apid 1 (application processor)
cpu2: starting
cpu2: Intel (686-class), 3000.11 MHz, id 0xf43
cpu2: "Intel(R) Xeon(TM) CPU 3.00GHz"
cpu2: using thermal monitor 1
cpu3 at mainbus0: apid 7 (application processor)
cpu3: starting
cpu3: Intel (686-class), 3000.11 MHz, id 0xf43
cpu3: "Intel(R) Xeon(TM) CPU 3.00GHz"
cpu3: using thermal monitor 1
ioapic0 at mainbus0 apid 14 (I/O APIC)
ioapic0: pa 0xfec00000, virtual wire mode, version 20, 24 pins
ioapic1 at mainbus0 apid 13 (I/O APIC)
ioapic1: pa 0xfec82000, virtual wire mode, version 20, 24 pins
ioapic2 at mainbus0 apid 12 (I/O APIC)
ioapic2: pa 0xfec82400, virtual wire mode, version 20, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
ACPI Error (hwacpi-0271): Hardware did not change modes [20060217]
ACPI Error (evxfevnt-0172): Could not transition to ACPI mode [20060217]
ACPI Warning (utxface-0247): AcpiEnable failed [20060217]
acpi0: unable to enable ACPI: AE_NO_HARDWARE_RESPONSE
ipmi0 at mainbus0



--=20
						Greg A. Woods
						Planix, Inc.

<woods@planix.com>     +1 416 489-5852 x122     http://www.planix.com/

--pgp-sign-Multipart_Thu_Sep_27_11:28:36_2007-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: kKxAfJAtBvLoa2YQEn+4DJ/cimEmNwkB

iQA/AwUBRvvMJWZ9cbd4v/R/EQK5HwCaA6PXfHiFQEYqmUm3iDJ6Tfhi8esAoPpn
8JzU3oNu8qw8lG+rhJwMekbw
=JRsl
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Thu_Sep_27_11:28:36_2007-1--