From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752068Ab0HBCmG (ORCPT ); Sun, 1 Aug 2010 22:42:06 -0400 Received: from mga02.intel.com ([134.134.136.20]:20615 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751827Ab0HBCmE (ORCPT ); Sun, 1 Aug 2010 22:42:04 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.55,301,1278313200"; d="scan'208";a="541017502" Subject: Re: EFI runtime-services on x86_64 From: Huang Ying To: "Tang, Feng" Cc: Bjorn Helgaas , Matthew Garrett , "linux-kernel@vger.kernel.org" In-Reply-To: <20100802103535.6442ab49@feng-i7> References: <201007301458.50263.bjorn.helgaas@hp.com> <20100802103535.6442ab49@feng-i7> Content-Type: text/plain; charset="UTF-8" Date: Mon, 02 Aug 2010 10:42:00 +0800 Message-ID: <1280716920.2771.1519.camel@yhuang-dev> Mime-Version: 1.0 X-Mailer: Evolution 2.30.2 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Bjorn, On Mon, 2010-08-02 at 10:35 +0800, Tang, Feng wrote: > Hi Bjorn, > > On Sat, 31 Jul 2010 04:58:48 +0800 > Bjorn Helgaas wrote: > > > Hello Feng, > > > > Can you educate me about your commit 772be899bc, "86: Make EFI RTC > > function depend on 32bit again"? > > > > It adds "#ifdef CONFIG_X86_32" to avoid using efi_get_time() and > > efi_set_rtc_mmss(), but there's no explanation of *why* those services > > only work on 32-bit. > > > > Is this an EFI spec limitation? Do the other EFI runtime services > > work on 64-bit, since you didn't touch them? Or do we just not use > > any of the others? > > > > Commit 772be899bc, "86: Make EFI RTC function depend on 32bit again" is > a regression fix for 7bd867d "x86: Move get/set_wallclock to x86_platform_ops". > These 2 commits just abstract the rtc service for legacy x86 PC/EFI/Virtualiation > kernel, and has no functional change to existing code. > > I'm not familiar with EFI, but my understanding is current EFI code in > kernel only provides the get/set_time service for x86_32 platform. I think get/set_time service should have worked on x86_64 too. Just lacks proper debugging/testing for recent kernels. Best Regards, Huang Ying