Skip to content

PCI: dwc: Clean up RAS-DES and register field handling

Manikanta Maddireddy linux-pci linux-tegra lkml 3 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 5 repliesApplied
  2. v25 patches 3 repliesSuperseded
  3. v15 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Rebase onto PCI main at 17bb0e2f6c80.
- Reduce the series from five patches to two. Commit fd3186c0bbb1 ("PCI: dwc: Describe DWC PCIe fields with full masks and FIELD_PREP()") already supplies the full RAS-DES masks and removes the unused shift macros. Drop the separate mask-addition, shift-removal and selector-mask conversion patches, and use the standard selector mask directly in the retained Tegra194 conversion patch.
- Update the common debugfs consolidation to use the upstream masks without the temporary selector-mask alias.
- Move EVENT_COUNTER_LANE_SELECT and EVENT_COUNTER_STATUS to the shared header as well. Move PER_EVENT_ON and PER_EVENT_OFF there and rename them to EVENT_COUNTER_ENABLE_PER_EVENT and EVENT_COUNTER_DISABLE_PER_EVENT.
- Preserve the original debugfs line wrapping and alignment to avoid unrelated formatting changes.

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2PCI: tegra194: Use FIELD_*() for register fieldsdrivers/pci/controller/dwc/pcie-tegra194.c+67 -704 replies
2/2PCI: dwc: Consolidate RAS-DES event counter fieldsdrivers/pci/controller/dwc/pcie-designware-debugfs.c drivers/pci/controller/dwc/pcie-designware.h+19 -250 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/2] PCI: dwc: Clean up RAS-DES and register field handling

This series addresses review feedback around register field handling in the DWC PCIe code and the Tegra194 PCIe driver.

The first patch converts Tegra194 register programming to FIELD_PREP(), FIELD_MODIFY() and FIELD_GET(). The second patch consolidates the RAS-DES event counter register offsets, field masks and per-event enable values in the DWC header and makes the common debugfs code use those definitions.

There should be no functional change intended beyond making the bitfield programming explicit and keeping the shared RAS-DES definitions in one place.

Changes in v3:
- Rebase onto PCI main at 17bb0e2f6c80.
- Reduce the series from five patches to two. Commit fd3186c0bbb1 ("PCI: dwc: Describe DWC PCIe fields with full masks and FIELD_PREP()") already supplies the full RAS-DES masks and removes the unused shift macros. Drop the separate mask-addition, shift-removal and selector-mask conversion patches, and use the standard selector mask directly in the retained Tegra194 conversion patch.
- Update the common debugfs consolidation to use the upstream masks without the temporary selector-mask alias.
- Move EVENT_COUNTER_LANE_SELECT and EVENT_COUNTER_STATUS to the shared header as well. Move PER_EVENT_ON and PER_EVENT_OFF there and rename them to EVENT_COUNTER_ENABLE_PER_EVENT and EVENT_COUNTER_DISABLE_PER_EVENT.
- Preserve the original debugfs line wrapping and alignment to avoid unrelated formatting changes.

Manikanta Maddireddy (2):
PCI: tegra194: Use FIELD_*() for register fields
PCI: dwc: Consolidate RAS-DES event counter fields

 .../controller/dwc/pcie-designware-debugfs.c  |  40 ++---
 drivers/pci/controller/dwc/pcie-designware.h  |   4 +
 drivers/pci/controller/dwc/pcie-tegra194.c    | 137 +++++++++---------
 3 files changed, 86 insertions(+), 95 deletions(-)

base-commit: 17bb0e2f6c8043f70a693a5f3797471cbed354c8

Signature · 1 line
2.34.1