From: Bjorn Helgaas <helgaas@kernel.org>
To: Yao Hongbo <yaohongbo@linux.alibaba.com>
Cc: bhelgaas@google.com, lukas@wunner.de,
zhangliguang@linux.alibaba.com,
alikernel-developer@linux.alibaba.com, linux-pci@vger.kernel.org,
linux-kernel@vger.kernel.org,
"Rafael J. Wysocki" <rjw@rjwysocki.net>
Subject: Re: [RFC PATCH v2] PCI: Waiting command completed in get_port_device_capability()
Date: Thu, 13 Jan 2022 08:58:57 -0600 [thread overview]
Message-ID: <20220113145857.GA347384@bhelgaas> (raw)
In-Reply-To: <d47e5af3-d339-01b6-5925-a2037b177be2@linux.alibaba.com>
On Thu, Jan 13, 2022 at 03:34:41PM +0800, Yao Hongbo wrote:
> 在 2022/1/13 上午2:01, Bjorn Helgaas 写道:
> > On Wed, Jan 12, 2022 at 03:33:25PM +0800, Yao Hongbo wrote:
> >> 在 2022/1/12 上午2:55, Bjorn Helgaas 写道:
> >>> What kind of system are you seeing the problem on? It seems like it
> >>> should be safe to drop the HPIE and CCIE disable here for ACPI
> >>> systems. And *likely* we could do the same for non-ACPI systems,
> >>> though I have no experience there.
> >>
> >> Hi, Bjorn
> >> Thanks for your comments.
> >>
> >> The problem occurs on ACPI systems.
> >>
> >> acpi PNP0A08:00: _OSC: OS supports [ExtendedConfig ASPM ClockPM Segments MSI EDR HPX-Type3]
> >> acpi PNP0A08:00: _OSC: platform does not support [SHPCHotplug AER LTR DPC]
> >> acpi PNP0A08:00: _OSC: OS now controls [PCIeHotplug PME PCIeCapability]
> >>
> >> We clear HPIE and CCIE here because the firmware doesn't control
> >> Hotplug via __OSC.
> >>
> >> And on ACPI systems, we can also set pcie_ports=native, which will
> >> also encounter such problems.
> >
> > What happens if you just drop that call like the patch below?
> >
> > If that avoids the problem, then we can talk about whether we need to
> > worry about broken firmware in the non-ACPI or "pcie_ports=native"
> > cases.
>
> Hi, Bjorn.
> This can avoid the problem currently.
Thanks for collecting that data!
> But i'm not sure if removing this code will introduce other problems,
> such as suprious hotplug before probing hotplug service.
I don't think spurious hotplug before probing the hotplug service is
an issue because there is always a window like this. It's either
between:
A: Handoff from firmware to OS
B: get_port_device_capability()
or between:
A: Handoff from firmware to OS
C: pciehp initialization
Either way there is *some* window, and we have to decide how to deal
with it. The exact duration is not very important.
Bjorn
prev parent reply other threads:[~2022-01-13 14:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-07 3:22 [RFC PATCH v2] PCI: Waiting command completed in get_port_device_capability() Yao Hongbo
2022-01-11 18:55 ` Bjorn Helgaas
2022-01-11 21:55 ` Lukas Wunner
2022-01-12 7:33 ` Yao Hongbo
2022-01-12 18:01 ` Bjorn Helgaas
2022-01-13 7:34 ` Yao Hongbo
2022-01-13 14:58 ` Bjorn Helgaas [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=20220113145857.GA347384@bhelgaas \
--to=helgaas@kernel.org \
--cc=alikernel-developer@linux.alibaba.com \
--cc=bhelgaas@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=rjw@rjwysocki.net \
--cc=yaohongbo@linux.alibaba.com \
--cc=zhangliguang@linux.alibaba.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).