From owner-freebsd-mobile Tue Feb 1 8: 3:21 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by builder.freebsd.org (Postfix) with ESMTP id A5B463E1D; Tue, 1 Feb 2000 08:02:57 -0800 (PST) Received: from we.lc.ehu.es (v-ger [158.227.6.179]) by polaris.we.lc.ehu.es (8.9.1/8.9.1) with ESMTP id RAA26049; Tue, 1 Feb 2000 17:01:23 +0100 (MET) Message-ID: <38970354.56AD3D1@we.lc.ehu.es> Date: Tue, 01 Feb 2000 17:01:24 +0100 From: "Jose M. Alcaide" Organization: Universidad del =?iso-8859-1?Q?Pa=EDs?= Vasco - Dpto. de Electricidad y =?iso-8859-1?Q?Electr=F3nica?= X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 3.4-RELEASE i386) X-Accept-Language: es-ES, es, en-US, en MIME-Version: 1.0 To: Scott Mitchell Cc: freebsd-mobile@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG, freebsd-xircom@lovett.com Subject: Re: clk0 interrupt accounting weirdness ??? References: <20000130135129.F1158@lungfish.freeserve.co.uk> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Scott Mitchell wrote: > > The attached thread (apologies for the volume of text, but it is all > relevant) came up on freebsd-xircom last week. Jose Alcaide actually > posted to -mobile on the same subject a week or so before, but got no > response. We figure it's definitely nothing to do with the Xircom driver > in particular and probably nothing to do with pccard, so I'm bouncing it to > any interested kernel gurus. > > Essentially, the irq line to which clk0 interrupts are accounted (in the > output from vmstat -i) changes when pccards are inserted/removed. The same > effect has been seen with cards using the xe0 and ed0 drivers. > After searching __again__ (and deeper) the mail list archives, I found that this problem is old. Very, very old. Of all messages I found related to this problem, the more interesting (and "recent": 1998-11-29) ones are: http://www.FreeBSD.org/cgi/getmsg.cgi?fetch=43676+50452+/usr/local/www/db/text/1998/freebsd-mobile/19981129.freebsd-mobile and its follow up by Nate Williams: http://www.freebsd.org/cgi/getmsg.cgi?fetch=50452+0+/usr/local/www/db/text/1998/freebsd-mobile/19981129.freebsd-mobile Here is an excerpt: ------------- > > - pccard interrupts doesn't seem to get initialized correctly for statistics > > output (vmstat -i). After I insert a pccard, all of its interrupts get > > accounted for the clock interrupt, with the irq line of the clock interrupt > > changing to the one for the PCCard. > > This is a 'known bug', and requires a re-write of the way PCCARD probing > is done to fix it. (This rewrite would also fix a number of other bugs > as well, but there is no one interested in taking on the laptop issue to > completion.) ------------- Well, I read pccard.c and the calls to register_intr() -which I traced- look correct. I did not find anything bad with IRQ probing, but this does not mean that the problem does not exist :-) Maybe a more detailed explanation by a kernel guru ;-) could help some of us to solve the problem. -- JMA ----------------------------------------------------------------------- José Mª Alcaide | mailto:jose@we.lc.ehu.es Universidad del País Vasco | mailto:jmas@FreeBSD.org Dpto. de Electricidad y Electrónica | http://www.we.lc.ehu.es/~jose Facultad de Ciencias - Campus de Lejona | Tel.: +34-946012479 48940 Lejona (Vizcaya) - SPAIN | Fax: +34-946013071 ----------------------------------------------------------------------- "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message