Message ID | 20200805103433.123207-1-chee.hong.ang@intel.com |
---|---|
State | Accepted |
Commit | f833d6a4ce5ba890eadcae1846c59812478e909c |
Delegated to: | Simon Goldschmidt |
Headers | show |
Series | [v1] configs: socfpga: soc64: Avoid SPL enter infinite loop during exception | expand |
> -----Original Message----- > From: Ang, Chee Hong <chee.hong.ang@intel.com> > Sent: Wednesday, August 5, 2020 6:35 PM > To: u-boot@lists.denx.de > Cc: Marek Vasut <marex@denx.de>; Simon Goldschmidt > <simon.k.r.goldschmidt@gmail.com>; Tom Rini <trini@konsulko.com>; See, > Chin Liang <chin.liang.see@intel.com>; Tan, Ley Foon > <ley.foon.tan@intel.com>; Ang, Chee Hong <chee.hong.ang@intel.com>; > Chee, Tien Fong <tien.fong.chee@intel.com>; Lim, Elly Siew Chin > <elly.siew.chin.lim@intel.com> > Subject: [PATCH v1] configs: socfpga: soc64: Avoid SPL enter infinite loop > during exception > > From: Chin Liang See <chin.liang.see@intel.com> > > 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 <chin.liang.see@intel.com> > Signed-off-by: Chee Hong Ang <chee.hong.ang@intel.com> > --- > configs/socfpga_agilex_defconfig | 1 + > configs/socfpga_stratix10_defconfig | 1 + > 2 files changed, 2 insertions(+) > Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com> Regards Ley Foon
diff --git a/configs/socfpga_agilex_defconfig b/configs/socfpga_agilex_defconfig index 2885c60..acf0316 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 9ae6ef6..8b4d1fb 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