]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
MIPS: Octeon: Add PCIe link status check
authorSongyang Li <leesongyang@outlook.com>
Wed, 20 Mar 2024 15:22:00 +0000 (23:22 +0800)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Fri, 2 Aug 2024 14:27:13 +0000 (16:27 +0200)
commitb19d7d0ba8b2cb5368ddcd19c6d645887436a55f
treefe55d6e96a8ce2f2636228a7ee75caa723b7bfe0
parentd95ff7f2fb0d0613a06984092fd63566559029e0
MIPS: Octeon: Add PCIe link status check

BugLink: https://bugs.launchpad.net/bugs/2075154
[ Upstream commit 29b83a64df3b42c88c0338696feb6fdcd7f1f3b7 ]

The standard PCIe configuration read-write interface is used to
access the configuration space of the peripheral PCIe devices
of the mips processor after the PCIe link surprise down, it can
generate kernel panic caused by "Data bus error". So it is
necessary to add PCIe link status check for system protection.
When the PCIe link is down or in training, assigning a value
of 0 to the configuration address can prevent read-write behavior
to the configuration space of peripheral PCIe devices, thereby
preventing kernel panic.

Signed-off-by: Songyang Li <leesongyang@outlook.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
arch/mips/pci/pcie-octeon.c [changed mode: 0644->0755]