Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jan 2000 13:51:29 +0000
From:      Scott Mitchell <s.mitchell@computer.org>
To:        freebsd-mobile@freebsd.org, freebsd-hackers@freebsd.org
Cc:        freebsd-xircom@lovett.com
Subject:   clk0 interrupt accounting weirdness ???
Message-ID:  <20000130135129.F1158@lungfish.freeserve.co.uk>

next in thread | raw e-mail | index | archive | help

--liOOAslEiF7prFVr
Content-Type: text/plain; charset=us-ascii

Hi all,

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.

Any ideas?

	Scott
-- 
===========================================================================
Scott Mitchell          | PGP Key ID |"If I can't have my coffee, I'm just
Cambridge, England      | 0x54B171B9 | like a dried up piece of roast goat"
s.mitchell@computer.org | 0xAA775B8B |     -- J. S. Bach.

--liOOAslEiF7prFVr
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit

Return-Path: <owner-freebsd-xircom@lovett.com>
Received: from valis.goatsucker.org (valis.goatsucker.org [192.168.1.1])
	by lungfish.freeserve.co.uk (8.8.8/8.8.8) with ESMTP id VAA01618
	for <scott@valis.goatsucker.org>; Tue, 25 Jan 2000 21:13:36 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
X-From_: owner-freebsd-xircom@lovett.com Tue Jan 25 16:13:07 2000
Envelope-to: scott@lungfish.freeserve.co.uk
Delivery-date: Tue, 25 Jan 2000 16:13:07 +0000
Received: from pop.pol.net.uk
	by valis.goatsucker.org (fetchmail-4.3.8 POP3)
	for <scott/valis.goatsucker.org> (multi-drop); Tue, 25 Jan 2000 21:13:36 GMT
Received: from [130.88.200.94] (helo=probity.mcc.ac.uk)
	by mail8.svr.pol.co.uk with esmtp (Exim 3.13 #0)
	id 12D8aU-0002GG-00
	for scott@lungfish.freeserve.co.uk; Tue, 25 Jan 2000 16:13:02 +0000
Received: from dogma.freebsd-uk.eu.org ([130.88.200.97])
	by probity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@lungfish.freeserve.co.uk
	id 12D8aT-0005nB-00; Tue, 25 Jan 2000 16:13:01 +0000
Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93])
	by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) with ESMTP id QAA12355
	for <scott@freebsd-uk.eu.org>; Tue, 25 Jan 2000 16:13:00 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from [212.74.0.25] (helo=florence.pavilion.net)
	by serenity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@freebsd-uk.eu.org
	id 12D8aS-0005mf-00; Tue, 25 Jan 2000 16:13:00 +0000
Received: from gallia.lovett.com (gallia.lovett.com [207.126.105.195])
	by florence.pavilion.net (8.9.3/8.8.8) with ESMTP id QAA90328
	for <scott@uk.freebsd.org>; Tue, 25 Jan 2000 16:07:56 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from majordom by gallia.lovett.com with local (Exim 3.12 #1)
	id 12D8VJ-000EVN-00
	for freebsd-xircom-outgoing@lovett.com; Tue, 25 Jan 2000 08:07:41 -0800
Received: from [158.227.6.43] (helo=polaris.we.lc.ehu.es)
	by gallia.lovett.com with esmtp (Exim 3.12 #1)
	id 12D8VE-000EVG-00
	for freebsd-xircom@lovett.com; Tue, 25 Jan 2000 08:07:38 -0800
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 RAA13434
	for <freebsd-xircom@lovett.com>; Tue, 25 Jan 2000 17:07:21 +0100 (MET)
Message-ID: <388DCA3A.B4AA61B0@we.lc.ehu.es>
Date: Tue, 25 Jan 2000 17:07:22 +0100
From: "Jose M. Alcaide" <jose@we.lc.ehu.es>
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: freebsd-xircom@lovett.com
Subject: clk0 interrupts accounted to xe ???
Content-Type: text/plain; charset=iso-8859-1
X-MIME-Autoconverted: from 8bit to quoted-printable by polaris.we.lc.ehu.es id RAA13434
Sender: owner-freebsd-xircom@lovett.com
Precedence: bulk
Reply-To: freebsd-xircom@lovett.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by lungfish.freeserve.co.uk id VAA01618

Hello,

I have just purchased a Xircom RE-100BTX. It works fine, but I found
something very strange. After booting the system (with no pccard inserted),
"vmstat -i" shows:

interrupt      total      rate
clk0 irq0      718701      100
...

But, just after I insert the Xircom card and it is detected and enabled,
another "vmstat -i" shows:

interrupt      total      rate
clk0 irq3      732248      110

(IRQ3 is the first available interrupt in my system, and it is assigned
to the Xircom card by the pccardd daemon. I am running FreeBSD 3.4-RELEASE,
no PAO.) 

After inserting the card, the clk0 interrupts are accounted to the
interrupt level used by the Xircom card (I have tried other IRQ levels
with the same result). The 100 interrupts/second generated by the
timer are added to the interrupts generated by the Ethernet adapter.
Since I don't have any other PCMCIA cards, I don't know whether this
"problem" only happens with the xe driver or, on the contrary, it is
a general problem of the FreeBSD's pccard driver.

Did anybody find this same behavior?

-- 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


--liOOAslEiF7prFVr
Content-Type: message/rfc822

Return-Path: <owner-freebsd-xircom@lovett.com>
Received: from valis.goatsucker.org (valis.goatsucker.org [192.168.1.1])
	by lungfish.freeserve.co.uk (8.8.8/8.8.8) with ESMTP id VAA01629
	for <scott@valis.goatsucker.org>; Tue, 25 Jan 2000 21:13:37 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
X-From_: owner-freebsd-xircom@lovett.com Tue Jan 25 16:36:46 2000
Envelope-to: scott@lungfish.freeserve.co.uk
Delivery-date: Tue, 25 Jan 2000 16:36:46 +0000
Received: from pop.pol.net.uk
	by valis.goatsucker.org (fetchmail-4.3.8 POP3)
	for <scott/valis.goatsucker.org> (multi-drop); Tue, 25 Jan 2000 21:13:37 GMT
Received: from [130.88.200.93] (helo=serenity.mcc.ac.uk)
	by mail7.svr.pol.co.uk with esmtp (Exim 3.13 #0)
	id 12D8xR-0005Vn-00
	for scott@lungfish.freeserve.co.uk; Tue, 25 Jan 2000 16:36:45 +0000
Received: from dogma.freebsd-uk.eu.org ([130.88.200.97])
	by serenity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@lungfish.freeserve.co.uk
	id 12D8xQ-0006SD-00; Tue, 25 Jan 2000 16:36:45 +0000
Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93])
	by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) with ESMTP id QAA12726
	for <scott@freebsd-uk.eu.org>; Tue, 25 Jan 2000 16:36:44 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from [212.74.0.25] (helo=florence.pavilion.net)
	by serenity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@freebsd-uk.eu.org
	id 12D8xP-0006S2-00; Tue, 25 Jan 2000 16:36:43 +0000
Received: from gallia.lovett.com (gallia.lovett.com [207.126.105.195])
	by florence.pavilion.net (8.9.3/8.8.8) with ESMTP id QAA04592
	for <scott@uk.freebsd.org>; Tue, 25 Jan 2000 16:33:23 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from majordom by gallia.lovett.com with local (Exim 3.12 #1)
	id 12D8tx-000EWl-00
	for freebsd-xircom-outgoing@lovett.com; Tue, 25 Jan 2000 08:33:09 -0800
Received: from [194.178.168.50] (helo=smtppzh.pzh.nl)
	by gallia.lovett.com with smtp (Exim 3.12 #1)
	id 12D8tv-000EWf-00
	for freebsd-xircom@lovett.com; Tue, 25 Jan 2000 08:33:08 -0800
Received: FROM smtp.pzh.nl BY smtppzh.pzh.nl ; Tue Jan 25 17:31:37 2000 0000
Received: from PZH40-1-Message_Server by smtp.pzh.nl
	with Novell_GroupWise; Tue, 25 Jan 2000 17:31:42 +0100
Message-Id: <s88dddfe.017@smtp.pzh.nl>
X-Mailer: Novell GroupWise 5.5.2
Date: Tue, 25 Jan 2000 17:31:08 +0100
From: "ROGIER MULHUIJZEN" <MULHUIJZEN@PZH.NL>
To: <freebsd-xircom@lovett.com>, <jose@we.lc.ehu.es>
Subject: Re: clk0 interrupts accounted to xe ???
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Sender: owner-freebsd-xircom@lovett.com
Precedence: bulk
Reply-To: freebsd-xircom@lovett.com

>After inserting the card, the clk0 interrupts are accounted to the
>interrupt level used by the Xircom card (I have tried other IRQ
levels
>with the same result). The 100 interrupts/second generated by the
>timer are added to the interrupts generated by the Ethernet adapter.
>Since I don't have any other PCMCIA cards, I don't know whether this
>"problem" only happens with the xe driver or, on the contrary, it is
>a general problem of the FreeBSD's pccard driver.

Hmmm.... taking a quick look at my 'vmstat -i' output I see the same
thing:

clk0 irq10     2667404        102
----bunch of others deleted----

IRQ10 is the IRQ I hooked to my RealPort.

I'll give the ed0 card I have at home a shot tonight.

         DocWilco



--liOOAslEiF7prFVr
Content-Type: message/rfc822

Return-Path: <owner-freebsd-xircom@lovett.com>
Received: from valis.goatsucker.org (valis.goatsucker.org [192.168.1.1])
	by lungfish.freeserve.co.uk (8.8.8/8.8.8) with ESMTP id WAA01507
	for <scott@valis.goatsucker.org>; Wed, 26 Jan 2000 22:14:15 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
X-From_: owner-freebsd-xircom@lovett.com Wed Jan 26 22:06:38 2000
Envelope-to: scott@lungfish.freeserve.co.uk
Delivery-date: Wed, 26 Jan 2000 22:06:38 +0000
Received: from pop.freeserve.net
	by valis.goatsucker.org (fetchmail-4.3.8 POP3)
	for <scott/valis.goatsucker.org> (single-drop); Wed, 26 Jan 2000 22:14:15 GMT
Received: from [130.88.200.94] (helo=probity.mcc.ac.uk)
	by mail13.svr.pol.co.uk with esmtp (Exim 3.13 #0)
	id 12DaaC-0008LC-00
	for scott@lungfish.freeserve.co.uk; Wed, 26 Jan 2000 22:06:36 +0000
Received: from dogma.freebsd-uk.eu.org ([130.88.200.97])
	by probity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@lungfish.freeserve.co.uk
	id 12DaaC-0004tB-00; Wed, 26 Jan 2000 22:06:36 +0000
Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93])
	by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) with ESMTP id WAA38206
	for <scott@freebsd-uk.eu.org>; Wed, 26 Jan 2000 22:06:35 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from [212.74.0.25] (helo=florence.pavilion.net)
	by serenity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@freebsd-uk.eu.org
	id 12DaaB-000PMx-00; Wed, 26 Jan 2000 22:06:35 +0000
