RE: pcmcia - failed to initialize IDE interface
> Which would be the correct way to make pcmcia_request_irq() > use the correct value of 40? This is in drivers/pcmcia/au1000_db1x00.c: db1x00_pcmcia_hw_init(): skt->irq = AU1000_GPIO_8; /* = 40 */ Now the CF is working fine. Fabrice - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: pcmcia - failed to initialize IDE interface
I think I isolated the problem: in ide-cs.c, ide_config() is calling pcmcia_request_irq(), and this function happens to set irq=35. This irq was not rejected later in ide_probe.c, hwif_init(): ide0: Disabled unable to get IRQ 35 I noticed that the old kernel 2.4.26 used irq=40 here. So I tried to force pcmcia_request_irq() to set irq=40, like follows: --- linux-2.6.20.7-orig/drivers/pcmcia/pcmcia_resource.c 2007-04-15 21:08:02.0 +0200 +++ linux-2.6.20.7/drivers/pcmcia/pcmcia_resource.c 2007-04-27 09:20:41.0 +0200 @@ -867,6 +867,7 @@ printk(KERN_WARNING "pcmcia: request for exclusive IRQ could not be fulfilled.\n"); printk(KERN_WARNING "pcmcia: the driver needs updating to supported shared IRQ lines.\n"); } + irq = 40; c->irq.Attributes = req->Attributes; s->irq.AssignedIRQ = req->AssignedIRQ = irq; s->irq.Config++; and this happens to work: ide_config() succeeds, and finally I can mount the CF and use it. Other values for irq (i tried 39, 41) won't work either. Which would be the correct way to make pcmcia_request_irq() use the correct value of 40? Fabrice > -Original Message- > From: Andrew Morton [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 26. April 2007 04:08 > To: Aeschbacher, Fabrice > Cc: lkml; [EMAIL PROTECTED] > Subject: Re: pcmcia - failed to initialize IDE interface > > On Wed, 25 Apr 2007 15:27:26 +0200 "Aeschbacher, Fabrice" > <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > [kernel 2.6.20.7, arch=mips, processor=amd au1550] > > > > I'm trying to install a 2.6 kernel on an Alchemy au1550, and having > > problem with the pcmcia socket, where I plugged a > CompactFlash card. > > The card seems to be recognized by the kernel, appears in > > /sys/bus/pcmcia/devices, but not in /proc/bus/pccard, and I can't > > access the device (/dev/hda). > > > > The relevant console messages: > > > > pccard: PCMCIA card inserted into slot 0 > > pcmcia: registering new device pcmcia0.0 > > hda: SanDisk SDCFB-64, CFA DISK drive > > ide0: Disabled unable to get IRQ 35. > > ide0: failed to initialize IDE interface > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide-cs: ide_register() at 0x102000 & 0x10200e, irq 35 failed > > > > > > Here is the relevant part of the kernel config: > > CONFIG_IDE=y > > CONFIG_IDE_GENERIC=y > > CONFIG_BLK_DEV_IDE=y > > CONFIG_BLK_DEV_IDECS=y > > CONFIG_PCCARD=y > > CONFIG_PCMCIA_DEBUG=y > > CONFIG_PCMCIA=y > > CONFIG_PCMCIA_AU1X00=y > > > > (cc'ed linux-mips) > > Perhaps /proc/ioports will tell us where the conflict lies. > > The output of `dmesg -s 100' might also be needed. > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: pcmcia - failed to initialize IDE interface
On Thu, Apr 26, 2007 at 10:48:09AM +0200, Aeschbacher, Fabrice wrote: > __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] > __request_resource: new=ide0[102000-102007], root=PCI IO[1000-f] > > I added some printk() only for debugging raisons (for example in > __request_resource, as you can see) You might want to also dump the resource flags as well. The two I show above (from the PCMCIA calls in ide_config) should not mark the resources busy. -- Russell King Linux kernel2.6 ARM Linux - http://www.arm.linux.org.uk/ maintainer of: - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
RE: pcmcia - failed to initialize IDE interface
A DISK drive probing for hdb: present=0, media=32, probetype=ATA probing for hdb: present=0, media=32, probetype=ATAPI calling ide_default_irq(102000) ide0: Disabled unable to get IRQ 35. ide0: failed to initialize IDE interface __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe No module found in object __request_resource: new=ide0[10200e-10200e], root=PCI IO[1000-f] ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide-cs: ide_register() at 0x102000 & 0x10200e, irq 35 failed ide_release(0x812a4400) eth0: link up (100/Full) eth0: Pass all multicast - I added some printk() only for debugging raisons (for example in __request_resource, as you can see) Best regards, Fabrice Aeschbacher > -Original Message- > From: Andrew Morton [mailto:[EMAIL PROTECTED] > Sent: Donnerstag, 26. April 2007 04:08 > To: Aeschbacher, Fabrice > Cc: lkml; [EMAIL PROTECTED] > Subject: Re: pcmcia - failed to initialize IDE interface > > On Wed, 25 Apr 2007 15:27:26 +0200 "Aeschbacher, Fabrice" > <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > [kernel 2.6.20.7, arch=mips, processor=amd au1550] > > > > I'm trying to install a 2.6 kernel on an Alchemy au1550, and having > > problem with the pcmcia socket, where I plugged a > CompactFlash card. > > The card seems to be recognized by the kernel, appears in > > /sys/bus/pcmcia/devices, but not in /proc/bus/pccard, and I can't > > access the device (/dev/hda). > > > > The relevant console messages: > > > > pccard: PCMCIA card inserted into slot 0 > > pcmcia: registering new device pcmcia0.0 > > hda: SanDisk SDCFB-64, CFA DISK drive > > ide0: Disabled unable to get IRQ 35. > > ide0: failed to initialize IDE interface > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide0: I/O resource 0x10200E-0x10200E not free. > > ide0: ports already in use, skipping probe > > ide-cs: ide_register() at 0x102000 & 0x10200e, irq 35 failed > > > > > > Here is the relevant part of the kernel config: > > CONFIG_IDE=y > > CONFIG_IDE_GENERIC=y > > CONFIG_BLK_DEV_IDE=y > > CONFIG_BLK_DEV_IDECS=y > > CONFIG_PCCARD=y > > CONFIG_PCMCIA_DEBUG=y > > CONFIG_PCMCIA=y > > CONFIG_PCMCIA_AU1X00=y > > > > (cc'ed linux-mips) > > Perhaps /proc/ioports will tell us where the conflict lies. > > The output of `dmesg -s 100' might also be needed. > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Re: pcmcia - failed to initialize IDE interface
On Wed, 25 Apr 2007 15:27:26 +0200 "Aeschbacher, Fabrice" <[EMAIL PROTECTED]> wrote: > Hi, > > [kernel 2.6.20.7, arch=mips, processor=amd au1550] > > I'm trying to install a 2.6 kernel on an Alchemy au1550, and having > problem with the pcmcia socket, where I plugged a CompactFlash card. The > card seems to be recognized by the kernel, appears in > /sys/bus/pcmcia/devices, but not in /proc/bus/pccard, and I can't access > the device (/dev/hda). > > The relevant console messages: > > pccard: PCMCIA card inserted into slot 0 > pcmcia: registering new device pcmcia0.0 > hda: SanDisk SDCFB-64, CFA DISK drive > ide0: Disabled unable to get IRQ 35. > ide0: failed to initialize IDE interface > ide0: I/O resource 0x10200E-0x10200E not free. > ide0: ports already in use, skipping probe > ide0: I/O resource 0x10200E-0x10200E not free. > ide0: ports already in use, skipping probe > ide0: I/O resource 0x10200E-0x10200E not free. > ide0: ports already in use, skipping probe > ide0: I/O resource 0x10200E-0x10200E not free. > ide0: ports already in use, skipping probe > ide0: I/O resource 0x10200E-0x10200E not free. > ide0: ports already in use, skipping probe > ide0: I/O resource 0x10200E-0x10200E not free. > ide0: ports already in use, skipping probe > ide0: I/O resource 0x10200E-0x10200E not free. > ide0: ports already in use, skipping probe > ide0: I/O resource 0x10200E-0x10200E not free. > ide0: ports already in use, skipping probe > ide0: I/O resource 0x10200E-0x10200E not free. > ide0: ports already in use, skipping probe > ide-cs: ide_register() at 0x102000 & 0x10200e, irq 35 failed > > > Here is the relevant part of the kernel config: > CONFIG_IDE=y > CONFIG_IDE_GENERIC=y > CONFIG_BLK_DEV_IDE=y > CONFIG_BLK_DEV_IDECS=y > CONFIG_PCCARD=y > CONFIG_PCMCIA_DEBUG=y > CONFIG_PCMCIA=y > CONFIG_PCMCIA_AU1X00=y > (cc'ed linux-mips) Perhaps /proc/ioports will tell us where the conflict lies. The output of `dmesg -s 100' might also be needed. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
pcmcia - failed to initialize IDE interface
Hi, [kernel 2.6.20.7, arch=mips, processor=amd au1550] I'm trying to install a 2.6 kernel on an Alchemy au1550, and having problem with the pcmcia socket, where I plugged a CompactFlash card. The card seems to be recognized by the kernel, appears in /sys/bus/pcmcia/devices, but not in /proc/bus/pccard, and I can't access the device (/dev/hda). The relevant console messages: pccard: PCMCIA card inserted into slot 0 pcmcia: registering new device pcmcia0.0 hda: SanDisk SDCFB-64, CFA DISK drive ide0: Disabled unable to get IRQ 35. ide0: failed to initialize IDE interface ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide0: I/O resource 0x10200E-0x10200E not free. ide0: ports already in use, skipping probe ide-cs: ide_register() at 0x102000 & 0x10200e, irq 35 failed Here is the relevant part of the kernel config: CONFIG_IDE=y CONFIG_IDE_GENERIC=y CONFIG_BLK_DEV_IDE=y CONFIG_BLK_DEV_IDECS=y CONFIG_PCCARD=y CONFIG_PCMCIA_DEBUG=y CONFIG_PCMCIA=y CONFIG_PCMCIA_AU1X00=y Any help would be greatly appreciated. Please Cc: your response to me. Best regards, Fabrice Aeschbacher - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/