Re: panic: invalid bcd xxx

From: Eric van Gyzen <vangyzen_at_FreeBSD.org>
Date: Tue, 7 Mar 2017 11:26:32 -0600
On 03/04/2017 11:44, Oleksandr Tymoshenko wrote:
> Adrian Chadd (adrian.chadd_at_gmail.com) wrote:
>> We're not; we need to cope with crappy BIOS emulations and not crash :)
>>
>> What's Linux doing instead? Ignoring the RTC?
>
> I believe I saw the same problem on either my NUC or Minnowboard.
> I just hacked around it to work on something else and didn't
> have time to get back to the device since then. But it's not
> just emulation BIOS. I think the right way to go is to perform sanity
> check on RTC data and refuse to use it if it's not valid.

cem_at_ posted this patch:

	http://dpaste.com/1K2W05E

If someone can test it, I'll gladly commit it.  The real-time clock will 
likely be wrong, but it won't panic with INVARIANTS.

Eric
Received on Tue Mar 07 2017 - 16:26:41 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:10 UTC