rcar_gen3: plat: Prevent PCIe hang during L1X config access
In case the PCIe controller receives a L1_Enter_PM DLLP, it will
disable the internal PLLs. The system software cannot predict it
and can attempt to perform device config space access across the
PCIe link while the controller is in this transitional state. If
such condition happens, the PCIe controller register access will
trigger ARM64 SError exception.

This patch adds checks for which PCIe controller is enabled,
checks whether the PCIe controller is in such a transitional
state and if so, first completes the transition and then restarts
the instruction which caused the SError.

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
1 parent 41bd188 commit 0969397f295621aa26b3d14b76dd397d22be58bf
@Marek Vasut Marek Vasut authored on 11 Feb 2019
Showing 2 changed files
View
plat/renesas/rcar/platform.mk
View
plat/renesas/rcar/rcar_common.c 0 → 100644