From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from blaine.gmane.org ([195.159.176.226]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iomxI-0002bX-Ms for barebox@lists.infradead.org; Tue, 07 Jan 2020 11:23:26 +0000 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1iomxG-000DC6-Lx for barebox@lists.infradead.org; Tue, 07 Jan 2020 12:23:22 +0100 From: Frederick Gotham Date: Tue, 7 Jan 2020 11:23:16 -0000 (UTC) Message-ID: References: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Watchdog Timer with x86 processor To: barebox@lists.infradead.org Ahmad Fatoum wrote in news:ee89e9f9-7ddf-ef42-0ad6-5881c74ebb48@pengutronix.de: > As described in the linked documentation, it's useless for monitoring > Linux boot, because it's a boot service and these are terminated very > early in the Linux boot process. > > Only usable x86 watchdog we have at the moment is the Fintek Super I/O > watchdog. If you have another Super I/O, but your BIOS exports a WDAT > ACPI table, barebox v2019.01.0 will come with ACPI driver support, so > you could write an ACPI driver on top. Alternatively, you could turn on > the watchdog in the BIOS and leave barebox out of it altogether. Just to be clear about what I'm doing. I have an embedded Linux device whose CPU is 64-Bit quad-core. Once the device has successfully booted up, there is a watchdog timer that makes sure everything keeps running smoothly. So if my device freezes AFTER it boots up successfully, then this eventuality is dealt with. 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? _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox