From: Chin Liang See Date: Wed, 5 Aug 2020 10:34:33 +0000 (+0800) Subject: configs: socfpga: soc64: Avoid SPL enter infinite loop during exception X-Git-Tag: v2021.10~486^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f833d6a4ce5ba890eadcae1846c59812478e909c;p=platform%2Fkernel%2Fu-boot.git configs: socfpga: soc64: Avoid SPL enter infinite loop during exception In current implementation, any exception would trigger a CPU reset. But a bad written SPL would cause infinite loop where the system will reload the same SPL instead of loading factory safe image. Hence this patch is to ensure any exception will cause a hang. At this moment, watchdog shall be triggered and Remote System Update mechanism shall load the next production image or factory safe image. Signed-off-by: Chin Liang See Signed-off-by: Chee Hong Ang Reviewed-by: Ley Foon Tan --- diff --git a/configs/socfpga_agilex_defconfig b/configs/socfpga_agilex_defconfig index 6684af7..ee1a665 100644 --- a/configs/socfpga_agilex_defconfig +++ b/configs/socfpga_agilex_defconfig @@ -61,3 +61,4 @@ CONFIG_DM_USB=y CONFIG_USB_DWC2=y CONFIG_USB_STORAGE=y # CONFIG_SPL_USE_TINY_PRINTF is not set +CONFIG_PANIC_HANG=y diff --git a/configs/socfpga_stratix10_defconfig b/configs/socfpga_stratix10_defconfig index 2d00eb8..2b300e0 100644 --- a/configs/socfpga_stratix10_defconfig +++ b/configs/socfpga_stratix10_defconfig @@ -67,3 +67,4 @@ CONFIG_USB_STORAGE=y CONFIG_DESIGNWARE_WATCHDOG=y CONFIG_WDT=y # CONFIG_SPL_USE_TINY_PRINTF is not set +CONFIG_PANIC_HANG=y