All of lore.kernel.org
 help / color / mirror / Atom feed
From: joeyli <jlee-IBi9RG/b67k@public.gmane.org>
To: "H. Peter Anvin" <hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
Cc: Matthew Garrett
	<matthew.garrett-05XSO3Yj/JvQT0dZR+AlfA@public.gmane.org>,
	"matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org"
	<matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	"linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	Thomas Gleixner <tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org>,
	Ingo Molnar <mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
	Jan Beulich <JBeulich-IBi9RG/b67k@public.gmane.org>,
	Len Brown <lenb-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	Arjan van de Ven <arjan-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org>
Subject: Re: [PATCH 1/3] rtc-efi: register rtc-efi device when EFI enabled
Date: Wed, 02 Jan 2013 10:45:51 +0800	[thread overview]
Message-ID: <1357094751.6113.253.camel@linux-s257.site> (raw)
In-Reply-To: <50DE2EED.9030608-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>

Hi hpa,  

於 五,2012-12-28 於 15:44 -0800,H. Peter Anvin 提到:
> On 12/28/2012 12:49 PM, Matthew Garrett wrote:
> > On Fri, 2012-12-28 at 12:40 -0800, H. Peter Anvin wrote:
> > 
> >>> I suspect that what we *should* do looks like:
> >>>
> >>> 1. If ACPI exports a Time and Alarm Device (ACPI000E) the use it;
> >>> 2. If ACPI exports an PC/AT device (PNP0B00/1/2) then use it(*);
> >>> 3. If we have an EFI RTC use it;
> >>> 4. Probe for a PC/AT RTC device.
> > 
> > In terms of ordering, 3 should probably come before 2 - but that depends
> > on us actually fixing the issues that are preventing some of these calls
> > from working. As far as wallclock time goes, EFI is going to be
> > available to us before we've parsed the DSDT to determine whether
> > there's any ACPI devices, so we'll almost certainly end up having to use
> > it at at least some point during boot. Otherwise, agreed.
> > 
> 
> [Resending due to misconfigured tablet]
> 
> 3 before 2 is exactly what is known to break on existing hardware (ASUS).

I didn't find the EFI RTC problem on Asus from google. 
Could you please share what's the situation on ASUS hardware?


Thanks a lot!
Joey Lee

> 
> If anything, we should move to using the EFI RTC as a very last resort,
> i.e. 3 after 4.  Ideally we should match Win8 behavior, but that would
> require someone mocking up different ACPI and EFI functions in a
> simulator and see how Win8 prioritizes things.
> 
> 	-hpa
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-efi" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 

WARNING: multiple messages have this Message-ID (diff)
From: joeyli <jlee@suse.com>
To: "H. Peter Anvin" <hpa@zytor.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>,
	Len Brown <lenb@kernel.org>,
	Arjan van de Ven <arjan@infradead.org>
Subject: Re: [PATCH 1/3] rtc-efi: register rtc-efi device when EFI enabled
Date: Wed, 02 Jan 2013 10:45:51 +0800	[thread overview]
Message-ID: <1357094751.6113.253.camel@linux-s257.site> (raw)
In-Reply-To: <50DE2EED.9030608@zytor.com>

Hi hpa,  

於 五,2012-12-28 於 15:44 -0800,H. Peter Anvin 提到:
> On 12/28/2012 12:49 PM, Matthew Garrett wrote:
> > On Fri, 2012-12-28 at 12:40 -0800, H. Peter Anvin wrote:
> > 
> >>> I suspect that what we *should* do looks like:
> >>>
> >>> 1. If ACPI exports a Time and Alarm Device (ACPI000E) the use it;
> >>> 2. If ACPI exports an PC/AT device (PNP0B00/1/2) then use it(*);
> >>> 3. If we have an EFI RTC use it;
> >>> 4. Probe for a PC/AT RTC device.
> > 
> > In terms of ordering, 3 should probably come before 2 - but that depends
> > on us actually fixing the issues that are preventing some of these calls
> > from working. As far as wallclock time goes, EFI is going to be
> > available to us before we've parsed the DSDT to determine whether
> > there's any ACPI devices, so we'll almost certainly end up having to use
> > it at at least some point during boot. Otherwise, agreed.
> > 
> 
> [Resending due to misconfigured tablet]
> 
> 3 before 2 is exactly what is known to break on existing hardware (ASUS).

I didn't find the EFI RTC problem on Asus from google. 
Could you please share what's the situation on ASUS hardware?


Thanks a lot!
Joey Lee

