Subject: kern/18359: Melco ne? PCMCIA ethernet card unsupported in 1.6
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rauch@math.rice.edu>
List: netbsd-bugs
Date: 09/21/2002 05:18:58
>Number:         18359
>Category:       kern
>Synopsis:       Melco ne? PCMCIA ethernet card unsupported in 1.6
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 21 05:19:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Richard Rauch
>Release:        1.6/1.5
>Organization:
n/a
>Environment:
NetBSD odysseus 1.6 NetBSD (odysseus) #1: Sat Sep 21 02:12:59 CDT 2002	root@prometheus:/usr/src/sys/arch/ie86/compile/odysseus i386

>Description:
Under 1.5.x, this PCMCIA ethernet card in my laptop works.  (With
1.5 GENERIC, it actually comes up as ne2 on cold-boot, then literally
alternates between ne1 and ne2; it is only usable when it comes up as
ne2, this way.  With a slightly modified kernel, I was able to wire
it down to be ne0.)

With NetBSD/i386 1.6's GENERIC_LAPTOP, I am told "Can't match ethernet
vendor code."  The lines of interest seem to be (manually typed, sorry):

pcmcia0: CIS version unknown (major=1, minor=0)
pcmcia0: CIS info: PCMCIA, 10/100 Ethernet Card, ,
pcmcia0: Manufacturer code 0x8a01, product 0xc1ab
pcmcia0: function 0: network adapter, ccr addr 3c0 mask 63
pcmcia0: function 0, config table entry 7: I/O card; irq mask ffff; iomask a, iospace 300-31f; mwait_required io16 irqlevel
ne0 at pcmcia0 function 0
ne0: LAN iobase 0x300 (0x4300) -> 0x300
ne0 (manf 00008a01 prod 0000c1ab) cis PCMCIA 10/100 Ethernet Card: can't match ethernet vendor code

After booting with a 1.6 GENERIC_LAPTOP (or variation thereof), the ne?
probe seems to throw the card into a state where rebooting with a 1.5.x
kernel will *not* find the card anymore.  I need to completely shut down
the computer in order to undo whatever 1.6 does to the card.


Under 1.5.2 (a custom kernel), the ne0 boot messages are:

pcmcia0: CIS version unknown (major=1, minor=0)
pcmcia0: CIS info: PCMCIA, 10/100 Ethernet Car, ,
pcmcia0: Manufacturer code 0x8a01, product 0xc1ab
pcmcia0: function 0: network adapter, ccr addr 3c0 mask 63
pcmcia0: function 0, config table entry 7: I/O card; irq mask ffff; iomask a, iospace 300-31f; mwait_required io16 iqlevel
ne0 at pcmcia0 function 0 port 0x300-0x30f port 0x310-0x31f
ne0: LAN iobase 0x300 (0x300) -> 0x300
ne0: Melco LPC-TX (AX88190) Ethernet
ne0: Ethernet address 00:02:dd:77:2b:1d
[...]
pcmcia0: card irq 9
ne0: LAN iobase 0x300 (0x300) -> 0x300


For the moment, this means that I can't upgrade this laptop to 1.6,
since its network connection is vital to me.
>How-To-Repeat:
Install a similar enough ethernet card on a similar enough computer
and boot a 1.6 LAPTOP-style kernel.
>Fix:
Use NetBSD 1.5.x for now.
>Release-Note:
>Audit-Trail:
>Unformatted: