Ubuntu

Multi-function pcmcia card: only function 0 detected.

Reported by Romano Giannetti on 2006-07-10
2
Affects Status Importance Assigned to Milestone
Debian
New
Undecided
Unassigned
Fedora
Fix Released
Unknown
linux-source-2.6.17 (Ubuntu)
Medium
Unassigned

Bug Description

Binary package hint: pcmciautils

I know this bug-report has quite few data. I will add lspci -vv and more information as requested later.

Basically, I have a 3com/Megahertz pcmcia card which has an ethernet and a modem into it. A freshly installed ubuntu did not recognize it at all. Then digging a bit I did:

cp /etc/pcmcia/cis/3CXEM556.dat /lib/firmware/3CXEM556.cis

and now (after pccardctl eject / insert) the function 0, ethernet, is recognized and working. Unfortunately the modem function (which is the one I really need) is not working. I tried loading serial_cs, but tat did not do the trick.

The card worked perfectly in mandriva 2005, which I wiped out
to install Dapper... ;-)

Download full text (4.4 KiB)

I have dmesgs for the case of working (in Mandriva) and not working (in Ubuntu dapper).

Working:
[17179598.448000] ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [LNKA] ->
GSI 9 (level, low) -> IRQ 9
[17179598.448000] Yenta: CardBus bridge found at 0000: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 0000:00:0a.0, mfunc 0x012c1222,
devctl 0x66
[17179598.680000] Yenta: ISA IRQ mask 0x0808, PCI irq 9
[17179598.680000] Socket status: 30000006
[17179598.692000] ACPI: PCI Interrupt 0000:00:0a.1[B] -> Link [LNKB] ->
GSI 10 (level, low) -> IRQ 10
[17179598.692000] Yenta: CardBus bridge found at 0000: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 0000:00:0a.1, mfunc 0x012c1222,
devctl 0x66
[17179598.924000] Yenta: ISA IRQ mask 0x0808, PCI irq 10
[17179598.924000] Socket status: 30000010
[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.880000] cs: IO port probe 0xa00-0xaff: clean.
[17179599.880000] cs: IO port probe 0xa00-0xaff: clean.
[17179599.920000] cs: memory probe 0xa0000000-0xa0ffffff: 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 0000: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 0000: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 0000:00:07.5[C] -> Link [LNKC] ->
GSI 5 (level, low) -> IRQ 5
[17179598.788000] PCI: Setting latency timer of device 0000:00:07.5 to
64
[17179598.860000] Yenta: ISA IRQ mask 0x0808, PCI irq 9
[17179598.860000] Socket status: 30000068
[17179598.860000] ACPI: PCI Interrupt 0000:00:0a.1[B] -> Link [LNKB] ->
GSI 10 (level, low) -> IRQ 10
[17179598.860000] Yenta: CardBus bridge found at 0000:00:0a.1
[104d:80f6]
[17179598.860000] Yenta: Using CSCINT to route CSC interrupts to PCI
[17179598.860000] Yenta: Routing CardBus interrupts to PCI
[17179598.860000] Yenta TI: socket 0000:00:0a.1, mfunc 0x012c1222,
devctl 0x66
[17179598.940000] 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] So...

Read more...

I forgot: I tried with the old /etc/pcmcia/config.opts, and booting with pci=assign-busses. No go.
Please?

Maybe noone is interested (I had no feedback). But if you look at here:

http://lists.infradead.org/pipermail/linux-pcmcia/2006-August/003893.html

I found a solution.
Get rid of .cis file and start manually cardmgr. The modem works.

Bye

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? :-))

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.

Andover Schmeels (shattersword) wrote :

I second your backporting motion, though I'm sure that no one cares that I do. Tracking this problem down was a fricking nightmare =)

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:
status: Unconfirmed → Needs Info

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!

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

Any news on this ?

Changed in linux-source-2.6.17:
importance: Undecided → Medium

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?

Launchpad Janitor (janitor) wrote :

[Expired for linux-source-2.6.17 (Ubuntu) because there has been no activity for 60 days.]

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.