Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-21 Thread joeyli
於 五,2013-12-20 於 17:51 -0800,H. Peter Anvin 提到: > On 12/20/2013 05:24 PM, joeyli wrote: > > 於 五,2013-12-20 於 13:04 -0800,H. Peter Anvin 提到: > >> > >> Actually, it doesn't have to reprogram the clock ... it just needs to > >> know if another OS has already done so. All Linux needs to do is to be >

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-20 Thread H. Peter Anvin
On 12/20/2013 05:24 PM, joeyli wrote: > 於 五,2013-12-20 於 13:04 -0800,H. Peter Anvin 提到: >> >> Actually, it doesn't have to reprogram the clock ... it just needs to >> know if another OS has already done so. All Linux needs to do is to be >> able to derive UTC from whatever the RTC is set to and to

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-20 Thread joeyli
於 五,2013-12-20 於 13:04 -0800,H. Peter Anvin 提到: > On 12/20/2013 07:14 AM, Matthew Garrett wrote: > > On Fri, 2013-12-20 at 11:37 +0100, Borislav Petkov wrote: > >> On Thu, Dec 19, 2013 at 08:30:48PM -0800, H. Peter Anvin wrote: > >>> On 12/19/2013 08:24 PM, joeyli wrote: > I agreed, but usersp

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-20 Thread H. Peter Anvin
On 12/20/2013 07:14 AM, Matthew Garrett wrote: > On Fri, 2013-12-20 at 11:37 +0100, Borislav Petkov wrote: >> On Thu, Dec 19, 2013 at 08:30:48PM -0800, H. Peter Anvin wrote: >>> On 12/19/2013 08:24 PM, joeyli wrote: I agreed, but userspace application should not be too often to access RTC

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-20 Thread H. Peter Anvin
The only real use case for the RTC TZ is compatibility with other operating systems that don't keep the time in UTC, at least as far as I can tell. However, that is a fairly big one, especially in VM deployments. Borislav Petkov wrote: >On Thu, Dec 19, 2013 at 08:30:48PM -0800, H. Peter Anvin

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-20 Thread Matthew Garrett
On Fri, 2013-12-20 at 11:37 +0100, Borislav Petkov wrote: > On Thu, Dec 19, 2013 at 08:30:48PM -0800, H. Peter Anvin wrote: > > On 12/19/2013 08:24 PM, joeyli wrote: > > > I agreed, but userspace application should not be too often to access > > > RTC. Maybe only when system boot and set timezone.

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-20 Thread Borislav Petkov
On Thu, Dec 19, 2013 at 08:30:48PM -0800, H. Peter Anvin wrote: > On 12/19/2013 08:24 PM, joeyli wrote: > > I agreed, but userspace application should not be too often to access > > RTC. Maybe only when system boot and set timezone. > > This is, quite frankly, an idiotic argument. TBH, I've been s

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-19 Thread H. Peter Anvin
On 12/19/2013 08:24 PM, joeyli wrote: > > I agreed, but userspace application should not be too often to access > RTC. Maybe only when system boot and set timezone. > This is, quite frankly, an idiotic argument. Userspace doesn't access the RTC, the kernel does, and if the underlying implementa

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-19 Thread joeyli
於 四,2013-12-19 於 14:09 +,Matt Fleming 提到: > On Thu, 19 Dec, at 03:51:47PM, 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_

Re: [RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-19 Thread Matt Fleming
On Thu, 19 Dec, at 03:51:47PM, 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. I

[RFC PATCH 06/14] rtc-efi: register rtc-efi device when EFI enabled

2013-12-18 Thread Lee, Chun-Yi
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. C