From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rajesh Shah Subject: Re: [PATCH 11/25] i386 irq: Dynamic irq support Date: Tue, 20 Jun 2006 18:50:16 -0700 Message-ID: <20060620185015.F10402@unix-os.sc.intel.com> References: <11508425191381-git-send-email-ebiederm@xmission.com> <11508425192220-git-send-email-ebiederm@xmission.com> <11508425191063-git-send-email-ebiederm@xmission.com> <1150842520235-git-send-email-ebiederm@xmission.com> <11508425201406-git-send-email-ebiederm@xmission.com> <1150842520775-git-send-email-ebiederm@xmission.com> <11508425213394-git-send-email-ebiederm@xmission.com> <115084252131-git-send-email-ebiederm@xmission.com> <11508425213795-git-send-email-ebiederm@xmission.com> <11508425222427-git-send-email-ebiederm@xmission.com> Reply-To: Rajesh Shah Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga05.intel.com ([192.55.52.89]:18348 "EHLO fmsmga101.fm.intel.com") by vger.kernel.org with ESMTP id S1750755AbWFUBzo (ORCPT ); Tue, 20 Jun 2006 21:55:44 -0400 Content-Disposition: inline In-Reply-To: <11508425222427-git-send-email-ebiederm@xmission.com>; from ebiederm@xmission.com on Tue, Jun 20, 2006 at 04:28:24PM -0600 Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Eric W. Biederman" Cc: Andrew Morton , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz, discuss@x86-64.org, Ingo Molnar , Thomas Gleixner , Andi Kleen , Natalie Protasevich , Len Brown , Kimball Murray , Brice Goglin , Greg Lindahl , Dave Olson , Jeff Garzik , Greg KH , Grant Grundler , "bibo,mao" , Rajesh Shah , Mark Maule , Jesper Juhl , Shaohua Li , Matthew Wilcox , "Michael S. Tsirkin" , Ashok Raj , Randy Dunlap On Tue, Jun 20, 2006 at 04:28:24PM -0600, Eric W. Biederman wrote: > The current implementation of create_irq() is a hack but it is the > current hack that msi.c uses, and unfortunately the ``generic'' apic > msi ops depend on this hack. Thus we are stuck this hack of assuming > irq == vector until the depencencies in the generic msi code are removed. > > Signed-off-by: Eric W. Biederman > --- > arch/i386/kernel/io_apic.c | 48 ++++++++++++++++++++++++++++++++++++++++++++ > 1 files changed, 48 insertions(+), 0 deletions(-) > > diff --git a/arch/i386/kernel/io_apic.c b/arch/i386/kernel/io_apic.c > index 16966f4..04f78ff 100644 > --- a/arch/i386/kernel/io_apic.c > +++ b/arch/i386/kernel/io_apic.c > @@ -2497,6 +2497,54 @@ static int __init ioapic_init_sysfs(void > > device_initcall(ioapic_init_sysfs); > > +#ifdef CONFIG_PCI_MSI > +/* It would be really good to decouple MSI implementation from IO APICs, since there's really no real hardware dependence here. This code can actually go to arch/xxx/pci/msi-apic.c Rajesh