Subject: Re: pckbc(4) 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 00:25:14
--pgp-sign-Multipart_Thu_Sep_27_00:25:14_2007-1
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 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.

=46rom netbsd-4 sourced updated yesterday, 2007/09/26, now also with:

	options 	PCIINTR_DEBUG
	options 	PCI_BUS_FIXUP
	options 	PCI_INTR_FIXUP

The keyboard still doesn't work, and probing the pciide(4) devices
suggests that the interrupts are still totally screwed up.

Booting with "boot -c" and saying "disable acpi" was what allowed me to
do a successful install.

Once again this is an ASUS P2B-D machine with an Award  v4.51PG BIOS:

	"03/03/00 - i440BX P2B-D-00"

Both FreeBSD-6.2 and various versions of GNU/Linux work A-OK on this
same hardware, with full ACPI support enabled.



>> NetBSD/i386 BIOS Boot, Revision 3.3
>> (woods@once, Thu Sep 13 21:20:43 EDT 2007)
>> Memory: 639/1047540 k
Press return to boot now, any other key for boot menu
booting hd0a:netbsd - starting in ... interrupted!
type "?" or "help" for help.
>=20
> boot
booting hd0a:netbsd
8906460+398628+335668 [433248+416049]=3D0xa02d68
kenter: 0x00002000
acpi: wakecode is installed at 0x2000, size=3D376
BIOS CFG: Model-SubM-Rev: fc-01-00, 0x74<EBDA,KBDINT,RTC,IC2>
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) #3: 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
total memory =3D 1023 MB
rbus: rbus_min_start set to 0x40000000
avail memory =3D 995 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
BIOS32 rev. 0 found at 0xf0530
PCI BIOS rev. 2.1 found at 0xf0730
PCI IRQ Routing Table rev. 1.0 found at 0xf0d20, size 128 bytes (6 entries)
PIR Entry 0:
        Bus: 0  Device: 12
                INTA: link 0x60 bitmap 0x1eb8
                INTB: link 0x61 bitmap 0x1eb8
                INTC: link 0x62 bitmap 0x1eb8
                INTD: link 0x63 bitmap 0x1eb8
PIR Entry 1:
        Bus: 0  Device: 11
                INTA: link 0x61 bitmap 0x1eb8
                INTB: link 0x62 bitmap 0x1eb8
                INTC: link 0x63 bitmap 0x1eb8
                INTD: link 0x60 bitmap 0x1eb8
PIR Entry 2:
        Bus: 0  Device: 10
                INTA: link 0x62 bitmap 0x1eb8
                INTB: link 0x63 bitmap 0x1eb8
                INTC: link 0x60 bitmap 0x1eb8
                INTD: link 0x61 bitmap 0x1eb8
PIR Entry 3:
        Bus: 0  Device: 9
                INTA: link 0x63 bitmap 0x1eb8
                INTB: link 0x60 bitmap 0x1eb8
                INTC: link 0x61 bitmap 0x1eb8
                INTD: link 0x62 bitmap 0x1eb8
PIR Entry 4:
        Bus: 0  Device: 4
                INTA: link 0x60 bitmap 0x1eb8
                INTB: link 0x61 bitmap 0x1eb8
                INTC: link 0x62 bitmap 0x1eb8
                INTD: link 0x63 bitmap 0x1eb8
PIR Entry 5:
        Bus: 0  Device: 1
                INTA: link 0x60 bitmap 0x1eb8
                INTB: link 0x61 bitmap 0x1eb8
                INTC: link 0x62 bitmap 0x1eb8
                INTD: link 0x63 bitmap 0x1eb8
pciintr_link_fixup: PIRQ 0x00 already connected to IRQ 11
pciintr_link_fixup: PIRQ 0x01 not connected
pciintr_link_fixup: PIRQ 0x02 already connected to IRQ 10
pciintr_link_fixup: PIRQ 0x03 already connected to IRQ 5
pciintr_link_fixup (stage 2): assigning IRQ 5 to PIRQ 0x01
pciintr_link_route: route of PIRQ 0x00 -> IRQ 11 preserved BIOS setting
pciintr_link_route: route of PIRQ 0x02 -> IRQ 10 preserved BIOS setting
pciintr_link_route: route of PIRQ 0x03 -> IRQ 5 preserved BIOS setting
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:04:2 0x8086 0x7112   D  0x03   5  0    already assigned
000:10:0 0x1039 0x6326   A  0x02  10  0    already assigned
000:12:0 0x8086 0x1229   A  0x00  11  0    already assigned
------------------------------------------
pciintr_irq_release: fixup pciirq level/edge map 0x0c20
pciintr_irq_release: bios  pciirq level/edge map 0x0c20
pciintr_irq_release: final pciirq level/edge map 0x0c20
mainbus0 (root)
 tbxface-0196 [01] LoadTables            : ACPI Tables successfully acquired
Parsing all Control Methods:
Table [DSDT](id 0005) - 194 Objects with 26 Devices 61 Methods 9 Regions
ACPI Namespace successfully loaded at root 0xc0a328e4
cpu0 at mainbus0: apid 1 (application processor)
cpu0: not started
cpu1 at mainbus0: apid 0 (boot processor)
cpu1: Intel Pentium III (686-class), 801.86 MHz, id 0x683
cpu1: calibrating local timer
cpu1: apic clock running at 100 MHz
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, version 11, 24 pins
acpi0 at mainbus0: Advanced Configuration and Power Interface
evxfevnt-0177 [02] Enable                : Transition to ACPI mode successf=
ul
evgpeblk-1111 [08] EvCreateGpeBlock      : GPE 00 to 0F [_GPE] 2 regs on in=
t 0x9
evgpeblk-1211 [07] EvInitializeGpeBlock  : Found 3 Wake, Enabled 0 Runtime =
GPEs in this block
Completing Region/Field/Buffer/Package initialization:.....................=
............
Initialized 9/9 Regions 0/0 Fields 18/18 Buffers 6/11 Packages (203 nodes)
Executing all Device _STA and_INI methods:..............................
30 Devices found - executed 0 _STA, 0 _INI methods
acpi0: fixed-feature power button present
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
ACPI-Safe 24-bit timer
mpacpi: could not get bus number, assuming bus 0
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
ACPI Object Type 'Processor' (0x0c) at acpi0 not configured
acpibut0 at acpi0 (PNP0C0C): ACPI Power Button
PNP0C01 [System Board] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0C0F [PCI interrupt link device] at acpi0 not configured
PNP0A03 [PCI/PCI-X Host Bridge] at acpi0 not configured
PNP0C02 [Plug and Play motherboard register resources] at acpi0 not configu=
red
PNP0000 [AT Interrupt Controller] at acpi0 not configured
PNP0200 [AT DMA Controller] at acpi0 not configured
attimer1 at acpi0 (PNP0100): AT Timer
attimer1: io 0x40-0x43 irq 0
PNP0B00 [AT Real-Time Clock] at acpi0 not configured
pcppi1 at acpi0 (PNP0800)
pcppi1: io 0x61
pcppi1: children must have an explicit unit
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
npx1 at acpi0 (PNP0C04)
npx1: io 0xf0-0xff irq 13
PNP0700 [PC standard floppy disk controller] at acpi0 not configured
lpt3 at acpi0 (PNP0401)
lpt3: io 0x378-0x37b,0x778-0x77b irq 7 drq 3
com3 at acpi0 (PNP0501-1)
com3: io 0x3f8-0x3ff irq 4
com: ns16550a, working fifo
com3: console
com4 at acpi0 (PNP0501-2)
com4: io 0x2f8-0x2ff irq 3
com4: ns16550a, working fifo
pckbc1 at acpi0 (PNP0303): kbd port
pckbc1: io 0x60,0x64 irq 1
pckbc2 at acpi0 (PNP0F13): aux port
pckbc2: irq 12
apm0 at acpi0: Power Management spec V1.2
apm0: A/C state: unknown
apm0: battery charge state: low
pcppi1: attached to attimer1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0 mux 1
pms0 at pckbc1 (aux slot)
pckbc1: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
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 82443BX Host Bridge/Controller (rev. 0x03)
agp0 at pchb0: aperture at 0xe4000000, size 0x4000000
ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
piixpcib0 at pci0 dev 4 function 0
piixpcib0: Intel 82371AB (PIIX4) PCI-ISA Bridge (rev. 0x02)
piixide0 at pci0 dev 4 function 1
piixide0: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
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
uhci0 at pci0 dev 4 function 2: Intel 82371AB (PIIX4) USB Host Controller (=
rev. 0x01)
uhci0: interrupting at ioapic0 pin 19 (irq 5)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
piixpm0 at pci0 dev 4 function 3: Power Management Controller
timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 900
piixpm0 24-bit timer
piixpm0: interrupting at SMI
iic0 at piixpm0: I2C bus
vga1 at pci0 dev 10 function 0: Silicon Integrated System 6326 AGP VGA (rev=
. 0x0b)
wsdisplay0 at vga1 kbdmux 1
wsmux1: connecting to wsdisplay0
wskbd0: connecting to wsdisplay0
fxp0 at pci0 dev 12 function 0: i82559 Ethernet, rev 8
fxp0: interrupting at ioapic0 pin 16 (irq 11)
fxp0: Ethernet address 00:d0:b7:83:40:eb
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
isa0 at piixpcib0
lm0 at isa0 port 0x290-0x297: Winbond W83781D Hardware monitor
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
isapnp0: no ISA Plug 'n Play devices found
ioapic0: enabling
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
Kernelized RAIDframe activated
wd0 at atabus0 drive 0piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
: <IBM-DTLA-307030>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 29314 MB, 59560 cyl, 16 head, 63 sec, 512 bytes/sect x 60036480 sectors
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
wd0: 32-bit data port
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
wd0: drive supports PIO mode 4piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
, DMA mode 2piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
, Ultra-DMA mode 5 (Ultra/100)piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0

wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
atapibus0 at atabus1: 2 targets
piixide0:1:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
cd0 at atapibus0 drive 0: <LTN483L, , EL1E> cdrom removable
piixide0:1:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:1:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
cd0: 32-bit data port
piixide0:1:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
cd0: drive supports PIO mode 4piixide0:1:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
, DMA mode 2piixide0:1:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 1024 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 1024 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 1024 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 1024 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 1024 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
boot device: wd0
root on wd0a dumps on wd0b
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 1024 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 0 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 512 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 1024 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 8192 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 8192 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 8192 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 4096 tc_skip: 0
root file system type: ffs
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 16384 tc_skip: 0
piixide0:0:0: lost interrupt
        type: ata tc_bcount: 2048 tc_skip: 0
init: initiating

and there it hangs....

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

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

--pgp-sign-Multipart_Thu_Sep_27_00:25:14_2007-1
Content-Type: application/pgp-signature
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 5.0i for non-commercial use
MessageID: PMnYd2r+L6cRpXLMCWLn0mp4uvr9sL7b

iQA/AwUBRvswqmZ9cbd4v/R/EQIhvACaAq/Whxf03hISnEB/eegWqDaeItgAnjH6
tBqH+Uo61KS+I/vrVuhxYua8
=nacK
-----END PGP SIGNATURE-----

--pgp-sign-Multipart_Thu_Sep_27_00:25:14_2007-1--