[RFC] PCMCIA patches for 2.6.34

Dominik Brodowski linux at dominikbrodowski.net
Sat Jan 9 07:30:24 EST 2010


Hey,

On Wed, Jan 06, 2010 at 07:30:27PM +0100, Wolfram Sang wrote:
> > thanks for testing -- I think module insertion & removal, combined with card
> > insertion & ejection or suspend / resume might be the most likely error path
> > this time; though I couldn't create any issues here on my test box...
> 
> I did the suggested testing now and everything still behaves like the
> 2.6.30-distro kernel from Debian. Cool work!
> 
> This also means, I discovered something I never noticed before. This happens
> when I remove CF-cards (same for both types I have lying here):
> 
> [  150.313371] pcmcia_socket pcmcia_socket0: pccard: PCMCIA card inserted into slot 0
> [  150.314593] pcmcia 0.0: pcmcia: registering new device pcmcia0.0
> [  150.392217] Probing IDE interface ide2...
> [  150.667050] hde: SanDisk SDCFH-128, CFA DISK drive
> [  151.306831] ide2 at 0xc100-0xc107,0xc10e on irq 11
> [  151.306939] hde: max request size: 128KiB
> [  151.306948] hde: 250880 sectors (128 MB) w/1KiB Cache, CHS=980/8/32
> [  151.307042]  hde: hde1
> [  151.327094] ide-cs: hde: Vpp = 0.0
> [  154.778843] pcmcia_socket pcmcia_socket0: pccard: card ejected from slot 0
> [  154.779280] Trying to free nonexistent resource <000000000000c10e-000000000000c10e>
> [  154.779289] Trying to free nonexistent resource <000000000000c100-000000000000c107>
> 
> The last two lines sound like a problem. Is it known? (I repeat: This is not a
> regression of your patches, it also happens with 2.6.30.)

Not known to me -- does it also happen with pata_pcmcia.c? Also, here's a
test case:

(1) diff between /proc/ioports before and after inserting the card. Extra
bonus i you can grab a /proc/ioports before the ide-cs driver is loaded
(e.g. by moving it away from /lib/modules/... and then insmod'ing it
manually).

(2) issue a manaual unbind of the ide-cs driver:

	echo "pcmcia0.0" > sys/bus/pcmcia/drivers/ide-cs/unbind

    Does the problem appear already at this stage? What's /proc/ioports
    after this unbind?

(3) What happens after card removal to /proc/ioports?

Best,
	Dominik



More information about the linux-pcmcia mailing list