Bug 6725

Summary: "power bug" in 2.6.17 PCMCIA support
Product: Drivers Reporter: Wolfgang Kempin (kempin)
Component: PCMCIAAssignee: linux-pcmcia
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal CC: daniel.ritz
Priority: P2    
Hardware: i386   
OS: Linux   
Kernel Version: 2.6.17 Subsystem:
Regression: --- Bisected commit-id:
Attachments: 2.6.17 kernel .config
2.6.17-mm5 dmesg
2.6.17-git20 dmesg
dmesg, lspci -vv and cbdump output with kernels 2.6.16.23 and 2.6.17.11

Description Wolfgang Kempin 2006-06-20 12:51:12 UTC
Most recent kernel where this bug did not occur: 2.6.16.18 (maybe later kernels 
work, too)
Distribution: Gentoo Hardened 3.4.5-r1
Hardware Environment: x86 laptop Fujitsu-Siemens Amilo D7800, TI CardBus bridge
Software Environment: kernel

Problem Description:
Since I've upgraded to 2.6.17 I can't get the PCMCIA support to work. The 
kernel notices when cards are inserted or removed, but I get those "power bug" 
error messages (i.e. the kernel can't apply or remove the power to the PCMCIA 
cards). The "power bug" FAQ didn't help.
Everything worked fine in 2.6.16.18 (using the same compiler version).

Steps to reproduce:
* relevant kernel options: lapic pci=assign-busses
* modprobe yenta_socket

Note about the "pci=assign-busses" option:
I get the following messages if I leave it out:

PCI: Bus #03 (-#06) may be hidden behind transparent bridge #02 (-#02) (try 
'pci=assign-busses')
PCI: Bus #07 (-#0a) may be hidden behind transparent bridge #02 (-#02) (try 
'pci=assign-busses')

Those are the cardbus bridges. So I added it to the kernel options, but it 
doesn't make any difference: With 2.6.16.18 it works (whether I'm using the 
option or not) and in 2.6.17 it doesn't work at all.

Here's some more information. I couldn't find any significant difference 
(except the error messages) in the output of dmesg, lspci and the iomem files 
regardless of which kernel version. It just works with the older kernel and not 
with the newer one.

Maybe it's just a mistake of mine. Thanks in advance!

--- dmesg ---
Linux version 2.6.17 (wk@spirit) (gcc version 3.4.5 (Gentoo Hardened 3.4.5-r1, 
HTB-3.4.4-1.00, ssp-3.4.5-1.0, pie-8.7.9)) #2 PREEMPT Tue Jun 20 10:03:18 CEST 
2006
BIOS-provided physical RAM map:
 BIOS-e820: 0000000000000000 - 000000000009fc00 (usable)
 BIOS-e820: 000000000009fc00 - 00000000000a0000 (reserved)
 BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved)
 BIOS-e820: 0000000000100000 - 000000003ffe0000 (usable)
 BIOS-e820: 000000003ffe0000 - 000000003fff8000 (ACPI NVS)
 BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved)
127MB HIGHMEM available.
896MB LOWMEM available.
On node 0 totalpages: 262112
  DMA zone: 4096 pages, LIFO batch:0
  Normal zone: 225280 pages, LIFO batch:31
  HighMem zone: 32736 pages, LIFO batch:7
DMI 2.3 present.
ACPI: RSDP (v000 Acer                                  ) @ 0x000fe030
ACPI: RSDT (v001 Acer   TMH2     0x00000001 Acer 0x00000000) @ 0x3ffe0000
ACPI: FADT (v001 Acer   TMH2     0x00000001 Acer 0x00000000) @ 0x3ffe0054
ACPI: BOOT (v001 Acer   TMH2     0x00000001 Acer 0x00000000) @ 0x3ffe002c
ACPI: DSDT (v001 HTCLTD  HTCXXXX 0x00001000 MSFT 0x0100000d) @ 0x00000000
ACPI: PM-Timer IO Port: 0xf108
Allocating PCI resources starting at 40000000 (gap: 3fff8000:bfff8000)
Built 1 zonelists
Kernel command line: root=/dev/hda2 ro lapic pci=assign-busses init=/bin/sh
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
mapped APIC to ffffd000 (fee00000)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 2000.255 MHz processor.
Using pmtmr for high-res timesource
Console: colour VGA+ 80x25
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1032904k/1048448k available (3611k kernel code, 14912k reserved, 1782k 
data, 192k init, 130944k highmem)
Checking if this processor honours the WP bit even in supervisor mode... Ok.
Calibrating delay using timer specific routine.. 4002.40 BogoMIPS (lpj=2001200)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
CPU: After generic identify, caps: 3febfbff 00000000 00000000 00000000 00000000 
00000000 00000000
CPU: After vendor identify, caps: 3febfbff 00000000 00000000 00000000 00000000 
00000000 00000000
CPU: Trace cache: 12K uops, L1 D cache: 8K
CPU: L2 cache: 512K
CPU: After all inits, caps: 3febfbff 00000000 00000000 00000080 00000000 
00000000 00000000
Intel machine check architecture supported.
Intel machine check reporting enabled on CPU#0.
CPU0: Intel P4/Xeon Extended MCE MSRs (12) available
CPU0: Thermal monitoring enabled
CPU: Intel(R) Pentium(R) 4 CPU 2.00GHz stepping 04
Checking 'hlt' instruction... OK.
SMP alternatives: switching to UP code
Freeing SMP alternatives: 0k freed
ACPI: setting ELCR to 0200 (from 0c00)
NET: Registered protocol family 16
ACPI: bus type pci registered
PCI: PCI BIOS revision 2.10 entry at 0xf0200, last bus=2
Setting up standard PCI resources
ACPI: Subsystem revision 20060127
ACPI: Interpreter enabled
ACPI: Using PIC for interrupt routing
ACPI: PCI Root Bridge [PCI0] (0000:00)
PCI: Probing PCI hardware (bus 00)
ACPI: Assume root bridge [\_SB_.PCI0] bus is 0
PCI quirk: region f100-f17f claimed by ICH4 ACPI/GPIO/TCO
PCI quirk: region f200-f23f claimed by ICH4 GPIO
Boot video device is 0000:01:00.0
PCI: Transparent bridge - 0000:00:1e.0
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.AGP0._PRT]
ACPI: PCI Interrupt Routing Table [\_SB_.PCI0.PCI1._PRT]
ACPI: PCI Interrupt Link [PILA] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [PILB] (IRQs 3 4 5 6 7 *10 11 12 14 15)
ACPI: PCI Interrupt Link [PILC] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [PILD] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [PILE] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [PILF] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [PILG] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: PCI Interrupt Link [PILH] (IRQs 3 4 5 6 7 10 *11 12 14 15)
ACPI: Embedded Controller [EC0] (gpe 29) interrupt mode.
Linux Plug and Play Support v0.97 (c) Adam Belay
pnp: PnP ACPI init
pnp: PnP ACPI: found 13 devices
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
PCI: Using ACPI for IRQ routing
PCI: If a device doesn't work, try "pci=routeirq".  If it helps, post a report
TC classifier action (bugs to netdev@vger.kernel.org cc hadi@cyberus.ca)
pnp: 00:0c: ioport range 0xf100-0xf17f could not be reserved
pnp: 00:0c: ioport range 0xf200-0xf23f has been reserved
pnp: 00:0c: ioport range 0x4d0-0x4d1 has been reserved
pnp: 00:0c: ioport range 0x580-0x587 has been reserved
PCI: Bridge: 0000:00:01.0
  IO window: a000-afff
  MEM window: 80500000-805fffff
  PREFETCH window: 80600000-900fffff
PCI: Bus 3, cardbus bridge: 0000:02:09.0
  IO window: 00007400-000074ff
  IO window: 00007800-000078ff
  PREFETCH window: 40000000-41ffffff
  MEM window: 46000000-47ffffff
PCI: Bus 7, cardbus bridge: 0000:02:09.1
  IO window: 00007c00-00007cff
  IO window: 00001000-000010ff
  PREFETCH window: 42000000-43ffffff
  MEM window: 48000000-49ffffff
PCI: Bridge: 0000:00:1e.0
  IO window: 7000-7fff
  MEM window: 80100000-801fffff
  PREFETCH window: 40000000-44ffffff
PCI: Setting latency timer of device 0000:00:1e.0 to 64
ACPI: PCI Interrupt Link [PILC] enabled at IRQ 11
PCI: setting IRQ 11 as level-triggered
ACPI: PCI Interrupt 0000:02:09.0[A] -> Link [PILC] -> GSI 11 (level, low) -> 
IRQ 11
ACPI: PCI Interrupt Link [PILG] enabled at IRQ 11
ACPI: PCI Interrupt 0000:02:09.1[B] -> Link [PILG] -> GSI 11 (level, low) -> 
IRQ 11
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 7, 524288 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
Simple Boot Flag at 0x6e set to 0x80
Machine check exception polling timer started.
audit: initializing netlink socket (disabled)
audit(1150836577.739:1): initialized
highmem bounce pool size: 64 pages
VFS: Disk quotas dquot_6.5.1
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
SGI XFS with ACLs, security attributes, large block numbers, no debug enabled
SGI XFS Quota Management subsystem
Initializing Cryptographic API
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
ACPI: AC Adapter [AC] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Power Button (FF) [PWRF]
ACPI: Sleep Button (CM) [SLPB]
ACPI: Lid Switch [LID]
ACPI: Power Button (CM) [PWBT]
ACPI: Thermal Zone [THR1] (54 C)
ACPI: Thermal Zone [THR2] (65 C)
lp: driver loaded but no devices found
Real Time Clock Driver v1.12ac
Linux agpgart interface v0.101 (c) Dave Jones
agpgart: Detected an Intel i845 Chipset.
agpgart: AGP aperture is 256M @ 0xe0000000
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a NS16550A
00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
ACPI: PCI Interrupt Link [PILB] enabled at IRQ 10
PCI: setting IRQ 10 as level-triggered
ACPI: PCI Interrupt 0000:00:1f.6[B] -> Link [PILB] -> GSI 10 (level, low) -> 
IRQ 10
ACPI: PCI interrupt for device 0000:00:1f.6 disabled
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378, irq 7 [PCSPP]
lp0: using parport0 (interrupt-driven).
Floppy drive(s): fd0 is 1.44M
FDC 0 is a National Semiconductor PC87306
loop: loaded (max 8 devices)
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
ICH2: IDE controller at PCI slot 0000:00:1f.1
ICH2: chipset revision 5
ICH2: not 100% native mode: will probe irqs later
    ide0: BM-DMA at 0xbc90-0xbc97, BIOS settings: hda:DMA, hdb:pio
    ide1: BM-DMA at 0xbc98-0xbc9f, BIOS settings: hdc:DMA, hdd:pio
Probing IDE interface ide0...
hda: FUJITSU MHU2100AT, ATA DISK drive
ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Probing IDE interface ide1...
hdc: UJDA720 DVD/CDRW, ATAPI CD/DVD-ROM drive
ide1 at 0x170-0x177,0x376 on irq 15
hda: max request size: 128KiB
hda: 195371568 sectors (100030 MB) w/8192KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes supported
 hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 >
hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.20
ieee1394: Initialized config rom entry `ip1394'
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt Link [PILD] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:1f.2[D] -> Link [PILD] -> GSI 11 (level, low) -> 
IRQ 11
PCI: Setting latency timer of device 0000:00:1f.2 to 64
uhci_hcd 0000:00:1f.2: UHCI Host Controller
uhci_hcd 0000:00:1f.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1f.2: irq 11, io base 0x00008000
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ACPI: PCI Interrupt Link [PILH] enabled at IRQ 11
ACPI: PCI Interrupt 0000:00:1f.4[C] -> Link [PILH] -> GSI 11 (level, low) -> 
IRQ 11
PCI: Setting latency timer of device 0000:00:1f.4 to 64
uhci_hcd 0000:00:1f.4: UHCI Host Controller
uhci_hcd 0000:00:1f.4: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1f.4: irq 11, io base 0x00008060
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using uhci_hcd and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.1: new low speed USB device using uhci_hcd and address 3
usb 1-1.1: configuration #1 chosen from 1 choice
usb 1-1.2: new low speed USB device using uhci_hcd and address 4
usb 1-1.2: configuration #1 chosen from 1 choice
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver hiddev
input: AIPTEK APT-6000U as /class/input/input0
input,hiddev0: USB HID v1.01 Mouse [AIPTEK APT-6000U] on usb-0000:00:1f.2-1.1
input: CHESEN USB Keyboard as /class/input/input1
input: USB HID v1.10 Keyboard [CHESEN USB Keyboard] on usb-0000:00:1f.2-1.2
input: CHESEN USB Keyboard as /class/input/input2
input: USB HID v1.10 Device [CHESEN USB Keyboard] on usb-0000:00:1f.2-1.2
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
PNP: PS/2 Controller [PNP0303:KBC0,PNP0f13:PS2M] at 0x60,0x64 irq 1,12
i8042.c: Detected active multiplexing controller, rev 1.1.
serio: i8042 AUX0 port at 0x60,0x64 irq 12
serio: i8042 AUX1 port at 0x60,0x64 irq 12
serio: i8042 AUX2 port at 0x60,0x64 irq 12
serio: i8042 AUX3 port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
mice: PS/2 mouse device common for all mice
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: automatically using best checksumming function: pIII_sse
   pIII_sse  :  2548.000 MB/sec
raid5: using function: pIII_sse (2548.000 MB/sec)
raid6: int32x1    570 MB/s
raid6: int32x2    746 MB/s
raid6: int32x4    496 MB/s
raid6: int32x8    386 MB/s
raid6: mmxx1     1644 MB/s
raid6: mmxx2     2062 MB/s
raid6: sse1x1    1007 MB/s
raid6: sse1x2    2007 MB/s
raid6: sse2x1    2207 MB/s
raid6: sse2x2    2257 MB/s
raid6: using algorithm sse2x2 (2257 MB/s)
md: raid6 personality registered for level 6
md: multipath personality registered for level -4
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
device-mapper: 4.6.0-ioctl (2006-02-17) initialised: dm-devel@redhat.com
device-mapper: dm-multipath version 1.0.4 loaded
device-mapper: dm-round-robin version 1.0.0 loaded
oprofile: using NMI interrupt.
ip_conntrack version 2.4 (8191 buckets, 65528 max) - 224 bytes per conntrack
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
p4-clockmod: P4/Xeon(TM) CPU On-Demand Clock Modulation available
Using IPI Shortcut mode
ACPI wakeup devices: 
SLPB OZ68 OZ69 OBLN OBMO ICH2  LID 
ACPI: (supports S0 S3 S4 S5)
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
UDF-fs: No VRS found
XFS mounting filesystem hda2
input: AT Translated Set 2 keyboard as /class/input/input3
Ending clean XFS mount for filesystem: hda2
VFS: Mounted root (xfs filesystem) readonly.
Freeing unused kernel memory: 192k freed
Synaptics Touchpad, model: 1, fw: 5.8, id: 0x9248b1, caps: 0x904713/0x4000
input: SynPS/2 Synaptics TouchPad as /class/input/input4
ACPI: PCI Interrupt 0000:02:09.0[A] -> Link [PILC] -> GSI 11 (level, low) -> 
IRQ 11
Yenta: CardBus bridge found at 0000:02:09.0 [1025:1027]
Yenta: Enabling burst memory read transactions
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:02:09.0, mfunc 0x01001022, devctl 0x64
Yenta: ISA IRQ mask 0x0038, PCI irq 11
Socket status: 30000006
pcmcia: parent PCI bridge I/O window: 0x7000 - 0x7fff
pcmcia: parent PCI bridge Memory window: 0x80100000 - 0x801fffff
pcmcia: parent PCI bridge Memory window: 0x40000000 - 0x44ffffff
ACPI: PCI Interrupt 0000:02:09.1[B] -> Link [PILG] -> GSI 11 (level, low) -> 
IRQ 11
Yenta: CardBus bridge found at 0000:02:09.1 [1025:1027]
Yenta: Using CSCINT to route CSC interrupts to PCI
Yenta: Routing CardBus interrupts to PCI
Yenta TI: socket 0000:02:09.1, mfunc 0x01001022, devctl 0x64
Yenta: ISA IRQ mask 0x0038, PCI irq 11
Socket status: 30000020
pcmcia: parent PCI bridge I/O window: 0x7000 - 0x7fff
pcmcia: parent PCI bridge Memory window: 0x80100000 - 0x801fffff
pcmcia: parent PCI bridge Memory window: 0x40000000 - 0x44ffffff
pccard: CardBus card inserted into slot 1
--- taking the card out and reinserting it: ---
pccard: card ejected from slot 1
PCMCIA: socket f7df5828: *** DANGER *** unable to remove socket power
pccard: CardBus card inserted into slot 1
-------
(In 2.6.18 it just goes on loading the card specific drivers instead of the 
error message)

--- lspci -vv ---
00:00.0 Host bridge: Intel Corporation 82845 845 (Brookdale) Chipset Host 
Bridge (rev 04)
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort+ >SERR- <PERR-
	Latency: 0
	Region 0: Memory at e0000000 (32-bit, prefetchable) [size=256M]
	Capabilities: [e4] Vendor Specific Information
	Capabilities: [a0] AGP version 2.0
		Status: RQ=32 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 
64bit- FW+ AGP3- Rate=x1,x2,x4
		Command: RQ=1 ArqSz=0 Cal=0 SBA- AGP+ GART64- 64bit- FW- 
Rate=x4

00:01.0 PCI bridge: Intel Corporation 82845 845 (Brookdale) Chipset AGP Bridge 
(rev 04) (prog-if 00 [Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B-
	Status: Cap- 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 64
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=64
	I/O behind bridge: 0000a000-0000afff
	Memory behind bridge: 80500000-805fffff
	Prefetchable memory behind bridge: 80600000-900fffff
	Secondary status: 66MHz+ FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA+ VGA+ MAbort- >Reset- FastB2B-

00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 05) (prog-if 00 
[Normal decode])
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=fast >TAbort- <TAbort- 
<MAbort- >SERR- <PERR-
	Latency: 0
	Bus: primary=00, secondary=02, subordinate=0a, sec-latency=0
	I/O behind bridge: 00007000-00007fff
	Memory behind bridge: 80100000-801fffff
	Prefetchable memory behind bridge: 40000000-44ffffff
	Secondary status: 66MHz- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- <SERR- <PERR-
	BridgeCtl: Parity- SERR- NoISA+ VGA- MAbort- >Reset- FastB2B-

00:1f.0 ISA bridge: Intel Corporation 82801BA ISA Bridge (LPC) (rev 05)
	Control: I/O+ Mem+ BusMaster+ SpecCycle+ MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0

00:1f.1 IDE interface: Intel Corporation 82801BA IDE U100 (rev 05) (prog-if 80 
[Master])
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Region 4: I/O ports at bc90 [size=16]

00:1f.2 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #1) (rev 05) 
(prog-if 00 [UHCI])
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Interrupt: pin D routed to IRQ 11
	Region 4: I/O ports at 8000 [size=32]

00:1f.3 SMBus: Intel Corporation 82801BA/BAM SMBus (rev 05)
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin B routed to IRQ 10
	Region 4: I/O ports at f300 [size=16]

00:1f.4 USB Controller: Intel Corporation 82801BA/BAM USB (Hub #2) (rev 05) 
(prog-if 00 [UHCI])
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O+ Mem- BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 0
	Interrupt: pin C routed to IRQ 11
	Region 4: I/O ports at 8060 [size=32]

00:1f.5 Multimedia audio controller: Intel Corporation 82801BA/BAM AC'97 Audio 
(rev 05)
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin B routed to IRQ 10
	Region 0: I/O ports at b000 [size=256]
	Region 1: I/O ports at b400 [size=64]

00:1f.6 Modem: Intel Corporation 82801BA/BAM AC'97 Modem (rev 05) (prog-if 00 
[Generic])
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O+ Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap- 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin B routed to IRQ 10
	Region 0: I/O ports at b800 [size=256]
	Region 1: I/O ports at bc00 [size=128]

01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M6 LY 
(prog-if 00 [VGA])
	Subsystem: Acer Incorporated [ALI] Unknown device 101d
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping+ SERR- FastB2B-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 88000000 (32-bit, prefetchable) [size=128M]
	Region 1: I/O ports at a000 [size=256]
	Region 2: Memory at 80500000 (32-bit, non-prefetchable) [size=64K]
	Expansion ROM at 80520000 [disabled] [size=128K]
	Capabilities: [58] AGP version 2.0
		Status: RQ=48 Iso- ArqSz=0 Cal=0 SBA+ ITACoh- GART64- HTrans- 
64bit- FW- AGP3- Rate=x1,x2,x4
		Command: RQ=1 ArqSz=0 Cal=0 SBA+ AGP- GART64- 64bit- FW- 
Rate=<none>
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0-,D1-,D2-,D3hot-,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:03.0 FireWire (IEEE 1394): Texas Instruments TSB43AB21 IEEE-1394a-2000 
Controller (PHY/Link) (prog-if 10 [OHCI])
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 32 (500ns min, 1000ns max), Cache Line Size 08
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 80100000 (32-bit, non-prefetchable) [size=2K]
	Region 1: Memory at 80104000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: [44] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA 
PME(D0+,D1+,D2+,D3hot+,D3cold-)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:05.0 Ethernet controller: Realtek Semiconductor Co., Ltd. 
RTL-8139/8139C/8139C+ (rev 10)
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR+ FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Interrupt: pin A routed to IRQ 10
	Region 0: I/O ports at 7000 [size=256]
	Region 1: Memory at 80100800 (32-bit, non-prefetchable) [size=256]
	Expansion ROM at 44000000 [disabled] [size=64K]
	Capabilities: [50] Power Management version 2
		Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA 
PME(D0-,D1+,D2+,D3hot+,D3cold+)
		Status: D0 PME-Enable- DSel=0 DScale=0 PME-

02:09.0 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller 
(rev 01)
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 168, Cache Line Size 20
	Interrupt: pin A routed to IRQ 11
	Region 0: Memory at 80101000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=02, secondary=03, subordinate=06, sec-latency=176
	Memory window 0: 40000000-41fff000 (prefetchable)
	Memory window 1: 46000000-47fff000
	I/O window 0: 00007400-000074ff
	I/O window 1: 00007800-000078ff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset+ 16bInt+ PostWrite+
	16-bit legacy interface ports at 0001

02:09.1 CardBus bridge: Texas Instruments PCI1520 PC card Cardbus Controller 
(rev 01)
	Subsystem: Acer Incorporated [ALI] Unknown device 1027
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B-
	Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- 
<TAbort- <MAbort- >SERR- <PERR-
	Latency: 168, Cache Line Size 20
	Interrupt: pin B routed to IRQ 11
	Region 0: Memory at 80102000 (32-bit, non-prefetchable) [size=4K]
	Bus: primary=02, secondary=07, subordinate=0a, sec-latency=176
	Memory window 0: 42000000-43fff000 (prefetchable)
	Memory window 1: 48000000-49fff000
	I/O window 0: 00007c00-00007cff
	I/O window 1: 00001000-000010ff
	BridgeCtl: Parity- SERR- ISA- VGA- MAbort- >Reset- 16bInt- PostWrite+
	16-bit legacy interface ports at 0001
-------

--- /proc/iomem ---
00000000-0009fbff : System RAM
  00000000-00000000 : Crash kernel
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000cffff : Video ROM
000f0000-000fffff : System ROM
00100000-3ffdffff : System RAM
  00100000-00486dec : Kernel code
  00486ded-0064461f : Kernel data
3ffe0000-3fff7fff : ACPI Non-volatile Storage
40000000-44ffffff : PCI Bus #02
  40000000-41ffffff : PCI CardBus #03
  42000000-43ffffff : PCI CardBus #07
  44000000-4400ffff : 0000:02:05.0
46000000-47ffffff : PCI CardBus #03
48000000-49ffffff : PCI CardBus #07
80100000-801fffff : PCI Bus #02
  80100000-801007ff : 0000:02:03.0
  80100800-801008ff : 0000:02:05.0
  80101000-80101fff : 0000:02:09.0
    80101000-80101fff : yenta_socket
  80102000-80102fff : 0000:02:09.1
    80102000-80102fff : yenta_socket
  80104000-80107fff : 0000:02:03.0
80500000-805fffff : PCI Bus #01
  80500000-8050ffff : 0000:01:00.0
  80520000-8053ffff : 0000:01:00.0
80600000-900fffff : PCI Bus #01
  88000000-8fffffff : 0000:01:00.0
e0000000-efffffff : 0000:00:00.0
ffff0000-ffffffff : reserved
-------

--- /proc/ioports ---
0000-001f : dma1
0020-0021 : pic1
0040-0043 : timer0
0050-0053 : timer1
0060-006f : keyboard
0070-0077 : rtc
0080-008f : dma page reg
00a0-00a1 : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
02f8-02ff : serial
0376-0376 : ide1
0378-037a : parport0
03c0-03df : vga+
03f6-03f6 : ide0
03f8-03ff : serial
04d0-04d1 : pnp 00:0c
0580-0587 : pnp 00:0c
1000-10ff : PCI CardBus #07
7000-7fff : PCI Bus #02
  7000-70ff : 0000:02:05.0
  7400-74ff : PCI CardBus #03
  7800-78ff : PCI CardBus #03
  7c00-7cff : PCI CardBus #07
8000-801f : 0000:00:1f.2
  8000-801f : uhci_hcd
8060-807f : 0000:00:1f.4
  8060-807f : uhci_hcd
a000-afff : PCI Bus #01
  a000-a0ff : 0000:01:00.0
b000-b0ff : 0000:00:1f.5
b400-b43f : 0000:00:1f.5
b800-b8ff : 0000:00:1f.6
bc00-bc7f : 0000:00:1f.6
bc90-bc9f : 0000:00:1f.1
  bc90-bc97 : ide0
  bc98-bc9f : ide1
f100-f17f : 0000:00:1f.0
  f100-f17f : motherboard
    f100-f103 : PM1a_EVT_BLK
    f104-f105 : PM1a_CNT_BLK
    f108-f10b : PM_TMR
    f110-f115 : ACPI CPU throttle
    f128-f12b : GPE0_BLK
    f12c-f12f : GPE1_BLK
f200-f23f : 0000:00:1f.0
  f200-f23f : motherboard
    f200-f23f : pnp 00:0c
f300-f30f : 0000:00:1f.3
-------

Additionally with 2.6.16.18:
---
0cf8-0cff : PCI conf1
---
Comment 1 Wolfgang Kempin 2006-06-20 13:25:20 UTC
Created attachment 8355 [details]
2.6.17 kernel .config
Comment 2 Dominik Brodowski 2006-07-02 11:37:44 UTC
Could you try out 2.6.17-mm5 or Linus' latest -git tree, please?
Comment 3 Wolfgang Kempin 2006-07-03 05:31:36 UTC
I tried it again with clean 2.6.17-mm5 and 2.6.17-git20 source trees (using the
same .config as before), but the problem is just the same.

First I suspected that it might be a problem with Gentoo Hardened, but I've
configured it to use plain vanilla gcc at the moment, so I don't think it's related.
I also tried experimenting with some kernel options (adding/removing "lapic";
adding a memory range exclusion that was necessary in <2.6.14 versions, because
the cardbus bridge otherwise got a memory range in existing RAM) to no avail.
Adding "disable_clkrun=1" to the yenta_socket parameter list didn't help either.

Any ideas what I could try next?
Comment 4 Wolfgang Kempin 2006-07-03 05:33:05 UTC
Created attachment 8482 [details]
2.6.17-mm5 dmesg
Comment 5 Wolfgang Kempin 2006-07-03 05:33:41 UTC
Created attachment 8483 [details]
2.6.17-git20 dmesg
Comment 6 Wolfgang Kempin 2006-07-03 08:16:45 UTC
Same with 2.6.17-mm6:

-----
[... same as -mm5 dmesg posed before ...]
pccard: CardBus card inserted into slot 1
pccard: card ejected from slot 1
PCMCIA: socket f7e17028: *** DANGER *** unable to remove socket power
ds: ds_event(0x000008, 1, 0xf7e17028)
ds: unbind_request(1)
-----
Comment 7 Wolfgang Kempin 2006-07-03 09:07:03 UTC
Investigated a bit more: The most recent working kernel is 2.6.16.23 (i.e. the
last 2.6.16.* kernel).
Comment 8 Daniel Ritz 2006-08-18 09:33:37 UTC
could you post a dmesg and lspci -vv from a 2.6.16.x kernel? also the output of
cbdump (part of pcmciautils) right after the message appears with a 2.6.17 kernel
please.
Comment 9 Wolfgang Kempin 2006-09-04 10:07:06 UTC
Created attachment 8937 [details]
dmesg, lspci -vv and cbdump output with kernels 2.6.16.23 and 2.6.17.11

Sorry for the long delay, but I was busy moving.
The attachment contains the output of "dmesg", "lspci -vv" and "cbdump"
after...

1) booting the system and inserting pcmcia + yenta_socket,
2) inserting a PCMCIA card into one of the sockets, and
3) removing the PCMCIA card again

under both kernel 2.6.16.23 and 2.6.17.11.

The files in the archive can also be found seperately at
http://shiken.de/pcmcia/ .
Comment 10 Daniel Ritz 2006-09-12 14:19:27 UTC
ok, it looks like the PCI access thing. to make it work in 2.6.17 either boot with 
the option pci=conf1 (in your case pci=assign-busses,conf1 ) or apply the patch
already found in 2.6.18-rc5:
http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=954c0b7cd5b9aaa11fb67a0c011fcb5e5897385a
Comment 11 Wolfgang Kempin 2006-10-06 06:19:19 UTC
Thanks a lot! It's just as you described.