PCI/DPC: Print all TLP Prefixes, not just the first
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Thu, 18 Jan 2024 11:08:15 +0000 (13:08 +0200)
committerBjorn Helgaas <bhelgaas@google.com>
Mon, 22 Jan 2024 18:13:21 +0000 (12:13 -0600)
commit6568d82512b0a64809acff3d7a747362fa4288c8
treeb1947e7698dcb8378de727c0e4d4ab076e0fface
parent6613476e225e090cc9aad49be7fa504e290dd33d
PCI/DPC: Print all TLP Prefixes, not just the first

The TLP Prefix Log Register consists of multiple DWORDs (PCIe r6.1 sec
7.9.14.13) but the loop in dpc_process_rp_pio_error() keeps reading from
the first DWORD, so we print only the first PIO TLP Prefix (duplicated
several times), and we never print the second, third, etc., Prefixes.

Add the iteration count based offset calculation into the config read.

Fixes: f20c4ea49ec4 ("PCI/DPC: Add eDPC support")
Link: https://lore.kernel.org/r/20240118110815.3867-1-ilpo.jarvinen@linux.intel.com
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
[bhelgaas: add user-visible details to commit log]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/dpc.c