Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 May 1995 21:54:16 +0200
From:      esser@ZPR.Uni-Koeln.DE (Stefan Esser)
To:        "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com>
Cc:        current@FreeBSD.org
Subject:   Re: Enthusiasm boost: make world works on 386SX16 4Mb
Message-ID:  <199505171954.AA14186@jukebox.MI.Uni-Koeln.DE>
In-Reply-To: "Rodney W. Grimes" <rgrimes@gndrsh.aac.dev.com> "Re: Enthusiasm boost: make world works on 386SX16 4Mb" (May 17,  2:49)

next in thread | previous in thread | raw e-mail | index | archive | help
On May 17,  2:49, "Rodney W. Grimes" wrote:
} Subject: Re: Enthusiasm boost: make world works on 386SX16 4Mb

} > PS. Those of you with a trivia fixation can enjoy the following:
} > 'make world' caused 60 million wdc0 interrupts and 6 million ed0 interrupts.
} 
} Humm.. to bad the PCI code is broken in this area, it would be interesting
} to compare the number of interrupts to a scsi system running make world.

Well, I looked into this.

The problem is, that the current interrupt statistics scheme is 
tightly bound to ISA.

The register_intr() function gets a device_id, which is used to 
initialise the intr_countp[] and intrnames[] arrays.

Since device_id is an index into an ISA specific data structure
(which doesn't make much sense for a PCI device), there is no
valid device_id for any PCI device.

The easy solution to this problem would be to make register_intr()
less specific to ISA by passing an &intrcnt and an intrname 
parameter instead of the ISA device id.

This would require (very simple) changes to:

/sys/i386/isa/isa_device.h	(prototype)
/sys/i386/isa/isa.c		(definition + a few calls)
/sys/i386/isa/clock.c		(2 calls)
/sys/i386/isa/pcibus.c		(1 call)
/sys/i386/eisa/eisaconf.c	(1 call)


Regards, STefan
-- 
 Stefan Esser				Internet:	<se@ZPR.Uni-Koeln.DE>
 Zentrum fuer Paralleles Rechnen	Tel:		+49 221 4706017
 Universitaet zu Koeln			FAX:		+49 221 4705160
 Weyertal 80
 50931 Koeln



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