From: Tim Deegan Subject: Re: [PATCH RFC] x86/ACPI: allow CMOS RTC use even when ACPI says there is none Date: Thu, 26 Jun 2014 13:50:15 +0200 Message-ID: <20140626115015.GC2423@deinos.phlegethon.org> References: <53AC11E0020000780001D8ED@mail.emea.novell.com> <20140626111209.GA2433@deinos.phlegethon.org> <53AC2311020000780001DA1A@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1X08C2-00014F-Kg for xen-devel@lists.xenproject.org; Thu, 26 Jun 2014 11:50:18 +0000 Content-Disposition: inline In-Reply-To: <53AC2311020000780001DA1A@mail.emea.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: xen-devel List-Id: xen-devel@lists.xenproject.org At 12:41 +0100 on 26 Jun (1403782897), Jan Beulich wrote: > >>> On 26.06.14 at 13:12, wrote: > > At 11:28 +0100 on 26 Jun (1403778496), Jan Beulich wrote: > >> HP is setting the ACPI_FADT_NO_CMOS_RTC flag on newer systems, > >> regardless of whether they're being booted from UEFI. Add a command > >> line option to allow probing for a working RTC in that case. > > > > I like this general direction. I would add a printk in the case where > > we are probing, since the probe will stall boot for >= 1 sec. > > Right now we stall for up to 1 sec already; since the probing > doesn't happen without being asked for, I don't view it as a > problem that now we stall for up to 2 sec. Ack. > > Maybe also worth checking that the times returned on the two passes > > actually make sense (i.e. that the difference in RTC times matches the > > difference in NOW() to within +/- 10ms). > > I had considered this too, but intentionally dropped the idea, so that > odd behavior when running in nested virtualization scenarios can be > avoided. I guess so. We'd have to be running inside a hypervisor that has the same buggy tables as these HP machines, but OTOH anything that passes the tests you already have looks quite a lot like an RTC. :) Tim.