All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/3 v2] PCI/ASPM: Remove struct aspm_latency
@ 2021-09-16  8:49 Saheed O. Bolarinwa
  2021-09-16  8:49 ` [RFC PATCH 1/3 v1] PCI/ASPM: Remove cached latencies in struct pcie_link_state Saheed O. Bolarinwa
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Saheed O. Bolarinwa @ 2021-09-16  8:49 UTC (permalink / raw)
  To: helgaas; +Cc: Bolarinwa O. Saheed, linux-pci, linux-kernel, kw

From: "Bolarinwa O. Saheed" <refactormyself@gmail.com>

To validate and set link latency capability, `struct aspm_latency` and
related members defined within `struct pcie_link_state` are used.
However, since there are not many access to theses values, it is possible
to directly access and compute these values.
Doing this will also reduce the dependency on `struct pcie_link_state`.

The series removes `struct aspm_latency` and related members within 
`struct pcie_link_state`. All latencies are now calculated when needed.

Changes in this version:
 - directly access downstream by calling `pci_function_0()` instead of
   used the `struct pcie_link_state`

Saheed O. Bolarinwa (3):
  PCI/ASPM: Remove link latencies cached within struct pcie_link_state
  PCI/ASPM: Remove struct pcie_link_state.acceptable
  PCI/ASPM: Remove struct aspm_latency

 drivers/pci/pcie/aspm.c | 89 ++++++++++++++++++-----------------------
 1 file changed, 38 insertions(+), 51 deletions(-)

-- 
2.20.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2021-09-30 23:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-16  8:49 [RFC PATCH 0/3 v2] PCI/ASPM: Remove struct aspm_latency Saheed O. Bolarinwa
2021-09-16  8:49 ` [RFC PATCH 1/3 v1] PCI/ASPM: Remove cached latencies in struct pcie_link_state Saheed O. Bolarinwa
2021-09-16  8:49 ` [RFC PATCH 2/3 v2] PCI/ASPM: Remove struct pcie_link_state.acceptable Saheed O. Bolarinwa
2021-09-30 23:52   ` Bjorn Helgaas
2021-09-16  8:49 ` [RFC PATCH 3/3 v1] PCI/ASPM: Remove struct aspm_latency Saheed O. Bolarinwa
2021-09-26 20:31 ` [RFC PATCH 0/3 v2] " Bjorn Helgaas

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.