From owner-freebsd-current Wed May 17 12:55:11 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id MAA12516 for current-outgoing; Wed, 17 May 1995 12:55:11 -0700 Received: from jukebox.MI.Uni-Koeln.DE (jukebox.MI.Uni-Koeln.DE [134.95.212.11]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id MAA12510 for ; Wed, 17 May 1995 12:55:08 -0700 Received: by jukebox.MI.Uni-Koeln.DE id AA14186 (5.67b/IDA-1.5 for current@freebsd.org); Wed, 17 May 1995 21:54:16 +0200 Message-Id: <199505171954.AA14186@jukebox.MI.Uni-Koeln.DE> From: esser@ZPR.Uni-Koeln.DE (Stefan Esser) Date: Wed, 17 May 1995 21:54:16 +0200 In-Reply-To: "Rodney W. Grimes" "Re: Enthusiasm boost: make world works on 386SX16 4Mb" (May 17, 2:49) X-Mailer: Mail User's Shell (7.2.5 10/14/92) To: "Rodney W. Grimes" Subject: Re: Enthusiasm boost: make world works on 386SX16 4Mb Cc: current@FreeBSD.org Sender: current-owner@FreeBSD.org Precedence: bulk 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: Zentrum fuer Paralleles Rechnen Tel: +49 221 4706017 Universitaet zu Koeln FAX: +49 221 4705160 Weyertal 80 50931 Koeln