Re: Watchdog Timer with x86 processor

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On 1/7/20 12:23 PM, Frederick Gotham wrote:
> What I have NOT dealt with though, is the case of the device freezing mid-
> boot. So let's say that Barebox tries to load the Linux kernel, and let's say 
> the kernel get 15% loaded and then it freezes. If this happens, I need the 
> device to reboot.
> 
> How would you go about this? Would you use the watchdog timer in the BIOS, or 
> would you use the one in Barebox?

First you need to determine what watchdogs you have and determine which to choose
- Do you have a Super I/O chip? Does it have a watchdog?
- You have an iTCO watchdog. Are e.g. smbus devices correctly reset with an iTCO
  reset? A Super I/O reset might be more 'global'

Then you need to check what interfaces you have:
- Can the BIOS enable the watchdog?
- Can the BIOS provide a WDAT ACPI table for your watchdog?

Having the BIOS enable the watchdog is preferable, because then you can monitor
barebox execution reliably as well. If your BIOS can't do that, it exports
the wrong watchdog or you would like easy access to the barebox shell without
being reset all the time, you can then evaluate which driver would work
best for you:

- implement iTCO watchdog driver in barebox
- implement Super I/O watchdog in barebox (Porting over the Fintek Watchdog
  from Linux was quite straight-forward)
- implement WDAT watchdog in barebox

I've taken a look at my iTCO driver and it works mostly fine for iTCO version 3
(QEMU), but you'll probably need to port the missing parts for your particular
version from the kernel. I'll clean it up and send it to the list later this week. 

Cheers
Ahmad

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux