HomeFreeBSD

ipmi(4): Add more watchdog error checks.

Description

ipmi(4): Add more watchdog error checks.

Add request submission status checks before checking req->ir_compcode,
otherwise it may be zero just because of initialization.

Add checks for req->ir_compcode errors in ipmi_reset_watchdog() and
ipmi_set_watchdog(). In first case explicitly check for 0x80, which
means timer was not previously set, that I found happening after BMC
cold reset. This change makes watchdog timer to recover instead of
permanently ignoring reset errors after BMC reset or upgraded.

MFC after: 2 weeks
Sponsored by: iXsystems, Inc.

(cherry picked from commit 9d3b47abbba74830661e90206cc0f692b159c432)

Details

Provenance
mavAuthored on Jul 30 2021, 3:39 AM
Parents
rG86139cc75a55: bhyve vtblk: Inform guests of disk resize events.
Branches
Unknown
Tags
Unknown