Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 01 Feb 2000 17:01:24 +0100
From:      "Jose M. Alcaide" <jose@we.lc.ehu.es>
To:        Scott Mitchell <s.mitchell@computer.org>
Cc:        freebsd-mobile@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG, freebsd-xircom@lovett.com
Subject:   Re: clk0 interrupt accounting weirdness ???
Message-ID:  <38970354.56AD3D1@we.lc.ehu.es>
References:  <20000130135129.F1158@lungfish.freeserve.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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