]> Gentwo Git Trees - linux/.git/commit
PCI: brcmstb: Add panic/die handler to driver
authorJim Quinlan <james.quinlan@broadcom.com>
Wed, 29 Oct 2025 19:36:15 +0000 (15:36 -0400)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 13 Nov 2025 16:47:16 +0000 (10:47 -0600)
commit8d4ec3fbb15e97b58c395398c743453012bbb93f
tree1d10e256da385730802db7b524eb1af6b90d0d6e
parenta3f00f24d67014721e4efed9238be77b5b67f6fe
PCI: brcmstb: Add panic/die handler to driver

Most PCIe HW returns 0xffffffff for failed reads on PCIe, but by default
Broadcom's STB PCIe controller effects an abort.  Some SoCs -- 7216 and its
descendants -- have new HW that identifies error details.

Add a simple handler to print diagnostic info in case the PCIe controller
was the cause of the abort.  Unfortunately, an abort still occurs.

Read the error registers only when the PCIe bridge is active and the PCIe
registers are accessible.  Otherwise, a "die" event caused by something
other than PCIe could cause an abort if the PCIe "die" handler tried to
access registers when the bridge is off.

Example error output:
  brcm-pcie 8b20000.pcie: Error: Mem Acc: 32bit, read, @0x38000000
  brcm-pcie 8b20000.pcie:  Type: TO=0 Abt=0 UnspReq=1 AccDsble=0 BadAddr=0

Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20251029193616.3670003-3-james.quinlan@broadcom.com
drivers/pci/controller/pcie-brcmstb.c