linux-efi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME
@ 2013-12-19  7:43 Lee, Chun-Yi
       [not found] ` <1387439053-8711-1-git-send-email-jlee-IBi9RG/b67k@public.gmane.org>
  2013-12-19 14:59 ` [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME H. Peter Anvin
  0 siblings, 2 replies; 40+ messages in thread
From: Lee, Chun-Yi @ 2013-12-19  7:43 UTC (permalink / raw)
  To: Rafael J. Wysocki, Alessandro Zummo, H. Peter Anvin, Matt Fleming,
	Matthew Garrett
  Cc: Elliott-VXdhtT5mjnY, samer.el-haj-mahmoud-VXdhtT5mjnY,
	Oliver Neukum, werner-IBi9RG/b67k, trenn-l3A5Bk7waGM,
	JBeulich-IBi9RG/b67k, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	rtc-linux-/JYPxA39Uh5TLH3MbocFFw, x86-DgEjT+Ai2ygdnm+yROfE0A,
	linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA, Lee, Chun-Yi

This patchset add the timezone support of ACPI TAD and EFI TIME, it
also add codes for adjusting system time base on the timezone value
from EFI TIME services when system boot.

Those patches bring the following changes:

 + Add ACPI driver against ACPI000E ACPI Time and Alarm Device.

 + Add RTC driver of ACPI TAD.

 + Add rtc ioctl functions, RTC_RD_GMTOFF and RTC_SET_GMTOFF, provide
   interface to user space for maintain timezone value in BIOS.
   The GMTOFF names of ioctl functions match with the tm_gmtoff field
   in rtc_time and tm structure in GNU C library.

 + Add rtc ioctl function, RTC_CAPS_READ, provide to user space for
   grab the capabilities value to timezone and daylight of interface.

 + Moved duplicate functions to efi.h header for convert EFI Time.

 + When "CMOS RTC not Present" flag set in FADT, block CMOS RTC interface
   and switch to EFI time services.

 + Adjusting system time base on timezone from EFI time when system boot.

 + Add rtc-tz.txt document.

Please set CONFIG_RTC_DRV_EFI=m and CONFIG_RTC_ACPI_TAD=m to build RTC ACPI
TAD and EFI TIME drivers.For testing, please use "acpi_no_cmos_rtc=1" to set
CMOST RTC not Present flag in FADT to trigger the mechanism for adjust system
time and block CMOS interface.

About the definition of timezone and the format transformation between ACPI,
EFI and tm_gmtoff of GNU. Please check the rtc-tz.txt document in patch.


Jan Beulich (1):
  x86-64/efi: Use EFI to deal with platform wall clock (again)

Lee, Chun-Yi (13):
  rtc-efi: fix decrease day twice when computing year days
  rtc: block registration of rtc-cmos when CMOS RTC Not Present
  ACPI: Add ACPI 5.0 Time and Alarm Device driver
  rtc: Add RTC driver of ACPI Time and Alarm Device
  rtc-efi: register rtc-efi device when EFI enabled
  rtc-efi: add GMTOFF support to rtc_efi
  rtc-efi: set uie_unsupported for indicate rtc-efi doesn't support UIE
  efi: move functions of access efi time to header file for sharing
  rtc: improve and move week day computing function to rtc header
  rtc: switch to get/set rtc time to efi functions if CMOS RTC Not
  efi: adjust system time base on timezone from EFI time services
  Documentation/RTC: add document of ACPI TAD and EFI TIME driver
  acpi: add early parameter to set CMOS RTC Not Present bit for testing

 Documentation/rtc-tz.txt    |  510 +++++++++++++++++++++++++++++++++++++++++++
 arch/x86/kernel/acpi/boot.c |   17 ++
 arch/x86/kernel/rtc.c       |   28 ++-
 arch/x86/mm/pageattr.c      |   10 +-
 arch/x86/platform/efi/efi.c |   89 ++++++--
 drivers/acpi/Makefile       |    3 +
 drivers/acpi/acpi_tad.c     |  176 +++++++++++++++
 drivers/acpi/bus.c          |    3 +
 drivers/acpi/internal.h     |    5 +
 drivers/char/efirtc.c       |   98 ---------
 drivers/rtc/Kconfig         |   12 +-
 drivers/rtc/Makefile        |    1 +
 drivers/rtc/rtc-acpitad.c   |  283 ++++++++++++++++++++++++
 drivers/rtc/rtc-cmos.c      |    9 +
 drivers/rtc/rtc-dev.c       |    4 +
 drivers/rtc/rtc-efi.c       |  177 +++++++---------
 drivers/rtc/rtc-sysfs.c     |    8 +
 include/asm-generic/rtc.h   |   22 ++
 include/linux/acpi.h        |   31 +++
 include/linux/efi.h         |  127 +++++++++++-
 include/linux/rtc.h         |   43 ++++
 include/uapi/linux/rtc.h    |    5 +
 init/main.c                 |   13 +-
 kernel/time.c               |    2 +-
 24 files changed, 1439 insertions(+), 237 deletions(-)
 create mode 100644 Documentation/rtc-tz.txt
 create mode 100644 drivers/acpi/acpi_tad.c
 create mode 100644 drivers/rtc/rtc-acpitad.c

^ permalink raw reply	[flat|nested] 40+ messages in thread
* [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME
@ 2013-12-19  7:51 Lee, Chun-Yi
  0 siblings, 0 replies; 40+ messages in thread
From: Lee, Chun-Yi @ 2013-12-19  7:51 UTC (permalink / raw)
  To: Rafael J. Wysocki, Alessandro Zummo, H. Peter Anvin, Matt Fleming,
	Matthew Garrett
  Cc: Elliott-VXdhtT5mjnY, samer.el-haj-mahmoud-VXdhtT5mjnY,
	Oliver Neukum, werner-IBi9RG/b67k, trenn-l3A5Bk7waGM,
	JBeulich-IBi9RG/b67k, linux-kernel-u79uwXL29TY76Z2rM5mHXA,
	rtc-linux-/JYPxA39Uh5TLH3MbocFFw, x86-DgEjT+Ai2ygdnm+yROfE0A,
	linux-efi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	linux-acpi-u79uwXL29TY76Z2rM5mHXA, Lee, Chun-Yi

This patchset add the timezone support of ACPI TAD and EFI TIME, it
also add codes for adjusting system time base on the timezone value
from EFI TIME services when system boot.

Those patches bring the following changes:

 + Add ACPI driver against ACPI000E ACPI Time and Alarm Device.

 + Add RTC driver of ACPI TAD.

 + Add rtc ioctl functions, RTC_RD_GMTOFF and RTC_SET_GMTOFF, provide
   interface to user space for maintain timezone value in BIOS.
   The GMTOFF names of ioctl functions match with the tm_gmtoff field
   in rtc_time and tm structure in GNU C library.

 + Add rtc ioctl function, RTC_CAPS_READ, provide to user space for
   grab the capabilities value to timezone and daylight of interface.

 + Moved duplicate functions to efi.h header for convert EFI Time.

 + When "CMOS RTC not Present" flag set in FADT, block CMOS RTC interface
   and switch to EFI time services.

 + Adjusting system time base on timezone from EFI time when system boot.

 + Add rtc-tz.txt document.

Please set CONFIG_RTC_DRV_EFI=m and CONFIG_RTC_ACPI_TAD=m to build RTC ACPI
TAD and EFI TIME drivers.For testing, please use "acpi_no_cmos_rtc=1" to set
CMOST RTC not Present flag in FADT to trigger the mechanism for adjust system
time and block CMOS interface.

About the definition of timezone and the format transformation between ACPI,
EFI and tm_gmtoff of GNU. Please check the rtc-tz.txt document in patch.


Jan Beulich (1):
  x86-64/efi: Use EFI to deal with platform wall clock (again)

Lee, Chun-Yi (13):
  rtc-efi: fix decrease day twice when computing year days
  rtc: block registration of rtc-cmos when CMOS RTC Not Present
  ACPI: Add ACPI 5.0 Time and Alarm Device driver
  rtc: Add RTC driver of ACPI Time and Alarm Device
  rtc-efi: register rtc-efi device when EFI enabled
  rtc-efi: add GMTOFF support to rtc_efi
  rtc-efi: set uie_unsupported for indicate rtc-efi doesn't support UIE
  efi: move functions of access efi time to header file for sharing
  rtc: improve and move week day computing function to rtc header
  rtc: switch to get/set rtc time to efi functions if CMOS RTC Not
  efi: adjust system time base on timezone from EFI time services
  Documentation/RTC: add document of ACPI TAD and EFI TIME driver
  acpi: add early parameter to set CMOS RTC Not Present bit for testing

 Documentation/rtc-tz.txt    |  510 +++++++++++++++++++++++++++++++++++++++++++
 arch/x86/kernel/acpi/boot.c |   17 ++
 arch/x86/kernel/rtc.c       |   28 ++-
 arch/x86/mm/pageattr.c      |   10 +-
 arch/x86/platform/efi/efi.c |   89 ++++++--
 drivers/acpi/Makefile       |    3 +
 drivers/acpi/acpi_tad.c     |  176 +++++++++++++++
 drivers/acpi/bus.c          |    3 +
 drivers/acpi/internal.h     |    5 +
 drivers/char/efirtc.c       |   98 ---------
 drivers/rtc/Kconfig         |   12 +-
 drivers/rtc/Makefile        |    1 +
 drivers/rtc/rtc-acpitad.c   |  283 ++++++++++++++++++++++++
 drivers/rtc/rtc-cmos.c      |    9 +
 drivers/rtc/rtc-dev.c       |    4 +
 drivers/rtc/rtc-efi.c       |  177 +++++++---------
 drivers/rtc/rtc-sysfs.c     |    8 +
 include/asm-generic/rtc.h   |   22 ++
 include/linux/acpi.h        |   31 +++
 include/linux/efi.h         |  127 +++++++++++-
 include/linux/rtc.h         |   43 ++++
 include/uapi/linux/rtc.h    |    5 +
 init/main.c                 |   13 +-
 kernel/time.c               |    2 +-
 24 files changed, 1439 insertions(+), 237 deletions(-)
 create mode 100644 Documentation/rtc-tz.txt
 create mode 100644 drivers/acpi/acpi_tad.c
 create mode 100644 drivers/rtc/rtc-acpitad.c

^ permalink raw reply	[flat|nested] 40+ messages in thread

end of thread, other threads:[~2014-01-17 12:20 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19  7:43 [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME Lee, Chun-Yi
     [not found] ` <1387439053-8711-1-git-send-email-jlee-IBi9RG/b67k@public.gmane.org>
2013-12-19  7:44   ` [PATCH 01/14] rtc-efi: fix decrease day twice when computing year days Lee, Chun-Yi
2013-12-19  7:44   ` [PATCH 03/14] rtc: block registration of rtc-cmos when CMOS RTC Not Present Lee, Chun-Yi
     [not found]     ` <1387439053-8711-4-git-send-email-jlee-IBi9RG/b67k@public.gmane.org>
2013-12-19 14:38       ` H. Peter Anvin
     [not found]         ` <6fc9a2f9-eae7-4588-a092-f338053ec96a-2ueSQiBKiTY7tOexoI0I+QC/G2K4zDHf@public.gmane.org>
2013-12-20  3:54           ` joeyli
2013-12-20  4:20             ` H. Peter Anvin
2013-12-19 14:59 ` [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME H. Peter Anvin
     [not found]   ` <52B309EB.90300-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2013-12-19 16:04     ` Alessandro Zummo
2013-12-20  4:05     ` joeyli
     [not found]       ` <1387512357.3539.4317.camel-ONCj+Eqt86TasUa73XJKwA@public.gmane.org>
2013-12-20  4:22         ` H. Peter Anvin
     [not found]           ` <52B3C5F0.1060303-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2013-12-20  5:38             ` joeyli
     [not found]               ` <1387517916.3539.4446.camel-ONCj+Eqt86TasUa73XJKwA@public.gmane.org>
2013-12-20 21:10                 ` H. Peter Anvin
     [not found]                   ` <52B4B242.5010002-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2013-12-20 21:25                     ` H. Peter Anvin
2013-12-20 21:45                     ` Rafael J. Wysocki
2013-12-20 21:43                       ` H. Peter Anvin
     [not found]                         ` <52B4BA0A.1030902-YMNOUZJC4hwAvxtiuMwx3w@public.gmane.org>
2013-12-20 21:50                           ` Matt Fleming
     [not found]                             ` <20131220215056.GA29501-HNK1S37rvNbeXh+fF434Mdi2O/JbrIOy@public.gmane.org>
2013-12-20 22:18                               ` Rafael J. Wysocki
     [not found]                                 ` <3476450.BMEcId2Lgj-sKB8Sp2ER+y1GS7QM15AGw@public.gmane.org>
2013-12-21 12:21                                   ` Matt Fleming
2014-01-12  0:30                                     ` [RFT][PATCH] ACPI / init: Run acpi_early_init() before efi_enter_virtual_mode() (was: Re: [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME) Rafael J. Wysocki
     [not found]                                       ` <2530951.HFPX8MI38t-sKB8Sp2ER+y1GS7QM15AGw@public.gmane.org>
2014-01-12  9:06                                         ` Borislav Petkov
2014-01-14  2:04                                           ` Toshi Kani
     [not found]                                             ` <1389665096.1792.271.camel-RbGIw1UOYPVo/CpIj0byZw@public.gmane.org>
2014-01-14 16:25                                               ` Toshi Kani
2014-01-12 11:05                                         ` Matt Fleming
2014-01-17 12:20                                           ` Matt Fleming
2014-01-14  4:09                                       ` joeyli
     [not found]                                         ` <1389672548.24105.252.camel-ONCj+Eqt86TasUa73XJKwA@public.gmane.org>
2014-01-14 16:50                                           ` Rafael J. Wysocki
2014-01-14 18:00                                           ` [RFT][PATCH] ACPI / init: Run acpi_early_init() before efi_enter_virtual_mode() H. Peter Anvin
2014-01-14 20:32                                             ` Toshi Kani
     [not found]                                               ` <1389731547.1792.296.camel-RbGIw1UOYPVo/CpIj0byZw@public.gmane.org>
2014-01-15  7:18                                                 ` joeyli
     [not found]                       ` <2787644.ytU7M33B4r-sKB8Sp2ER+y1GS7QM15AGw@public.gmane.org>
2013-12-21  2:43                         ` [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME joeyli
2013-12-20 10:53             ` Thomas Renninger
2013-12-20 22:15               ` H. Peter Anvin
2013-12-20 15:16             ` Matthew Garrett
2013-12-20 16:57               ` H. Peter Anvin
2013-12-20 16:58                 ` Matthew Garrett
2013-12-20 20:29                   ` H. Peter Anvin
     [not found]                     ` <a049daea-a713-4d06-b35f-61f3bec06ba9-2ueSQiBKiTY7tOexoI0I+QC/G2K4zDHf@public.gmane.org>
2013-12-20 20:32                       ` Matthew Garrett
2013-12-20 21:14                         ` H. Peter Anvin
2013-12-20 21:12               ` H. Peter Anvin
  -- strict thread matches above, loose matches on Subject: below --
2013-12-19  7:51 Lee, Chun-Yi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).