From owner-freebsd-mobile Thu Aug 31 21: 1:17 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from public.bta.net.cn (public.bta.net.cn [202.96.0.97]) by hub.freebsd.org (Postfix) with SMTP id EBE0E37B424; Thu, 31 Aug 2000 21:01:12 -0700 (PDT) Received: from netrinsics.com([202.108.133.5]) by public.bta.net.cn(JetMail 2.5.3.0) with SMTP id jm1b39af2ccd; Fri, 1 Sep 2000 04:01:28 -0000 Received: (from robinson@localhost) by netrinsics.com (8.9.3/8.9.3) id MAA00589; Fri, 1 Sep 2000 12:02:26 +0800 (+0800) (envelope-from robinson) Date: Fri, 1 Sep 2000 12:02:26 +0800 (+0800) From: Michael Robinson Message-Id: <200009010402.MAA00589@netrinsics.com> To: freebsd-mobile@FreeBSD.ORG Subject: Re: 4.1-STABLE locks up TP770X hard on "ed" attach Cc: jmb@FreeBSD.ORG, ps@FreeBSD.ORG Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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