Re: [PATCH v2] iTCO_wdt: mask NMI_NOW bit for update_no_reboot_bit() call

From: Guenter Roeck
Date: Thu Sep 12 2024 - 17:16:03 EST


On 9/12/24 07:19, Oleksandr Ocheretnyi wrote:
Commit da23b6faa8bf ("watchdog: iTCO: Add support for Cannon Lake
PCH iTCO") does not mask NMI_NOW bit during TCO1_CNT register's
value comparison for update_no_reboot_bit() call causing following
failure:

...
iTCO_vendor_support: vendor-support=0
iTCO_wdt iTCO_wdt: unable to reset NO_REBOOT flag, device
disabled by hardware/BIOS
...

and this can lead to unexpected NMIs later during regular
crashkernel's workflow because of watchdog probe call failures.

This change masks NMI_NOW bit for TCO1_CNT register values to
avoid unexpected NMI_NOW bit inversions.

Fixes: da23b6faa8bf ("watchdog: iTCO: Add support for Cannon Lake PCH iTCO")
Signed-off-by: Oleksandr Ocheretnyi <oocheret@xxxxxxxxx>
---

Oh, and change log goes here.

Guenter