[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
Launchpad has imported 9 comments from the remote bug at https://bugzilla.redhat.com/show_bug.cgi?id=207910. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2006-09-25T11:12:16+00:00 Fabrice wrote: The pcmcia subsystem fails to detect the modem part of a multifunction pcmcia card (3com megahertz 3cxem556b net+modem). This card worked fine with pcmcia-cs, and the problem appeared in FC5 and also in rawhide, with pcmciautils. I tested this case with two laptops, a T60p with FC5 fully updated, and a T40 running rawhide. This is what I obtain, when I insert the card (pccardctl eject ; pccardctl insert), there's no trace of the modem function: Sep 24 22:47:02 localhost kernel: pccard: PCMCIA card inserted into slot 0 Sep 24 22:47:02 localhost kernel: pcmcia: registering new device pcmcia0.0 Sep 24 22:47:02 localhost kernel: eth0: 3Com 3c589, io 0x300, irq 3, hw_addr 00:00:86:36:E0:9F Sep 24 22:47:02 localhost kernel: 8K FIFO split 5:3 Rx:Tx, auto xcvr I grabbed the cis file from the old pcmcia-cs package, and put it in /lib/firmware/3CXEM556.cis to make udev helper functions happy. I also recompiled cardmgr from the latest pcmcia-cs tarball, and went a bit further, when launching cardmgr, the modem capabilities are detected by the kernel, the serial_cs module is loaded, the /dev/modem is created: pcmcia: Detected deprecated PCMCIA ioctl usage from process: cardmgr. pcmcia: This interface will soon be removed from the kernel; please expect breakage unless you upgrade to new tools. pcmcia: see http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html for details. pcmcia: registering new device pcmcia0.1 0.1: ttyS0 at I/O 0x3f8 (irq = 3) is a 16550A eth0: interrupt(s) dropped! 2.6. kernels use pcmciamtd instead of memory_cs.c and do not require special MTD handling any more. The modem is detected, but doesn't respond to any at commands (same irq thatn network ? conflict with pcmciautils ? maybe). But as pcmcia-cs is deprecated, this is certainly not the way to solve this issue. Anyway, this demonstrates that the modem function is available, and probably should work out-of-the-box with kernel support+pcmciautils. [root@bonobo pcmcia]# find /sys/bus/pcmcia/ /sys/bus/pcmcia/ /sys/bus/pcmcia/drivers /sys/bus/pcmcia/drivers/3c589_cs /sys/bus/pcmcia/drivers/3c589_cs/bind /sys/bus/pcmcia/drivers/3c589_cs/unbind /sys/bus/pcmcia/drivers/3c589_cs/module /sys/bus/pcmcia/drivers/3c589_cs/0.0 /sys/bus/pcmcia/devices /sys/bus/pcmcia/devices/0.0 [root@bonobo pcmcia]# find /sys/class/pcmcia_socket/ /sys/class/pcmcia_socket/ /sys/class/pcmcia_socket/pcmcia_socket0 /sys/class/pcmcia_socket/pcmcia_socket0/available_resources_mem /sys/class/pcmcia_socket/pcmcia_socket0/available_resources_io /sys/class/pcmcia_socket/pcmcia_socket0/cis /sys/class/pcmcia_socket/pcmcia_socket0/available_resources_setup_done /sys/class/pcmcia_socket/pcmcia_socket0/card_irq_mask /sys/class/pcmcia_socket/pcmcia_socket0/card_eject /sys/class/pcmcia_socket/pcmcia_socket0/card_pm_state /sys/class/pcmcia_socket/pcmcia_socket0/card_insert /sys/class/pcmcia_socket/pcmcia_socket0/card_vcc /sys/class/pcmcia_socket/pcmcia_socket0/card_vpp /sys/class/pcmcia_socket/pcmcia_socket0/card_voltage /sys/class/pcmcia_socket/pcmcia_socket0/card_type /sys/class/pcmcia_socket/pcmcia_socket0/device /sys/class/pcmcia_socket/pcmcia_socket0/uevent Any hint on how I can investigate further on this issue ? Reply at: https://bugs.launchpad.net/ubuntu/+source/linux- source-2.6.17/+bug/52510/comments/4 On 2006-09-30T16:46:26+00:00 Fabrice wrote: I inserted some debug statements with jprobes in the pcmcia code, and I have a better view of what certainly occurs: when powered up, the pcmcia card shows a single function (network), so the 3c589_cs is loaded. Then the 3CXEM556.cis firmware is loaded by the network driver, that overrides the cards buggy cis. Now the cis tells that the card has multifunctions (network+modem), but it's too late, because there's no pcmcia_bus_rescan() occuring after the new cis has been loaded. Does it make sense ? Reply at: https://bugs.launchpad.net/ubuntu/+source/linux- source-2.6.17/+bug/52510/comments/5 On 2006-10-01T18:58:29+00:00 Fabrice wrote: Created attachment 137504 linux-2.6.17-pcmcia-rescan-when-rewriting-cis.patch The ret variable is not supposed to be zero here, because it is initialised to the value of count (size of the cis file), and is only modified when pcmcia_replace_cis() fails (-EIO). This patch forces a pcmcia_bus_rescan() when writing a new cis file through the /sys/ interface. Reply at:
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
[Expired for linux-source-2.6.17 (Ubuntu) because there has been no activity for 60 days.] -- Multi-function pcmcia card: only function 0 detected. https://bugs.launchpad.net/bugs/52510 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
Ok, I managed (sorry for the delay, I run very short of time) to boot a 7.04 live CD. Out of the box the card does not function, because the necessary .cis file (3CXEM556.cis) is not in /lib/firmware. I copied this file from the old pcmcia package (they where in /etc/pcmcia/cis/ directory) and then all worked ok. So: the good thing is that the Feisty kernel is ok. The bad ones is that somehow the .cis files that where in the obsolete pcmcia package, and that are needed, wheren't packaged in Feisty. So now I do not know to whom pass the ball. I think that the .cis files should be added to the pcmciautils package, no? There is a possibility to add the pcmciautils package to this bug? -- Multi-function pcmcia card: only function 0 detected. https://bugs.launchpad.net/bugs/52510 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
Any news on this ? ** Changed in: linux-source-2.6.17 (Ubuntu) Importance: Undecided = Medium -- Multi-function pcmcia card: only function 0 detected. https://bugs.launchpad.net/bugs/52510 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
I am not sure about it, because I am running Edgy --- I have a bit of fear to upgrade, this quite an old machine and I am thru a period in which I need it working 24x7... But: 1) I had an private mail interchange with a Feisty user with the same card; it worked after I sent him the .cis file and instructed to put it in the right place; I dug the file out of the old cardmgr package. I do not know how to check if it is a Feisty or user problem; 2) I am now running a vanilla 2.6.21.2 and e card works, alhough it has another problem with a 60 seconds delay in resume, see http://lkml.org/lkml/2007/5/23/38 and related threads. But that's another problem. So, I think that _this_ bug can be closed as far as you can check that .cis file is distributed correctly with Feisty. Thanks! -- Multi-function pcmcia card: only function 0 detected. https://bugs.launchpad.net/bugs/52510 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
Well, I have no idea about how i could check that, maybe you could try with a live cd if it works (ad if you have the time ) ? Thank you -- Multi-function pcmcia card: only function 0 detected. https://bugs.launchpad.net/bugs/52510 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
Thank you for your bug report. Do you still have this issue with the latest release of Ubuntu ? ** Changed in: linux-source-2.6.17 (Ubuntu) Status: Unconfirmed = Needs Info -- Multi-function pcmcia card: only function 0 detected. https://bugs.launchpad.net/bugs/52510 You received this bug notification because you are a member of Ubuntu Bugs, which is the bug contact for Ubuntu. -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
** Changed in: Fedora Status: Confirmed = Fix Released -- Multi-function pcmcia card: only function 0 detected. https://launchpad.net/bugs/52510 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
I second your backporting motion, though I'm sure that no one cares that I do. Tracking this problem down was a fricking nightmare =) -- Multi-function pcmcia card: only function 0 detected. https://launchpad.net/bugs/52510 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
Hi, just a comment (if anyone's listening) that Linus included the fix into 2.6.20-rc1 kernel (not released yet, but the relevant patches are into Linus' tree). It will be probably backported to 2.6.19.y. What about backporting the fix into next kernel release? I can confirm that the abovementioned patches neatly apply to Ubuntu Edgy current kernel, compile and run fine. -- Multi-function pcmcia card: only function 0 detected. https://launchpad.net/bugs/52510 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
** Changed in: Fedora Status: Unknown = Confirmed -- Multi-function pcmcia card: only function 0 detected. https://launchpad.net/bugs/52510 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
** Also affects: Debian Importance: Undecided Status: Unconfirmed -- Multi-function pcmcia card: only function 0 detected. https://launchpad.net/bugs/52510 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
** Bug watch added: Red Hat Bugzilla #207910 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=207910 ** Also affects: Fedora via https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=207910 Importance: Unknown Status: Unknown ** Changed in: pcmciautils (Ubuntu) Sourcepackagename: pcmciautils = linux-source-2.6.17 -- Multi-function pcmcia card: only function 0 detected. https://launchpad.net/bugs/52510 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
It seems a kernel bug. Look at: http://lkml.org/lkml/2006/10/1/179 and at https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=207910 (is there anyone out there? :-)) -- Multi-function pcmcia card: only function 0 detected. https://launchpad.net/bugs/52510 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
I have dmesgs for the case of working (in Mandriva) and not working (in Ubuntu dapper). Working: [17179598.448000] ACPI: PCI Interrupt :00:0a.0[A] - Link [LNKA] - GSI 9 (level, low) - IRQ 9 [17179598.448000] Yenta: CardBus bridge found at :00:0a.0 [104d:80f6] [17179598.448000] Yenta: Enabling burst memory read transactions [17179598.448000] Yenta: Using CSCINT to route CSC interrupts to PCI [17179598.448000] Yenta: Routing CardBus interrupts to PCI [17179598.448000] Yenta TI: socket :00:0a.0, mfunc 0x012c1222, devctl 0x66 [17179598.68] Yenta: ISA IRQ mask 0x0808, PCI irq 9 [17179598.68] Socket status: 3006 [17179598.692000] ACPI: PCI Interrupt :00:0a.1[B] - Link [LNKB] - GSI 10 (level, low) - IRQ 10 [17179598.692000] Yenta: CardBus bridge found at :00:0a.1 [104d:80f6] [17179598.692000] Yenta: Using CSCINT to route CSC interrupts to PCI [17179598.692000] Yenta: Routing CardBus interrupts to PCI [17179598.692000] Yenta TI: socket :00:0a.1, mfunc 0x012c1222, devctl 0x66 [17179598.924000] Yenta: ISA IRQ mask 0x0808, PCI irq 10 [17179598.924000] Socket status: 3010 [17179599.872000] cs: IO port probe 0xc00-0xcff: clean. [17179599.872000] cs: IO port probe 0xc00-0xcff: clean. [17179599.872000] cs: IO port probe 0x100-0x4ff: excluding 0x378-0x37f 0x4d0-0x4d7 [17179599.876000] cs: IO port probe 0x100-0x4ff: excluding 0x378-0x37f 0x4d0-0x4d7 [17179599.88] cs: IO port probe 0xa00-0xaff: clean. [17179599.88] cs: IO port probe 0xa00-0xaff: clean. [17179599.92] cs: memory probe 0xa000-0xa0ff: clean. [17179600.732000] eth1: 3Com 3c589, io 0x300, irq 3, hw_addr 00:00:86:1A:4E:A8 [17179600.732000] 8K FIFO split 5:3 Rx:Tx, auto xcvr [17179600.776000] ttyS1 at I/O 0x2f8 (irq = 10) is a 16550A Not working (ubuntu dapper): [17179598.628000] Yenta: CardBus bridge found at :00:0a.0 [104d:80f6] [17179598.628000] Yenta: Using CSCINT to route CSC interrupts to PCI [17179598.628000] Yenta: Routing CardBus interrupts to PCI [17179598.628000] Yenta TI: socket :00:0a.0, mfunc 0x012c1222, devctl 0x66 [17179598.788000] SET: Misaligned resource pointer: d961bb22 Type 07 Len 0 [17179598.788000] ACPI: PCI Interrupt Link [LNKC] enabled at IRQ 5 [17179598.788000] PCI: setting IRQ 5 as level-triggered [17179598.788000] ACPI: PCI Interrupt :00:07.5[C] - Link [LNKC] - GSI 5 (level, low) - IRQ 5 [17179598.788000] PCI: Setting latency timer of device :00:07.5 to 64 [17179598.86] Yenta: ISA IRQ mask 0x0808, PCI irq 9 [17179598.86] Socket status: 3068 [17179598.86] ACPI: PCI Interrupt :00:0a.1[B] - Link [LNKB] - GSI 10 (level, low) - IRQ 10 [17179598.86] Yenta: CardBus bridge found at :00:0a.1 [104d:80f6] [17179598.86] Yenta: Using CSCINT to route CSC interrupts to PCI [17179598.86] Yenta: Routing CardBus interrupts to PCI [17179598.86] Yenta TI: socket :00:0a.1, mfunc 0x012c1222, devctl 0x66 [17179598.94] parport_pc: VIA parallel port: io=0x378, irq=7 [17179599.008000] Real Time Clock Driver v1.12 [17179599.092000] Yenta: ISA IRQ mask 0x0808, PCI irq 10 [17179599.092000] Socket status: 3059 [17179600.324000] cs: IO port probe 0x100-0x3af: clean. [17179600.324000] cs: IO port probe 0x3e0-0x4ff: clean. [17179600.324000] cs: IO port probe 0x820-0x8ff: clean. [17179600.328000] cs: IO port probe 0xc00-0xcf7: clean. [17179600.328000] cs: IO port probe 0xa00-0xaff: clean. [17179600.328000] cs: IO port probe 0x100-0x3af: clean. [17179600.332000] cs: IO port probe 0x3e0-0x4ff: clean. [17179600.332000] cs: IO port probe 0x820-0x8ff: clean. [17179600.332000] cs: IO port probe 0xc00-0xcf7: clean. [17179600.336000] cs: IO port probe 0xa00-0xaff: clean. [17179600.336000] cs: memory probe 0xa000-0xa0ff: clean. [17179600.34] pcmcia: registering new device pcmcia1.0 [17179600.62] rtl8180: Setting SW wep key [17179600.724000] eth1: 3Com 3c589, io 0x300, irq 3, hw_addr 00:00:86:1A:4E:A8 [17179600.724000] 8K FIFO split 5:3 Rx:Tx, auto xcvr ... [17180448.512000] pccard: card ejected from slot 1 [17180487.964000] pccard: PCMCIA card inserted into slot 1 [17180487.964000] pcmcia: registering new device pcmcia1.0 [17180488.016000] eth1: 3Com 3c589, io 0x300, irq 3, hw_addr 00:00:86:1A:4E:A8 [17180488.016000] 8K FIFO split 5:3 Rx:Tx, auto xcvr [17180498.796000] eth1: no IPv6 routers present ...and no modem (well, serial) detected. -- Multi-function pcmcia card: only function 0 detected. https://launchpad.net/bugs/52510 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 52510] Re: Multi-function pcmcia card: only function 0 detected.
I forgot: I tried with the old /etc/pcmcia/config.opts, and booting with pci=assign-busses. No go. Please? -- Multi-function pcmcia card: only function 0 detected. https://launchpad.net/bugs/52510 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs