imx8mm: imx2_wdt boot status never indicates watchdog reboot

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx8mm: imx2_wdt boot status never indicates watchdog reboot

325 次查看
DonaldC
Contributor I

Top of the morning,

I have found that triggering a watchdog based reset (by starting it and failing to pet it, for example by enabling the watchdog in systemd and then closing the file handle to the watchdog) is not reported on the following boot in boot_status.

I adjusted the imx2_wdt.c driver in the kernel to remove userspace from consideration, and even then never see CARDRESET being reported:

+++ b/drivers/watchdog/imx2_wdt.c
@@ -304,6 +304,11 @@ static int __init imx2_wdt_probe(struct platform_device *pdev)
regmap_read(wdev->regmap, IMX2_WDT_WRSR, &val);
wdog->bootstatus = val & IMX2_WDT_WRSR_TOUT ? WDIOF_CARDRESET : 0;

+ if (val & IMX2_WDT_WRSR_TOUT)
+ dev_info(dev, "watchdog forced system reboot\n");
+ else
+ dev_info(dev, "watchdog did not force system reboot\n");
+
wdev->ext_reset = of_property_read_bool(dev->of_node,
"fsl,ext-reset-output");
platform_set_drvdata(pdev, wdog);

Our kernel is currently based on 5.10.35-2.0.0

标签 (1)
0 项奖励
0 回复数