From: Bjorn Helgaas <helgaas@kernel.org>
To: linux-pci@vger.kernel.org
Cc: "Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
"Maciej W . Rozycki" <macro@orcam.me.uk>,
"Mika Westerberg" <mika.westerberg@linux.intel.com>,
"Lukas Wunner" <lukas@wunner.de>,
"Rafael J . Wysocki" <rafael.j.wysocki@intel.com>,
"Mario Limonciello" <mario.limonciello@amd.com>,
"Duc Dang" <ducdang@google.com>,
"Alex Williamson" <alex.williamson@redhat.com>,
linux-kernel@vger.kernel.org,
"Bjorn Helgaas" <bhelgaas@google.com>
Subject: Re: [RFC PATCH 0/3] PCI: Use Configuration RRS to wait for device ready
Date: Tue, 10 Sep 2024 17:55:16 -0500 [thread overview]
Message-ID: <20240910225516.GA608142@bhelgaas> (raw)
In-Reply-To: <20240827234848.4429-1-helgaas@kernel.org>
On Tue, Aug 27, 2024 at 06:48:45PM -0500, Bjorn Helgaas wrote:
> From: Bjorn Helgaas <bhelgaas@google.com>
>
> After a device reset, pci_dev_wait() waits for a device to become
> completely ready by polling the PCI_COMMAND register. The spec envisions
> that software would instead poll for the device to stop responding to
> config reads with Completions with Request Retry Status (RRS).
>
> Polling PCI_COMMAND leads to hardware retries that are invisible to
> software and the backoff between software retries doesn't work correctly.
>
> Root Ports are not required to support the Configuration RRS Software
> Visibility feature that prevents hardware retries and makes the RRS
> Completions visible to software, so this series only uses it when available
> and falls back to PCI_COMMAND polling when it's not.
>
> This is completely untested and posted for comments.
>
> Bjorn Helgaas (3):
> PCI: Wait for device readiness with Configuration RRS
> PCI: aardvark: Correct Configuration RRS checking
> PCI: Rename CRS Completion Status to RRS
>
> drivers/bcma/driver_pci_host.c | 10 ++--
> drivers/pci/controller/dwc/pcie-tegra194.c | 18 +++---
> drivers/pci/controller/pci-aardvark.c | 64 +++++++++++-----------
> drivers/pci/controller/pci-xgene.c | 6 +-
> drivers/pci/controller/pcie-iproc.c | 18 +++---
> drivers/pci/pci-bridge-emul.c | 4 +-
> drivers/pci/pci.c | 41 +++++++++-----
> drivers/pci/pci.h | 11 +++-
> drivers/pci/probe.c | 33 +++++------
> include/linux/bcma/bcma_driver_pci.h | 2 +-
> include/linux/pci.h | 1 +
> include/uapi/linux/pci_regs.h | 6 +-
> 12 files changed, 117 insertions(+), 97 deletions(-)
I provisionally applied this on pci/crs for v6.12. Please let me know
of any concerns. I do have one internal test report, but more would
be better since I know this affects many devices.
Bjorn
prev parent reply other threads:[~2024-09-10 22:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-27 23:48 [RFC PATCH 0/3] PCI: Use Configuration RRS to wait for device ready Bjorn Helgaas
2024-08-27 23:48 ` [RFC PATCH 1/3] PCI: Wait for device readiness with Configuration RRS Bjorn Helgaas
2024-08-28 4:17 ` Lukas Wunner
2024-08-28 20:53 ` Bjorn Helgaas
2024-09-11 0:42 ` Duc Dang
2024-08-27 23:48 ` [RFC PATCH 2/3] PCI: aardvark: Correct Configuration RRS checking Bjorn Helgaas
2024-08-27 23:48 ` [RFC PATCH 3/3] PCI: Rename CRS Completion Status to RRS Bjorn Helgaas
2024-08-28 21:24 ` [RFC PATCH 0/3] PCI: Use Configuration RRS to wait for device ready Mario Limonciello
2024-08-28 21:42 ` Bjorn Helgaas
2024-08-28 22:26 ` Mario Limonciello
2024-08-29 23:12 ` Bjorn Helgaas
2024-09-10 0:59 ` Bjorn Helgaas
2024-09-10 22:55 ` 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=20240910225516.GA608142@bhelgaas \
--to=helgaas@kernel.org \
--cc=alex.williamson@redhat.com \
--cc=bhelgaas@google.com \
--cc=ducdang@google.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=macro@orcam.me.uk \
--cc=mario.limonciello@amd.com \
--cc=mika.westerberg@linux.intel.com \
--cc=rafael.j.wysocki@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.