Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751716AbbETDV7 (ORCPT ); Tue, 19 May 2015 23:21:59 -0400 Received: from mga02.intel.com ([134.134.136.20]:46766 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750983AbbETDV5 (ORCPT ); Tue, 19 May 2015 23:21:57 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,462,1427785200"; d="scan'208";a="574017703" Message-ID: <555BFDCF.4020303@linux.intel.com> Date: Wed, 20 May 2015 11:21:51 +0800 From: Jiang Liu Organization: Intel User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Thomas Gleixner CC: "Rafael J . Wysocki" , Bjorn Helgaas , Lv Zheng , LKML , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, "x86 @ kernel . org" Subject: Re: [RFC 0/4] Introduce a mechanism to allocate PCI IRQ on demand References: <1430968374-29286-1-git-send-email-jiang.liu@linux.intel.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1444 Lines: 42 On 2015/5/19 21:35, Thomas Gleixner wrote: > On Thu, 7 May 2015, Jiang Liu wrote: > >> This patch set introduces a mechanism to allocate PCI IRQ on demand and >> free it when not used anymore by hooking pci_device_probe() and >> pci_device_remove(). >> >> It will be used to track IOAPIC pin usage on x86 so we could support >> IOAPIC hot-removal. > > Bjorn, any opinion on this? Hi Bjorn, With this patch applied, how about removing this workaround from arch/x86/pci/irq.c? ------------------------------------------------------------------- if (io_apic_assign_pci_irqs && pci_routeirq) { struct pci_dev *dev = NULL; /* * PCI IRQ routing is set up by pci_enable_device(), but we * also do it here in case there are still broken drivers that * don't use pci_enable_device(). */ printk(KERN_INFO "PCI: Routing PCI interrupts for all devices because \"pci=routeirq\" specified\n"); for_each_pci_dev(dev) pirq_enable_irq(dev); } ------------------------------------------------------- Thanks! Gerry > > Thanks, > > tglx > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/