mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/2] PCI: dwc: Clean up RAS-DES and register field handling
@ 2026-11-02  9:22 Manikanta Maddireddy
  2026-11-02  9:22 ` [PATCH v3 1/2] PCI: tegra194: Use FIELD_*() for register fields Manikanta Maddireddy
  2026-11-02  9:22 ` [PATCH v3 2/2] PCI: dwc: Consolidate RAS-DES event counter fields Manikanta Maddireddy
  0 siblings, 2 replies; 3+ messages in thread
From: Manikanta Maddireddy @ 2026-11-02  9:22 UTC (permalink / raw)
  To: jingoohan1, mani, lpieralisi, kwilczynski, bhelgaas, linux-pci
  Cc: robh, thierry.reding, jonathanh, vidyas, cassel, linux-kernel,
	linux-tegra, mmaddireddy

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
-- 
2.34.1


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

end of thread, other threads:[~2026-11-02  9:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02  9:22 [PATCH v3 0/2] PCI: dwc: Clean up RAS-DES and register field handling Manikanta Maddireddy
2026-11-02  9:22 ` [PATCH v3 1/2] PCI: tegra194: Use FIELD_*() for register fields Manikanta Maddireddy
2026-11-02  9:22 ` [PATCH v3 2/2] PCI: dwc: Consolidate RAS-DES event counter fields Manikanta Maddireddy

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

all inboxes | Powered by JetHome®