Commit 5f911864 authored by Jianjun Wang's avatar Jianjun Wang Committed by Hubert Mazur
Browse files

FROMLIST: PCI: mediatek-gen3: Don't reply AXI slave error



There are some circumstances where the EP device will not respond to
non-posted access from the root port (e.g., MMIO read). In such cases,
the root port will reply with an AXI slave error, which will be treated
as a System Error (SError), causing a kernel panic and preventing us
from obtaining any useful information for further debugging.

We have added a new bit in the PCIE_AXI_IF_CTRL_REG register to prevent
PCIe AXI0 from replying with a slave error. Setting this bit on an older
platform that does not support this feature will have no effect.

By preventing AXI0 from replying with a slave error, we can keep the
kernel alive and debug using the information from AER.

Signed-off-by: default avatarJianjun Wang <jianjun.wang@mediatek.com>
(am from https://patchwork.kernel.org/patch/13925176/)
(also found at https://lore.kernel.org/r/20250103060035.30688-5-jianjun.wang@mediatek.com

)

BUG=b:383258443
TEST=build pass and boot to shell
UPSTREAM-TASK=b:379039276

Change-Id: Ibb18a9d780d3b009511632caeb9e7c4eb6b0173c
Signed-off-by: default avatarHsin-Te Yuan <yuanhsinte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/6174700


Commit-Queue: Fei Shao <fshao@chromium.org>
Reviewed-by: default avatarFei Shao <fshao@chromium.org>
Tested-by: default avatarFei Shao <fshao@chromium.org>
Reviewed-by: default avatarSean Paul <sean@poorly.run>
Signed-off-by: default avatarHubert Mazur <hmazur@google.com>
parent eac43b07
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment