From owner-freebsd-hackers Tue Mar 10 06:24:02 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA27687 for freebsd-hackers-outgoing; Tue, 10 Mar 1998 06:24:02 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from mailhost.tue.nl (mailhost.tue.nl [131.155.2.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA27445 for ; Tue, 10 Mar 1998 06:21:12 -0800 (PST) (envelope-from J.G.E.Backus@urc.tue.nl) Received: from asterix.urc.tue.nl [131.155.5.10] by mailhost.tue.nl (8.8.8) id PAA03299 (ESMTP). Tue, 10 Mar 1998 15:00:23 +0100 (MET) Received: from jbackus@localhost by asterix.urc.tue.nl (8.8.8) id PAA22817. Tue, 10 Mar 1998 15:00:18 +0100 (MET) Message-ID: <19980310150018.A21606@asterix.urc.tue.nl> Date: Tue, 10 Mar 1998 15:00:18 +0100 From: Jos Backus To: Doug White Cc: hackers@FreeBSD.ORG Subject: Re: de driver && DS 21143 works on -stable but not -current!? References: <19980309120424.60856@asterix.urc.tue.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.90.7i In-Reply-To: ; from Doug White on Mon, Mar 09, 1998 at 11:18:46AM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi Doug, First of all, thank you for responding! >> I just downloaded and installed the latest committed NetBSD de driver, but >> it still does't work with this Ethernet controller in 10Mbit/UTP mode. The >> version in -stable, however, does. > > Odd. Can you isolate the problematic code? I've looked at the diffs between -stable and -current, and it appears that the -current version has a great deal of what seem to be additions for busmaster DMA support for OSes other than FreeBSD (``TULIP_BUS_DMA'' isn't define'd). I tried turning this on together with the *_NO[RT]X define's (without those two I get tons of errors because of some missing typedef's) and while this builds a kernel, it doesn't make any difference. I tried turning on DIAGNOSTIC as well as TULIP_{VERBOSE,DEBUG} in the kernel config but that doesn't show anything interesting either. The only thing that strikes me as odd is the OACTIVE flag being on all the time. I can't remember seeing it while running 2.2.2 (before cvsupping -current). No directly visible related changes AFAICS, though. >> Questions: Would anyone have any idea how to go about porting the -stable >> driver to -current? How would I start enabling diagnostics in the -current >> de driver in order to find out why it isn't working (and the -stable one >> is). > > -stable -> -current is rare and an uphill battle The versions between > -stable and -current should be the same though. Well, while dc21040reg.h and if_devar.h seem relatively unchanged, if_de.c is rather different *sigh* But as I said, most of the changes relate to busmastering. I'm having a hard time figuring out where to look ;-/ > > Then again, as quite a few things have changed between -stable and > > -current in the surrounding environment (the -stable driver gives a bunch > > of errors), the problem may not be in the driver per se :-/ > > Quite true. You may want to work with hackers@freebsd.org on this one. I'm cc'ing hackers, maybe some of the nice && smart folks can point me in the right direction! Thanks again, -- Jos Backus _/ _/_/_/ "Reliability means never _/ _/ _/ having to say you're sorry." _/ _/_/_/ -- D. J. Bernstein _/ _/ _/ _/ jbackus@urc.tue.nl _/_/ _/_/_/ use Std::Disclaimer; To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message