From owner-freebsd-current@freebsd.org Sun Dec 31 08:36:36 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6EBA7EAA89C for ; Sun, 31 Dec 2017 08:36:36 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2E9E96901F; Sun, 31 Dec 2017 08:36:35 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [88.217.108.64] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from ) id 1eVZ6d-0000qV-Fy; Sun, 31 Dec 2017 09:36:31 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.15.2/8.14.9) with ESMTPS id vBV8aP66002309 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Sun, 31 Dec 2017 09:36:25 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.15.2/8.14.9/Submit) id vBV8aOae002308; Sun, 31 Dec 2017 09:36:24 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Sun, 31 Dec 2017 09:36:24 +0100 From: Matthias Apitz To: freebsd-current@freebsd.org Cc: cem@freebsd.org Subject: Re: panic: invalid bcd 194 Message-ID: <20171231083624.GA2175@c720-r314251> Reply-To: Matthias Apitz Mail-Followup-To: Matthias Apitz , freebsd-current@freebsd.org, cem@freebsd.org References: <20171230210711.GA75976@c720-r314251> <20171230211154.GT1684@kib.kiev.ua> <20171230214819.GA2191@c720-r314251> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="HcAYCG3uE/tztfnV" Content-Disposition: inline In-Reply-To: <20171230214819.GA2191@c720-r314251> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.8.0 (2017-02-23) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 88.217.108.64 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Dec 2017 08:36:36 -0000 --HcAYCG3uE/tztfnV Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable El d=C3=ADa s=C3=A1bado, diciembre 30, 2017 a las 10:48:19p. m. +0100, Matt= hias Apitz escribi=C3=B3: > El d=C3=ADa s=C3=A1bado, diciembre 30, 2017 a las 11:11:54p. m. +0200, Ko= nstantin Belousov escribi=C3=B3: >=20 > > > > > static inline u_char > > > > > bcd2bin(int bcd) > > > > > { > > > > >=20 > > > > > KASSERT(bcd >=3D 0 && bcd < LIBKERN_LEN_BCD2BIN, > > > > > ("invalid bcd %d", bcd)); > > > > > return (bcd2bin_data[bcd]); > > > > > } > > > > >=20 > > For an immediate relief, enter the BIOS setup and set up the date. Try= to > > change it even if the BIOS date looks fine. > >=20 > > artc(4) should do more validation of the date read from CMOS, but this = is > > a known issue. >=20 > The problem with this hardware (Acer C720 Chromebook) is, there is no > BIOS setup, only somekind of SeaBIOS w/o any setup. Btw: An older > CURRENT from an USB key r285885 boots fine. I have got a hint about that the problem showed up already in March this year, even with some comment of mine in this thread: http://freebsd.1045724.x6.nabble.com/panic-invalid-bcd-xxx-td6170480.html In this tread is mentioned a patch as: > cem@ 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. but the link is expired. Has got someone this patch? I checked the SVN for the file sys/sys/libkern.h there is no relevant change since March 2017. (cc'ed cem@) I will let the C720 over night under power while sitting in the boot menu, maybe this will fix the RTC battery issue. Thanks matthias --=20 Matthias Apitz, =E2=9C=89 guru@unixarea.de, =E2=8C=82 http://www.unixarea.d= e/ =F0=9F=93=B1 +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub --HcAYCG3uE/tztfnV Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEXmn7rBYYViyzy/vBR8z35Hb+nREFAlpIoYIACgkQR8z35Hb+ nREclA/8Dmdz1l3xf9idYvmB/laFYWBu8C6Yv2aoVh5ibxnf0EM+jYLNsmVIrVTD JMK+vpBH43ood6bCXiYNW+Pkdi+uqPzqJI36+WjDDsggOd34bpat2mVIs6/TeS/u CY0J2myKJ/yRYLJv8tWiRtRVFucLnatEHvVZRlObYqtoGJvu76UGmoLzKD6JO+pV kaX1NBZJze8etRibLmk0lwdnYtYPcARTywdfdbeCzbtnXmtKFFcpIgVCKoixEAR6 bHte1klZTAiz3aJdgDYNOIZUoWXtS1PMYI64wZp/6X/Tkl5MrYZtMV8J3WVvIGrB sTZW2K4UK5K+nni/srHZ8id7titSbHXT6n8Ky7tblZm7va0l3r3WQrcquvhq3zRD P6A45R3MXlzCDiGDnyDNuJGAKk3KGYl2jFT3SHXaBsFVi5YXnZhzXAH22wPZWesr OY8fqd+H/7SXPrjUS3dlH9AgAtjRXlbScliSlvHIQ7Cj8IhksFZ8+sDMO5PnYyvn QphI1pYi/e+NnW3spkEeZLwSGxtmBMNvbWn5rXStpHofNHr/GXjeVjfY/4uciw9S D0VsNzlcqzPN0UpbIAVCrN7wp9F2Y3HB98bOgqUfKx76Lhr80wvssD/Hm++7PoXd OLIZ4u0Uwh81FbY+XHiYfy3MA1hf47MpnY6iDaQMVCqFmhqyo/o= =BOUA -----END PGP SIGNATURE----- --HcAYCG3uE/tztfnV--