Received: from gallia.lovett.com (gallia.lovett.com [207.126.105.195])
	by florence.pavilion.net (8.9.3/8.8.8) with ESMTP id WAA51861
	for <scott@uk.freebsd.org>; Wed, 26 Jan 2000 22:04:36 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from majordom by gallia.lovett.com with local (Exim 3.12 #1)
	id 12DaXv-000G4s-00
	for freebsd-xircom-outgoing@lovett.com; Wed, 26 Jan 2000 14:04:15 -0800
Received: from [195.92.193.210] (helo=mail2.svr.pol.co.uk)
	by gallia.lovett.com with esmtp (Exim 3.12 #1)
	id 12DaXu-000G4m-00
	for freebsd-xircom@lovett.com; Wed, 26 Jan 2000 14:04:14 -0800
Received: from modem-33.electric-blue-damsel.dialup.pol.co.uk ([62.137.5.33] helo=lungfish.freeserve.co.uk)
	by mail2.svr.pol.co.uk with esmtp (Exim 3.13 #0)
	id 12DaXs-0004iL-00
	for freebsd-xircom@lovett.com; Wed, 26 Jan 2000 22:04:12 +0000
Received: (from scott@localhost)
	by lungfish.freeserve.co.uk (8.8.8/8.8.8) id VAA00408;
	Wed, 26 Jan 2000 21:31:59 GMT
	(envelope-from scott)
Message-ID: <20000126213159.55106@lungfish.freeserve.co.uk>
Date: Wed, 26 Jan 2000 21:31:59 +0000
From: Scott Mitchell <s.mitchell@computer.org>
To: freebsd-xircom@lovett.com
Subject: Re: clk0 interrupts accounted to xe ???
References: <s88dddfe.017@smtp.pzh.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.89i
In-Reply-To: <s88dddfe.017@smtp.pzh.nl>; from ROGIER MULHUIJZEN on Tue, Jan 25, 2000 at 05:31:08PM +0100
X-Operating-System: FreeBSD 2.2.6-RELEASE i386
Sender: owner-freebsd-xircom@lovett.com
Precedence: bulk
Reply-To: freebsd-xircom@lovett.com

On Tue, Jan 25, 2000 at 05:31:08PM +0100, ROGIER MULHUIJZEN wrote:
> >After inserting the card, the clk0 interrupts are accounted to the
> >interrupt level used by the Xircom card (I have tried other IRQ
> levels
> >with the same result). The 100 interrupts/second generated by the
> >timer are added to the interrupts generated by the Ethernet adapter.
> >Since I don't have any other PCMCIA cards, I don't know whether this
> >"problem" only happens with the xe driver or, on the contrary, it is
> >a general problem of the FreeBSD's pccard driver.
> 
> Hmmm.... taking a quick look at my 'vmstat -i' output I see the same
> thing:
> 
> clk0 irq10     2667404        102
> ----bunch of others deleted----
> 
> IRQ10 is the IRQ I hooked to my RealPort.
> 
> I'll give the ed0 card I have at home a shot tonight.

Another data point:

Script started on Wed Jan 26 21:18:22 2000
orac 78 ~> vmstat -i
interrupt      total      rate
clk0 irq3       23175       99
rtc0 irq8       29662      127
fdc0 irq6           1        0
wdc0 irq14       1934        8
atkbd0 irq1       468        2
psm0 irq12          9        0
Total           55249      238
[xe0 inserted here]
orac 79 ~> vmstat -i
interrupt      total      rate
clk0 irq10      33303      100
rtc0 irq8       42600      127
fdc0 irq6           1        0
wdc0 irq14       2088        6
atkbd0 irq1       501        1
psm0 irq12          9        0
Total           78502      235
orac 80 ~> exit

irq3 is where my pccard controller typically lives; irq10 is (of course)
the line occupied by xe0.  I'll be interested to see what happens with
Rogier's ed0 (I should probably borrow a 3Com card from work and try the
same thing) but I suspect this is a case of the generic pccard code being
weird rather than anything specific to the xe0 driver.  Our code doesn't do 
much with interrupts except handle them when they go off :-)  All the setup 
stuff is done by pccardd before xe get a look in...

	Scott

-- 
===========================================================================
Scott Mitchell          | PGP Key ID | "Eagles may soar, but weasels
Cambridge, England      | 0x54B171B9 |  don't get sucked into jet engines"
s.mitchell@computer.org | 0xAA775B8B |      -- Anon


--liOOAslEiF7prFVr
Content-Type: message/rfc822

Return-Path: <owner-freebsd-xircom@lovett.com>
Received: from valis.goatsucker.org (valis.goatsucker.org [192.168.1.1])
	by lungfish.freeserve.co.uk (8.8.8/8.8.8) with ESMTP id VAA00328
	for <scott@valis.goatsucker.org>; Thu, 27 Jan 2000 21:08:13 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
X-From_: owner-freebsd-xircom@lovett.com Wed Jan 26 22:54:23 2000
Envelope-to: scott@lungfish.freeserve.co.uk
Delivery-date: Wed, 26 Jan 2000 22:54:23 +0000
Received: from pop.pol.net.uk
	by valis.goatsucker.org (fetchmail-4.3.8 POP3)
	for <scott/valis.goatsucker.org> (multi-drop); Thu, 27 Jan 2000 21:08:13 GMT
Received: from [130.88.200.94] (helo=probity.mcc.ac.uk)
	by mail8.svr.pol.co.uk with esmtp (Exim 3.13 #0)
	id 12DbKR-0007qe-00
	for scott@lungfish.freeserve.co.uk; Wed, 26 Jan 2000 22:54:23 +0000
Received: from dogma.freebsd-uk.eu.org ([130.88.200.97])
	by probity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@lungfish.freeserve.co.uk
	id 12DbKQ-0005wf-00; Wed, 26 Jan 2000 22:54:22 +0000
Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93])
	by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) with ESMTP id WAA38851
	for <scott@freebsd-uk.eu.org>; Wed, 26 Jan 2000 22:54:22 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from [212.74.0.25] (helo=florence.pavilion.net)
	by serenity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@freebsd-uk.eu.org
	id 12DbKP-0000Hz-00; Wed, 26 Jan 2000 22:54:21 +0000
Received: from gallia.lovett.com (gallia.lovett.com [207.126.105.195])
	by florence.pavilion.net (8.9.3/8.8.8) with ESMTP id WAA57962
	for <scott@uk.freebsd.org>; Wed, 26 Jan 2000 22:52:17 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from majordom by gallia.lovett.com with local (Exim 3.12 #1)
	id 12DbHx-000GA7-00
	for freebsd-xircom-outgoing@lovett.com; Wed, 26 Jan 2000 14:51:49 -0800
Received: from [207.139.235.10] (helo=yossman.net ident=root)
	by gallia.lovett.com with esmtp (Exim 3.12 #1)
	id 12DbHw-000GA1-00
	for freebsd-xircom@lovett.com; Wed, 26 Jan 2000 14:51:48 -0800
Received: from localhost (drwilco@localhost)
	by yossman.net (8.9.3/8.9.3) with ESMTP id SAA86008
	for <freebsd-xircom@lovett.com>; Wed, 26 Jan 2000 18:06:55 -0500 (EST)
	(envelope-from drwilco@drwilco.net)
Date: Wed, 26 Jan 2000 18:06:55 -0500 (EST)
From: drwilco <drwilco@drwilco.net>
X-Sender: drwilco@yossman.net
To: freebsd-xircom@lovett.com
Subject: Re: clk0 interrupts accounted to xe ???
In-Reply-To: <20000126213159.55106@lungfish.freeserve.co.uk>
Message-ID: <Pine.BSF.4.21.0001261758440.85372-100000@yossman.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-freebsd-xircom@lovett.com
Precedence: bulk
Reply-To: freebsd-xircom@lovett.com

> irq3 is where my pccard controller typically lives; irq10 is (of course)
> the line occupied by xe0.  I'll be interested to see what happens with
> Rogier's ed0 (I should probably borrow a 3Com card from work and try the
> same thing) but I suspect this is a case of the generic pccard code being
> weird rather than anything specific to the xe0 driver.  Our code doesn't do 
> much with interrupts except handle them when they go off :-)  All the setup 
> stuff is done by pccardd before xe get a look in...
> 

Hmmmm, my dmesg output says:

pcic: controller irq 3

And as you can see below clk0 is on irq 7...

Anyways here is the log of vmstat -i's with my RealPort in xe0 mode, my
ed0 card and my RealPort in sio mode:

After a clean boot:

interrupt      total      rate
clk0 irq7       15771      100
rtc0 irq8       20182      128
wdc0 irq14       2826       18
fdc0 irq6           1        0
atkbd0 irq1       495        3
psm0 irq12       4503       28
ppc0 irq5           1        0
stray irq4          1        0
Total           43780      278

After insertion of my RealPort in xe0 mode:

interrupt      total      rate
clk0 irq10      23540      100
rtc0 irq8       30124      128
wdc0 irq14       2858       12
fdc0 irq6           1        0
atkbd0 irq1       708        3
psm0 irq12       8715       37
ppc0 irq5           1        0
stray irq4          1        0
Total           65948      280

After a ping -f of another host:
interrupt      total      rate
clk0 irq10      52835      144
rtc0 irq8       46783      128
wdc0 irq14       2906        7
fdc0 irq6           1        0
atkbd0 irq1      1084        2
psm0 irq12      11997       32
ppc0 irq5           1        0
stray irq4          1        0
Total          115608      316

After a reboot with RealPort inserted in sio mode:

interrupt      total      rate
clk0 irq7       15470      101
rtc0 irq8       19656      128
wdc0 irq14       2841       18
fdc0 irq6           1        0
atkbd0 irq1       425        2
psm0 irq12       2550       16
ppc0 irq5           1        0
stray irq4          1        0
Total           40945      267

After a ping -f over ppp:

interrupt      total      rate
clk0 irq7       23016      126
rtc0 irq8       23286      127
wdc0 irq14       2864       15
fdc0 irq6           1        0
atkbd0 irq1       563        3
psm0 irq12       2550       14
ppc0 irq5           1        0
stray irq4          1        0
Total           52282      287

Here is my pccard.conf entry for my RealPort:

card "Xircom" "16-bit Ethernet + Modem 56"
        config  0x17 "sio1" 10
#       config  0x27 "xe0" 10
        insert  echo Xircom CreditCard Modem inserted
        remove  echo Xircom CreditCard Modem removed

