[PATCH v4 1/3] watchdog: aspeed: Update bootstatus handling
Patrick Williams
patrick at stwcx.xyz
Sat Nov 2 05:21:20 AEDT 2024
On Fri, Nov 01, 2024 at 08:11:59PM +0800, Chin-Ting Kuo wrote:
> The boot status mapping rule follows the latest design guide from
> the OpenBMC shown as below.
> https://github.com/openbmc/docs/blob/master/designs/bmc-reboot-cause-update.md#proposed-design
> - WDIOF_EXTERN1 => system is reset by Software
> - WDIOF_CARDRESET => system is reset by WDT SoC reset
> - Others => other reset events, e.g., power on reset.
I'm quite surprised that the above is relevant for a kernel driver at
all. Isn't "EXTERN1" a name of a real watchdog signal from your
hardware (my recollection is that there are 2 external watchdogs). I
think the point of this referenced design document was that most users
of BMCs have "EXTERN1" used a for software reset conditions.
`CARDRESET` should be representing resets by the watchdog itself.
The purpose of this design proposal was not to require very specific
changes to individual watchdog drivers, but to align the userspace use
with the best practices already from other watchdog drivers. I don't
think the kernel driver should be bending to match a particular
userspace implementation; you should be exposing the information
available to your hardware.
Having said that, it was known that there would need to be changes to
the driver because some of these conditions were not adequately exposed
at all. I'm just still surprised that we're needing to reference that
document as part of these changes.
>
> On ASPEED platform, the boot status is recorded in the SCU registers.
> - AST2400: Only a bit represents for any WDT reset.
> - AST2500: The reset triggered by different WDT controllers can be
> distinguished by different SCU bits. But, WDIOF_EXTERN1 or
> WDIOF_CARDRESET still cannot be identified due to
> HW limitation.
> - AST2600: Different from AST2500, additional HW bits are added for
> distinguishing WDIOF_EXTERN1 and WDIOF_CARDRESET.
--
Patrick Williams
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20241101/e8348e04/attachment.sig>
More information about the Linux-aspeed
mailing list