RFC Support timezone of ACPI TAD and EFI TIME
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest14 patches 55 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/14 | rtc-efi: fix decrease day twice when computing year daysdrivers/ | +1 | 0 replies | |
| 1/14 | rtc-efi: fix decrease day twice when computing year daysdrivers/ | +1 | 0 replies | |
| 3/14 | rtc: block registration of rtc-cmos when CMOS RTC Not Presentarch/ drivers/ | +25 | 3 replies | |
| 3/14 | rtc: block registration of rtc-cmos when CMOS RTC Not Presentarch/ drivers/ | +25 | 0 replies | |
| 4/14 | ACPI: Add ACPI 5.0 Time and Alarm Device driverdrivers/ drivers/ drivers/ +2 more | +218 | 14 replies | |
| 5/14 | rtc: Add RTC driver of ACPI Time and Alarm Devicedrivers/ drivers/ drivers/ +4 more | +327 | 0 replies | |
| 6/14 | rtc-efi: register rtc-efi device when EFI enabledarch/ drivers/ | +18 | 10 replies | |
| 7/14 | rtc-efi: add GMTOFF support to rtc_efidrivers/ | +99 | 2 replies | |
| 8/14 | rtc-efi: set uie_unsupported for indicate rtc-efi doesn't support UIE modedrivers/ | +2 | 0 replies | |
| 9/14 | efi: move functions of access efi time to header file for sharingdrivers/ drivers/ include/ | +140 | 0 replies | |
| 10/14 | rtc: improve and move week day computing function to rtc headerdrivers/ include/ include/ | +40 | 0 replies | |
| 11/14 | rtc: switch to get/set rtc time to efi functions if CMOS RTC Not Present git set.arch/ include/ | +30 | 0 replies | |
| 12/14 | efi: adjust system time base on timezone from EFI time servicesarch/ include/ init/ +1 more | +45 | 0 replies | |
| 13/14 | Documentation/RTC: add document of ACPI TAD and EFI TIME driverDocumentation/ | +510 | 0 replies | |
| 14/14 | acpi: add early parameter to set CMOS RTC Not Present bit for testingarch/ | +17 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 00/14] Support timezone of ACPI TAD and EFI TIME
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