Note that the sio driver has irq 10 configured, but that it doesn't show
up on the vmstat list, but that the rate gets skewed a LOT. (The ping -f
generated a few interrupt-level buffer overflows)
I think we can safely say that this is either something in vmstat, or in
pccardd. Warner, what's your take on this?

        DocWilco (It's weird being called Rogier online =) )





--liOOAslEiF7prFVr
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit

Return-Path: <owner-freebsd-xircom@lovett.com>
Received: from valis.goatsucker.org (valis.goatsucker.org [192.168.1.1])
	by lungfish.freeserve.co.uk (8.8.8/8.8.8) with ESMTP id VAA00526
	for <scott@valis.goatsucker.org>; Thu, 27 Jan 2000 21:08:39 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
X-From_: owner-freebsd-xircom@lovett.com Wed Jan 26 23:29:17 2000
Envelope-to: scott@lungfish.freeserve.co.uk
Delivery-date: Wed, 26 Jan 2000 23:29:17 +0000
Received: from pop.pol.net.uk
	by valis.goatsucker.org (fetchmail-4.3.8 POP3)
	for <scott/valis.goatsucker.org> (multi-drop); Thu, 27 Jan 2000 21:08:39 GMT
Received: from [130.88.200.94] (helo=probity.mcc.ac.uk)
	by imailg3.svr.pol.co.uk with esmtp (Exim 3.13 #0)
	id 12DbsD-0000Rk-00
	for scott@lungfish.freeserve.co.uk; Wed, 26 Jan 2000 23:29:17 +0000
Received: from dogma.freebsd-uk.eu.org ([130.88.200.97])
	by probity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@lungfish.freeserve.co.uk
	id 12DbsD-0006Om-00; Wed, 26 Jan 2000 23:29:17 +0000
Received: from serenity.mcc.ac.uk (serenity.mcc.ac.uk [130.88.200.93])
	by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) with ESMTP id XAA39518
	for <scott@freebsd-uk.eu.org>; Wed, 26 Jan 2000 23:29:16 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from [212.74.0.25] (helo=florence.pavilion.net)
	by serenity.mcc.ac.uk with esmtp (Exim 1.92 #3)
	for scott@freebsd-uk.eu.org
	id 12DbsC-0001Ia-00; Wed, 26 Jan 2000 23:29:16 +0000
Received: from gallia.lovett.com (gallia.lovett.com [207.126.105.195])
	by florence.pavilion.net (8.9.3/8.8.8) with ESMTP id XAA62540
	for <scott@uk.freebsd.org>; Wed, 26 Jan 2000 23:27:22 GMT
	(envelope-from owner-freebsd-xircom@lovett.com)
Received: from majordom by gallia.lovett.com with local (Exim 3.12 #1)
	id 12DbqB-000GCj-00
	for freebsd-xircom-outgoing@lovett.com; Wed, 26 Jan 2000 15:27:11 -0800
Received: from [158.227.6.43] (helo=polaris.we.lc.ehu.es)
	by gallia.lovett.com with esmtp (Exim 3.12 #1)
	id 12DbqA-000GCd-00
	for freebsd-xircom@lovett.com; Wed, 26 Jan 2000 15:27:10 -0800
Received: from we.lc.ehu.es (lxpx70.lx.ehu.es [158.227.99.70])
	by polaris.we.lc.ehu.es (8.9.1/8.9.1) with ESMTP id AAA05691
	for <freebsd-xircom@lovett.com>; Thu, 27 Jan 2000 00:27:05 +0100 (MET)
Message-ID: <388F82C7.B37CF139@we.lc.ehu.es>
Date: Thu, 27 Jan 2000 00:27:03 +0100
From: "Jose M. Alcaide" <jose@we.lc.ehu.es>
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: freebsd-xircom@lovett.com
Subject: Re: clk0 interrupts accounted to xe ???
References: <Pine.BSF.4.21.0001261758440.85372-100000@yossman.net>
Content-Type: text/plain; charset=iso-8859-1
X-MIME-Autoconverted: from 8bit to quoted-printable by polaris.we.lc.ehu.es id AAA05691
Sender: owner-freebsd-xircom@lovett.com
Precedence: bulk
Reply-To: freebsd-xircom@lovett.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by lungfish.freeserve.co.uk id VAA00526

drwilco wrote:
> [...]
> 
> I think we can safely say that this is either something in vmstat, or in
> pccardd. Warner, what's your take on this?
> 

I absolutely agree. The problem is not in the xe driver.

I have carefully examined the vmstat and pccard sources. Vmstat is
innocent; it simply uses kvm_read(), so the interrupt accounting is
messed up in the kernel memory. Pccardd has nothing to do with
interrupt registration; this support is in the pccard driver. And
with respect to pccard, the calls to register_intr() appear to be OK.
Really, I have no idea of where is the problem. We need a kernel guru :-)

This thread should be moved to -mobile, I think.

-- 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


--liOOAslEiF7prFVr--


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?20000130135129.F1158>