From: Bjorn Helgaas <bhelgaas@google.com>
To: Gavin Guo <gavin.guo@canonical.com>
Cc: "linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"Rafael J. Wysocki" <rjw@sisk.pl>,
Yinghai Lu <yinghai@kernel.org>, Jiang Liu <jiang.liu@huawei.com>,
YK <yk@canonical.com>, Yung Shen <yung.shen@canonical.com>,
Po-Hsu Lin <po-hsu.lin@canonical.com>
Subject: Re: PCI-to-USB ExpressCard Hotplugging can't work in v3.15-rc5
Date: Tue, 20 May 2014 22:54:42 -0600 [thread overview]
Message-ID: <CAErSpo61Ge078ip6x5XqosMaa4+TYvH8d6pTkR9OE1-_DPbu7g@mail.gmail.com> (raw)
In-Reply-To: <CA+eFSM2CBiWZNmpnSNGKZGjEpK6gc=T0a5r7m6sbORi==XTCjQ@mail.gmail.com>
On Tue, May 20, 2014 at 10:36 PM, Gavin Guo <gavin.guo@canonical.com> wrote:
> Hi all,
>
> I have a APIOTEK PCI-to-USB ExpressCard and found that when it is
> plugged at cold boot, the card can be detected. But, hotplug cannot
> work at run time. The bug may be related to the commit which I
> reported last year:
>
> commit 3f327e39b4b8f760c331bb2836735be6d83fbf53
Where is your report from last year? How did you identify this
commit? Did you verify that it works correctly with v3.10-rc1, but
fails when you add this commit?
> Author: Yinghai Lu <yinghai@kernel.org>
> Date: Tue May 7 11:06:03 2013 -0600
>
> PCI: acpiphp: Re-enumerate devices when host bridge receives Bus Check
>
> When a PCI host bridge device receives a Bus Check notification, we
> must re-enumerate starting with the bridge to discover changes (devices
> that have been added or removed).
>
> Prior to 668192b678 ("PCI: acpiphp: Move host bridge hotplug to
> pci_root.c"), this happened in _handle_hotplug_event_bridge(). After that
> commit, _handle_hotplug_event_bridge() is not installed for host bridges,
> and the host bridge notify handler, _handle_hotplug_event_root() did not
> re-enumerate.
>
> This patch adds re-enumeration to _handle_hotplug_event_root().
>
> This fixes cases where we don't notice the addition or removal of
> PCI devices, e.g., the PCI-to-USB ExpressCard in the bugzilla below.
>
> Dmesg is attached. The scenario of the dmesg: The PCI-to-USB
> ExpressCard is attached at cold boot. Then, you can see that the usb
> storage can be detected in the dmesg. Finally, I've done hotplug 2
> times to see if it can detect the PCI-to-USB ExpressCard. At the end
> of Dmesg, it only has several "ACPI: \_SB_.PCI0: ACPI_NOTIFY_BUS_CHECK
> event" and can't detect the card.
>
> Thanks,
> Gavin Guo
next parent reply other threads:[~2014-05-21 4:55 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CA+eFSM2CBiWZNmpnSNGKZGjEpK6gc=T0a5r7m6sbORi==XTCjQ@mail.gmail.com>
2014-05-21 4:54 ` Bjorn Helgaas [this message]
[not found] ` <CA+eFSM3683deo8aRiKo6Yobq6sRoWgyoVV+gCnTHaSUNjYcHaA@mail.gmail.com>
2014-05-21 13:53 ` PCI-to-USB ExpressCard Hotplugging can't work in v3.15-rc5 Bjorn Helgaas
2014-05-21 23:36 ` Rafael J. Wysocki
2014-06-05 11:46 ` Gavin Guo
2014-06-05 12:08 ` Rafael J. Wysocki
2014-06-05 12:58 ` Mika Westerberg
2014-06-13 8:05 ` Gavin Guo
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=CAErSpo61Ge078ip6x5XqosMaa4+TYvH8d6pTkR9OE1-_DPbu7g@mail.gmail.com \
--to=bhelgaas@google.com \
--cc=gavin.guo@canonical.com \
--cc=jiang.liu@huawei.com \
--cc=linux-pci@vger.kernel.org \
--cc=po-hsu.lin@canonical.com \
--cc=rjw@sisk.pl \
--cc=yinghai@kernel.org \
--cc=yk@canonical.com \
--cc=yung.shen@canonical.com \
/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;
as well as URLs for NNTP newsgroup(s).