NetBSD Problem Report #44361

From is@beverly.kleinbus.org  Sun Jan  9 15:19:31 2011
Return-Path: <is@beverly.kleinbus.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id AA1A463B89A
	for <gnats-bugs@gnats.NetBSD.org>; Sun,  9 Jan 2011 15:19:31 +0000 (UTC)
Message-Id: <20110109151918.E51342083F@beverly.kleinbus.org>
Date: Sun,  9 Jan 2011 16:19:18 +0100 (CET)
From: is@NetBSD.org
Reply-To: is@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: PCI_INTR_FIXUP broken in -current
X-Send-Pr-Version: 3.95

>Number:         44361
>Category:       port-i386
>Synopsis:       PCI_INTR_FIXUP broken in -current
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 09 15:20:00 +0000 2011
>Last-Modified:  Mon Jan 10 20:40:26 +0000 2011
>Originator:     is@NetBSD.org
>Release:        NetBSD 5.99.43
>Organization:

>Environment:
System: NetBSD laplace 5.99.43; as of 20100105
Last know working System: NetBSD laplace 5.1 NetBSD 5.1 (FIXUP) #1: Tue Jan 4 19:42:58 CET 2011 ignatios@random87:/var/itch/obj/5i386/sys/arch/i386/compile/FIXUP i386
Architecture: i386
Machine: i386

FIXUP is:
include         "arch/i386/conf/MONOLITHIC"
options         PCI_BUS_FIXUP
options         PCI_ADDR_FIXUP
options         PCI_INTR_FIXUP

>Description:
	a MONOLITHIC kernel with FIXUP doesn't assign interupts to the
cardbus slots, leading to frozen kernel when a card in one of those slots
is activated (ifconfig wi0 up)

dmesg of non-working kernel:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011
    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 5.99.43 (FIXUP) #1: Sun Jan  9 16:03:10 CET 2011
	ignatios@random85:/var/itch/sources/cur/oi/sys/arch/i386/compile/FIXUP
total memory = 511 MB
avail memory = 490 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Sony Corporation     PCG-F807K(DE)        (01                  )
mainbus0 (root)
WARNING: can't reserve area for I/O APIC.
pci_addr_fixup: 000:12:0 0x1180 0x0478 new address 0x20000000
pci_addr_fixup: 000:12:1 0x1180 0x0478 new address 0x20001000
ACPI: BIOS is too old (19000828). Set acpi_force_load to use.
cpu0 at mainbus0: Intel 686-class, 645MHz, id 0x683
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: vendor 0x8086 product 0x7190 (rev. 0x03)
agp0 at pchb0: aperture at 0x40000000, size 0x1000000
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7191 (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: vendor 0x1002 product 0x4c4d (rev. 0x64)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
mach64drm0 at vga1: Rage Mobility P/M AGP 2X
mach64drm0: AGP at 0x40000000 16MB
mach64drm0: Initialized mach64 2.0.0 20060718
pcib0 at pci0 dev 7 function 0: vendor 0x8086 product 0x7110 (rev. 0x02)
piixide0 at pci0 dev 7 function 1: 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 irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
uhci0 at pci0 dev 7 function 2: vendor 0x8086 product 0x7112 (rev. 0x01)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
piixpm0 at pci0 dev 7 function 3
piixpm0: vendor 0x8086 product 0x7113 (rev. 0x03)
timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 1000
piixpm0: 24-bit timer
piixpm0: interrupting at SMI, polling
iic0 at piixpm0: I2C bus
fwohci0 at pci0 dev 8 function 0: vendor 0x104d product 0x8039 (rev. 0x02)
fwohci0: interrupting at irq 9
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 08:00:46:03:00:54:90:c3
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
yds0 at pci0 dev 9 function 0: vendor 0x1073 product 0x0010 (rev. 0x02)
yds0: interrupting at irq 9
yds0: ac97: Asahi Kasei AK4541/AK4543 codec; headphone, 18 bit DAC, 18 bit ADC, AKM 3D
yds0: ac97: ext id 0x200<AMAP>
audio0 at yds0: full duplex, playback, capture, mmap, independent
vendor 0x14f1 product 0x2443 (miscellaneous communications, revision 0x01) at pci0 dev 10 function 0 not configured
cbb0 at pci0 dev 12 function 0: vendor 0x1180 product 0x0478 (rev. 0x80)
cbb1 at pci0 dev 12 function 1: vendor 0x1180 product 0x0478 (rev. 0x80)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
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
attimer0 at isa0 port 0x40-0x43
pcppi0 at isa0 port 0x61
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279
npx0 at isa0 port 0xf0-0xff
npx0: reported by CPUID; using exception 16
fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
attimer0: attached to pcppi0
isapnp0: no ISA Plug 'n Play devices found
opl0 at yds0: model OPL3
midi1 at opl0: DS-1 integrated Yamaha OPL3
mpu0 at yds0
midi2 at mpu0: Yamaha DS-1 MIDI UART
cbb0: cacheline 0x0 lattimer 0x10
cbb0: bhlc 0x821000
pci_intr_map: no mapping for pin A (line=ff)
cbb0: couldn't map interrupt
cardslot0 at cbb0
cardbus0 at cardslot0: bus 2
pcmcia0 at cardslot0
cbb1: cacheline 0x0 lattimer 0x10
cbb1: bhlc 0x821000
pci_intr_map: no mapping for pin B (line=ff)
cbb1: couldn't map interrupt
cardslot1 at cbb1
cardbus1 at cardslot1: bus 3
pcmcia1 at cardslot1
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0 cable IRM irm(0) (me)
ieee1394if0: bus manager 0
fwohci0: txd err= 3 miss Ack err
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
wi0 at pcmcia0 function 0: <INTERSIL, I-GATE 11M PC Card / PC Card plus, Version 01.02, >
wi0: 802.11 address 00:90:d1:06:04:5f
wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.A
wi0: Intersil Firmware: Primary (0.3.0), Station (0.7.6)
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ugen0 at uhub0 port 2
ugen0: vendor 0x0bda RTL8187B_WLAN_Adapter, rev 2.00/2.00, addr 2
wd0 at atabus0 drive 0: <FUJITSU MHK2120AT>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 11513 MB, 23392 cyl, 16 head, 63 sec, 512 bytes/sect x 23579136 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <HITACHI DVD-ROM GD-S200, , 0019> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs

dmesg of working kernel:


Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010
    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 5.1 (FIXUP) #1: Tue Jan  4 19:42:58 CET 2011
	ignatios@random87:/var/itch/obj/5i386/sys/arch/i386/compile/FIXUP
total memory = 511 MB
avail memory = 490 MB
timecounter: Timecounters tick every 10.000 msec
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
Sony Corporation     PCG-F807K(DE)        (01                  )
mainbus0 (root)
WARNING: can't reserve area for I/O APIC.
pci_addr_fixup: 000:12:0 0x1180 0x0478 new address 0x20000000
pci_addr_fixup: 000:12:1 0x1180 0x0478 new address 0x20001000
cpu0 at mainbus0: Intel 686-class, 645MHz, id 0x683
acpi0 at mainbus0: Intel ACPICA 20080321
acpi0: X/RSDT: OemId <SONY  ,K2      ,20000828>, AslId <PTL ,00000000>
LNKD: ACPI: Found matching pin for 0.7.INTD at func 2: 9
LNKD: ACPI: Found matching pin for 0.8.INTA at func 0: 9
LNKC: ACPI: Found matching pin for 0.9.INTA at func 0: 9
LNKB: ACPI: Found matching pin for 0.10.INTA at func 0: 9
LNKA: ACPI: Found matching pin for 0.12.INTA at func 0: 255
LNKB: ACPI: Found matching pin for 0.12.INTB at func 1: 255
acpi0: SCI interrupting at int 9
timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
ACPI-Safe 24-bit timer
acpibut0 at acpi0 (PWRB, PNP0C0C): ACPI Power Button
npx1 at acpi0 (FPU, PNP0C04): io 0xf0-0xff irq 13
npx1: reported by CPUID; using exception 16
attimer1 at acpi0 (TMR, PNP0100): io 0x40-0x43 irq 0
pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
midi0 at pcppi1: PC speaker (CPU-intensive output)
sysbeep0 at pcppi1
pckbc1 at acpi0 (KBC, PNP0303) (kbd port): io 0x60,0x64 irq 1
pckbc2 at acpi0 (MOUE, PNP0F13) (aux port): irq 12
acpiec0 at acpi0 (EC0, PNP0C09): io 0x62,0x66
acpibat0 at acpi0 (BAT1, PNP0C0A-1): ACPI Battery (Control Method)
acpibat0: battery info: Sony Corp., LION,  
acpibat1 at acpi0 (BAT2, PNP0C0A-2): ACPI Battery (Control Method)
acpiacad0 at acpi0 (ACAD, ACPI0003): ACPI AC Adapter
COMA (PNP0501) at acpi0 not configured
FDC (PNP0700) at acpi0 not configured
sony0 at acpi0 (SNC, SNY5001): Sony Miscellaneous Controller
acpitz0 at acpi0 (ATF0): critical 99.9C passive 58.9C, passive cooling
apm0 at acpi0: Power Management spec V1.2
attimer1: attached to pcppi1
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
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: vendor 0x8086 product 0x7190 (rev. 0x03)
agp0 at pchb0: aperture at 0x40000000, size 0x1000000
ppb0 at pci0 dev 1 function 0: vendor 0x8086 product 0x7191 (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: vendor 0x1002 product 0x4c4d (rev. 0x64)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
drm at vga1 not configured
pcib0 at pci0 dev 7 function 0
pcib0: vendor 0x8086 product 0x7110 (rev. 0x02)
piixide0 at pci0 dev 7 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 irq 14
atabus0 at piixide0 channel 0
piixide0: secondary channel wired to compatibility mode
piixide0: secondary channel interrupting at irq 15
atabus1 at piixide0 channel 1
uhci0 at pci0 dev 7 function 2: vendor 0x8086 product 0x7112 (rev. 0x01)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
piixpm0 at pci0 dev 7 function 3
piixpm0: vendor 0x8086 product 0x7113 (rev. 0x03)
timecounter: Timecounter "piixpm0" frequency 3579545 Hz quality 1000
piixpm0: 24-bit timer
piixpm0: interrupting at SMIpiixpm0: polling
iic0 at piixpm0: I2C bus
fwohci0 at pci0 dev 8 function 0: vendor 0x104d product 0x8039 (rev. 0x02)
fwohci0: interrupting at irq 9
fwohci0: OHCI version 1.0 (ROM=1)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 08:00:46:03:00:54:90:c3
fwohci0: Phy 1394a available S400, 3 ports.
fwohci0: Link S400, max_rec 2048 bytes.
ieee1394if0 at fwohci0: IEEE1394 bus
fwip0 at ieee1394if0: IP over IEEE1394
fwohci0: Initiate bus reset
yds0 at pci0 dev 9 function 0: vendor 0x1073 product 0x0010 (rev. 0x02)
yds0: interrupting at irq 9
yds0: ac97: Asahi Kasei AK4541/AK4543 codec; headphone, 18 bit DAC, 18 bit ADC, AKM 3D
yds0: ac97: ext id 200<AMAP>
audio0 at yds0: full duplex, playback, capture, mmap, independent
vendor 0x14f1 product 0x2443 (miscellaneous communications, revision 0x01) at pci0 dev 10 function 0 not configured
cbb0 at pci0 dev 12 function 0: vendor 0x1180 product 0x0478 (rev. 0x80)
cbb1 at pci0 dev 12 function 1: vendor 0x1180 product 0x0478 (rev. 0x80)
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
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
opl0 at yds0: model OPL3
midi1 at opl0: DS-1 integrated Yamaha OPL3 (CPU-intensive output)
mpu0 at yds0
midi2 at mpu0: Yamaha DS-1 MIDI UART (CPU-intensive output)
cbb0: cacheline 0x0 lattimer 0x10
cbb0: bhlc 0x821000
cbb0: interrupting at irq 9
cardslot0 at cbb0
cardbus0 at cardslot0: bus 2
pcmcia0 at cardslot0
cbb1: cacheline 0x0 lattimer 0x10
cbb1: bhlc 0x821000
cbb1: interrupting at irq 9
cardslot1 at cbb1
cardbus1 at cardslot1: bus 3
pcmcia1 at cardslot1
fwohci0: BUS reset
fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode
ieee1394if0: 1 nodes, maxhop <= 0, cable IRM = 0 (me)
ieee1394if0: bus manager 0 (me)
fwohci0: txd err= 3 miss Ack err
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
acpiacad0: AC adapter online.
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
uhub0 at usb0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
wi0 at pcmcia0 function 0: <INTERSIL, I-GATE 11M PC Card / PC Card plus, Version 01.02, >
wi0: 802.11 address 00:90:d1:06:04:5f
wi0: using RF:PRISM2 MAC:HFA3841 CARD:HWB3163 rev.A
wi0: Intersil Firmware: Primary (0.3.0), Station (0.7.6)
wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ugen0 at uhub0 port 2
ugen0: Realtek RTL8187B_WLAN_Adapter, rev 2.00/2.00, addr 2
wd0 at atabus0 drive 0: <FUJITSU MHK2120AT>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 11513 MB, 23392 cyl, 16 head, 63 sec, 512 bytes/sect x 23579136 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4 (Ultra/66)
wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
atapibus0 at atabus1: 2 targets
cd0 at atapibus0 drive 0: <HITACHI DVD-ROM GD-S200, , 0019> cdrom removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
cd0(piixide0:1:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
Kernelized RAIDframe activated
pad0: outputs: 44100Hz, 16-bit, stereo
audio1 at pad0: half duplex, playback, capture
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
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)

>How-To-Repeat:
	build kernel. boot. 
>Fix:

>Release-Note:

>Audit-Trail:

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.