Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZwoFw-0000It-0p for mharc-grub-devel@gnu.org; Thu, 12 Nov 2015 04:33:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwoFs-0000Hn-Sw for grub-devel@gnu.org; Thu, 12 Nov 2015 04:33:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZwoFp-0000Gj-J3 for grub-devel@gnu.org; Thu, 12 Nov 2015 04:33:20 -0500 Received: from victor.provo.novell.com ([137.65.250.26]:40751 helo=prv3-mh.provo.novell.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZwoFp-0000GX-BU for grub-devel@gnu.org; Thu, 12 Nov 2015 04:33:17 -0500 Received: from linux-dsax.tai.apac.novell.com (prv-ext-foundry1int.gns.novell.com [137.65.251.240]) by prv3-mh.provo.novell.com with ESMTP (TLS encrypted); Thu, 12 Nov 2015 02:33:05 -0700 Date: Thu, 12 Nov 2015 17:22:09 +0800 From: Michael Chang To: The development of GNU GRUB Subject: Re: [PATCH] Use UEFI Time Service to calibrate TSC Message-ID: <20151112092209.GA17396@linux-dsax.tai.apac.novell.com> Mail-Followup-To: The development of GNU GRUB References: <20151109070746.GA21701@linux-dsax.tai.apac.novell.com> <20151109080356.GA20546@linux-dsax.tai.apac.novell.com> <56409E38.8010804@gmail.com> <5640ABF1.1020801@gmail.com> <20151112073412.GA16393@linux-dsax.tai.apac.novell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 137.65.250.26 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Nov 2015 09:33:21 -0000 On Thu, Nov 12, 2015 at 11:52:24AM +0300, Andrei Borzenkov wrote: > On Thu, Nov 12, 2015 at 10:34 AM, Michael Chang wrote: > > On Mon, Nov 09, 2015 at 03:21:37PM +0100, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > >> On 09.11.2015 14:23, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > >> > On 09.11.2015 09:03, Michael Chang wrote: > > > >> Attached proof-of-concept. It's all in one file but different methods > >> should probably go in separate files. > > > > Hi Vladmir, > > > > Thanks for your guidence to the better fix. I built your patch with > > attach patch on top of yours to fix the errors found in our build > > service and also some other affected platforms which might also need the > > similar fix. > > > > Why did you need to move i386-pc ACPI files to core? They are used by > acpi module only anyway, so there is no logical reason to do it? Because Vladimir's prototype patch has been moved them. + i386_coreboot = kern/i386/pc/acpi.c; + i386_multiboot = kern/i386/pc/acpi.c; + i386_coreboot = kern/acpi.c; + i386_multiboot = kern/acpi.c; My patch was just intended to fix build error and test, Looking into the patch it seems needed by coreboot. I could't tell much that GRUB_MACHINE_MULTIBOOT is missed by accident or not in his patch. +#elif defined (GRUB_MACHINE_COREBOOT) + (void) (calibrate_tsc_pmtimer() || calibrate_tsc_pit () || calibrate_tsc_hardcode()); +#else Thanks, Michael