> 
> If anything, we should move to using the EFI RTC as a very last resort,
> i.e. 3 after 4.  Ideally we should match Win8 behavior, but that would
> require someone mocking up different ACPI and EFI functions in a
> simulator and see how Win8 prioritizes things.
> 
> 	-hpa
> 
> --
> To unsubscribe from this list: send the line "unsubscribe linux-efi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 



  parent reply	other threads:[~2013-01-02  2:45 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-28 16:26 [PATCH 1/3] rtc-efi: register rtc-efi device when EFI enabled Lee, Chun-Yi
2012-12-28 16:26 ` Lee, Chun-Yi
     [not found] ` <1356712001-12198-1-git-send-email-jlee-IBi9RG/b67k@public.gmane.org>
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     ` 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 16:26     ` 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 17:43   ` Matthew Garrett
     [not found]   ` <E99CBA9F97C3D149AA6B19ED2E277C9B019215CC-kSjp6dTd0Hr1oIOzUjSfqB1/qY2kGW66nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2012-12-28 19:07     ` H. Peter Anvin
2012-12-28 19:07       ` H. Peter Anvin
2012-12-28 19:17       ` Matthew Garrett
2012-12-28 19:17         ` Matthew Garrett
     [not found]         ` <E99CBA9F97C3D149AA6B19ED2E277C9B019215FA-kSjp6dTd0Hr1oIOzUjSfqB1/qY2kGW66nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2012-12-28 20:40           ` H. Peter Anvin
2012-12-28 20:40             ` H. Peter Anvin
     [not found]             ` <50DE03D8.9030902-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2012-12-28 20:49               ` Matthew Garrett
2012-12-28 20:49                 ` Matthew Garrett
     [not found]                 ` <35da3df5-ecac-4b57-83a2-828326e5bfc3@email.android.com>
     [not found]                   ` <35da3df5-ecac-4b57-83a2-828326e5bfc3-2ueSQiBKiTY7tOexoI0I+QC/G2K4zDHf@public.gmane.org>
2012-12-28 23:39                     ` Matthew Garrett
2012-12-28 23:39                       ` Matthew Garrett
2012-12-29  0:42                       ` H. Peter Anvin
     [not found]                         ` <50DE3C8F.4000405-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2012-12-29  4:37                           ` Matthew Garrett
2012-12-29  4:37                             ` Matthew Garrett
     [not found]                             ` <E99CBA9F97C3D149AA6B19ED2E277C9B01921744-kSjp6dTd0Hr1oIOzUjSfqB1/qY2kGW66nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2012-12-29  5:19                               ` H. Peter Anvin
2012-12-29  5:19                                 ` H. Peter Anvin
     [not found]                                 ` <ed3971f1-8464-4406-bae2-eff914c9c2fc-2ueSQiBKiTY7tOexoI0I+QC/G2K4zDHf@public.gmane.org>
2012-12-29  6:17                                   ` Matthew Garrett
2012-12-29  6:17                                     ` Matthew Garrett
     [not found]                 ` <E99CBA9F97C3D149AA6B19ED2E277C9B01921638-kSjp6dTd0Hr1oIOzUjSfqB1/qY2kGW66nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2012-12-28 23:44                   ` H. Peter Anvin
2012-12-28 23:44                     ` H. Peter Anvin
     [not found]                     ` <50DE2EED.9030608-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2013-01-02  2:45                       ` joeyli [this message]
2013-01-02  2:45                         ` joeyli
     [not found]                         ` <1357094751.6113.253.camel-ONCj+Eqt86TasUa73XJKwA@public.gmane.org>
2013-01-02  7:26                           ` Matt Fleming
2013-01-02  7:26                             ` Matt Fleming
2012-12-29  1:00   ` joeyli
     [not found]     ` <1356742803.6113.245.camel-ONCj+Eqt86TasUa73XJKwA@public.gmane.org>
2012-12-29  1:07       ` H. Peter Anvin
2012-12-29  1:07         ` H. Peter Anvin
     [not found]         ` <50DE4259.7090409-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2013-01-09  6:23           ` joeyli
2013-01-09  6:23             ` joeyli
     [not found]             ` <1357712591.6113.389.camel-ONCj+Eqt86TasUa73XJKwA@public.gmane.org>
2013-01-09  6:27               ` H. Peter Anvin
2013-01-09  6:27                 ` H. Peter Anvin

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=1357094751.6113.253.camel@linux-s257.site \
    --to=jlee-ibi9rg/b67k@public.gmane.org \
    --cc=JBeulich-IBi9RG/b67k@public.gmane.org \
    --cc=arjan-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org \
    --cc=hpa-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org \
    --cc=lenb-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=matt.fleming-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=matthew.garrett-05XSO3Yj/JvQT0dZR+AlfA@public.gmane.org \
    --cc=mingo-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
    --cc=tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.