Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2992527AbbEVVvM (ORCPT ); Fri, 22 May 2015 17:51:12 -0400 Received: from v094114.home.net.pl ([79.96.170.134]:44202 "HELO v094114.home.net.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S2992511AbbEVVvH (ORCPT ); Fri, 22 May 2015 17:51:07 -0400 From: "Rafael J. Wysocki" To: Bjorn Helgaas Cc: Linux PCI , Linux Kernel Mailing List , ACPI Devel Maling List , Mika Westerberg , lorenzo.stanco@gmail.com, tiagdtd-lava@yahoo.de Subject: Re: [PATCH] PCI / hotplug / ACPI: Check ignore_hotplug for all downstream devices Date: Sat, 23 May 2015 00:16:31 +0200 Message-ID: <477458479.R3OxLNoNxN@vostro.rjw.lan> User-Agent: KMail/4.11.5 (Linux/4.0.0+; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20150522214416.GJ32152@google.com> References: <1499297.p2drhZLZaT@vostro.rjw.lan> <20150522214416.GJ32152@google.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="utf-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1864 Lines: 41 On Friday, May 22, 2015 04:44:16 PM Bjorn Helgaas wrote: > [+cc Lorenzo, tiagdtd-lava] > > On Wed, May 20, 2015 at 02:14:13AM +0200, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > If the ignore_hotplug flag is set for a PCI device without an ACPI > > companion and a bus check notification is received for an ancestor > > bridge that is not the device's parent, ACPIPHP will ignore that > > flag. > > > > Namely, in that case acpiphp_check_bridge() is called for the target > > bridge and if all of the devices immediately below the bridge are > > still present, trim_stale_devices() will be called for each of them. > > That function recursively walks the hierarchy downwards and removes > > device objects corresponding to devices that don't appear to be > > present any more. Unfortunately, it only checks ignore_hotplug > > for devices having ACPI companions, so it will remove the others > > (if they don't respond) regardless of the ignore_hotplug value. > > > > Fix the problem by making trim_stale_devices() take ignore_hotplug > > into consideration regardless of whether or not an ACPI companion > > is present for the device it has been called for. > > > > Signed-off-by: Rafael J. Wysocki > > Applied to pci/hotplug for v4.2, thanks! > > I cc'd Lorenzo and tiagdtd-lava in hopes they can test this patch and see > whether it resolves https://bugzilla.kernel.org/show_bug.cgi?id=61891 . > > The branch with this patch applied is here: > https://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git/log/?h=pci/hotplug Thanks! -- 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/