From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Bjorn Helgaas <bhelgaas@google.com>
Cc: Linux PCI <linux-pci@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
ACPI Devel Maling List <linux-acpi@vger.kernel.org>,
Mika Westerberg <mika.westerberg@linux.intel.com>,
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 [thread overview]
Message-ID: <477458479.R3OxLNoNxN@vostro.rjw.lan> (raw)
In-Reply-To: <20150522214416.GJ32152@google.com>
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 <rafael.j.wysocki@intel.com>
> >
> > 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 <rafael.j.wysocki@intel.com>
>
> 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!
prev parent reply other threads:[~2015-05-22 22:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-20 0:14 [PATCH] PCI / hotplug / ACPI: Check ignore_hotplug for all downstream devices Rafael J. Wysocki
2015-05-22 21:44 ` Bjorn Helgaas
2015-05-22 22:16 ` Rafael J. Wysocki [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=477458479.R3OxLNoNxN@vostro.rjw.lan \
--to=rjw@rjwysocki.net \
--cc=bhelgaas@google.com \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lorenzo.stanco@gmail.com \
--cc=mika.westerberg@linux.intel.com \
--cc=tiagdtd-lava@yahoo.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox