Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932704AbcDNPu7 (ORCPT ); Thu, 14 Apr 2016 11:50:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:51792 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753653AbcDNPu5 (ORCPT ); Thu, 14 Apr 2016 11:50:57 -0400 Date: Thu, 14 Apr 2016 17:50:44 +0200 From: Joerg Roedel To: Bjorn Helgaas Cc: stable@vger.kernel.org, =?utf-8?B?0J7Qu9C10LPQnNC+0YDQvtC3?= , "Rafael J. Wysocki" , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org, Sunjin Yang , Rob Groner , Thomas Gleixner , Jiang Liu Subject: Re: [PATCH 0/3] v4.4: Revert "PCI: Implement pcibios_alloc_irq() and Message-ID: <20160414155044.GB3886@suse.de> References: <20160413055439.6877.68183.stgit@bhelgaas-glaptop2.roam.corp.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160413055439.6877.68183.stgit@bhelgaas-glaptop2.roam.corp.google.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 953 Lines: 23 Hi Bjorn, On Wed, Apr 13, 2016 at 12:56:59AM -0500, Bjorn Helgaas wrote: > We reverted the following changes from v4.5 to fix a regression: > > 8affb487d4a4 ("x86/PCI: Don't alloc pcibios-irq when MSI is enabled") > 811a4e6fce09 ("PCI: Add helpers to manage pci_dev->irq and pci_dev->irq_managed") > 991de2e59090 ("PCI, x86: Implement pcibios_alloc_irq() and pcibios_free_irq()") Do you have a link to the thread about these issues? I'd like to have a look at what has been tried to solve the regressions before the revert. I had a look at commit 991de2e59090 and noted that the main difference it introduces is that the pcibios-irq is allocated earlier (probe time, before the commit it was pci_enable_device() time). In fact, it is now allocated before pci_enable_resources() has been called on the device (as far as I can see). I wonder if the regression can be fixed by also moving pci_enable_resources() to probe time. Regards, Joerg