From owner-freebsd-arch@FreeBSD.ORG Wed Oct 14 15:00:47 2009 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B1E1A106568D; Wed, 14 Oct 2009 15:00:47 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 8143A8FC16; Wed, 14 Oct 2009 15:00:47 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 3135846B2D; Wed, 14 Oct 2009 11:00:47 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 213798A01F; Wed, 14 Oct 2009 11:00:46 -0400 (EDT) From: John Baldwin To: Alexander Motin Date: Wed, 14 Oct 2009 08:08:57 -0400 User-Agent: KMail/1.9.7 References: <200910140811.n9E8BvKk063958@lurza.secnetix.de> <20091014103640.1364764w7rhf3e8s@webmail.leidinger.net> <4AD591D4.1090806@FreeBSD.org> In-Reply-To: <4AD591D4.1090806@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910140808.58205.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Wed, 14 Oct 2009 11:00:46 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Alexander Leidinger , Oliver Fromme , freebsd-arch@freebsd.org Subject: Re: improvement wishes X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Oct 2009 15:00:47 -0000 On Wednesday 14 October 2009 4:54:44 am Alexander Motin wrote: > Alexander Leidinger wrote: > > To all those people with wishes which improve parts of FreeBSD. We have > > something where you can express your wishes much much better (an on > > topic) than here in this thread (where jhb is talking about something > > orthogonal). This other place I talk about is > > http://www.FreeBSD.org/projects/ideas/ or http://wiki.FreeBSD.org/. Both > > places are open for modification to everyone. Expressing your wishes > > there allows a fairy or genie to have a look at them. > > The most efficient place to hunt right genie is near lamp where he > lives. ;) Ideas page is cool for large projects, but This I hope should > be easier to fix then publish somewhere for next few years. > > This topic is not completely orthogonal, as adding more information to > the interrupt consumer name may result (hypothetically) that we won't > see even second consumer of shared IRQ, instead of third. The reason why I am not worried about descriptions making the current situation worse is that descriptions are intended to be used for devices that have multiple interrupts. For devices with a single interrupt, the device name alone is a sufficiently unique label for the interrupt handler, but for devices with multiple interrupts having 3 "igb0" interrupts (for example) can be very ambiguous. Like so: irq256: igb0 641924 0 irq257: igb0 21245021 12 irq258: igb0 3 0 irq259: igb1 1160790 0 irq260: igb1 7595639 4 irq261: igb1 2 0 It would be handy to not have to refer to the source code of the driver to see what order it assigns interrupt handlers to figure out what is different about IRQs 256 vs 257 vs 258 for igb0. The only way devices can currently have multiple devices per interrupt is by using PCI MSI/MSI-X interrupts, and the current implementations of MSI ensure that MSI interrupts are never shared, so in practice you will not run into problems with descriptions causing loss of detail in existing interrupt stats. -- John Baldwin