NetBSD Problem Report #38691

From spz@volans.1st.de  Sun May 18 18:01:31 2008
Return-Path: <spz@volans.1st.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 03D0763B8BC
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 18 May 2008 18:01:30 +0000 (UTC)
Message-Id: <20080518175943.A16DB578C@volans.1st.de>
Date: Sun, 18 May 2008 19:59:43 +0200 (CEST)
From: spz@NetBSD.org
Reply-To: spz@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: miniPCI wi on strike but other wi working
X-Send-Pr-Version: 3.95

>Number:         38691
>Category:       kern
>Synopsis:       interrupt routing issue
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 18 18:05:01 +0000 2008
>Last-Modified:  Sun Aug 17 12:20:02 +0000 2008
>Originator:     S.P.Zeidler
>Release:        NetBSD 4.99.62
>Organization:
	dis-
>Environment:
System: NetBSD volans 4.99.62 NetBSD 4.99.62 (VOLANS) #5: Fri May 16 10:34:40 CEST 2008 spz@volans:/home/netbsd/src/sys/arch/i386/compile/obj/VOLANS i386
Architecture: i386
Machine: i386
>Description:
	I have a miniPCI card:
	wi0 at pcmcia2 function 0: <Dell, TrueMobile 1150 Series PC Card, Version 01.01, >
	wi0: 802.11 address 00:02:2d:87:b2:10
	wi0: using Lucent Embedded WaveLAN/IEEE
	wi0: Lucent Firmware: Station (8.10.1)
	wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps

	that stopped working sometime between ~10th February and end of March.
	Symptom is that ifconfig reports it trying to use just DS2 and finding
	no network, but wiconfig reports it seeing the station.
	Using an older kernel or a Knoppix has it working normally, so
	it's not simply broken hardware.

	To make things interesting, a different wi card (in PCMCIA casing)
	does work:
	wi1 at pcmcia1 function 0: <Lucent Technologies, WaveLAN/IEEE, Version 01.01, >
	wi1: 802.11 address 00:60:1d:f6:58:be
	wi1: using Lucent Technologies, WaveLAN/IEEE
	wi1: Lucent Firmware: Station (8.10.1)
	wi1: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps

	106% ifconfig wi0
	wi0: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
		ssid Diskworld nwkey *****
		powersave off
		address: 00:02:2d:87:b2:10
		media: IEEE802.11 autoselect (DS2)
		status: no network
		inet6 fe80::202:2dff:fe87:b210%wi0 prefixlen 64 scopeid 0x2
	107% ifconfig wi1
	wi1: flags=8863<UP,BROADCAST,NOTRAILERS,RUNNING,SIMPLEX,MULTICAST> mtu 1500
		ssid Diskworld nwkey *****
		powersave off
		bssid 00:11:50:06:04:e0 chan 1
		address: 00:60:1d:f6:58:be
		media: IEEE802.11 autoselect (DS11)
		status: active
		inet6 fe80::260:1dff:fef6:58be%wi1 prefixlen 64 scopeid 0x5
	108% wiconfig wi0 > wiconfig.wi0
	wiconfig: SIOCGWAVELAN(wreq fc2a): Operation not supported
	109% wiconfig wi1 > wiconfig.wi1
	wiconfig: SIOCGWAVELAN(wreq fc2a): Operation not supported
	110% diff -u wiconfig.wi0 wiconfig.wi1
	--- wiconfig.wi0        2008-05-18 19:37:53.000000000 +0200
	+++ wiconfig.wi1        2008-05-18 19:37:59.000000000 +0200
	@@ -1,18 +1,18 @@
	-NIC serial number:                     [ 08U08232658Z ]
	+NIC serial number:                     [ 00UT02418030 ]
	 Station name:                          [  ]
	 SSID for IBSS creation:                        [ Diskworld ]
	 Current netname (SSID):                        [ Diskworld ]
	 Desired netname (SSID):                        [ Diskworld ]
	 Current BSSID:                         [ 00:11:50:06:04:e0 ]
	-Channel list:                          [ 1 2 3 4 5 6 7 8 9 10 11 ]
	-IBSS channel:                          [ 10 ]
	+Channel list:                          [ 1 2 3 4 5 6 7 8 9 10 11 12 13 ]
	+IBSS channel:                          [ 3 ]
	 Current channel:                       [ 8 ]
	-Comms quality/signal/noise:            [ 48 106 58 ]
	+Comms quality/signal/noise:            [ 52 104 52 ]
	 Promiscuous mode:                      [ Off ]
	 Port type:                             [ 1 ]
	-MAC address:                           [ 00:02:2d:87:b2:10 ]
	+MAC address:                           [ 00:60:1d:f6:58:be ]
	 TX rate (selection):                   [ 0 ]
	-TX rate (actual speed):                        [ 2 ]
	+TX rate (actual speed):                        [ 11 ]
	 Beacon Interval (current) [msec]:      [ 100 ]
	 Maximum data length:                   [ 2304 ]
	 RTS/CTS handshake threshold:           [ 2347 ]

	Anybody have an idea where to start digging?

