PCI: qcom: Add register dump support for PCIe Link Down events - #1677
Conversation
🔨 Build Failure Analysis — PR #1677PR: #1677
VerdictBoth compilation errors are introduced by this PR due to missing macro definitions for registers referenced in newly added register dump arrays. 📎 Detailed analysis: Full report |
2ab8551 to
fc124b4
Compare
🔨 Build Failure Analysis — PR #1677PR: #1677
VerdictAll 4 errors are introduced by this PR. The patch adds register dump functionality but references undefined register macros and defines an unused function. 📎 Detailed analysis: Full report |
When the PCIe link goes down unexpectedly, being able to inspect the
state of key controller registers at the time of failure is valuable
for root-causing the issue.
If a storage endpoint is present downstream, the dump is printed
directly via dev_err() so it is visible in dmesg immediately, since a
devcoredump read from userspace could otherwise race with a storage
failure. Otherwise, the buffer is handed to the devcoredump framework
so it can be collected from /sys/class/devcoredump/ for offline
analysis.
To keep the dump readable given the number of registers involved,
entries are packed as "offset: value" pairs, QCOM_PCIE_DUMP_REGS_PER_LINE
(4) per dmesg line, with a section header ("DBI registers:", "PARF
registers:", "MHI registers:") identifying each register group.
Also expose the same dump on demand via a new "regdump" debugfs file
under the existing per-controller debugfs directory, so the register
state can be inspected without needing an actual Link Down event.
Link: https://lore.kernel.org/r/20260811-regdump-v1-1-f22db3fb37c2@oss.qualcomm.com
Signed-off-by: Krishna Chaitanya Chundru <krishna.chundru@oss.qualcomm.com>
Signed-off-by: Ziyue Zhang <ziyue.zhang@oss.qualcomm.com>
fc124b4 to
935b283
Compare
PR #1677 — validate-patchPR: #1677
Final Summary
|
PR #1677 — checker-log-analyzerPR: #1677
Detailed report: Full report
|
PR #1677 — validate-patchPR: #1677
Final Summary
|
PR #1677 — checker-log-analyzerPR: #1677
Detailed report: Full report
|
When the PCIe link goes down unexpectedly, being able to inspect the
state of key controller registers at the time of failure is valuable
for root-causing the issue.
If a storage endpoint is present downstream, the dump is printed
directly via dev_err() so it is visible in dmesg immediately, since a
devcoredump read from userspace could otherwise race with a storage
failure. Otherwise, the buffer is handed to the devcoredump framework
so it can be collected from /sys/class/devcoredump/ for offline
analysis.
To keep the dump readable given the number of registers involved,
entries are packed as "offset: value" pairs, QCOM_PCIE_DUMP_REGS_PER_LINE
(4) per dmesg line, with a section header ("DBI registers:", "PARF
registers:", "MHI registers:") identifying each register group.
Also expose the same dump on demand via a new "regdump" debugfs file
under the existing per-controller debugfs directory, so the register
state can be inspected without needing an actual Link Down event.
Link: https://lore.kernel.org/r/20260811-regdump-v1-1-f22db3fb37c2@oss.qualcomm.com