From owner-freebsd-acpi@FreeBSD.ORG Wed Nov 17 22:48:26 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E75B116A4CE for ; Wed, 17 Nov 2004 22:48:26 +0000 (GMT) Received: from mail5.speakeasy.net (mail5.speakeasy.net [216.254.0.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A77643D2D for ; Wed, 17 Nov 2004 22:48:26 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 24308 invoked from network); 17 Nov 2004 22:48:26 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 17 Nov 2004 22:48:25 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iAHMmLfr093124; Wed, 17 Nov 2004 17:48:22 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-acpi@FreeBSD.org Date: Wed, 17 Nov 2004 15:19:18 -0500 User-Agent: KMail/1.6.2 References: <200411111737.00537.jhb@FreeBSD.org> <200411170905.34296.jhb@FreeBSD.org> <419BB1DB.3090002@root.org> In-Reply-To: <419BB1DB.3090002@root.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411171519.18473.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: gallatin@FreeBSD.org cc: scottl@FreeBSD.org Subject: Re: New ACPI PCI Link Routing code X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Nov 2004 22:48:27 -0000 On Wednesday 17 November 2004 03:17 pm, Nate Lawson wrote: > John Baldwin wrote: > > On Tuesday 16 November 2004 06:27 pm, Nate Lawson wrote: > >>John Baldwin wrote: > >>>On Thursday 11 November 2004 05:37 pm, John Baldwin wrote: > >>>>I've done some work on the ACPI PCI link code to make it a bit more > >>>> like $PIR in that it is link centric and uses actual new-bus devices > >>>> for each device link. One benefit of this is that unused links will > >>>> be disabled now which might help with interrupt aliasing problems on > >>>> machines using APICs. Also, instead of routing IRQs for links via PCI > >>>> device numbers using tunables, they are now routed via the link name > >>>> ala $PIR. Thus, one uses 'hw.pci.link.LNKA.irq=X' to route LNKA to > >>>> IRQ X. Also, when choosing a virgin interrupt, we no longer try to > >>>> guess at which IRQs might be used by ISA devices. Instead, we only > >>>> use known-good IRQs including IRQs that the BIOS has already used and > >>>> the SCI if the link is being routed via ISA IRQs. The patch is at > >>>>http://www.FreeBSD.org/~jhb/patches/acpi_pci_link.patch Please test and > >>>>let me know if there are any problems, thanks. > >>> > >>>I've updated this to the latest current and verified that it compiles ok > >>>(since I had at least one report that it didn't patch cleanly and/or > >>>compile). I plan to commit this in a couple of days unless I hear some > >>>sort of negative feedback. > >> > >>Oh, please s/style(msmith)/style(9) in some parts you added. > > > > Heh, I can do that in the new code, sure. > > I just ask because acpi_pci_link.c was already closer to style(9) and > I'd like all new modules to do that as well. Changes to style(msmith) > files should conform to the existing file unless they rewrite it so much > that it can be brought into compliance easily. I checked and acpi_pci_link.c with my changes is style(9), but the existing files are the other style, so I think it is good as is. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org