Bug 7739 - PCMLM56 not working/recognized
Summary: PCMLM56 not working/recognized
Status: REJECTED INVALID
Alias: None
Product: Networking
Classification: Unclassified
Component: Other (show other bugs)
Hardware: i386 Linux
: P2 normal
Assignee: Arnaldo Carvalho de Melo
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-12-23 13:37 UTC by Igor Durdanovic
Modified: 2007-07-06 11:57 UTC (History)
3 users (show)

See Also:
Kernel Version: 2.6.18.1
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
dmesg (15.09 KB, text/plain)
2006-12-29 08:51 UTC, Igor Durdanovic
Details
lspci (1.57 KB, text/plain)
2006-12-29 08:52 UTC, Igor Durdanovic
Details
lspcmcia (171 bytes, text/plain)
2006-12-29 08:52 UTC, Igor Durdanovic
Details
dmesg (with pci=asign-busses) (15.07 KB, text/plain)
2006-12-29 14:33 UTC, Igor Durdanovic
Details
pcmciautils dump_cis utility (18.60 KB, application/octet-stream)
2006-12-31 15:22 UTC, Komuro
Details
cis dump (2.73 KB, text/plain)
2006-12-31 15:50 UTC, Igor Durdanovic
Details
dmesg (2.6.20-rc2 with pci=assign.. & exclude) (15.09 KB, text/plain)
2006-12-31 19:32 UTC, Igor Durdanovic
Details
pcmcia (2.6.20-rc2) (1.76 KB, text/plain)
2006-12-31 19:33 UTC, Igor Durdanovic
Details
dmesg (2.6.20-rc2 with pci=assign.. & exclude) serial/modem access? (14.99 KB, text/plain)
2006-12-31 19:34 UTC, Igor Durdanovic
Details
dmesg (2.6.18.1 with pci=assign.. & exclude) (15.10 KB, text/plain)
2006-12-31 19:35 UTC, Igor Durdanovic
Details
dmesg (modem) (15.02 KB, text/plain)
2006-12-31 22:01 UTC, Igor Durdanovic
Details

Description Igor Durdanovic 2006-12-23 13:37:37 UTC
Most recent kernel where this bug did *NOT* occur:
Distribution: no idea
Hardware Environment: latitude D800, D820
Software Environment: Fedora Core 6
Problem Description:
Inserting the card results in:

Dec 24 16:39:56 kitty6 kernel: pccard: PCMCIA card inserted into slot 0
Dec 24 16:39:56 kitty6 kernel: pcmcia: registering new device pcmcia0.0
Dec 24 16:39:56 kitty6 kernel: eth%d: pcnet_reset_8390() did not complete.
Dec 24 16:39:56 kitty6 kernel: pcnet_cs: unable to read hardware net address for
io base 0xd300
Dec 24 16:39:56 kitty6 kernel: eth%d: pcnet_reset_8390() did not complete.
Dec 24 16:39:56 kitty6 kernel: pcnet_cs: unable to read hardware net address for
io base 0xd300
Dec 24 16:39:56 kitty6 kernel: eth%d: pcnet_reset_8390() did not complete.
Dec 24 16:39:56 kitty6 kernel: pcnet_cs: unable to read hardware net address for
io base 0xd300

lsmod:
pts/1#> lsmod
Module                  Size  Used by
pcnet_cs               18224  0 
8390                    9984  1 pcnet_cs
ipv6                  264928  18 
loop_blowfish           9728  0 
loop_twofish           13568  1 
loop_serpent           16768  0 
loop                   60044  5 loop_blowfish,loop_twofish,loop_serpent
pcmcia                 40492  1 pcnet_cs
intel_agp              24092  1 
yenta_socket           27788  4 
rsrc_nonstatic         13312  1 yenta_socket
uhci_hcd               24200  0 
ehci_hcd               30856  0 
agpgart                33072  1 intel_agp
pcmcia_core            43540  4 pcnet_cs,pcmcia,yenta_socket,rsrc_nonstatic

Steps to reproduce:

re-inserting the card, fails very time.
Comment 1 Komuro 2006-12-25 04:02:58 UTC
This problem seems to be same as below problem.

http://bugzilla.kernel.org/show_bug.cgi?id=7116

Please try kernel 2.6.20-rc1-mm1 or 2.6.20-rc2.


Best Regards
Komuro
Comment 2 Igor Durdanovic 2006-12-25 22:51:59 UTC
Yes, you are right, this problem is related to 

http://bugzilla.kernel.org/show_bug.cgi?id=7116

but for the different card - I thought the problem was 
affecting my card only, have not realized that the pcnet_cs 
is broken.

I tried 2.6.20-rc2, same results.

Regards, Igor
Comment 3 Komuro 2006-12-28 03:12:46 UTC
Please post the full dmesg.

What is the most recent kernel where this problem did _not_ occur.


Actually, the pcnet_cs is not changed so much these days.
I think this is a problem of the pcmcia_core modules
or resource conflict.

Best Regards
Komuro
Comment 4 Igor Durdanovic 2006-12-29 08:50:39 UTC
I have got the card like few weeks ago, I don't know if (and with which) earlier
kernel it did work. I verified that it works in windows (on the same machine).

I can try to download older versions of kernel, if that will help, any suggestions?

