Skip to content
Snippets Groups Projects
Commit 7cd23f6c authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Bjorn Helgaas
Browse files

PCI: Document the Capability accessor RMW improvements

Documentation claims port service drivers should play nice with respect to
PCIe Capability changes, but the concurrency control is now provided in the
Capability accessors as long as the correct ones are used.

Update the documention to match the RMW accessor behavior.

Link: https://lore.kernel.org/r/20230717120503.15276-12-ilpo.jarvinen@linux.intel.com


Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
parent f139492a
No related branches found
No related tags found
No related merge requests found
...@@ -213,8 +213,12 @@ PCI Config Registers ...@@ -213,8 +213,12 @@ PCI Config Registers
-------------------- --------------------
Each service driver runs its PCI config operations on its own Each service driver runs its PCI config operations on its own
capability structure except the PCI Express capability structure, in capability structure except the PCI Express capability structure,
which Root Control register and Device Control register are shared that is shared between many drivers including the service drivers.
between PME and AER. This patch assumes that all service drivers RMW Capability accessors (pcie_capability_clear_and_set_word(),
will be well behaved and not overwrite other service driver's pcie_capability_set_word(), and pcie_capability_clear_word()) protect
configuration settings. a selected set of PCI Express Capability Registers (Link Control
Register and Root Control Register). Any change to those registers
should be performed using RMW accessors to avoid problems due to
concurrent updates. For the up-to-date list of protected registers,
see pcie_capability_clear_and_set_word().
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment