Re:Embassy: Modern embedded framework, using Rust and async
by VorpalWay on Friday January 09, 2026 @03:02AM
(#46551192)
A watchdog is a piece of hardware that will automatically restart the chip if it detects the code as being stuck. The way it detects this is that you have to poke a register of the watchdog every so often, and if the register hasn't been poked for a certain timeout (usually configurable), the chip is restarted.
Watchdogs exist on MCUs but also on some "proper" computers. The Raspberry Pi has one for example.
Re:Embassy: Modern embedded framework, using Rust and async
by 5d41402abc4b on Friday January 09, 2026 @03:15AM
(#46551263)
>Watchdogs exist on MCUs but also on some "proper" computers
All modern computers have watchdog. You can check your logs
`journalctl -b | grep watchdog`
Re:Embassy: Modern embedded framework, using Rust and async
by LtdJorge on Friday January 09, 2026 @07:04AM
(#46553009)
Yes, but those are done in software
Re:Embassy: Modern embedded framework, using Rust and async
by p_l on Friday January 09, 2026 @08:19AM
(#46553528)
There's generally at least one watchdog device available in most PCs delivered in last decade, but it's not always utilized. Essentially at one point an intel southbridge integrated a basic watchdog on all models, and it started to just... be included.
So these days you can find a variation on the TCO timer watchdog in most PCs, even if the exact implementation varies so we now have a bunch of drivers for the different variants.
Re:Embassy: Modern embedded framework, using Rust and async
by VorpalWay on Tuesday January 13, 2026 @07:13AM
(#46599989)
Linux doesn't see one on my Ryzen 5600X desktop at least. My Intel Skylake Thinkpad does seem to have two though (iTCO as well as INT3F0D, not sure what that is, but if I interpret the files under /sys correctly it belongs to the LPC/eSPI controller PCIe device, while the TCO watchdog is found under the SMBus PCIe device).
In both cases they do have software watchdogs (NMI based) which relies on a hardware timer triggering an NMI in the kernel. But that relies on the NMI handler still working, which is not as good as a real HW watchdog.
Re:Embassy: Modern embedded framework, using Rust and async
by p_l on Tuesday January 13, 2026 @10:03AM
(#46601894)
Apparently it depends to a little bit on how the motherboard is designed, theoretically SP5100 watchdog which is part of the CPU logic in recent ryzens, apparently, is supposed to be enabled if the motherboard is designed with IPMI in mind.
For whatever reason, it's enabled on my laptop despite it obviously not having IPMI support :)
Re:Embassy: Modern embedded framework, using Rust and async
by cat-whisperer on Friday January 09, 2026 @09:57AM
(#46554546)
mac’s too?
Re:Embassy: Modern embedded framework, using Rust and async
by throwup238 on Friday January 09, 2026 @10:59AM
(#46555218)
“All CPUs” would probably be 99.9999% accurate. It’s just one of those fundamental functions you want in a processor. Whether it’s exposed in the OS is a different matter.
Re:Embassy: Modern embedded framework, using Rust and async
by LtdJorge on Tuesday January 13, 2026 @06:25AM
(#46599624)
AMD doesn't have it. I just confirmed by grepping through dmesg and journalctl -b, the only time it appears is due to UPS driver notifications (unrelated).
Re:Embassy: Modern embedded framework, using Rust and async
by inferiorhuman on Friday January 09, 2026 @09:35PM
(#46562196)
Cortex-A includes a watchdog so yeah.
Re:Embassy: Modern embedded framework, using Rust and async
by lgas on Friday January 09, 2026 @05:24PM
(#46560279)
That's a software watchdog. The comment you're replying to is talking about hardware watchdogs.
Re:Embassy: Modern embedded framework, using Rust and async
by the__alchemist on Friday January 09, 2026 @08:36AM
(#46553670)
You don't need to poke the watchdog! Petting or feeding is fine too.
Re:Embassy: Modern embedded framework, using Rust and async
by cat-whisperer on Friday January 09, 2026 @09:57AM
(#46554540)
lol
never understood what a watchdog is tho...