Rgerads, Igor
Comment 5 Igor Durdanovic 2006-12-29 08:51:35 UTC
Created attachment 9966 [details]
dmesg
Comment 6 Igor Durdanovic 2006-12-29 08:52:05 UTC
Created attachment 9967 [details]
lspci
Comment 7 Igor Durdanovic 2006-12-29 08:52:29 UTC
Created attachment 9968 [details]
lspcmcia
Comment 8 Komuro 2006-12-29 14:12:05 UTC

>PCI: Bus #03 (-#06) is hidden behind transparent bridge #02 (-#02) (try
'pci=assign-busses')


Please try to add "pci=assign-busses" to the kernel-parameter.

If it still fails, please change your PC and try another PC.

Best Regards
Komuro
Comment 9 Igor Durdanovic 2006-12-29 14:33:27 UTC
Created attachment 9969 [details]
dmesg (with pci=asign-busses)

Tried pci=assign-busses, the "hiding" message is gone from the dmesg, but
results are the same.

I have tried the card on D820 with the same results. 
I am trying to revive my ancient I8K, will let you know
if it works there.

Note that the card works under windows XP prof. on both 
D800 and D820 so it does not seem like a hardware problem.

Regards, Igor
Comment 10 Komuro 2006-12-31 15:22:04 UTC
Created attachment 9974 [details]
pcmciautils dump_cis utility

Please post the output of dump_cis attached here.

What io-port range does the PCMLM56 uses on WindowsXP?


Best Regards
Komuro
Comment 11 Igor Durdanovic 2006-12-31 15:50:58 UTC
Created attachment 9975 [details]
cis dump

Note: The dump was made using the old libsysfs-1.3 instead of libfsys-2.0.

On windows the card appears in several places:
as a network adapter it has:
i/o range: 0300-031f
irq: 07

as a multi-function adapter it has:
i/o range: 02e8-02ef
i/o range: 0300-031f
irq: 07
Comment 12 Komuro 2006-12-31 17:58:03 UTC
One of the difference between your Linux and WindowsXP
is the ioport that PCMLM56 uses.

Please add the below exclude option to your /etc/pcmcia/config.opts.

exclude port 0xd000-0xefff

Please post the output of "lspcmcia -vv ", too.

Best Regards
Komuro

Comment 13 Igor Durdanovic 2006-12-31 19:32:45 UTC
Created attachment 9976 [details]
dmesg (2.6.20-rc2 with pci=assign.. & exclude)

It seems to work now! Except for the occasional: 

cs: pcmcia_socket0: unable to apply power.
Comment 14 Igor Durdanovic 2006-12-31 19:33:24 UTC
Created attachment 9977 [details]
pcmcia (2.6.20-rc2)
Comment 15 Igor Durdanovic 2006-12-31 19:34:23 UTC
Created attachment 9978 [details]
dmesg (2.6.20-rc2 with pci=assign.. & exclude) serial/modem access?

Is there a way to access the modem on this combo card?
Comment 16 Igor Durdanovic 2006-12-31 19:35:44 UTC
Created attachment 9979 [details]
dmesg (2.6.18.1 with pci=assign.. & exclude)

Except for the modem, the pci=assign-busses + exclude 
works also on 2.6.18.1 kernel.

Thanks, Igor
Comment 17 Komuro 2006-12-31 21:05:22 UTC
>It seems to work now! Except for the occasional: 

O.K.
Actually, "pci=assign-busses" is no relationship with this problem. 


>Is there a way to access the modem on this combo card?

Please remove "include port 0xa00-0xaff" from the /etc/pcmcia/config.opts


Best Regards
Komuro
Comment 18 Igor Durdanovic 2006-12-31 22:01:41 UTC
Created attachment 9980 [details]
dmesg (modem)

It seems one has to power down ethX on the card in 
order to access the modem, or the wrong module gets
to handle IRQs?

Both (eth & modem) work on 2.6.20-rc2, but modem does 
not work on 2.6.18.1

Also, it seems impossible to get more than 1.2 MB/s through 
the card, is this PCMCIA limitation?

Thanks for the help! and happy New Year, Igor
Comment 19 Igor Durdanovic 2006-12-31 22:09:22 UTC
Correction: both eth & modem work on both 2.6.18.1 & 2.6.20-rc2.
Comment 20 Komuro 2007-01-01 18:16:17 UTC
> Also, it seems impossible to get more than 1.2 MB/s through 
> the card, is this PCMCIA limitation?

Yes, that is PCMCIA bus limitation.
You need CardBus network card for 10 MB/s.


> IRQ handler type mismatch for IRQ 3
>current handler: pcnet_cs
> [<c014274e>] setup_irq+0x12e/0x1f0

Do you still have this message?


Best Regards
Komuro
Comment 21 Igor Durdanovic 2007-01-01 18:30:59 UTC
OK, I was just wondering why would someone make 10/100 Mbs
PCMCIA ethernet card (PCMLM56 is 10/100 Mbs card) if the 
PCMCIA bus limit won't let one use the card to its limits.

The mismatch IRQ 3 message is present only if one drives 
ethernet and modem at the same time. If I turn off the
ethernet part the modem works fine, no messages.

Thanks, Igor
Comment 22 Natalie Protasevich 2007-07-06 11:39:21 UTC
Has the problem been resolved?
Thanks.
Comment 23 Igor Durdanovic 2007-07-06 11:57:27 UTC
Yes, thanks! Igor.

Note You need to log in before you can comment on or make changes to this bug.