--- snip ---

	Thanks to dyoung for asking the right question; wi0 is on irc 9,
	and that sees no interrupts. auich on the same irq is also broken.

>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:

From: "S.P.Zeidler" <spz@serpens.de>
To: gnats@gnats.netbsd.org
Cc: 
Subject: Re: kern/38691
Date: Mon, 9 Jun 2008 07:51:51 +0200

 I was off in the time it broke. It's tripping over something in the
 src/sys/dev/pci/pccbb.c 1.165 commit; I'll try to find out what exact
 part later today.
 -- 
 spz@serpens.de (S.P.Zeidler)

From: "S.P.Zeidler" <spz@serpens.de>
To: gnats@gnats.netbsd.org
Cc: 
Subject: Re: kern/38691
Date: Tue, 10 Jun 2008 07:20:51 +0200

 ordinary -current dmesg:

 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
     2006, 2007, 2008
     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.99.64 (VOLANS) #17: Sun Jun  8 09:19:11 CEST 2008
 	spz@volans:/home/netbsd/src/sys/arch/i386/compile/obj/VOLANS
 total memory = 511 MB
 avail memory = 496 MB
 timecounter: Timecounters tick every 10.000 msec
 timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
 Dell Computer Corporation Inspiron 4150                   
 PCI BIOS rev. 2.1 found at 0xfbfee
 pcibios: config mechanism [1][x], special cycles [x][x], last bus 2
 PCI IRQ Routing Table rev. 1.0 found at 0xfbb90, size 208 bytes (11 entries)
 PCI Interrupt Router at 000:31:0 (Intel 82371MX (MPIIX) Mobile PCI I/O IDE Xcelerator compatible)
 PIR Entry 0:
 	Bus: 0  Device: 29
 		INTA: link 0x60 bitmap 0xdef8
 		INTB: link 0x63 bitmap 0xdef8
 		INTC: link 0x62 bitmap 0xdef8
 		INTD: link 0x63 bitmap 0xdef8
 PIR Entry 1:
 	Bus: 0  Device: 30
 		INTA: link 0x60 bitmap 0xdef8
 		INTB: link 0x61 bitmap 0xdef8
 		INTC: link 0x62 bitmap 0xdef8
 		INTD: link 0x63 bitmap 0xdef8
 PIR Entry 2:
 	Bus: 0  Device: 31
 		INTA: link 0x62 bitmap 0xdef8
 		INTB: link 0x61 bitmap 0xdef8
 		INTC: link 0x00 bitmap 0x0000
 		INTD: link 0x00 bitmap 0x0000
 PIR Entry 3:
 	Bus: 1  Device: 0
 		INTA: link 0x60 bitmap 0xdef8
 		INTB: link 0x00 bitmap 0x0000
 		INTC: link 0x00 bitmap 0x0000
 		INTD: link 0x00 bitmap 0x0000
 PIR Entry 4:
 	Bus: 2  Device: 0
 		INTA: link 0x62 bitmap 0xdef8
 		INTB: link 0x00 bitmap 0x0000
 		INTC: link 0x00 bitmap 0x0000
 		INTD: link 0x00 bitmap 0x0000
 PIR Entry 5:
 	Bus: 2  Device: 1
 		INTA: link 0x63 bitmap 0xdef8
 		INTB: link 0x00 bitmap 0x0000
 		INTC: link 0x00 bitmap 0x0000
 		INTD: link 0x00 bitmap 0x0000
 PIR Entry 6:
 	Bus: 2  Device: 3
 		INTA: link 0x61 bitmap 0xdef8
 		INTB: link 0x63 bitmap 0xdef8
 		INTC: link 0x00 bitmap 0x0000
 		INTD: link 0x00 bitmap 0x0000
 PIR Entry 7:
 	Bus: 2  Device: 8
 		INTA: link 0x62 bitmap 0xdef8
 		INTB: link 0x00 bitmap 0x0000
 		INTC: link 0x00 bitmap 0x0000
 		INTD: link 0x00 bitmap 0x0000
 PIR Entry 8:
 	Bus: 2  Device: 12
 		INTA: link 0x62 bitmap 0xdef8
 		INTB: link 0x62 bitmap 0xdef8
 		INTC: link 0x62 bitmap 0xdef8
 		INTD: link 0x62 bitmap 0xdef8
 PIR Entry 9:
 	Bus: 8  Device: 0
 		INTA: link 0x61 bitmap 0xdef8
 		INTB: link 0x00 bitmap 0x0000
 		INTC: link 0x00 bitmap 0x0000
 		INTD: link 0x00 bitmap 0x0000
 PIR Entry 10:
 	Bus: 8  Device: 1
 		INTA: link 0x61 bitmap 0xdef8
 		INTB: link 0x00 bitmap 0x0000
 		INTC: link 0x00 bitmap 0x0000
 		INTD: link 0x00 bitmap 0x0000
 pciintr_link_fixup: PIRQ 0x00 already connected to IRQ 11
 pciintr_link_fixup: PIRQ 0x03 already connected to IRQ 11
 pciintr_link_fixup: PIRQ 0x02 already connected to IRQ 11
 pciintr_link_fixup: PIRQ 0x01 already connected to IRQ 11
 pciintr_link_route: route of PIRQ 0x00 -> IRQ 11 preserved BIOS setting
 pciintr_link_route: route of PIRQ 0x03 -> IRQ 11 preserved BIOS setting
 pciintr_link_route: route of PIRQ 0x02 -> IRQ 11 preserved BIOS setting
 pciintr_link_route: route of PIRQ 0x01 -> IRQ 11 preserved BIOS setting
 ------------------------------------------
   device vendor product pin PIRQ IRQ stage
 ------------------------------------------
 000:29:0 0x8086 0x2482   A  0x00  11  0    already assigned
 000:31:1 0x8086 0x248a   A  0x02  11  0    fixed up
 000:31:5 0x8086 0x2485   B  0x01  11  0    already assigned
 000:31:6 0x8086 0x2486   B  0x01  11  0    already assigned
 001:00:0 0x1002 0x4c57   A  0x00  11  0    already assigned
 002:00:0 0x10b7 0x9200   A  0x02  11  0    already assigned
 002:01:0 0x104c 0xac51   A  0x03  11  0    already assigned
 002:01:1 0x104c 0xac51   A  0x03  11  0    already assigned
 002:03:0 0x104c 0xac50   A  0x01  11  0    already assigned
 ------------------------------------------
 pciintr_irq_release: fixup pciirq level/edge map 0x0800
 pciintr_irq_release: bios  pciirq level/edge map 0x0800
 pciintr_irq_release: final pciirq level/edge map 0x0800
 mainbus0 (root)
 cpu0 at mainbus0: Intel 686-class, 1794MHz, id 0xf27
 cpu0: Intel(R) On Demand Clock Modulation (state disabled)
 acpi0 at mainbus0: Intel ACPICA 20080321
 acpi0: X/RSDT: OemId <DELL  , CPi R  ,27d3050f>, AslId <ASL ,00000061>
 LNKA: ACPI: Found matching pin for 0.31.INTA at func 1: 11
 LNKB: ACPI: Found matching pin for 0.31.INTB at func 5: 11
 LNKB: BIOS IRQ 11 for 0.31.INTB is invalid
 LNKA: ACPI: Found matching pin for 0.29.INTA at func 0: 11
 LNKA: ACPI: Found matching pin for 1.0.INTA at func 0: 11
 LNKD: ACPI: Found matching pin for 2.1.INTA at func 0: 11
 LNKB: ACPI: Found matching pin for 2.3.INTA at func 0: 11
 LNKB: BIOS IRQ 11 for 2.3.INTA is invalid
 LNKC: ACPI: Found matching pin for 2.0.INTA at func 0: 11
 acpi0: SCI interrupting at int 9
 timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
 ACPI-Fast 24-bit timer
 acpiacad0 at acpi0 (AC, ACPI0003): ACPI AC Adapter
 acpibat0 at acpi0 (BAT0, PNP0C0A-1): ACPI Battery (Control Method)
 acpibat0: battery info: Sony Corp., LION, LIP8120DLP 20066
 acpibat1 at acpi0 (BAT1, PNP0C0A-2): ACPI Battery (Control Method)
 acpilid0 at acpi0 (LID, PNP0C0D): ACPI Lid Switch
 acpibut0 at acpi0 (PBTN, PNP0C0C): ACPI Power Button
 acpibut1 at acpi0 (SBTN, PNP0C0E): ACPI Sleep Button
 pckbc0 at acpi0 (PS2M, PNP0F13): aux port
 pckbc0: irq 12
 pckbc1 at acpi0 (KBC, PNP0303): kbd port
 pckbc1: io 0x60,0x64 irq 1
 attimer0 at acpi0 (TMR, PNP0100): AT Timer
 attimer0: io 0x40-0x43,0x50-0x53 irq 0
 SPKR (PNP0800) [AT-style speaker sound] at acpi0 not configured
 npx1 at acpi0 (COPR, PNP0C04)
 npx1: io 0xf0-0xff irq 13
 npx1: reported by CPUID; using exception 16
 FDC0 (PNP0700) [PC standard floppy disk controller] at acpi0 not configured
 com0 at acpi0 (UAR1, PNP0501)
 com0: io 0x3f8-0x3ff irq 4
 com0: ns16550a, working fifo
 ECP (PNP0401) [ECP printer port] at acpi0 not configured
 acpitz0 at acpi0 (THM): critical 99.0C, passive cooling
 apm0 at acpi0: Power Management spec V1.2
 pckbd0 at pckbc1 (kbd slot)
 pckbc1: using irq 1 for kbd slot
 wskbd0 at pckbd0: console keyboard
 pms0 at pckbc1 (aux slot)
 pms0: Synaptics touchpad version 5.9
 pms0: Palm detect, Multi-finger
 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 82845 Host (rev. 0x04)
 agp0 at pchb0: aperture at 0xe8000000, size 0x4000000
 ppb0 at pci0 dev 1 function 0: Intel 82845 AGP (rev. 0x04)
 pci1 at ppb0 bus 1
 pci1: i/o space, memory space enabled
 vga0 at pci1 dev 0 function 0: ATI Technologies Radeon Mobility M7 LW (rev. 0x00)
 wsdisplay0 at vga0 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
 wsmux1: connecting to wsdisplay0
 drm at vga0 not configured
 uhci0 at pci0 dev 29 function 0: Intel 82801CA USB Controller (rev. 0x02)
 uhci0: interrupting at irq 11
 usb0 at uhci0: USB revision 1.0
 ppb1 at pci0 dev 30 function 0: Intel 82801BAM Hub-PCI Bridge (rev. 0x42)
 pci2 at ppb1 bus 2
 pci2: i/o space, memory space enabled
 ex0 at pci2 dev 0 function 0: 3Com 3c905C-TX 10/100 Ethernet with mngmt (rev. 0x78)
 ex0: interrupting at irq 11
 ex0: MAC address 00:0b:db:02:6e:93
 exphy0 at ex0 phy 24: 3Com internal media interface
 exphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
 cbb0 at pci2 dev 1 function 0: Texas Instruments PCI1420 PCI-CardBus Bridge (rev. 0x00)
 cbb1 at pci2 dev 1 function 1: Texas Instruments PCI1420 PCI-CardBus Bridge (rev. 0x00)
 cbb2 at pci2 dev 3 function 0: Texas Instruments PCI1410 PCI-CardBus Bridge (rev. 0x01)
 cbb0: read/write bursts enabled
 cbb0: cacheline 0x8 lattimer 0x20
 cbb0: bhlc 0x822008
 cbb0: interrupting at irq 11
 cardslot0 at cbb0 slot 0 flags 0
 cardbus0 at cardslot0: bus 4
 pcmcia0 at cardslot0
 cbb1: read/write bursts enabled
 cbb1: cacheline 0x8 lattimer 0x20
 cbb1: bhlc 0x822008
 cbb1: interrupting at irq 11
 cardslot1 at cbb1 slot 1 flags 0
 cardbus1 at cardslot1: bus 5
 pcmcia1 at cardslot1
 cbb2: cacheline 0x8 lattimer 0x20
 cbb2: bhlc 0x22008
 LNKB: Picked IRQ 9 with weight 0
 cbb2: interrupting at irq 9
 cardslot2 at cbb2 slot 2 flags 0
 cardbus2 at cardslot2: bus 5
 pcmcia2 at cardslot2
 pcib0 at pci0 dev 31 function 0
 pcib0: Intel 82801CAM LPC Interface (rev. 0x02)
 piixide0 at pci0 dev 31 function 1
 piixide0: Intel 82801CA IDE Controller (ICH3) (rev. 0x02)
 piixide0: bus-master DMA support present
 piixide0: primary channel configured to compatibility mode
 piixide0: primary channel interrupting at irq 14
 atabus0 at piixide0 channel 0
 piixide0: secondary channel configured to compatibility mode
 piixide0: secondary channel interrupting at irq 15
 atabus1 at piixide0 channel 1
 auich0 at pci0 dev 31 function 5: i82801CA (ICH3) AC-97 Audio
 auich0: interrupting at irq 9
 auich0: ac97: Crystal CS4205 codec; dedicated mic channel, tone, simulated stereo, bass boost, 20 bit DAC, 18 bit ADC, SRS 3D
 auich0: ac97: ext id 209<AMAP,VRM,VRA>
 Intel 82801CA AC'97 Modem Controller (modem communications, revision 0x02) at pci0 dev 31 function 6 not configured
 isa0 at pcib0
 Initializing SSP:eba25478 5144eafb 90ea3af0 13fab523 da314e9b 33333b19 8e157ddf 5619ac1f 
 timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
 acpiacad0: AC adapter online.
 auich0: measured ac97 link rate at 47991 Hz, will use 48000 Hz
 audio0 at auich0: full duplex, mmap, independent
 uhub0 at usb0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
 uhub0: 2 ports with 2 removable, self powered
 IPsec: Initialized Security Association Processing.
 pcmcia2: CIS version PC Card Standard 5.0
 pcmcia2: CIS info: Dell, TrueMobile 1150 Series PC Card, Version 01.01, 
 pcmcia2: Manufacturer code 0x156, product 0x2
 pcmcia2: function 0: network adapter, ccr addr 3e0 mask 1
 pcmcia2: function 0, config table entry 1: I/O card; irq mask ffff; iomask 6, iospace 0-3f; io16 irqpulse irqlevel
 wi0 at pcmcia2 function 0: <Dell, TrueMobile 1150 Series PC Card, Version 01.01, >
 wi0: 802.11 address 00:02:2d:87:b2:10
 wi0: using Lucent Embedded WaveLAN/IEEE
 wi0: Lucent Firmware: Station (8.10.1)
 wi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
 uhidev0 at uhub0 port 1 configuration 1 interface 0
 uhidev0: Logitech USB RECEIVER, rev 1.10/25.10, addr 2, iclass 3/1
 ums0 at uhidev0: 16 buttons and Z dir.
 wsmouse1 at ums0 mux 0
 wd0 at atabus0 drive 0: <FUJITSU MHT2080AT>
 wd0: drive supports 16-sector PIO transfers, LBA addressing
 wd0: 76319 MB, 155061 cyl, 16 head, 63 sec, 512 bytes/sect x 156301488 sectors
 wd0: 32-bit data port
 wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
 wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA)
 atapibus0 at atabus1: 2 targets
 cd0 at atapibus0 drive 0: <TOSHIBA DVD-ROM SD-C2612, Z2ZN012105, 1D21> 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)
 boot device: wd0
 root on wd0a dumps on wd0b
 dump_misc_init: max_paddr = 0x1ffe2000
 mountroot: trying lfs...
 mountroot: trying ffs...
 root file system type: ffs
 init: copying out path `/sbin/init' 11
 mag 0 1:1
 mag 1 64:2
 mag 2 64:3
 mag 3 62:7f
 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)

From: "S.P.Zeidler" <spz@serpens.de>
To: gnats@gnats.netbsd.org
Cc: 
Subject: Re: kern/38691
Date: Tue, 10 Jun 2008 07:25:17 +0200

 diffed dmesg with rolled back pccbb.c as '164':

 --- dmesg.boot.realcurrent      2008-06-10 06:52:30.000000000 +0200
 +++ dmesg.boot.164      2008-06-10 06:58:42.000000000 +0200
 @@ -4,7 +4,7 @@
  Copyright (c) 1982, 1986, 1989, 1991, 1993
      The Regents of the University of California.  All rights reserved.

 -NetBSD 4.99.64 (VOLANS) #17: Sun Jun  8 09:19:11 CEST 2008
 +NetBSD 4.99.64 (VOLANS) #18: Mon Jun  9 07:33:18 CEST 2008
         spz@volans:/home/netbsd/src/sys/arch/i386/compile/obj/VOLANS
  total memory = 511 MB
  avail memory = 496 MB
 @@ -181,23 +181,23 @@
  cbb1 at pci2 dev 1 function 1: Texas Instruments PCI1420 PCI-CardBus Bridge (rev. 0x00)
  cbb2 at pci2 dev 3 function 0: Texas Instruments PCI1410 PCI-CardBus Bridge (rev. 0x01)
  cbb0: read/write bursts enabled
 +cbb0: interrupting at irq 11
  cbb0: cacheline 0x8 lattimer 0x20
  cbb0: bhlc 0x822008
 -cbb0: interrupting at irq 11
  cardslot0 at cbb0 slot 0 flags 0
  cardbus0 at cardslot0: bus 4
  pcmcia0 at cardslot0
  cbb1: read/write bursts enabled
 +cbb1: interrupting at irq 11
  cbb1: cacheline 0x8 lattimer 0x20
  cbb1: bhlc 0x822008
 -cbb1: interrupting at irq 11
  cardslot1 at cbb1 slot 1 flags 0
  cardbus1 at cardslot1: bus 5
  pcmcia1 at cardslot1
 -cbb2: cacheline 0x8 lattimer 0x20
 -cbb2: bhlc 0x22008
  LNKB: Picked IRQ 9 with weight 0
  cbb2: interrupting at irq 9
 +cbb2: cacheline 0x8 lattimer 0x20
 +cbb2: bhlc 0x22008
  cardslot2 at cbb2 slot 2 flags 0
  cardbus2 at cardslot2: bus 5
  pcmcia2 at cardslot2
 @@ -218,7 +218,7 @@
  auich0: ac97: ext id 209<AMAP,VRM,VRA>
  Intel 82801CA AC'97 Modem Controller (modem communications, revision 0x02) at pci0 dev 31 function 6 not configured
  isa0 at pcib0
 -Initializing SSP:eba25478 5144eafb 90ea3af0 13fab523 da314e9b 33333b19 8e157ddf 5619ac1f 
 +Initializing SSP:d04983d6 9008cdf4 7be27940 346a8d44 ce5e4ab5 52f55986 857599db a03f2b51 
  timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
  acpiacad0: AC adapter online.
  auich0: measured ac97 link rate at 47991 Hz, will use 48000 Hz

From: "S.P.Zeidler" <spz@NetBSD.org>
To: gnats@gnats.netbsd.org
Cc: 
Subject: Re: kern/38691
Date: Sun, 17 Aug 2008 12:20:00 +0000

 With the following workaround, if_wi and auich work (without, they don't):

 Index: sys/dev/pci/pccbb.c
 ===================================================================
 RCS file: /cvsroot/src/sys/dev/pci/pccbb.c,v
 retrieving revision 1.179
 diff -u -r1.179 pccbb.c
 --- sys/dev/pci/pccbb.c	6 Aug 2008 15:50:46 -0000	1.179
 +++ sys/dev/pci/pccbb.c	17 Aug 2008 12:10:29 -0000
 @@ -552,7 +552,7 @@

  	/* CSC Interrupt: turn off card detect and power cycle interrupts */
  	sockmask = bus_space_read_4(bmt, bmh, CB_SOCKET_MASK);
 -	sockmask &= ~(CB_SOCKET_MASK_CSTS | CB_SOCKET_MASK_CD |
 +	sockmask &= ~( CB_SOCKET_MASK_CD |
  		      CB_SOCKET_MASK_POWER);
  	bus_space_write_4(bmt, bmh, CB_SOCKET_MASK, sockmask);
  	/* reset interrupt */
 @@ -962,7 +962,7 @@

  	/* CSC Interrupt: Card detect and power cycle interrupts on */
  	sockmask = bus_space_read_4(bmt, bmh, CB_SOCKET_MASK);
 -	sockmask |= CB_SOCKET_MASK_CSTS | CB_SOCKET_MASK_CD |
 +	sockmask |= CB_SOCKET_MASK_CD |
  	    CB_SOCKET_MASK_POWER;
  	bus_space_write_4(bmt, bmh, CB_SOCKET_MASK, sockmask);
  	/* reset interrupt */
 @@ -3162,7 +3162,7 @@

  	reg = bus_space_read_4(base_memt, base_memh, CB_SOCKET_MASK);
  	/* Disable interrupts. */
 -	reg &= ~(CB_SOCKET_MASK_CSTS | CB_SOCKET_MASK_CD | CB_SOCKET_MASK_POWER);
 +	reg &= ~(CB_SOCKET_MASK_CD | CB_SOCKET_MASK_POWER);
  	bus_space_write_4(base_memt, base_memh, CB_SOCKET_MASK, reg);
  	/* XXX joerg Disable power to the socket? */

 @@ -3200,7 +3200,7 @@
  	/* CSC Interrupt: Card detect interrupt on */
  	reg = bus_space_read_4(base_memt, base_memh, CB_SOCKET_MASK);
  	/* Card detect intr is turned on. */
 -	reg |= CB_SOCKET_MASK_CSTS | CB_SOCKET_MASK_CD | CB_SOCKET_MASK_POWER;
 +	reg |= CB_SOCKET_MASK_CD | CB_SOCKET_MASK_POWER;
  	bus_space_write_4(base_memt, base_memh, CB_SOCKET_MASK, reg);
  	/* reset interrupt */
  	reg = bus_space_read_4(base_memt, base_memh, CB_SOCKET_EVENT);

>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.