From owner-freebsd-current Tue Jan 18 1:15:58 2000 Delivered-To: freebsd-current@freebsd.org Received: from yana.lemis.com (yana.lemis.com [192.109.197.140]) by hub.freebsd.org (Postfix) with ESMTP id D210C1501B for ; Tue, 18 Jan 2000 01:15:53 -0800 (PST) (envelope-from grog@mojave.worldwide.lemis.com) Received: from mojave.worldwide.lemis.com ([203.197.137.214]) by yana.lemis.com (8.8.8/8.8.8) with ESMTP id TAA03079; Tue, 18 Jan 2000 19:45:18 +1030 (CST) (envelope-from grog@mojave.worldwide.lemis.com) Received: (from grog@localhost) by mojave.worldwide.lemis.com (8.9.3/8.9.3) id IAA00590; Tue, 18 Jan 2000 08:56:05 +0530 (IST) (envelope-from grog) Date: Tue, 18 Jan 2000 08:56:05 +0530 From: Greg Lehey To: Frank Mayhar Cc: Jonathan Chen , Warner Losh , current@FreeBSD.ORG Subject: Re: 3C589 problems (was: 4.0 code freeze scheduled for Jan 15th) Message-ID: <20000118085605.E482@mojave.worldwide.lemis.com> Reply-To: Greg Lehey References: <200001171624.IAA71114@realtime.exit.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <200001171624.IAA71114@realtime.exit.com>; from frank@exit.com on Mon, Jan 17, 2000 at 08:24:20AM -0800 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Monday, 17 January 2000 at 8:24:20 -0800, Frank Mayhar wrote: > Sorry for the delay on this reply; I was going over some old email and > came across this only a week late. > > Jonathan Chen wrote: >> With what little pccard/ethernet programming experiences I've had, this >> problem seems to be caused by the interrupt for the card getting lost >> somewhere before getting processed by the handler. The reason you still >> get traffic is because of the watchdog. (Try uncommenting the commented >> out lines in sys/dev/ep/if_ep.c in the function ep_if_watchdog(), you >> should start seeing lots of kernel messages saying "ep: watchdog".) After >> looking briefly at the ep files, I saw something that doesn't seem right. >> In sys/dev/ep/if_ep_pccard.c around line 176, there's a comment that says >> "Fake IRQ must be 3". Now maybe the card requires it, or maybe the >> original author just didn't have anything on IRQ 3, I don't know. So, I'd >> suggest turning off com2 or whatever you have on irq3, -or- change the >> "fake irq" to something else you do have free on the next line (ie, >> 0x3000-> 0xa000 if you have IRQ10 free). If this works, great... if not, I >> hope Warner gets some more free time. ;) > > According to the docs, this "Fake IRQ must be 3" is legitimate. The IRQ > programmed into the resource config register in window 0 _must_ be 3: > "any other value will disable the IRQ line drivers." (Quoted from the > doc. > >> As for the other problem with collisions, I did a search on the word >> collision on sys/dev/ep/if_ep.c, and found only one mention at around line >> 620. The comment says "TXS_MAX_COLLISION - we shouldn't get here". I >> suspect it does get there, so I suggest putting a printf there to find out. >> I also suspect that the card may require a reset or some other stuff if and >> when it "gets there". If that's the case, someone else with the specs on >> the 589 cards can look that up and do it. > > I can state pretty categorically that, at least in my case, we're _not_ > getting here. > > As I said in an earlier email, I'm still having interrupt problems with > the 589 (I have a 3C589D) and the 574BT. I haven't tracked it down yet, > but I'm hunting. I do know, at least, that I'm not receiving _any_ > interrupts from either card. So far I don't know why. The fact it's appearing with two different cards which work for other people tends to point away from the cards and towards some common factor, such as your laptop. Greg -- Finger grog@lemis.com for PGP public key See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message