Bug 12291

Summary: pata_pcmcia: Can't go to suspend-to-ram with a pcmcia cardreader in the slot
Product: IO/Storage Reporter: Kseniya (akbara13)
Component: Serial ATAAssignee: Alan (alan)
Status: RESOLVED WILL_NOT_FIX    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.28 Subsystem:
Regression: Yes Bisected commit-id:

Description Kseniya 2008-12-25 06:17:22 UTC
Latest working kernel version: 2.6.27
Earliest failing kernel version: 2.6.28
Distribution: vanilla
Hardware Environment: IBM ThinkPad T43
akbara@akbara:~$ sudo lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d3)
00:1e.2 Multimedia audio controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Audio Controller (rev 03)
00:1e.3 Modem: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) AC'97 Modem Controller (rev 03)
00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 03)
00:1f.2 IDE interface: Intel Corporation 82801FBM (ICH6M) SATA Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5751M Gigabit Ethernet PCI Express (rev 11)
04:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller
04:02.0 Network controller: Intel Corporation PRO/Wireless 2915ABG [Calexico2] Network Connection (rev 05)

Software Environment: Debian Lenny.
Problem Description: after inserting a pcmcia cardreader in the slot the machine can't go to the suspend-to-ram mode.
Steps to reproduce: insert a pcmcia cardreader into the slot and do "sleep 2 && echo -n "mem" > /sys/power/state" (I use a script that doesn't removes the pata_pcmcia module).

The output of dmesg after inserting the cardreader:
[  185.240045] pcmcia_socket pcmcia_socket0: pccard: PCMCIA card inserted into slot 0
[  185.240053] pcmcia_socket pcmcia_socket0: cs: memory probe 0xc8000000-0xcfffffff: excluding 0xc8000000-0xcfffffff
[  185.240073] pcmcia_socket pcmcia_socket0: cs: memory probe 0xa0000000-0xa0ffffff: clean.
[  185.253390] pcmcia 0.0: pcmcia: registering new device pcmcia0.0
[  185.352692] scsi2 : pata_pcmcia
[  185.352752] ata3: PATA max PIO0 cmd 0x4100 ctl 0x410e irq 5
[  185.509614] ata3.00: CFA: ELITE PRO CF CARD 1GB, 20070131, max MWDMA4
[  185.509619] ata3.00: 1989792 sectors, multi 0: LBA 
[  185.512644] ata3.00: configured for PIO0
[  185.518637] ata3.00: configured for PIO0
[  185.518641] ata3: EH complete
[  185.518667] isa bounce pool size: 16 pages
[  185.518742] scsi 2:0:0:0: Direct-Access     ATA      ELITE PRO CF CAR 2007 PQ: 0 ANSI: 5
[  185.519527] sd 2:0:0:0: [sdb] 1989792 512-byte hardware sectors: (1.01 GB/971 MiB)
[  185.519548] sd 2:0:0:0: [sdb] Write Protect is off
[  185.519551] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  185.519581] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  185.519795] sd 2:0:0:0: [sdb] 1989792 512-byte hardware sectors: (1.01 GB/971 MiB)
[  185.519813] sd 2:0:0:0: [sdb] Write Protect is off
[  185.519816] sd 2:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[  185.519845] sd 2:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[  185.519850]  sdb: sdb1
[  185.539234] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[  185.539234] sd 2:0:0:0: Attached scsi generic sg2 type 0