From owner-svn-src-head@FreeBSD.ORG Tue Dec 16 17:12:22 2008 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F41BA1065670; Tue, 16 Dec 2008 17:12:21 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id B06258FC08; Tue, 16 Dec 2008 17:12:21 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.2/8.14.1) with ESMTP id mBGHAZ4f062322; Tue, 16 Dec 2008 10:10:35 -0700 (MST) (envelope-from imp@bsdimp.com) Date: Tue, 16 Dec 2008 10:10:38 -0700 (MST) Message-Id: <20081216.101038.1172765453.imp@bsdimp.com> To: scottl@samsco.org From: "M. Warner Losh" In-Reply-To: <4947D474.9040802@samsco.org> References: <200812161604.mBGG4fBd041647@svn.freebsd.org> <4947D474.9040802@samsco.org> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: svn-src-head@FreeBSD.org, mav@FreeBSD.org, src-committers@FreeBSD.org, svn-src-all@FreeBSD.org Subject: Re: svn commit: r186182 - head/sys/dev/ata X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2008 17:12:22 -0000 In message: <4947D474.9040802@samsco.org> Scott Long writes: : Alexander Motin wrote: : > Author: mav : > Date: Tue Dec 16 16:04:40 2008 : > New Revision: 186182 : > URL: http://svn.freebsd.org/changeset/base/186182 : > : > Log: : > Call ata_legacy() only once on attach and save it's result. Scanning PCI : > configuration registers (which are not going to change) on every interrupt : > looks expensive, especially when interrupt is shared. Profiling shows me 3% : > of time spent by atapci0 on pure network load due to IRQ sharing with em0. : > : : Nice change. PCI Config registers are exceptionally slow to access on : most systems. And we've been recommending to people for years that they avoid config space access in interrupt handlers. Maybe it is time for something that checks and prints a warning? Warner