libata and legacy ide pcmcia failure

Mark Lord lkml at rtr.ca
Sun Jun 10 16:46:21 EDT 2007


Robert de Rooy wrote:
> Mark Lord wrote:
>> Oh crap.  I did test it a couple of months ago, but my boot/root drive
>> is libata not IDE -- so no panic on boot with it.  After booting, it 
>> worked
>> just fine talking to PC-CARD CF devices using the polling.
> 
> Ok, no problem. I recompiled the kernel with libata (but without the 
> libata pcmcia support), and made legacy ide (only ide-core and ide-cs) 
> modular.
> This allowed me to boot my PATA HDD with libata, and when I plugged in 
> the PCMCIA card it picked it up automatically with the legacy ide drivers.

Good stuff!

> Jun 10 02:40:06 localhost kernel: pccard: PCMCIA card inserted into slot 0
> Jun 10 02:40:07 localhost kernel: cs: memory probe 
> 0xe8000000-0xefffffff: excluding 0xe8000000-0xefffffff
> Jun 10 02:40:07 localhost kernel: cs: memory probe 
> 0xc0200000-0xcfffffff: excluding 0xc0200000-0xc11fffff 
> 0xc1a00000-0xc21fffff 0xc2a00000-0xc31fffff 0xc3a00000-0xcc1fffff 
> 0xcca00000-0xcd1fffff 0xcda00000-0xce1fffff 0xcea00000-0xcf1fffff 
> 0xcfa00000-0xd01fffff
> Jun 10 02:40:07 localhost kernel: pcmcia: registering new device pcmcia0.0
> Jun 10 02:40:07 localhost kernel: Uniform Multi-Platform E-IDE driver 
> Revision: 7.00alpha2
> Jun 10 02:40:07 localhost kernel: ide: Assuming 33MHz system bus speed 
> for PIO modes; override with idebus=xx
> Jun 10 02:40:07 localhost kernel: hda: Memory Card Adapter, CFA DISK drive
> Jun 10 02:40:08 localhost kernel: ide0 at 0x4100-0x4107,0x410e on irq 3
> Jun 10 02:40:08 localhost kernel: ide-cs: hda: Vpp = 0.0
> Jun 10 02:40:08 localhost udevd-event[2630]: udev_rules_apply_format: 
> unknown format variable '$modalias'
> 
> At this point I noticed no /dev/hda* devices existed, so I created them 
> manually with mknod. But regardless I was not able to actually mount a 
> filesystem, getting an error from mount that the device did not exist.

Yeah, I don't see any "parition table" messages there,
so it must've hung on the I/O somehow.
Bummer, but it was worth trying, I suppose.

> When pulling the card I also got the following..
> 
..
> Jun 10 02:41:53 localhost kernel: [ INFO: soft-safe -> soft-unsafe lock 
> order detected ]
..
That's probably some weird interaction with the simple polling patch,
so I think we can disregard it, unless it pops up again someday on
an unpatched kernel.

Well, at this point, I think the only way to make progress is for one of
the IDE/libata gurus to actually get hold of the same card you have,
meaning Alan Cox (best choice), or myself, or Bart.  Or maybe Tejun.

Without that, this isn't likely to improve much.  

Cheers



More information about the linux-pcmcia mailing list