mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "H. Peter Anvin" <hpa@zytor.com>
To: joeyli <jlee@suse.com>
Cc: Matthew Garrett <matthew.garrett@nebula.com>,
	"matt.fleming@intel.com" <matt.fleming@intel.com>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"linux-efi@vger.kernel.org" <linux-efi@vger.kernel.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Jan Beulich <JBeulich@suse.com>
Subject: Re: [PATCH 1/3] rtc-efi: register rtc-efi device when EFI enabled
Date: Tue, 08 Jan 2013 22:27:36 -0800	[thread overview]
Message-ID: <ea4b2055-980b-4f2c-8810-65de479f45ce@email.android.com> (raw)
In-Reply-To: <1357712591.6113.389.camel@linux-s257.site>

That makes it even less compelling...

joeyli <jlee@suse.com> wrote:

>於 五,2012-12-28 於 17:07 -0800,H. Peter Anvin 提到:
>> On 12/28/2012 05:00 PM, joeyli wrote:
>> > 於 五,2012-12-28 於 17:43 +0000,Matthew Garrett 提到:
>> >> On Sat, 2012-12-29 at 00:26 +0800, Lee, Chun-Yi wrote:
>> >>> UEFI time services, GetTime(), SetTime(), GetWakeupTime(),
>SetWakeupTime() are also
>> >>> supported by other non-IA64 architecutre with UEFI BIOS, e.g.
>x86.
>> >>>
>> >>> This patch changed RTC_DRV_EFI configuration to depend on EFI but
>not just IA64. It
>> >>> checks efi_enabled flag and efi-rtc driver should enabled.
>> >>
>> >> In theory, certainly - but do we still have machines that explode
>if the
>> >> get_time call is made? We may also want to think about disabling
>the
>> >> legacy access to the RTC if the EFI calls are present.
>> > 
>> > The legacy get_time access on my test machine is work fine, not
>thing
>> > explode. :-)
>> > Just we have a function want to expose the timezone information to
>> > userspace and also store it.
>> > 
>> 
>> We should indeed save the timezone information if it is available --
>> either from the ACPI TAD or from the EFI RTC, or even via some
>> platform-dependent mechanism.  It is important, though, that that is
>> separate from the order of priority.
>> 
>> 	-hpa
>> 
>
>I found Windows 8 doesn't aware/maintain the Timezone and Daylight
>fields in EFI_TIME struct.
>
>I got a Acer UEFI notebook and I keep the Windows 8 hard drive
>(/dev/sda) but install Linux to another hard drive (/dev/sdb). 
>
>On Linux, I applied my rtc-efi patches for allow user space feed
>Timezone and store it to BIOS through SetTime(). I wrote a simple user
>space program to set Timezone and Daylight fields, after set those
>fields I reboot to Windows 8 and use DateTime setting GUI to look at
>the
>change. Looks Windows doesn't aware the change, it just assume the time
>in DateTime filed is local time, but didn't show the Timezone that was
>set by me on Linux to GUI.
>
>Then, I select another Timezone(country) through Windows 8 GUI, and
>reboot to Linux. I read the Timezone and Daylight by program but didn't
>see the Timezone and Daylight changed by Windows 8, the value is still
>the same with my latest time setting by Linux program. Windows 8
>changed
>DayTime fields but didn't maintain Timezone and Daylight.
>
>I only have this machine with preloaded Windows 8 for verify the
>behavior, not sure it's normally or not. If Windows 8 ignores Timezone
>and Daylight fields in UEFI BIOS, then I think it's lower down the
>necessary for we maintain Timezone and Daylight in UEFI BIOS. 
>
>We still can store Timezone and Daylight value to UEFI, but will have
>no
>any interactive with Windows 8.
>
>Appreciate for any suggestions.
>
>
>Thanks a lot!
>Joey Lee

-- 
Sent from my mobile phone. Please excuse brevity and lack of formatting.

      reply	other threads:[~2013-01-09  6:28 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28 16:26 Lee, Chun-Yi
2012-12-28 16:26 ` [PATCH 2/3] rtc-efi: add timezone to rtc_time that will used by rtc-efi Lee, Chun-Yi
2012-12-28 16:26 ` [PATCH 3/3] rtc-efi: set uie_unsupported for indicate rtc-efi doesn't support UIE mode Lee, Chun-Yi
2012-12-28 17:43 ` [PATCH 1/3] rtc-efi: register rtc-efi device when EFI enabled Matthew Garrett
2012-12-28 19:07   ` H. Peter Anvin
2012-12-28 19:17     ` Matthew Garrett
2012-12-28 20:40       ` H. Peter Anvin
2012-12-28 20:49         ` Matthew Garrett
     [not found]           ` <35da3df5-ecac-4b57-83a2-828326e5bfc3@email.android.com>
2012-12-28 23:39             ` Matthew Garrett
2012-12-29  0:42               ` H. Peter Anvin
2012-12-29  4:37                 ` Matthew Garrett
2012-12-29  5:19                   ` H. Peter Anvin
2012-12-29  6:17                     ` Matthew Garrett
2012-12-28 23:44           ` H. Peter Anvin
2013-01-02  2:45             ` joeyli
2013-01-02  7:26               ` Matt Fleming
2012-12-29  1:00   ` joeyli
2012-12-29  1:07     ` H. Peter Anvin
2013-01-09  6:23       ` joeyli
2013-01-09  6:27         ` H. Peter Anvin [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ea4b2055-980b-4f2c-8810-65de479f45ce@email.android.com \
    --to=hpa@zytor.com \
    --cc=JBeulich@suse.com \
    --cc=jlee@suse.com \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=matt.fleming@intel.com \
    --cc=matthew.garrett@nebula.com \
    --cc=mingo@redhat.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®