Article ID: 000098158 Content Type: Troubleshooting Last Reviewed: 03/04/2024

Why does the WATCHDOG_RESET function fail to reset HPS watchdog in U-Boot?

Environment

u-boot-socfpga

BUILT IN - ARTICLE INTRO SECOND COMPONENT
Description

Due to a bug in U-Boot 2022.10 and earlier versions, the WATCHDOG_RESET function will fail to reset the watchdog once U-Boot runs for more than 533days 18h 14m, because WATCHDOG_RESET gets the value from a 64bits system counter register as the timestamp to calculate the interval time period, but it doesn't check if the register overflows. 
 

 

Resolution

There are two ways to avoid such failure:

  1. Don't use the WATCHDOG_RESET function of the watchdog Driver Model(DM) in U-Boot 2022.10 and earlier versions; use the watchdog device driver interface instead.
  2. Upgrade to U-Boot 2023.01 or a later version.
     
Additional information

It's U-Boot bug and from U-Boot 2023.01 it has been fixed, please refer to below link:

https://source.denx.de/u-boot/u-boot/-/commit/c2fd0ca1a8226903e6e00f970c58f23742d6a418#8ac293b34eaa88bdaabfec556270e7e4a5a6cbab

Related Products

This article applies to 1 products

Intel Agilex® 7 FPGAs and SoC FPGAs