public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] PCI: dwc: Add support for configuring lane equalization presets
@ 2024-11-16  1:37 Krishna chaitanya chundru
  2024-11-16  1:37 ` [PATCH 1/4] arm64: dts: qcom: x1e80100: Add PCIe lane equalization preset properties Krishna chaitanya chundru
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Krishna chaitanya chundru @ 2024-11-16  1:37 UTC (permalink / raw)
  To: quic_mrana, quic_vbadigan, kernel, Bjorn Andersson, Konrad Dybcio,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley, Bjorn Helgaas,
	Jingoo Han, Manivannan Sadhasivam, Lorenzo Pieralisi,
	Krzysztof Wilczyński
  Cc: linux-arm-msm, devicetree, linux-kernel, linux-pci,
	Krishna chaitanya chundru

PCIe equalization presets are predefined settings used to optimize
signal integrity by compensating for signal loss and distortion in
high-speed data transmission.

As per PCIe spec 6.0.1 revision section 8.3.3.3 & 4.2.4 for data rates
of 8.0 GT/s, 16.0 GT/s, 32.0 GT/s, and 64.0 GT/s, there is a way to
configure lane equalization presets for each lane to enhance the PCIe
link reliability. Each preset value represents a different combination
of pre-shoot and de-emphasis values. For each data rate, different
registers are defined: for 8.0 GT/s, registers are defined in section
7.7.3.4; for 16.0 GT/s, in section 7.7.5.9, etc. The 8.0 GT/s rate has
an extra receiver preset hint, requiring 16 bits per lane, while the
remaining data rates use 8 bits per lane.

Based on the number of lanes and the supported data rate, read the
device tree property and stores in the presets structure.

Based upon the lane width and supported data rate update lane
equalization registers.

This patch depends on the this dt binding pull request: https://github.com/devicetree-org/dt-schema/pull/146

Signed-off-by: Krishna chaitanya chundru <quic_krichai@quicinc.com>
---
Krishna chaitanya chundru (4):
      arm64: dts: qcom: x1e80100: Add PCIe lane equalization preset properties
      PCI: of: Add API to retrieve equalization presets from device tree
      PCI: dwc: Improve handling of PCIe lane configuration
      PCI: dwc: Add support for configuring lane equalization presets

 arch/arm64/boot/dts/qcom/x1e80100.dtsi            |  8 +++
 drivers/pci/controller/dwc/pcie-designware-host.c | 42 +++++++++++++++
 drivers/pci/controller/dwc/pcie-designware.c      | 14 ++++-
 drivers/pci/controller/dwc/pcie-designware.h      |  4 ++
 drivers/pci/of.c                                  | 62 +++++++++++++++++++++++
 drivers/pci/pci.h                                 | 17 ++++++-
 include/uapi/linux/pci_regs.h                     |  3 ++
 7 files changed, 147 insertions(+), 3 deletions(-)
---
base-commit: 81983758430957d9a5cb3333fe324fd70cf63e7e
change-id: 20241030-presets-ec11a3e44ab3

Best regards,
-- 
Krishna chaitanya chundru <quic_krichai@quicinc.com>


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

end of thread, other threads:[~2024-11-30 13:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-16  1:37 [PATCH 0/4] PCI: dwc: Add support for configuring lane equalization presets Krishna chaitanya chundru
2024-11-16  1:37 ` [PATCH 1/4] arm64: dts: qcom: x1e80100: Add PCIe lane equalization preset properties Krishna chaitanya chundru
2024-11-16 11:19   ` Konrad Dybcio
2024-11-27  1:42     ` Krishna Chaitanya Chundru
2024-11-30 13:00       ` Konrad Dybcio
2024-11-16  1:37 ` [PATCH 2/4] PCI: of: Add API to retrieve equalization presets from device tree Krishna chaitanya chundru
2024-11-16 10:59   ` Konrad Dybcio
2024-11-27  1:58     ` Krishna Chaitanya Chundru
2024-11-17  5:48   ` kernel test robot
2024-11-17  5:58   ` kernel test robot
2024-11-16  1:37 ` [PATCH 3/4] PCI: dwc: Improve handling of PCIe lane configuration Krishna chaitanya chundru
2024-11-16  1:37 ` [PATCH 4/4] PCI: dwc: Add support for configuring lane equalization presets Krishna chaitanya chundru

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox