Bug 9459 - [pata-pcmcia] failed to set xfermode
Summary: [pata-pcmcia] failed to set xfermode
Status: CLOSED CODE_FIX
Alias: None
Product: IO/Storage
Classification: Unclassified
Component: Serial ATA (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Alan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-26 01:45 UTC by Oleksij Rempel (fishor)
Modified: 2009-03-24 07:28 UTC (History)
1 user (show)

See Also:
Kernel Version: 2.6.20; 2.6.22
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description Oleksij Rempel (fishor) 2007-11-26 01:45:14 UTC
Most recent kernel where this bug did not occur:
Distribution: Ubuntu Fiesty, Gutsy
Hardware Environment: KINGSTON DP-PCM2/5GB , 

Kingston
5G pcmcia HD is being recognized but not getting set up for access.

[ 26.192474] ata3: PATA max PIO0 cmd 0x00012040 ctl 0x0001204e bmdma
0x00000000 irq 3
[ 26.192496] scsi5 : pata_pcmcia
[ 26.236921] PCI: Setting latency timer of device 0000:00:1b.0 to 64
[ 26.362176] ata3.00: ATA-0: KINGSTON DP-PCM2/5GB, V2.11 B, max PIO2
[ 26.362182] ata3.00: 9818550 sectors, multi 16: LBA
[ 26.362311] ata3.00: failed to set xfermode (err_mask=0x1)
[ 26.362314] ata3: failed to recover some devices, retrying in 5 secs
Comment 1 Oleksij Rempel (fishor) 2007-11-26 01:47:09 UTC
Please see https://bugs.launchpad.net/ubuntu/+source/linux-source-2.6.20/+bug/83471 
for more details.
Comment 2 Alan 2007-11-26 07:39:55 UTC
Interesting. I don't know why the device is claiming to be ATA because it clearly isn't.  I'm not surprised it doesn't work given the way it seems to be behaving.

There is some stuff in both 2.6.23 and more in 2.6.24-rc designed to handle messed up and pre-ATA devices like this.
Comment 3 Any 2008-03-20 16:03:56 UTC

For what it's worth, the problem persists with 2.6.24 on Ubuntu Hardy Alpha 6:

~$ uname -a
Linux roadrunner 2.6.24-12-generic #1 SMP Wed Mar 12 23:01:54 UTC 2008 i686 GNU/Linux

~$ sudo tail /var/log/syslog

Mar 20 23:48:03 roadrunner kernel: [ 217.926147] pccard: PCMCIA card inserted into slot 0
Mar 20 23:48:03 roadrunner kernel: [ 217.926165] cs: memory probe 0xdfd00000-0xdfdfffff: excluding 0xdfd00000-0xdfd0ffff 0xdfdf0000-0xdfdfffff
Mar 20 23:48:03 roadrunner kernel: [ 217.938618] pcmcia: registering new device pcmcia0.0
Mar 20 23:48:03 roadrunner kernel: [ 145.532416] scsi2 : pata_pcmcia
Mar 20 23:48:03 roadrunner kernel: [ 145.533206] ata3: PATA max PIO0 cmd 0xc100 ctl 0xc10e irq 3
Mar 20 23:48:03 roadrunner kernel: [ 218.306820] ata3.00: ATA-0: KINGSTON DP-PCM2/5GB, V2.11 B, max PIO2
Mar 20 23:48:03 roadrunner kernel: [ 218.306833] ata3.00: 9818550 sectors, multi 16: LBA
Mar 20 23:48:03 roadrunner kernel: [ 218.307009] ata3.00: failed to set xfermode (err_mask=0x1)
Mar 20 23:48:03 roadrunner kernel: [ 218.307018] ata3: failed to recover some devices, retrying in 5 secs
Mar 20 23:48:08 roadrunner kernel: [ 219.116460] ata3.00: failed to set xfermode (err_mask=0x1)
Mar 20 23:48:08 roadrunner kernel: [ 219.116474] ata3: failed to recover some devices, retrying in 5 secs
Mar 20 23:48:14 roadrunner kernel: [ 219.334327] ata3.00: failed to set xfermode (err_mask=0x1)
Mar 20 23:48:14 roadrunner kernel: [ 219.334340] ata3.00: disabled
Comment 4 Alan 2008-03-20 16:22:15 UTC
Fun fun - added some more stuff to handle more imagintively broken boxes
Comment 5 Alan 2008-09-23 07:42:35 UTC
Please retest with 2.6.27 when it comes out

Note You need to log in before you can comment on or make changes to this bug.