Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Sep 2000 12:02:26 +0800 (+0800)
From:      Michael Robinson <robinson@netrinsics.com>
To:        freebsd-mobile@FreeBSD.ORG
Cc:        jmb@FreeBSD.ORG, ps@FreeBSD.ORG
Subject:   Re: 4.1-STABLE locks up TP770X hard on "ed" attach
Message-ID:  <200009010402.MAA00589@netrinsics.com>

next in thread | raw e-mail | index | archive | help
On August 3, I wrote:
>I have a Thinkpad 770X.  Under 4.0-STABLE (ca. mid-July), everything works
>great.  With current 4.1-STABLE sources, though, when I insert my PCMCIA
>ethernet card, it locks up the system so hard even the power switch doesn't
>work.
>
>The console messages are as follows:
>
>  pccard: card inserted, slot 1
>  pccardd[49]: Card "IBM Corp."("Ethernet") [0933495] [PC-NIC ENCC 990010759-001A] matched "IBM Corp."("Ethernet") [(null)][(null)]
>  pccardd[49]: Ether=08:00:5a:3a:a9:50
>  ed1 at port 0x240-0x25f iomem 0xd4000-0xd7fff irq 9 slot 1 on pccard1
>
>The part that it doesn't get to is this (from the 4.0-STABLE kernel):
>
>  ed1: address 08:00:5a:3a:a9:50, type NE2000 (16 bit)

I finally got some free time to dig into this, and discovered that 
revision 1.173.2.5 to if_ed.c cancelled out revision 1.170:

revision 1.173.2.5
date: 2000/07/01 05:51:38;  author: ps;  state: Exp;  lines: +10 -17
MFC: Only detect Linksys PCMCIA cards when in a pccard environment.

revision 1.170
date: 1999/11/01 01:16:56;  author: jmb;  state: Exp;  lines: +22 -18
        rearrange order of tests for NE1000, NE2000, and Linksys
        cards.   previous order caused computers with NE2000 cards
        to hang during boot.

Specifically, the function ed_get_Linksys() causes the NE2000 to hang.  In
revision 1.170, this function was moved inside a conditional block.  In
revision 1.173.2.5, this function was moved out of the conditional block 
and into ed_pccard_attach() with no condition checking.

Oops.

Now all I have to do is figure out who broke my serial port, and I'll be
back to where I was with FreeBSD 3.4

	-Michael Robinson



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200009010402.MAA00589>