Add virtio_rtc module and related changes
Subsystems (8)
v3 cover Add virtio_rtc module and related changes
RFC v3 updates
--------------
This series implements a driver for a virtio-rtc device conforming to spec RFC v3 [1]. It now includes an RTC class driver with alarm, in addition to the PTP clock driver already present before.
This patch series depends on the patch series "treewide: Use clocksource id for get_device_system_crosststamp()" [3]. Pull [4] to get the combined series on top of mainline.
Overview
--------
This patch series adds the virtio_rtc module, and related bugfixes. The virtio_rtc module implements a driver compatible with the proposed Virtio RTC device specification [1]. The Virtio RTC (Real Time Clock) device provides information about current time. The device can provide different clocks, e.g. for the UTC or TAI time standards, or for physical time elapsed since some past epoch. The driver can read the clocks with simple or more accurate methods. Optionally, the driver can set an alarm.
The series first fixes some bugs in the get_device_system_crosststamp() interpolation code, which is required for reliable virtio_rtc operation. Then, add the virtio_rtc implementation.
For the Virtio RTC device, there is currently a proprietary implementation, which has been used for provisional testing.
PTP clock interface
-------------------
virtio_rtc exposes clocks as PTP clocks to userspace, similar to ptp_kvm. If both the Virtio RTC device and this driver have special support for the current clocksource, time synchronization programs can use cross-timestamping using ioctl PTP_SYS_OFFSET_PRECISE2 aka PTP_SYS_OFFSET_PRECISE. Similar to ptp_kvm, system time synchronization with single-digit ns precision is possible with a quiescent reference clock (from the Virtio RTC device). This works even when the Virtio device response is slow compared to ptp_kvm hypercalls.
The following illustrates a test using PTP_SYS_OFFSET_PRECISE, with interspersed strace log and chrony [2] refclocks log, on arm64. In the example, chrony tracks a virtio_rtc PTP clock ("PHCV", /dev/ptp0). The raw offset between the virtio_rtc clock and CLOCK_REALTIME is 0 to 1 ns. At the device side, the Virtio RTC device artificially delays both the clock read request, and the response, by 50 ms. Cross-timestamp interpolation still works with this delay. chrony also monitors a ptp_kvm clock ("PHCK", /dev/ptp3) for comparison, which yields a similar offset.
ioctl(5</dev/ptp3>, PTP_SYS_OFFSET_PRECISE, 0xffffe86691c8) = 0 <0.000329> =============================================================================== Date (UTC) Time Refid DP L P Raw offset Cooked offset Disp. =============================================================================== 2023-06-29 18:49:55.595742 PHCK 0 N 0 1.000000e-09 8.717931e-10 5.500e-08 2023-06-29 18:49:55.595742 PHCK - N - - 8.717931e-10 5.500e-08 ioctl(6</dev/ptp0>, PTP_SYS_OFFSET_PRECISE, 0xffffe86691c8) = 0 <0.101545> 2023-06-29 18:49:56.147766 PHCV 0 N 0 1.000000e-09 8.801870e-10 5.500e-08 2023-06-29 18:49:56.147766 PHCV - N - - 8.801870e-10 5.500e-08 ioctl(5</dev/ptp3>, PTP_SYS_OFFSET_PRECISE, 0xffffe86691c8) = 0 <0.000195> 2023-06-29 18:49:56.202446 PHCK 0 N 0 1.000000e-09 7.364180e-10 5.500e-08 2023-06-29 18:49:56.202446 PHCK - N - - 7.364180e-10 5.500e-08 ioctl(6</dev/ptp0>, PTP_SYS_OFFSET_PRECISE, 0xffffe86691c8) = 0 <0.101484> 2023-06-29 18:49:56.754641 PHCV 0 N 0 0.000000e+00 -2.617368e-10 5.500e-08 2023-06-29 18:49:56.754641 PHCV - N - - -2.617368e-10 5.500e-08 ioctl(5</dev/ptp3>, PTP_SYS_OFFSET_PRECISE, 0xffffe86691c8) = 0 <0.000270> 2023-06-29 18:49:56.809282 PHCK 0 N 0 1.000000e-09 7.779321e-10 5.500e-08 2023-06-29 18:49:56.809282 PHCK - N - - 7.779321e-10 5.500e-08 ioctl(6</dev/ptp0>, PTP_SYS_OFFSET_PRECISE, 0xffffe86691c8) = 0 <0.101510> 2023-06-29 18:49:57.361376 PHCV 0 N 0 0.000000e+00 -2.198794e-10 5.500e-08 2023-06-29 18:49:57.361376 PHCV - N - - -2.198794e-10 5.500e-08
This patch series only adds special support for the Arm Generic Timer clocksource. At the driver side, it should be easy to support more clocksources.
Fallback PTP clock interface
----------------------------
Without special support for the current clocksource, time synchronization programs can still use ioctl PTP_SYS_OFFSET_EXTENDED2 aka PTP_SYS_OFFSET_EXTENDED. In this case, precision will generally be worse and will depend on the Virtio device response characteristics.
The following illustrates a test using PTP_SYS_OFFSET_EXTENDED, with interspersed strace log and chrony refclocks log, on x86-64 (with `ts' values omitted):
ioctl(5, PTP_SYS_OFFSET_EXTENDED, {n_samples=10, ts=OMITTED}) = 0
===============================================================================
Date (UTC) Time Refid DP L P Raw offset Cooked offset Disp.
===============================================================================
2023-06-28 14:11:26.697782 PHCV 0 N 0 3.318200e-05 3.450891e-05 4.611e-06
2023-06-28 14:11:26.697782 PHCV - N - - 3.450891e-05 4.611e-06
ioctl(5, PTP_SYS_OFFSET_EXTENDED, {n_samples=10, ts=OMITTED}) = 0
2023-06-28 14:11:27.208763 PHCV 0 N 0 -3.792800e-05 -4.023965e-05 4.611e-06
2023-06-28 14:11:27.208763 PHCV - N - - -4.023965e-05 4.611e-06
ioctl(5, PTP_SYS_OFFSET_EXTENDED, {n_samples=10, ts=OMITTED}) = 0
2023-06-28 14:11:27.722818 PHCV 0 N 0 -3.328600e-05 -3.134404e-05 4.611e-06
2023-06-28 14:11:27.722818 PHCV - N - - -3.134404e-05 4.611e-06
ioctl(5, PTP_SYS_OFFSET_EXTENDED, {n_samples=10, ts=OMITTED}) = 0
2023-06-28 14:11:28.233572 PHCV 0 N 0 -4.966900e-05 -4.584331e-05 4.611e-06
2023-06-28 14:11:28.233572 PHCV - N - - -4.584331e-05 4.611e-06
ioctl(5, PTP_SYS_OFFSET_EXTENDED, {n_samples=10, ts=OMITTED}) = 0
2023-06-28 14:11:28.742737 PHCV 0 N 0 4.902700e-05 5.361388e-05 4.611e-06
2023-06-28 14:11:28.742737 PHCV - N - - 5.361388e-05 4.611e-06PTP clock setup
---------------
The following udev rule can be used to get a symlink /dev/ptp_virtio to the UTC clock:
SUBSYSTEM=="ptp", ATTR{clock_name}=="Virtio PTP UTC", SYMLINK += "ptp_virtio"The following chrony configuration directive can then be added in /etc/chrony/chrony.conf to synchronize to the Virtio UTC clock:
refclock PHC /dev/ptp_virtio refid PHCV poll -1 dpoll -1
RTC interface
-------------
This patch series adds virtio_rtc as a generic Virtio driver, including both a PTP clock driver and an RTC class driver.
Feedback is greatly appreciated.
[1] https://lore.kernel.org/virtio-comment/[email protected]/
[2] https://chrony.tuxfamily.org/
[3] https://lore.kernel.org/lkml/[email protected]/
[4] https://github.com/OpenSynergy/linux.git virtio-rtc-v3-on-master
v3:
- Update to conform to virtio spec RFC v3 (no significant behavioral changes).
- Add RTC class driver with alarm according to virtio spec RFC v3.
- For cross-timestamp corner case fix, switch back to v1 style closed interval test (Thomas Gleixner).
v2:
- Depend on patch series "treewide: Use clocksource id for get_device_system_crosststamp()" to avoid requiring a clocksource pointer with get_device_system_crosststamp().
- Assume Arm Generic Timer will use CP15 virtual counter. Drop arm_arch_timer helper functions (Marc Zyngier).
- Improve cross-timestamp fixes problem description and implementation (John Stultz).
Peter Hilber (7):
timekeeping: Fix cross-timestamp interpolation on counter wrap
timekeeping: Fix cross-timestamp interpolation corner case decision
timekeeping: Fix cross-timestamp interpolation for non-x86
virtio_rtc: Add module and driver core
virtio_rtc: Add PTP clocks
virtio_rtc: Add Arm Generic Timer cross-timestamping
virtio_rtc: Add RTC class driver
MAINTAINERS | 7 + drivers/virtio/Kconfig | 62 ++ drivers/virtio/Makefile | 5 + drivers/virtio/virtio_rtc_arm.c | 22 + drivers/virtio/virtio_rtc_class.c | 269 +++++ drivers/virtio/virtio_rtc_driver.c | 1357 ++++++++++++++++++++++++++ drivers/virtio/virtio_rtc_internal.h | 122 +++ drivers/virtio/virtio_rtc_ptp.c | 342 +++++++ include/uapi/linux/virtio_rtc.h | 230 +++++ kernel/time/timekeeping.c | 24 +- 10 files changed, 2428 insertions(+), 12 deletions(-) create mode 100644 drivers/virtio/virtio_rtc_arm.c create mode 100644 drivers/virtio/virtio_rtc_class.c create mode 100644 drivers/virtio/virtio_rtc_driver.c create mode 100644 drivers/virtio/virtio_rtc_internal.h create mode 100644 drivers/virtio/virtio_rtc_ptp.c create mode 100644 include/uapi/linux/virtio_rtc.h
base-commit: 2c41b211d72c1eb350c7629a8c85234fef0d12c1
Signature · 6 lines
2.40.1 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
RFC PATCH v3 1/7 timekeeping: Fix cross-timestamp interpolation on counter wrap
cycle_between() decides whether get_device_system_crosststamp() will interpolate for older counter readings.
cycle_between() yields wrong results for a counter wrap-around where after < before < test, and for the case after < test < before.
Fix the comparison logic.
--- kernel/time/timekeeping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/timekeeping.c +1 -1
@@ -1186,7 +1186,7 @@ static bool cycle_between(u64 before, u64 test, u64 after) {if (test > before && test < after)return true; -if (test < before && before > after) +if (before > after && (test > before || test < after))return true;return false; }
Signature · 1 line
2.40.1
[tip: timers/core] timekeeping: Fix cross-timestamp interpolation on counter wrap
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 84dccadd3e2a3f1a373826ad71e5ced5e76b0c00 Gitweb: https://git.kernel.org/tip/84dccadd3e2a3f1a373826ad71e5ced5e76b0c00 Author: Peter Hilber <[email protected]> AuthorDate: Mon, 18 Dec 2023 08:38:39 +01:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Mon, 19 Feb 2024 12:18:51 +01:00
timekeeping: Fix cross-timestamp interpolation on counter wrap
cycle_between() decides whether get_device_system_crosststamp() will interpolate for older counter readings.
cycle_between() yields wrong results for a counter wrap-around where after < before < test, and for the case after < test < before.
Fix the comparison logic.
--- kernel/time/timekeeping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/time/timekeeping.c +1 -1
@@ -1186,7 +1186,7 @@ static bool cycle_between(u64 before, u64 test, u64 after) {if (test > before && test < after)return true; -if (test < before && before > after) +if (before > after && (test > before || test < after))return true;return false; }
RFC PATCH v3 2/7 timekeeping: Fix cross-timestamp interpolation corner case decision
In reply to Peter HilberThe cycle_between() helper checks if parameter test is in the open interval (before, after). Colloquially speaking, this also applies to the counter wrap-around special case before > after. get_device_system_crosststamp() currently uses cycle_between() at the first call site to decide whether to interpolate for older counter readings.
get_device_system_crosststamp() has the following problem with cycle_between() testing against an open interval: Assume that, by chance, cycles == tk->tkr_mono.cycle_last (in the following, "cycle_last" for brevity). Then, cycle_between() at the first call site, with effective argument values cycle_between(cycle_last, cycles, now), returns false, enabling interpolation. During interpolation, get_device_system_crosststamp() will then call cycle_between() at the second call site (if a history_begin was supplied). The effective argument values are cycle_between(history_begin->cycles, cycles, cycles), since system_counterval.cycles == interval_start == cycles, per the assumption. Due to the test against the open interval, cycle_between() returns false again. This causes get_device_system_crosststamp() to return -EINVAL.
This failure should be avoided, since get_device_system_crosststamp() works both when cycles follows cycle_last (no interpolation), and when cycles precedes cycle_last (interpolation). For the case cycles == cycle_last, interpolation is actually unneeded.
Fix this by changing cycle_between() into timestamp_in_interval(), which now checks against the closed interval, rather than the open interval.
This changes the get_device_system_crosststamp() behavior for three corner cases:
1. Bypass interpolation in the case cycles == tk->tkr_mono.cycle_last, fixing the problem described above.
2. At the first timestamp_in_interval() call site, cycles == now no longer causes failure.
3. At the second timestamp_in_interval() call site, history_begin->cycles == system_counterval.cycles no longer causes failure. adjust_historical_crosststamp() also works for this corner case, where partial_history_cycles == total_history_cycles.
These behavioral changes should not cause any problems.
---
Notes:
v3:
- switch back to v1 style closed interval test (Thomas Gleixner)
- document effect of closed interval test on corner cases
- do not carry "Acked-by: John Stultz <[email protected]>" due to above changes
v2:
- try to clarify problem description (John Stultz)
- simplify fix
kernel/time/timekeeping.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
kernel/time/timekeeping.c +10 -8
@@ -1180,13 +1180,15 @@ static int adjust_historical_crosststamp(struct system_time_snapshot *history, }/* -* cycle_between - true if test occurs chronologically between before and after +* timestamp_in_interval - true if ts is chronologically in [start, end] +* +* True if ts occurs chronologically at or after start, and before or at end. */ -static bool cycle_between (u64 before,u64 test,u64 after) +static bool timestamp_in_interval (u64 start,u64 end,u64 ts) { -if (test > before && test < after) +if (ts >= start && ts <= end)return true; -if (before > after && (test > before || test < after)) +if (start > end && (ts >= start || ts <= end))return true;return false; }
@@ -1247,7 +1249,7 @@ int get_device_system_crosststamp(int (*get_time_fn)*/ now =tk_clock_read (&tk->tkr_mono); interval_start = tk->tkr_mono.cycle_last; -if (!cycle_between (interval_start, cycles, now)) { +if (!timestamp_in_interval (interval_start, now, cycles)) { clock_was_set_seq = tk->clock_was_set_seq; cs_was_changed_seq = tk->cs_was_changed_seq; cycles = interval_start;
@@ -1278,13 +1280,13 @@ int get_device_system_crosststamp(int (*get_time_fn)bool discontinuity;/* -* Check that the counter value occurs after the provided +* Check that the counter value is not before the provided * history reference and that the history doesn't cross a * clocksource change */ if (!history_begin || - !cycle_between (history_begin->cycles, - system_counterval.cycles, cycles) || + !timestamp_in_interval (history_begin->cycles, + cycles, system_counterval.cycles) || history_begin->cs_was_changed_seq != cs_was_changed_seq)return -EINVAL ; partial_history_cycles = cycles - system_counterval.cycles;
Signature · 1 line
2.40.1
[tip: timers/core] timekeeping: Fix cross-timestamp interpolation corner case decision
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 87a41130881995f82f7adbafbfeddaebfb35f0ef Gitweb: https://git.kernel.org/tip/87a41130881995f82f7adbafbfeddaebfb35f0ef Author: Peter Hilber <[email protected]> AuthorDate: Mon, 18 Dec 2023 08:38:40 +01:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Mon, 19 Feb 2024 12:18:51 +01:00
timekeeping: Fix cross-timestamp interpolation corner case decision
The cycle_between() helper checks if parameter test is in the open interval (before, after). Colloquially speaking, this also applies to the counter wrap-around special case before > after. get_device_system_crosststamp() currently uses cycle_between() at the first call site to decide whether to interpolate for older counter readings.
get_device_system_crosststamp() has the following problem with cycle_between() testing against an open interval: Assume that, by chance, cycles == tk->tkr_mono.cycle_last (in the following, "cycle_last" for brevity). Then, cycle_between() at the first call site, with effective argument values cycle_between(cycle_last, cycles, now), returns false, enabling interpolation. During interpolation, get_device_system_crosststamp() will then call cycle_between() at the second call site (if a history_begin was supplied). The effective argument values are cycle_between(history_begin->cycles, cycles, cycles), since system_counterval.cycles == interval_start == cycles, per the assumption. Due to the test against the open interval, cycle_between() returns false again. This causes get_device_system_crosststamp() to return -EINVAL.
This failure should be avoided, since get_device_system_crosststamp() works both when cycles follows cycle_last (no interpolation), and when cycles precedes cycle_last (interpolation). For the case cycles == cycle_last, interpolation is actually unneeded.
Fix this by changing cycle_between() into timestamp_in_interval(), which now checks against the closed interval, rather than the open interval.
This changes the get_device_system_crosststamp() behavior for three corner cases:
1. Bypass interpolation in the case cycles == tk->tkr_mono.cycle_last, fixing the problem described above.
2. At the first timestamp_in_interval() call site, cycles == now no longer causes failure.
3. At the second timestamp_in_interval() call site, history_begin->cycles == system_counterval.cycles no longer causes failure. adjust_historical_crosststamp() also works for this corner case, where partial_history_cycles == total_history_cycles.
These behavioral changes should not cause any problems.
--- kernel/time/timekeeping.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-)
kernel/time/timekeeping.c +10 -8
@@ -1180,13 +1180,15 @@ static int adjust_historical_crosststamp(struct system_time_snapshot *history, }/* -* cycle_between - true if test occurs chronologically between before and after +* timestamp_in_interval - true if ts is chronologically in [start, end] +* +* True if ts occurs chronologically at or after start, and before or at end. */ -static bool cycle_between (u64 before,u64 test,u64 after) +static bool timestamp_in_interval (u64 start,u64 end,u64 ts) { -if (test > before && test < after) +if (ts >= start && ts <= end)return true; -if (before > after && (test > before || test < after)) +if (start > end && (ts >= start || ts <= end))return true;return false; }
@@ -1246,7 +1248,7 @@ int get_device_system_crosststamp(int (*get_time_fn)*/ now =tk_clock_read (&tk->tkr_mono); interval_start = tk->tkr_mono.cycle_last; -if (!cycle_between (interval_start, cycles, now)) { +if (!timestamp_in_interval (interval_start, now, cycles)) { clock_was_set_seq = tk->clock_was_set_seq; cs_was_changed_seq = tk->cs_was_changed_seq; cycles = interval_start;
@@ -1277,13 +1279,13 @@ int get_device_system_crosststamp(int (*get_time_fn)bool discontinuity;/* -* Check that the counter value occurs after the provided +* Check that the counter value is not before the provided * history reference and that the history doesn't cross a * clocksource change */ if (!history_begin || - !cycle_between (history_begin->cycles, - system_counterval.cycles, cycles) || + !timestamp_in_interval (history_begin->cycles, + cycles, system_counterval.cycles) || history_begin->cs_was_changed_seq != cs_was_changed_seq)return -EINVAL ; partial_history_cycles = cycles - system_counterval.cycles;
RFC PATCH v3 3/7 timekeeping: Fix cross-timestamp interpolation for non-x86
In reply to Peter HilberSo far, get_device_system_crosststamp() unconditionally passes system_counterval.cycles to timekeeping_cycles_to_ns(). But when interpolating system time (do_interp == true), system_counterval.cycles is before tkr_mono.cycle_last, contrary to the timekeeping_cycles_to_ns() expectations.
On x86, CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE will mitigate on interpolating, setting delta to 0. With delta == 0, xtstamp->sys_monoraw and xtstamp->sys_realtime are then set to the last update time, as implicitly expected by adjust_historical_crosststamp(). On other architectures, the resulting nonsense xtstamp->sys_monoraw and xtstamp->sys_realtime corrupt the xtstamp (ts) adjustment in adjust_historical_crosststamp().
Fix this by deriving xtstamp->sys_monoraw and xtstamp->sys_realtime from the last update time when interpolating, by using the local variable "cycles". The local variable already has the right value when interpolating, unlike system_counterval.cycles.
---
Notes:
v2:
- simplify fix (John Stultz)
kernel/time/timekeeping.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
kernel/time/timekeeping.c +2 -4
@@ -1262,10 +1262,8 @@ int get_device_system_crosststamp(int (*get_time_fn) tk_core.timekeeper.offs_real); base_raw = tk->tkr_raw.base; - nsec_real =timekeeping_cycles_to_ns (&tk->tkr_mono, - system_counterval.cycles); - nsec_raw =timekeeping_cycles_to_ns (&tk->tkr_raw, - system_counterval.cycles); + nsec_real =timekeeping_cycles_to_ns (&tk->tkr_mono, cycles); + nsec_raw =timekeeping_cycles_to_ns (&tk->tkr_raw, cycles); }while (read_seqcount_retry (&tk_core.seq, seq)); xtstamp->sys_realtime =ktime_add_ns (base_real, nsec_real);
Signature · 1 line
2.40.1
[tip: timers/core] timekeeping: Fix cross-timestamp interpolation for non-x86
The following commit has been merged into the timers/core branch of tip:
The following commit has been merged into the timers/core branch of tip:
Commit-ID: 14274d0bd31b4debf28284604589f596ad2e99f2 Gitweb: https://git.kernel.org/tip/14274d0bd31b4debf28284604589f596ad2e99f2 Author: Peter Hilber <[email protected]> AuthorDate: Mon, 18 Dec 2023 08:38:41 +01:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Mon, 19 Feb 2024 12:18:51 +01:00
timekeeping: Fix cross-timestamp interpolation for non-x86
So far, get_device_system_crosststamp() unconditionally passes system_counterval.cycles to timekeeping_cycles_to_ns(). But when interpolating system time (do_interp == true), system_counterval.cycles is before tkr_mono.cycle_last, contrary to the timekeeping_cycles_to_ns() expectations.
On x86, CONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE will mitigate on interpolating, setting delta to 0. With delta == 0, xtstamp->sys_monoraw and xtstamp->sys_realtime are then set to the last update time, as implicitly expected by adjust_historical_crosststamp(). On other architectures, the resulting nonsense xtstamp->sys_monoraw and xtstamp->sys_realtime corrupt the xtstamp (ts) adjustment in adjust_historical_crosststamp().
Fix this by deriving xtstamp->sys_monoraw and xtstamp->sys_realtime from the last update time when interpolating, by using the local variable "cycles". The local variable already has the right value when interpolating, unlike system_counterval.cycles.
--- kernel/time/timekeeping.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
kernel/time/timekeeping.c +2 -4
@@ -1261,10 +1261,8 @@ int get_device_system_crosststamp(int (*get_time_fn) tk_core.timekeeper.offs_real); base_raw = tk->tkr_raw.base; - nsec_real =timekeeping_cycles_to_ns (&tk->tkr_mono, - system_counterval.cycles); - nsec_raw =timekeeping_cycles_to_ns (&tk->tkr_raw, - system_counterval.cycles); + nsec_real =timekeeping_cycles_to_ns (&tk->tkr_mono, cycles); + nsec_raw =timekeeping_cycles_to_ns (&tk->tkr_raw, cycles); }while (read_seqcount_retry (&tk_core.seq, seq)); xtstamp->sys_realtime =ktime_add_ns (base_real, nsec_real);
RFC PATCH v3 4/7 virtio_rtc: Add module and driver core
In reply to Peter HilberAdd the virtio_rtc module and driver core. The virtio_rtc module implements a driver compatible with the proposed Virtio RTC device specification. The Virtio RTC (Real Time Clock) device provides information about current time. The device can provide different clocks, e.g. for the UTC or TAI time standards, or for physical time elapsed since some past epoch. The driver can read the clocks with simple or more accurate methods.
Implement the core, which interacts with the Virtio RTC device. Apart from this, the core does not expose functionality outside of the virtio_rtc module. A follow-up patch will expose PTP clocks.
Provide synchronous messaging, which is enough for the expected time synchronization use cases through PTP clocks (similar to ptp_kvm) or RTC Class driver.
---
Notes:
v3:
- merge readq and controlq into a single requestq (spec v3)
- don't guard cross-timestamping with feature bit (spec v3)
- pad message headers to 64 bits (spec v3)
- reduce clock id to 16 bits (spec v3)
- change Virtio status codes (spec v3)
- use 'VIRTIO_RTC_REQ_' prefix for request messages (spec v3)
MAINTAINERS | 7 + drivers/virtio/Kconfig | 13 + drivers/virtio/Makefile | 2 + drivers/virtio/virtio_rtc_driver.c | 761 +++++++++++++++++++++++++++ drivers/virtio/virtio_rtc_internal.h | 23 + include/uapi/linux/virtio_rtc.h | 144 +++++ 6 files changed, 950 insertions(+) create mode 100644 drivers/virtio/virtio_rtc_driver.c create mode 100644 drivers/virtio/virtio_rtc_internal.h create mode 100644 include/uapi/linux/virtio_rtc.h
MAINTAINERS +7 -0
@@ -23200,6 +23200,13 @@ S: Maintained F: drivers/nvdimm/nd_virtio.c F: drivers/nvdimm/virtio_pmem.c +VIRTIO RTC DRIVER +M: Peter Hilber <[email protected]> +L: [email protected] +S: Maintained +F: drivers/virtio/virtio_rtc_* +F: include/uapi/linux/virtio_rtc.h + VIRTIO SOUND DRIVER M: Anton Yakovlev <[email protected]> M: "Michael S. Tsirkin" <[email protected]>
drivers/virtio/Kconfig +13 -0
@@ -173,4 +173,17 @@ config VIRTIO_DMA_SHARED_BUFFER This option adds a flavor of dma buffers that are backed by virtio resources. +config VIRTIO_RTC + tristate "Virtio RTC driver" + depends on VIRTIO + depends on PTP_1588_CLOCK_OPTIONAL + help + This driver provides current time from a Virtio RTC device. The driver + provides the time through one or more clocks. + + To compile this code as a module, choose M here: the module will be + called virtio_rtc. + + If unsure, say M. + endif # VIRTIO_MENU
drivers/virtio/Makefile +2 -0
@@ -12,3 +12,5 @@ obj-$(CONFIG_VIRTIO_INPUT) += virtio_input.o obj-$(CONFIG_VIRTIO_VDPA) += virtio_vdpa.o obj-$(CONFIG_VIRTIO_MEM) += virtio_mem.o obj-$(CONFIG_VIRTIO_DMA_SHARED_BUFFER) += virtio_dma_buf.o +obj-$(CONFIG_VIRTIO_RTC) += virtio_rtc.o +virtio_rtc-y := virtio_rtc_driver.o
drivers/virtio/virtio_rtc_driver.c new file +761 -0
761 lines not on this page · raw message
drivers/virtio/virtio_rtc_internal.h new file +23 -0
@@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* +* virtio_rtc internal interfaces +* +* Copyright (C) 2022-2023 OpenSynergy GmbH +*/ + +#ifndef _VIRTIO_RTC_INTERNAL_H_ +#define _VIRTIO_RTC_INTERNAL_H_ + +#include <linux/types.h> + +/* driver core IFs */ + +struct viortc_dev ; + +int viortc_read (struct viortc_dev *viortc,u16 vio_clk_id,u64 *reading); +int viortc_read_cross (struct viortc_dev *viortc,u16 vio_clk_id,u16 hw_counter, +u64 *reading,u64 *cycles); +int viortc_cross_cap (struct viortc_dev *viortc,u16 vio_clk_id,u16 hw_counter, +bool *supported); + +#endif /* _VIRTIO_RTC_INTERNAL_H_ */
include/uapi/linux/virtio_rtc.h new file +144 -0
144 lines not on this page · raw message
Signature · 1 line
2.40.1
RFC PATCH v3 5/7 virtio_rtc: Add PTP clocks
In reply to Peter HilberExpose the virtio_rtc clocks as PTP clocks to userspace, similar to ptp_kvm. virtio_rtc can expose multiple clocks, e.g. a UTC clock and a monotonic clock. Userspace should distinguish different clocks through the name assigned by the driver. A udev rule such as the following can be used to get a symlink /dev/ptp_virtio to the UTC clock:
SUBSYSTEM=="ptp", ATTR{clock_name}=="Virtio PTP UTC", SYMLINK += "ptp_virtio"The preferred PTP clock reading method is ioctl PTP_SYS_OFFSET_PRECISE2, through the ptp_clock_info.getcrosststamp() op. For now, PTP_SYS_OFFSET_PRECISE2 will return -EOPNOTSUPP through a weak function. PTP_SYS_OFFSET_PRECISE2 requires cross-timestamping support for specific clocksources, which will be added in the following. If the clocksource specific code is enabled, check that the Virtio RTC device supports the respective HW counter before obtaining an actual cross-timestamp from the Virtio device.
The Virtio RTC device response time may be higher than the timekeeper seqcount increment interval. Therefore, obtain the cross-timestamp before calling get_device_system_crosststamp().
As a fallback, support the ioctl PTP_SYS_OFFSET_EXTENDED2 for all platforms.
Assume that concurrency issues during PTP clock removal are avoided by the posix_clock framework.
Kconfig recursive dependencies prevent virtio_rtc from implicitly enabling PTP_1588_CLOCK, therefore just warn the user if PTP_1588_CLOCK is not available. Since virtio_rtc should in the future also expose clocks as RTC class devices, do not have VIRTIO_RTC depend on PTP_1588_CLOCK.
---
Notes:
v3:
- don't guard cross-timestamping with feature bit (spec v3)
- reduce clock id to 16 bits (spec v3)
v2:
- Depend on prerequisite patch series "treewide: Use clocksource id for get_device_system_crosststamp()".
- Check clocksource id before sending crosststamp message to device.
- Do not support multiple hardware counters at runtime any more, since distinction of Arm physical and virtual counter appears unneeded after discussion with Marc Zyngier.
drivers/virtio/Kconfig | 23 +- drivers/virtio/Makefile | 1 + drivers/virtio/virtio_rtc_driver.c | 131 +++++++++- drivers/virtio/virtio_rtc_internal.h | 46 ++++ drivers/virtio/virtio_rtc_ptp.c | 342 +++++++++++++++++++++++++++ 5 files changed, 539 insertions(+), 4 deletions(-) create mode 100644 drivers/virtio/virtio_rtc_ptp.c
drivers/virtio/Kconfig +22 -1
@@ -179,11 +179,32 @@ config VIRTIO_RTC depends on PTP_1588_CLOCK_OPTIONAL help This driver provides current time from a Virtio RTC device. The driver - provides the time through one or more clocks. + provides the time through one or more clocks. The Virtio RTC PTP + clocks must be enabled to expose the clocks to userspace. To compile this code as a module, choose M here: the module will be called virtio_rtc. If unsure, say M. +if VIRTIO_RTC + +comment "WARNING: Consider enabling VIRTIO_RTC_PTP." + depends on !VIRTIO_RTC_PTP + +comment "Enable PTP_1588_CLOCK in order to enable VIRTIO_RTC_PTP." + depends on PTP_1588_CLOCK=n + +config VIRTIO_RTC_PTP + bool "Virtio RTC PTP clocks" + default y + depends on PTP_1588_CLOCK + help + This exposes any Virtio RTC clocks as PTP Hardware Clocks (PHCs) to + userspace. + + If unsure, say Y. + +endif # VIRTIO_RTC + endif # VIRTIO_MENU
drivers/virtio/Makefile +1 -0
@@ -14,3 +14,4 @@ obj-$(CONFIG_VIRTIO_MEM) += virtio_mem.o obj-$(CONFIG_VIRTIO_DMA_SHARED_BUFFER) += virtio_dma_buf.o obj-$(CONFIG_VIRTIO_RTC) += virtio_rtc.o virtio_rtc-y := virtio_rtc_driver.o +virtio_rtc-$(CONFIG_VIRTIO_RTC_PTP) += virtio_rtc_ptp.o
drivers/virtio/virtio_rtc_driver.c +128 -3
166 lines not on this page · raw message
drivers/virtio/virtio_rtc_internal.h +46 -0
56 lines not on this page · raw message
drivers/virtio/virtio_rtc_ptp.c new file +342 -0
342 lines not on this page · raw message
Signature · 1 line
2.40.1
David Woodhouse
maintainerRe: [RFC PATCH v3 5/7] virtio_rtc: Add PTP clocks
Quoted 8 lines · Peter Hilber
+ ret =
viortc_hw_xtstamp_params(&hw_counter, &cs_id); + if (ret)
+ return ret;
+
+ ktime_get_snapshot(&history_begin);
+ if (history_begin.cs_id !=cs_id)
+ return-EOPNOTSUPP;
I think you have to call ktime_get_snapshot() anyway to get a snapshot from before your crosststamp? But I still don't much like the fact that you need to use it to work out which cs_id is being used.
Shouldn't get_device_system_crosststamp() pass that to its get_time_fn as a hint?
On x86, you are likely to find that history_begin.cs_id is the KVM clock, so this will return -EOPNOTSUPP and userspace will have to fall back to PTP_SYS_OFFSET. I note the KVM PTP clock actually *converts* a TSC-based crosststamp to kvmclock µs for itself, so that it can report *cs_id = CSID_X86_KVM_CLK. Not sure how I feel about that though. I'm inclined to suggest that it shouldn't, as anyone who wants accurate timekeeping shouldn't be using the KVM clock anyway.
But we should at least be relatively consistent about it.
Re: [RFC PATCH v3 5/7] virtio_rtc: Add PTP clocks
Quoted 10 lines · David Woodhouse
drivers/virtio/virtio_rtc_ptp.c line 145
Quoted 8 lines · Peter Hilber
drivers/virtio/virtio_rtc_ptp.c new file +7
-0+ ret =viortc_hw_xtstamp_params (&hw_counter, &cs_id); +if (ret) +return ret; + +ktime_get_snapshot (&history_begin); +if (history_begin.cs_id != cs_id) +return -EOPNOTSUPP ;
Quoted 3 lines
I think you have to call
ktime_get_snapshot()anyway to get a snapshot from before your crosststamp? But I still don't much like the fact that you need to use it to work out whichcs_idis being used.
The actual cs_id check is in get_device_system_crosststamp(), where it was added recently [1]. So this additional check is just verifying that the history_begin is usable.
Quoted 3 lines
Shouldn't
get_device_system_crosststamp()pass that to itsget_time_fnas a hint?
This is unneeded in this case, since get_device_system_crosststamp() does the check already (but the driver is free to pass it through the get_time_fn parameter ctx).
Quoted 10 lines
On x86, you are likely to find that history_begin.cs_id is the KVM clock, so this will return
-EOPNOTSUPPand userspace will have to fall back toPTP_SYS_OFFSET. I note the KVM PTP clock actually *converts* a TSC-based crosststamp to kvmclock µs for itself, so that it can report*cs_id=CSID_X86_KVM_CLK. Not sure how I feel about that though. I'm inclined to suggest that it shouldn't, as anyone who wants accurate timekeeping shouldn't be using the KVM clock anyway.But we should at least be relatively consistent about it.
ATM, the driver does indeed not have TSC support (for cross-timestamping) enabled at all, so would always use fallback. If *not* using the KVM clock, I think TSC can just be enabled by adding architecture-specific code similar to virtio_rtc_arm.c.
I am not familiar with the KVM clock, but maybe it would be sufficient to allow CSID_X86_KVM_CLK as well?
Thanks for the comments,
Peter
David Woodhouse
maintainerRe: [RFC PATCH v3 5/7] virtio_rtc: Add PTP clocks
Quoted 19 lines · Peter Hilber
Quoted 10 lines · David Woodhouse
Quoted 8 lines · Peter Hilber
+ ret =
viortc_hw_xtstamp_params(&hw_counter, &cs_id); + if (ret)
+ return ret;
+
+ktime_get_snapshot(&history_begin);
+ if (history_begin.cs_id !=cs_id)
+ return-EOPNOTSUPP;Quoted 3 lines
I think you have to call
ktime_get_snapshot()anyway to get a snapshot from before your crosststamp? But I still don't much like the fact that you need to use it to work out whichcs_idis being used.The actual
cs_idcheck is inget_device_system_crosststamp(), where it was added recently [1]. So this additional check is just verifying that thehistory_beginis usable.
Quoted 6 lines
Quoted 2 lines
Shouldn't
get_device_system_crosststamp()pass that to itsget_time_fnas a hint?This is unneeded in this case, since
get_device_system_crosststamp()does the check already (but the driver is free to pass it through theget_time_fnparameter ctx).
The *check* is a different thing.
As things stand, the device has to *choose* a cs_id to use, and takes a gamble on that check in get_device_system_crosststamp() throwing the crosststamp away with -ENODEV because the device picked the wrong cs_id.
That's why I'm saying it would be nicer if the core code *told* the device what cs_id to use. Rather than just throwing it away if the device guesses wrong.
(Yes, it would have to be considered a hint, because it could theoretically have *changed* by the time the result is obtained, just as with your code above.)
Quoted 11 lines
Quoted 10 lines
On x86, you are likely to find that history_begin.cs_id is the KVM clock, so this will return
-EOPNOTSUPPand userspace will have to fall back toPTP_SYS_OFFSET. I note the KVM PTP clock actually *converts* a TSC-based crosststamp to kvmclock µs for itself, so that it can report*cs_id=CSID_X86_KVM_CLK. Not sure how I feel about that though. I'm inclined to suggest that it shouldn't, as anyone who wants accurate timekeeping shouldn't be using the KVM clock anyway.But we should at least be relatively consistent about it.
Quoted 7 lines
ATM, the driver does indeed not have TSC support (for cross-timestamping) enabled at all, so would always use fallback. If *not* using the KVM clock, I think TSC can just be enabled by adding architecture-specific code similar to
virtio_rtc_arm.c.I am not familiar with the KVM clock, but maybe it would be sufficient to allow
CSID_X86_KVM_CLKas well?
Sure, that's what the ptp_kvm clock does. It actually obtains a TSC reading from the "hardware", and then manually (and unconditionally) converts that to a kvmclock value so that it can return a clock pairing based on CSID_X86_KVM_CLK.
Which works until the user configures the clocksource to be the TSC instead of kvmclock, and then hits that -ENODEV check and has to do the fallback.
We should just tell the device which cs_id to use.
RFC PATCH v3 6/7 virtio_rtc: Add Arm Generic Timer cross-timestamping
In reply to Peter HilberAdd PTP_SYS_OFFSET_PRECISE2 support on platforms using the Arm Generic Timer.
Always report the CP15 virtual counter as the HW counter in use by arm_arch_timer, since the Linux kernel's usage of the Arm Generic Timer should always be compatible with this.
---
Notes:
v2:
- Depend on prerequisite patch series "treewide: Use clocksource id for get_device_system_crosststamp()".
- Return clocksource id instead of calling dropped arm_arch_timer helpers.
- Always report the CP15 virtual counter to be in use by arm_arch_timer, since distinction of Arm physical and virtual counter appears unneeded after discussion with Marc Zyngier.
drivers/virtio/Kconfig | 13 +++++++++++++ drivers/virtio/Makefile | 1 + drivers/virtio/virtio_rtc_arm.c | 22 ++++++++++++++++++++++ 3 files changed, 36 insertions(+) create mode 100644 drivers/virtio/virtio_rtc_arm.c
drivers/virtio/Kconfig +13 -0
@@ -205,6 +205,19 @@ config VIRTIO_RTC_PTP If unsure, say Y. +config VIRTIO_RTC_ARM + bool "Virtio RTC cross-timestamping using Arm Generic Timer" + default y + depends on VIRTIO_RTC_PTP && ARM_ARCH_TIMER + help + This enables Virtio RTC cross-timestamping using the Arm Generic Timer. + It only has an effect if the Virtio RTC device also supports this. The + cross-timestamp is available through the PTP clock driver precise + cross-timestamp ioctl (PTP_SYS_OFFSET_PRECISE2 or + PTP_SYS_OFFSET_PRECISE). + + If unsure, say Y. + endif # VIRTIO_RTC endif # VIRTIO_MENU
drivers/virtio/Makefile +1 -0
@@ -15,3 +15,4 @@ obj-$(CONFIG_VIRTIO_DMA_SHARED_BUFFER) += virtio_dma_buf.o obj-$(CONFIG_VIRTIO_RTC) += virtio_rtc.o virtio_rtc-y := virtio_rtc_driver.o virtio_rtc-$(CONFIG_VIRTIO_RTC_PTP) += virtio_rtc_ptp.o +virtio_rtc-$(CONFIG_VIRTIO_RTC_ARM) += virtio_rtc_arm.o
drivers/virtio/virtio_rtc_arm.c new file +22 -0
@@ -0,0 +1,22 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +/* +* Provides cross-timestamp params for Arm. +* +* Copyright (C) 2022-2023 OpenSynergy GmbH +*/ + +#include <linux/clocksource_ids.h> + +#include <uapi/linux/virtio_rtc.h> + +#include "virtio_rtc_internal.h" + +/* see header for doc */ + +int viortc_hw_xtstamp_params (u16 *hw_counter,enum clocksource_ids *cs_id) +{ + *hw_counter =VIRTIO_RTC_COUNTER_ARM_VIRT ; + *cs_id =CSID_ARM_ARCH_COUNTER ; + +return 0 ; +}
Signature · 6 lines
2.40.1 --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
David Woodhouse
maintainerRe: [RFC PATCH v3 6/7] virtio_rtc: Add Arm Generic Timer cross-timestamping
drivers/virtio/virtio_rtc_arm.c line 18
Quoted 4 lines · Peter Hilber
drivers/virtio/virtio_rtc_arm.c new file +3
-0+int viortc_hw_xtstamp_params (u16 *hw_counter,enum clocksource_ids *cs_id) +{ + *hw_counter = VIRTIO_RTC_COUNTER_ARM_VIRT;
Hm, but what if it isn't? I think you need to put this in drivers/clocksource/arm_arch_timer.c where it can do something like kvm_arch_ptp_get_crosststamp() does to decide:
if (arch_timer_uses_ppi == ARCH_TIMER_VIRT_PPI)
ptp_counter = KVM_PTP_VIRT_COUNTER;
else
ptp_counter = KVM_PTP_PHYS_COUNTER;Quoted 4 lines
+ *cs_id =
CSID_ARM_ARCH_COUNTER;drivers/virtio/virtio_rtc_arm.c new file +3
-0+ + return 0; +}
Re: [RFC PATCH v3 6/7] virtio_rtc: Add Arm Generic Timer cross-timestamping
Changing virtio-dev address to the new one.
Quoted 16 lines · David Woodhouse
drivers/virtio/virtio_rtc_arm.c line 18
Quoted 4 lines · Peter Hilber
drivers/virtio/virtio_rtc_arm.c new file +3
-0+int viortc_hw_xtstamp_params (u16 *hw_counter,enum clocksource_ids *cs_id) +{ + *hw_counter =VIRTIO_RTC_COUNTER_ARM_VIRT ;Hm, but what if it isn't? I think you need to put this in
drivers/clocksource/arm_arch_timer.cwhere it can do something likekvm_arch_ptp_get_crosststamp()does to decide:if (arch_timer_uses_ppi == ARCH_TIMER_VIRT_PPI) ptp_counter = KVM_PTP_VIRT_COUNTER; else ptp_counter = KVM_PTP_PHYS_COUNTER;
Quoted 5 lines
drivers/virtio/virtio_rtc_arm.c line 22
Quoted 4 lines
drivers/virtio/virtio_rtc_arm.c new file +4
-0+ *cs_id =CSID_ARM_ARCH_COUNTER ; + +return 0 ; +}
I had such a check in v1, but Marc Zyngier didn't like the distinction [1, 2] - maybe also exposing the timer through a generic helper was not desired. Quoting from [2]:
Quoted 11 lines
Quoted 4 lines
This was the rationale to come up with the physical/virtual counter distinction for the Virtio RTC device. Looking at extensions such as
FEAT_ECV, where theCNTPCT_EL0value can depend on the EL, or FEAT_NV*, it might be a bit simplistic.Not just simplistic. It doesn't make sense. For this to work, you'd need to know the global offset that KVM applies to the global counter, plus the *virtualised* CNTPOFF/CNTVOFF values that the guest can change at any time on a *per-CPU* basis. None of that is available outside of KVM, nor would it make any sense anyway.
Quoted 8 lines
Quoted 3 lines
Does this physical/virtual counter distinction sound like a good idea? Otherwise I would drop the
arch_timer_counter_get_type()in the next iteration.My take on this is that only the global counter value makes any sense. That value is already available from the host as the virtual counter, because we guarantee that CNTVOFF is 0 when outside of the guest (well, technically, outside of the vcpu_load/vcpu_put section).
So I put the assumption that the virtual counter will always be the right choice for current Linux kernels, from the Virtio device POV.
Thanks for the comment,
Peter
[1] https://lore.kernel.org/lkml/[email protected]/T/#ma8d596de1cbc8f4a78a18b2aa995db18423494a7
[2] https://lore.kernel.org/lkml/[email protected]/T/#m65fa1d715933360498c4e33d7225e4220215a9d6
RFC PATCH v3 7/7 virtio_rtc: Add RTC class driver
In reply to Peter HilberExpose the virtio-rtc UTC clock as an RTC clock to userspace, if it is present. Support RTC alarm if the virtio-rtc alarm feature is present. The virtio-rtc device signals an alarm by marking an alarmq buffer as used.
Peculiarities
-------------
A virtio-rtc clock is a bit special for an RTC clock in that
- the clock may step (also backwards) autonomously at any time and
- the device, and its notification mechanism, will be reset during boot or resume from sleep.
The virtio-rtc device avoids that the driver might miss an alarm. The device signals an alarm whenever the clock has reached or passed the alarm time, and also when the device is reset (on boot or resume from sleep), if the alarm time is in the past.
Open Issue
----------
The CLOCK_BOOTTIME_ALARM will use the RTC clock to wake up from sleep, and implicitly assumes that no RTC clock steps will occur during sleep. The RTC class driver does not know whether the current alarm is a real-time alarm or a boot-time alarm.
Perhaps this might be handled by the driver also setting a virtio-rtc monotonic alarm (which uses a clock similar to CLOCK_BOOTTIME_ALARM). The virtio-rtc monotonic alarm would just be used to wake up in case it was a CLOCK_BOOTTIME_ALARM alarm.
Otherwise, the behavior should not differ from other RTC class drivers.
---
Notes:
Added in v3.
drivers/virtio/Kconfig | 21 +- drivers/virtio/Makefile | 1 + drivers/virtio/virtio_rtc_class.c | 269 +++++++++++++++ drivers/virtio/virtio_rtc_driver.c | 477 ++++++++++++++++++++++++++- drivers/virtio/virtio_rtc_internal.h | 53 +++ include/uapi/linux/virtio_rtc.h | 88 ++++- 6 files changed, 902 insertions(+), 7 deletions(-) create mode 100644 drivers/virtio/virtio_rtc_class.c
drivers/virtio/Kconfig +18 -3
@@ -180,7 +180,8 @@ config VIRTIO_RTC help This driver provides current time from a Virtio RTC device. The driver provides the time through one or more clocks. The Virtio RTC PTP - clocks must be enabled to expose the clocks to userspace. + clocks and/or the Real Time Clock driver for Virtio RTC must be + enabled to expose the clocks to userspace. To compile this code as a module, choose M here: the module will be called virtio_rtc.
@@ -189,8 +190,8 @@ config VIRTIO_RTC if VIRTIO_RTC -comment "WARNING: Consider enabling VIRTIO_RTC_PTP." - depends on !VIRTIO_RTC_PTP +comment "WARNING: Consider enabling VIRTIO_RTC_PTP and/or VIRTIO_RTC_CLASS." + depends on !VIRTIO_RTC_PTP && !VIRTIO_RTC_CLASS comment "Enable PTP_1588_CLOCK in order to enable VIRTIO_RTC_PTP." depends on PTP_1588_CLOCK=n
@@ -218,6 +219,20 @@ config VIRTIO_RTC_ARM If unsure, say Y. +comment "Enable RTC_CLASS in order to enable VIRTIO_RTC_CLASS." + depends on RTC_CLASS=n + +config VIRTIO_RTC_CLASS + bool "Real Time Clock driver for Virtio RTC" + default y + depends on RTC_CLASS + help + This exposes the Virtio RTC UTC clock as a Linux Real Time Clock. It + only has an effect if the Virtio RTC device has a UTC clock. The Real + Time Clock is read-only, and may support setting an alarm. + + If unsure, say Y. + endif # VIRTIO_RTC endif # VIRTIO_MENU
drivers/virtio/Makefile +1 -0
@@ -16,3 +16,4 @@ obj-$(CONFIG_VIRTIO_RTC) += virtio_rtc.o virtio_rtc-y := virtio_rtc_driver.o virtio_rtc-$(CONFIG_VIRTIO_RTC_PTP) += virtio_rtc_ptp.o virtio_rtc-$(CONFIG_VIRTIO_RTC_ARM) += virtio_rtc_arm.o +virtio_rtc-$(CONFIG_VIRTIO_RTC_CLASS) += virtio_rtc_class.o
drivers/virtio/virtio_rtc_class.c new file +269 -0
269 lines not on this page · raw message
drivers/virtio/virtio_rtc_driver.c +474 -3
622 lines not on this page · raw message
drivers/virtio/virtio_rtc_internal.h +53 -0
71 lines not on this page · raw message
include/uapi/linux/virtio_rtc.h +87 -1
130 lines not on this page · raw message
Signature · 1 line
2.40.1
Alexandre Belloni
maintainerRe: [RFC PATCH v3 7/7] virtio_rtc: Add RTC class driver
Hello,
I'll start by saying that I'm sorry, I have a very very high level knowledge about what virtio is.
Quoted 27 lines · Peter Hilber
Expose the virtio-rtc UTC clock as an RTC clock to userspace, if it is present. Support RTC alarm if the virtio-rtc alarm feature is present. The virtio-rtc device signals an alarm by marking an alarmq buffer as used.
Peculiarities
-------------A virtio-rtc clock is a bit special for an RTC clock in that
- the clock may step (also backwards) autonomously at any time and
- the device, and its notification mechanism, will be reset during boot or resume from sleep.
The virtio-rtc device avoids that the driver might miss an alarm. The device signals an alarm whenever the clock has reached or passed the alarm time, and also when the device is reset (on boot or resume from sleep), if the alarm time is in the past.
Open Issue
----------The
CLOCK_BOOTTIME_ALARMwill use the RTC clock to wake up from sleep, and implicitly assumes that no RTC clock steps will occur during sleep. The RTC class driver does not know whether the current alarm is a real-time alarm or a boot-time alarm.
Quoted 7 lines
Perhaps this might be handled by the driver also setting a virtio-rtc monotonic alarm (which uses a clock similar to
CLOCK_BOOTTIME_ALARM). The virtio-rtc monotonic alarm would just be used to wake up in case it was aCLOCK_BOOTTIME_ALARMalarm.Otherwise, the behavior should not differ from other RTC class drivers.
What I don't quite get is how this is actually related to RTCs. This would be a super imprecise mechanism to get the current time and date from the host to the guest which is what I think your are trying to do, especially since this is not supporting UIE.
The host system clock may come from reading the RTC at some point in time but more likely from another source so is it really the best synchronization mechanism?
The other thing is that I don't quite get the point of the RTC alarm versus a regular timer in this context.
[...]
Quoted 11 lines
drivers/virtio/virtio_rtc_class.c new file +11
-0+static const struct rtc_class_ops viortc_class_with_alarm_ops = { + .read_time = viortc_class_read_time, + .read_alarm = viortc_class_read_alarm, + .set_alarm = viortc_class_set_alarm, + .alarm_irq_enable = viortc_class_alarm_irq_enable, +}; + +static const struct rtc_class_ops viortc_class_no_alarm_ops = { + .read_time = viortc_class_read_time, +}; +
[...]
Quoted 25 lines
drivers/virtio/virtio_rtc_class.c new file +25
-0+/** +/** +* viortc_class_init() - init RTC class wrapper and device +* @viortc: device data +* @vio_clk_id: virtio_rtc clock id +* @have_alarm: expose alarm ops +* @parent_dev: virtio device +* +* Context: Process context. +* Return: RTC class wrapper on success, ERR_PTR otherwise. +*/ +struct viortc_class *viortc_class_init (struct viortc_dev *viortc, +u16 vio_clk_id,bool have_alarm, +struct device *parent_dev) +{ +struct viortc_class *viortc_class; +struct rtc_device *rtc; + + viortc_class = +devm_kzalloc (parent_dev,sizeof (*viortc_class),GFP_KERNEL ); +if (!viortc_class) +return ERR_PTR (-ENOMEM ); + + viortc_class->viortc = viortc; +
drivers/virtio/virtio_rtc_class.c line 265
Quoted 10 lines
drivers/virtio/virtio_rtc_class.c new file +10
-0+ rtc =devm_rtc_allocate_device (parent_dev); +if (IS_ERR (rtc)) +return ERR_PTR (PTR_ERR (rtc)); + + viortc_class->rtc = rtc; + +clear_bit (RTC_FEATURE_UPDATE_INTERRUPT , rtc->features); + + rtc->ops = have_alarm ? &viortc_class_with_alarm_ops : + &viortc_class_no_alarm_ops;
Don't do this, simply clear the alarm feature.
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [RFC PATCH v3 7/7] virtio_rtc: Add RTC class driver
Quoted 50 lines · Alexandre Belloni
Hello,
I'll start by saying that I'm sorry, I have a very very high level knowledge about what virtio is.
Quoted 34 lines · Peter Hilber
Expose the virtio-rtc UTC clock as an RTC clock to userspace, if it is present. Support RTC alarm if the virtio-rtc alarm feature is present. The
virtio-rtc device signals an alarm by marking an alarmq buffer as used.Peculiarities
-------------A virtio-rtc clock is a bit special for an RTC clock in that
- the clock may step (also backwards) autonomously at any time and
- the device, and its notification mechanism, will be reset during boot or
resume from sleep.The virtio-rtc device avoids that the driver might miss an alarm. The device signals an alarm whenever the clock has reached or passed the alarm
time, and also when the device is reset (on boot or resume from sleep), if
the alarm time is in the past.Open Issue
----------The
CLOCK_BOOTTIME_ALARMwill use the RTC clock to wake up from sleep, and
implicitly assumes that no RTC clock steps will occur during sleep. The RTC
class driver does not know whether the current alarm is a real-time alarm
or a boot-time alarm.Quoted 9 lines
Perhaps this might be handled by the driver also setting a virtio-rtc monotonic alarm (which uses a clock similar to
CLOCK_BOOTTIME_ALARM). The
virtio-rtc monotonic alarm would just be used to wake up in case it was aCLOCK_BOOTTIME_ALARMalarm.Otherwise, the behavior should not differ from other RTC class drivers.
Quoted 7 lines
What I don't quite get is how this is actually related to RTCs. This would be a super imprecise mechanism to get the current time and date from the host to the guest which is what I think your are trying to do, especially since this is not supporting UIE.
The host system clock may come from reading the RTC at some point in time but more likely from another source so is it really the best synchronization mechanism?
Hello,
thank you for your comments.
The main motivation to have the RTC class driver is the RTC alarm (discussed below).
As for synchronization, virtio_rtc also offers a PTP clock [1] which will be more precise, but which needs a user space daemon. As for RTC-based initial synchronization, my idea was to propose, in a second step, an optional op for rtc_class_ops, which would read the clock with nanosecond precision. This optional op could then be used in rtc_hctosys(), so there would be no need for UIE waiting.
[1] https://lore.kernel.org/all/[email protected]/
Quoted 3 lines
The other thing is that I don't quite get the point of the RTC alarm versus a regular timer in this context.
RTC alarms allow to resume from suspend and poweroff (esp. also through alarmtimers), which is of interest in embedded virtualization. In my understanding RTC is ATM the only way to do this.
(I was indeed thinking about adding an alternate alarmtimer backend for CLOCK_BOOTTIME_ALARM, which should deal with the CLOCK_REALTIME_ALARM vs CLOCK_BOOTTIME_ALARM issue which is described in the commit message.)
Quoted 48 lines
[...]
Quoted 11 lines
drivers/virtio/virtio_rtc_class.c new file +11
-0+static const struct rtc_class_ops viortc_class_with_alarm_ops = { + .read_time = viortc_class_read_time, + .read_alarm = viortc_class_read_alarm, + .set_alarm = viortc_class_set_alarm, + .alarm_irq_enable = viortc_class_alarm_irq_enable, +}; + +static const struct rtc_class_ops viortc_class_no_alarm_ops = { + .read_time = viortc_class_read_time, +}; +[...]
Quoted 30 lines
drivers/virtio/virtio_rtc_class.c new file +20
-0+/** +/** +* viortc_class_init() - init RTC class wrapper and device +* @viortc: device data +* @vio_clk_id: virtio_rtc clock id +* @have_alarm: expose alarm ops +* @parent_dev: virtio device +* +* Context: Process context. +* Return: RTC class wrapper on success, ERR_PTR otherwise. +*/ +struct viortc_class *viortc_class_init (struct viortc_dev *viortc, +u16 vio_clk_id,bool have_alarm, +struct device *parent_dev) +{ +struct viortc_class *viortc_class; +struct rtc_device *rtc; + + viortc_class = + devm_kzalloc(parent_dev, sizeof(*viortc_class),
GFP_KERNEL);drivers/virtio/virtio_rtc_class.c new file +9
-0+if (!viortc_class) +return ERR_PTR (-ENOMEM ); + + viortc_class->viortc = viortc; + + rtc =devm_rtc_allocate_device (parent_dev); +if (IS_ERR (rtc)) +return ERR_PTR (PTR_ERR (rtc)); +
Quoted 9 lines
drivers/virtio/virtio_rtc_class.c line 265
Quoted 6 lines
drivers/virtio/virtio_rtc_class.c new file +6
-0+ viortc_class->rtc = rtc; + +clear_bit (RTC_FEATURE_UPDATE_INTERRUPT , rtc->features); + + rtc->ops = have_alarm ? &viortc_class_with_alarm_ops : + &viortc_class_no_alarm_ops;Don't do this, simply clear the alarm feature.
OK (sorry, was obviously very inelegant).
Best regards,
Peter
Alexandre Belloni
maintainerRe: [RFC PATCH v3 7/7] virtio_rtc: Add RTC class driver
Quoted 25 lines · Peter Hilber
Quoted 10 lines
Quoted 9 lines
Perhaps this might be handled by the driver also setting a virtio-rtc monotonic alarm (which uses a clock similar to
CLOCK_BOOTTIME_ALARM). The
virtio-rtc monotonic alarm would just be used to wake up in case it was aCLOCK_BOOTTIME_ALARMalarm.Otherwise, the behavior should not differ from other RTC class drivers.
Quoted 7 lines
What I don't quite get is how this is actually related to RTCs. This would be a super imprecise mechanism to get the current time and date from the host to the guest which is what I think your are trying to do, especially since this is not supporting UIE.
The host system clock may come from reading the RTC at some point in time but more likely from another source so is it really the best synchronization mechanism?Hello,
thank you for your comments.
The main motivation to have the RTC class driver is the RTC alarm (discussed below).
Quoted 6 lines
As for synchronization,
virtio_rtcalso offers a PTP clock [1] which will be more precise, but which needs a user space daemon. As for RTC-based initial synchronization, my idea was to propose, in a second step, an optional op forrtc_class_ops, which would read the clock with nanosecond precision. This optional op could then be used inrtc_hctosys(), so there would be no need for UIE waiting.
This would be a clear NAK, rtc_hctosys should use UIE to have proper synchronisation. It currently does a very bad job reading the RTC and it is a pity it has been mandated by systemd as useerspace is definitively better placed to set the system time. I'm still very tempted delaying everyone's boot by one second and make rtc_hctosys precise for all the supported HW and not just a single driver.
Quoted 6 lines
[1] https://lore.kernel.org/all/[email protected]/
Quoted 3 lines
The other thing is that I don't quite get the point of the RTC alarm versus a regular timer in this context.
Quoted 8 lines
RTC alarms allow to resume from suspend and poweroff (esp. also through alarmtimers), which is of interest in embedded virtualization. In my understanding RTC is ATM the only way to do this.
(I was indeed thinking about adding an alternate alarmtimer backend for
CLOCK_BOOTTIME_ALARM, which should deal with theCLOCK_REALTIME_ALARMvsCLOCK_BOOTTIME_ALARMissue which is described in the commit message.)
Right but this seems like a super convoluted way of getting the host to wakeup the guest...
Quoted 63 lines
Quoted 48 lines
[...]
Quoted 11 lines
drivers/virtio/virtio_rtc_class.c new file +11
-0+static const struct rtc_class_ops viortc_class_with_alarm_ops = { + .read_time = viortc_class_read_time, + .read_alarm = viortc_class_read_alarm, + .set_alarm = viortc_class_set_alarm, + .alarm_irq_enable = viortc_class_alarm_irq_enable, +}; + +static const struct rtc_class_ops viortc_class_no_alarm_ops = { + .read_time = viortc_class_read_time, +}; +[...]
Quoted 30 lines
drivers/virtio/virtio_rtc_class.c new file +20
-0+/** +/** +* viortc_class_init() - init RTC class wrapper and device +* @viortc: device data +* @vio_clk_id: virtio_rtc clock id +* @have_alarm: expose alarm ops +* @parent_dev: virtio device +* +* Context: Process context. +* Return: RTC class wrapper on success, ERR_PTR otherwise. +*/ +struct viortc_class *viortc_class_init (struct viortc_dev *viortc, +u16 vio_clk_id,bool have_alarm, +struct device *parent_dev) +{ +struct viortc_class *viortc_class; +struct rtc_device *rtc; + + viortc_class = + devm_kzalloc(parent_dev, sizeof(*viortc_class),
GFP_KERNEL);drivers/virtio/virtio_rtc_class.c new file +9
-0+if (!viortc_class) +return ERR_PTR (-ENOMEM ); + + viortc_class->viortc = viortc; + + rtc =devm_rtc_allocate_device (parent_dev); +if (IS_ERR (rtc)) +return ERR_PTR (PTR_ERR (rtc)); +Quoted 9 lines
drivers/virtio/virtio_rtc_class.c line 265
Quoted 6 lines
drivers/virtio/virtio_rtc_class.c new file +6
-0+ viortc_class->rtc = rtc; + +clear_bit (RTC_FEATURE_UPDATE_INTERRUPT , rtc->features); + + rtc->ops = have_alarm ? &viortc_class_with_alarm_ops : + &viortc_class_no_alarm_ops;Don't do this, simply clear the alarm feature.
OK (sorry, was obviously very inelegant).
Best regards,
Peter
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Re: [RFC PATCH v3 7/7] virtio_rtc: Add RTC class driver
Quoted 33 lines · Alexandre Belloni
Quoted 25 lines · Peter Hilber
Quoted 10 lines
Quoted 9 lines
Perhaps this might be handled by the driver also setting a virtio-rtc monotonic alarm (which uses a clock similar to
CLOCK_BOOTTIME_ALARM). The
virtio-rtc monotonic alarm would just be used to wake up in case it was aCLOCK_BOOTTIME_ALARMalarm.Otherwise, the behavior should not differ from other RTC class drivers.
Quoted 7 lines
What I don't quite get is how this is actually related to RTCs. This would be a super imprecise mechanism to get the current time and date from the host to the guest which is what I think your are trying to do, especially since this is not supporting UIE.
The host system clock may come from reading the RTC at some point in time but more likely from another source so is it really the best synchronization mechanism?Hello,
thank you for your comments.
The main motivation to have the RTC class driver is the RTC alarm (discussed below).
Quoted 6 lines
As for synchronization,
virtio_rtcalso offers a PTP clock [1] which will be more precise, but which needs a user space daemon. As for RTC-based initial synchronization, my idea was to propose, in a second step, an optional op forrtc_class_ops, which would read the clock with nanosecond precision. This optional op could then be used inrtc_hctosys(), so there would be no need for UIE waiting.
Quoted 7 lines
This would be a clear NAK,
rtc_hctosysshould use UIE to have proper synchronisation. It currently does a very bad job reading the RTC and it is a pity it has been mandated by systemd as useerspace is definitively better placed to set the system time. I'm still very tempted delaying everyone's boot by one second and makertc_hctosysprecise for all the supported HW and not just a single driver.
OK. I plan to add a PPS feature to virtio_rtc so that it can support UIE. AFAIU this is not required for the initial driver version.
Thanks for the comments,
Peter
[...]
David Woodhouse
maintainerQuoted 14 lines · Peter Hilber
RFC v3 updates
--------------This series implements a driver for a virtio-rtc device conforming to spec RFC v3 [1]. It now includes an RTC class driver with alarm, in addition to the PTP clock driver already present before.
This patch series depends on the patch series "treewide: Use clocksource id for
get_device_system_crosststamp()" [3]. Pull [4] to get the combined series on top of mainline.Overview
--------
Quoted 6 lines
This patch series adds the
virtio_rtcmodule, and related bugfixes. Thevirtio_rtcmodule implements a driver compatible with the proposed Virtio RTC device specification [1]. The Virtio RTC (Real Time Clock) device provides information about current time. The device can provide different clocks, e.g. for the UTC or TAI time standards, or for physical time elapsed since some past epoch.
Hm, should we allow UTC? If you tell me the time in UTC, then (sometimes) I still don't actually know what the time is, because some UTC seconds occur twice. UTC only makes sense if you provide the TAI offset, surely? Should the virtio_rtc specification make it mandatory to provide such?
Otherwise you're just designing it to allow crappy hypervisors to expose incomplete information.
Quoted 11 lines
PTP clock interface
-------------------
virtio_rtcexposes clocks as PTP clocks to userspace, similar toptp_kvm. If both the Virtio RTC device and this driver have special support for the current clocksource, time synchronization programs can use cross-timestamping using ioctlPTP_SYS_OFFSET_PRECISE2akaPTP_SYS_OFFSET_PRECISE. Similar toptp_kvm, system time synchronization with single-digit ns precision is possible with a quiescent reference clock (from the Virtio RTC device). This works even when the Virtio device response is slow compared toptp_kvmhypercalls.
Is PTP the right mechanism for this? As I understand it, PTP is a way to precisely synchronize one clock with another. But in the case of virt guests synchronizing against the host, it isn't really *another* clock. It really is the *same* underlying clock. As the host clock varies with temperature, for example, so does the guest clock. The only difference is an offset and (on x86 perhaps) a mathematical scaling of the frequency.
I was looking at this another way, when I came across this virtio-rtc work.
My idea was just for the hypervisor to expose its own timekeeping information — the counter/TSC value and TAI time at a given moment, frequency of the counter, and the precision of both that frequency (±PPM) and the TAI timestamp (±µs).
By putting that in a host/guest shared data structure with a seqcount for lockless updates, we can update it as time synchronization on the host is refined, and we can even cleanly handle live migration where the guest ends up on a completely different host. It allows for use cases which *really* care (e.g. timestamping financial transactions) to ensure that there is never even a moment of getting *wrong* timestamps if they haven't yet resynced after a migration.
Now I'm trying to work out if I should attempt to reconcile with your existing virtio-rtc work, or just decide that virtio-rtc isn't trying to solve the actual problem that we have, and go ahead with something different... ?
Quoted 22 lines · David Woodhouse
Quoted 14 lines · Peter Hilber
RFC v3 updates
--------------This series implements a driver for a virtio-rtc device conforming to spec RFC v3 [1]. It now includes an RTC class driver with alarm, in addition to the PTP clock driver already present before.
This patch series depends on the patch series "treewide: Use clocksource id for
get_device_system_crosststamp()" [3]. Pull [4] to get the combined series on top of mainline.Overview
--------Quoted 6 lines
This patch series adds the
virtio_rtcmodule, and related bugfixes. Thevirtio_rtcmodule implements a driver compatible with the proposed Virtio RTC device specification [1]. The Virtio RTC (Real Time Clock) device provides information about current time. The device can provide different clocks, e.g. for the UTC or TAI time standards, or for physical time elapsed since some past epoch.
Quoted 9 lines
Hm, should we allow UTC? If you tell me the time in UTC, then (sometimes) I still don't actually know what the time is, because some UTC seconds occur twice. UTC only makes sense if you provide the TAI offset, surely? Should the
virtio_rtcspecification make it mandatory to provide such?Otherwise you're just designing it to allow crappy hypervisors to expose incomplete information.
Hi David,
(adding [email protected] for spec discussion),
thank you for your insightful comments. I think I take a broadly similar view. The reason why the current spec and driver is like this is that I took a pragmatic approach at first and only included features which work out-of-the-box for the current Linux ecosystem.
The current virtio_rtc features work similar to ptp_kvm, and therefore can work out-of-the-box with time sync daemons such as chrony.
As of RFC spec v3, UTC clock only is allowed. If mandating a TAI clock as well, I am afraid that
- in some (embedded) scenarios, the TAI clock may not be available
- crappy hypervisors will pass off the UTC clock as the TAI clock.
For the same reasons, I am also not sure about adding a *mandatory* TAI offset to each readout. I don't know user-space software which would leverage this already (at least not through the PTP clock interface). And why would such software not go straight for the TAI clock instead?
How about adding a requirement to the spec that the virtio-rtc device SHOULD expose the TAI clock whenever it is available - would this address your concerns?
Quoted 28 lines
Quoted 11 lines
PTP clock interface
-------------------
virtio_rtcexposes clocks as PTP clocks to userspace, similar toptp_kvm. If both the Virtio RTC device and this driver have special support for the current clocksource, time synchronization programs can use cross-timestamping using ioctlPTP_SYS_OFFSET_PRECISE2akaPTP_SYS_OFFSET_PRECISE. Similar toptp_kvm, system time synchronization with single-digit ns precision is possible with a quiescent reference clock (from the Virtio RTC device). This works even when the Virtio device response is slow compared toptp_kvmhypercalls.Is PTP the right mechanism for this? As I understand it, PTP is a way to precisely synchronize one clock with another. But in the case of virt guests synchronizing against the host, it isn't really *another* clock. It really is the *same* underlying clock. As the host clock varies with temperature, for example, so does the guest clock. The only difference is an offset and (on x86 perhaps) a mathematical scaling of the frequency.
I was looking at this another way, when I came across this virtio-rtc work.
My idea was just for the hypervisor to expose its own timekeeping information — the counter/TSC value and TAI time at a given moment, frequency of the counter, and the precision of both that frequency (±PPM) and the TAI timestamp (±µs).
Quoted 7 lines
By putting that in a host/guest shared data structure with a seqcount for lockless updates, we can update it as time synchronization on the host is refined, and we can even cleanly handle live migration where the guest ends up on a completely different host. It allows for use cases which *really* care (e.g. timestamping financial transactions) to ensure that there is never even a moment of getting *wrong* timestamps if they haven't yet resynced after a migration.
I considered a similar approach as well, but integrating that with the kernel timekeeping seemed too much effort for the first step. However, reading the clock from user space would be much simpler.
Quoted 6 lines
Now I'm trying to work out if I should attempt to reconcile with your existing virtio-rtc work, or just decide that virtio-rtc isn't trying to solve the actual problem that we have, and go ahead with something different... ?
We are certainly interested into the discussed, say, "virtual timekeeper" mechanism, which would also solve a lot of problems for us (especially if it would be integrated with kernel timekeeping). Even without Linux kernel timekeeping, the virtual timekeeper would be useful to us for guests with simpler timekeeping, and potentially for user space applications.
Our current intent is to at first try to upstream the current (RFC spec v3) feature set. I think the virtual timekeeper would be suitable as an optional feature of virtio_rtc (with Virtio, this could easily be added after initial upstreaming). It is also possible to have a virtio-rtc device only implement the virtual timekeeper, but not the other clock reading methods, if these are of no interest.
Best regards,
Peter
David Woodhouse
maintainerQuoted 52 lines · Peter Hilber
Quoted 22 lines · David Woodhouse
Quoted 14 lines · Peter Hilber
RFC v3 updates
--------------This series implements a driver for a virtio-rtc device conforming to spec RFC v3 [1]. It now includes an RTC class driver with alarm, in addition to the PTP clock driver already present before.
This patch series depends on the patch series "treewide: Use clocksource id for
get_device_system_crosststamp()" [3]. Pull [4] to get the combined series on top of mainline.Overview
--------Quoted 6 lines
This patch series adds the
virtio_rtcmodule, and related bugfixes. Thevirtio_rtcmodule implements a driver compatible with the proposed Virtio RTC device specification [1]. The Virtio RTC (Real Time Clock) device provides information about current time. The device can provide different clocks, e.g. for the UTC or TAI time standards, or for physical time elapsed since some past epoch.Quoted 9 lines
Hm, should we allow UTC? If you tell me the time in UTC, then (sometimes) I still don't actually know what the time is, because some UTC seconds occur twice. UTC only makes sense if you provide the TAI offset, surely? Should the
virtio_rtcspecification make it mandatory to provide such?Otherwise you're just designing it to allow crappy hypervisors to expose incomplete information.
Hi David,
(adding [email protected] for spec discussion),
thank you for your insightful comments. I think I take a broadly similar view. The reason why the current spec and driver is like this is that I took a pragmatic approach at first and only included features which work out-of-the-box for the current Linux ecosystem.
The current
virtio_rtcfeatures work similar toptp_kvm, and therefore can work out-of-the-box with time sync daemons such as chrony.As of RFC spec v3, UTC clock only is allowed. If mandating a TAI clock as well, I am afraid that
- in some (embedded) scenarios, the TAI clock may not be available
- crappy hypervisors will pass off the UTC clock as the TAI clock.
Quoted 8 lines
For the same reasons, I am also not sure about adding a *mandatory* TAI offset to each readout. I don't know user-space software which would leverage this already (at least not through the PTP clock interface). And why would such software not go straight for the TAI clock instead?
How about adding a requirement to the spec that the virtio-rtc device SHOULD expose the TAI clock whenever it is available - would this address your concerns?
I think that would be too easy for implementors to miss, or decide not to obey. Or to get *wrong*, by exposing a TAI clock but actually putting UTC in it.
I think I prefer to mandate the tai_offset field with the UTC clock. Crappy implementations will just set it to zero, but at least that gives a clear signal to the guests that it's *their* problem to resolve.
Quoted 36 lines
Quoted 28 lines
Quoted 11 lines
PTP clock interface
-------------------
virtio_rtcexposes clocks as PTP clocks to userspace, similar toptp_kvm. If both the Virtio RTC device and this driver have special support for the current clocksource, time synchronization programs can use cross-timestamping using ioctlPTP_SYS_OFFSET_PRECISE2akaPTP_SYS_OFFSET_PRECISE. Similar toptp_kvm, system time synchronization with single-digit ns precision is possible with a quiescent reference clock (from the Virtio RTC device). This works even when the Virtio device response is slow compared toptp_kvmhypercalls.Is PTP the right mechanism for this? As I understand it, PTP is a way to precisely synchronize one clock with another. But in the case of virt guests synchronizing against the host, it isn't really *another* clock. It really is the *same* underlying clock. As the host clock varies with temperature, for example, so does the guest clock. The only difference is an offset and (on x86 perhaps) a mathematical scaling of the frequency.
I was looking at this another way, when I came across this virtio-rtc work.
My idea was just for the hypervisor to expose its own timekeeping information — the counter/TSC value and TAI time at a given moment, frequency of the counter, and the precision of both that frequency (±PPM) and the TAI timestamp (±µs).
Quoted 7 lines
By putting that in a host/guest shared data structure with a seqcount for lockless updates, we can update it as time synchronization on the host is refined, and we can even cleanly handle live migration where the guest ends up on a completely different host. It allows for use cases which *really* care (e.g. timestamping financial transactions) to ensure that there is never even a moment of getting *wrong* timestamps if they haven't yet resynced after a migration.
Quoted 3 lines
I considered a similar approach as well, but integrating that with the kernel timekeeping seemed too much effort for the first step. However, reading the clock from user space would be much simpler.
Right. In fact my *first* use case was userspace, specifically in the context of https://github.com/aws/clock-bound — but anything we design for this absolutely has to be usable for kernel timekeeping too.
It's also critical to solve the Live Migration problem.
But is it so hard to integrate into the kernel timekeeping? My plan would have given us effectively an infinite number of cross-reads of the realtime clock vs. TSC. You don't have to actually read from a virtio device; you just read the TSC and do the maths, using the values in the shared memory region. Couldn't that be used to present a PTP device to the guest kernel just the same as you do at the moment?
You could probably even simulate PPS with it. Typically with PPS we have to catch the hardware interrupt and then read the TSC as soon as possible thereafter. With this, you'd be able to *calculate* the TSC value at the start of the next second, and wouldn't have to suffer the real hardware latency :)
Quoted 13 lines
Quoted 6 lines
Now I'm trying to work out if I should attempt to reconcile with your existing virtio-rtc work, or just decide that virtio-rtc isn't trying to solve the actual problem that we have, and go ahead with something different... ?
We are certainly interested into the discussed, say, "virtual timekeeper" mechanism, which would also solve a lot of problems for us (especially if it would be integrated with kernel timekeeping). Even without Linux kernel timekeeping, the virtual timekeeper would be useful to us for guests with simpler timekeeping, and potentially for user space applications.
Quoted 6 lines
Our current intent is to at first try to upstream the current (RFC spec v3) feature set. I think the virtual timekeeper would be suitable as an optional feature of
virtio_rtc(with Virtio, this could easily be added after initial upstreaming). It is also possible to have a virtio-rtc device only implement the virtual timekeeper, but not the other clock reading methods, if these are of no interest.
Yeah, that might make sense. I was thinking of a simple ACPI/DT device exposing a page of memory and *maybe* an interrupt for when an update happens. (With the caveat that the interrupt would always occur too late by definition, so it's no substitute for using the seqlock correctly in applications that *really* care and are going to get fined millions of dollars for mis-timestamping their transactions.)
But using the virtio-rtc device as the vehicle for that shared memory page is reasonable too. It's not even mutually exclusive; we could expose the *same* data structure in memory via whatever mechanisms we wanted.
One other thing to note is I think we're being very naïve about the TSC on x86 hosts. Theoretically, the TSC for every vCPU might run at a different frequency, and even if they run at the same frequency they might be offset from each other. I'm happy to be naïve but I think we should be *explicitly* so, and just say for example that it's defined against vCPU0 so if other vCPUs are different then all bets are off.
We *can* cope with TSC frequencies changing. Fundamentally, that's the whole *point*; NTP calibrates itself as the underlying frequency does change due to temperature changes, etc. — so a deliberate frequency scaling, or even a live migration, are just a slightly special case of the same thing.
One thing I have added to the memory region is a migration counter. In the ideal case, guests will be happy just to use the hypervisor's synchronization. But in some cases the guests may want to do NTP (or PPS, PTP or something else) for themselves, to have more precise timekeeping than the host. Even if the host is advertising itself as stratum 16, the guest still needs to know of *migration*, because it has to consider itself unsynchronized when that happens.
Quoted 72 lines · David Woodhouse
Quoted 66 lines · Peter Hilber
Quoted 28 lines · David Woodhouse
Quoted 17 lines · Peter Hilber
RFC v3 updates
--------------This series implements a driver for a virtio-rtc device conforming to spec
RFC v3 [1]. It now includes an RTC class driver with alarm, in addition to
the PTP clock driver already present before.This patch series depends on the patch series "treewide: Use clocksource id
forget_device_system_crosststamp()" [3]. Pull [4] to get the combined series on top of mainline.Overview
--------Quoted 9 lines
This patch series adds the
virtio_rtcmodule, and related bugfixes. Thevirtio_rtcmodule implements a driver compatible with the proposed Virtio
RTC device specification [1]. The Virtio RTC (Real Time Clock) device provides information about current time. The device can provide different
clocks, e.g. for the UTC or TAI time standards, or for physical time elapsed since some past epoch.Quoted 9 lines
Hm, should we allow UTC? If you tell me the time in UTC, then (sometimes) I still don't actually know what the time is, because some UTC seconds occur twice. UTC only makes sense if you provide the TAI offset, surely? Should the
virtio_rtcspecification make it mandatory to provide such?Otherwise you're just designing it to allow crappy hypervisors to expose incomplete information.
Hi David,
(adding [email protected] for spec discussion),
thank you for your insightful comments. I think I take a broadly similar view. The reason why the current spec and driver is like this is that I took a pragmatic approach at first and only included features which work out-of-the-box for the current Linux ecosystem.
The current
virtio_rtcfeatures work similar toptp_kvm, and therefore can
work out-of-the-box with time sync daemons such as chrony.As of RFC spec v3, UTC clock only is allowed. If mandating a TAI clock as
well, I am afraid that- in some (embedded) scenarios, the TAI clock may not be available
- crappy hypervisors will pass off the UTC clock as the TAI clock.
For the same reasons, I am also not sure about adding a *mandatory* TAI offset to each readout. I don't know user-space software which would leverage this already (at least not through the PTP clock interface). And
why would such software not go straight for the TAI clock instead?Quoted 4 lines
How about adding a requirement to the spec that the virtio-rtc device SHOULD expose the TAI clock whenever it is available - would this address
your concerns?
Quoted 8 lines
I think that would be too easy for implementors to miss, or decide not to obey. Or to get *wrong*, by exposing a TAI clock but actually putting UTC in it.
I think I prefer to mandate the
tai_offsetfield with the UTC clock. Crappy implementations will just set it to zero, but at least that gives a clear signal to the guests that it's *their* problem to resolve.
To me there are some open questions regarding how this would work. Is there a use case for this with the v3 clock reading methods, or would it be enough to address this with the Virtio timekeeper?
Looking at clock_adjtime(2), the tai_offset could be exposed, but probably best alongside some additional information about leap seconds. I am not aware about any user-space user. In addition, leap second smearing should also be addressed.
Quoted 52 lines
Quoted 44 lines
Quoted 36 lines
Quoted 7 lines
PTP clock interface
-------------------Quoted 12 lines
virtio_rtcexposes clocks as PTP clocks to userspace, similar toptp_kvm.
If both the Virtio RTC device and this driver have special support for the
current clocksource, time synchronization programs can use cross-timestamping using ioctlPTP_SYS_OFFSET_PRECISE2akaPTP_SYS_OFFSET_PRECISE. Similar toptp_kvm, system time synchronization
with single-digit ns precision is possible with a quiescent reference clock
(from the Virtio RTC device). This works even when the Virtio device response is slow compared toptp_kvmhypercalls.Is PTP the right mechanism for this? As I understand it, PTP is a way to precisely synchronize one clock with another. But in the case of virt guests synchronizing against the host, it isn't really *another* clock. It really is the *same* underlying clock. As the host clock varies with temperature, for example, so does the guest clock. The only difference is an offset and (on x86 perhaps) a mathematical scaling of the frequency.
I was looking at this another way, when I came across this virtio-rtc work.
My idea was just for the hypervisor to expose its own timekeeping information — the counter/TSC value and TAI time at a given moment, frequency of the counter, and the precision of both that frequency (±PPM) and the TAI timestamp (±µs).
Quoted 7 lines
By putting that in a host/guest shared data structure with a seqcount for lockless updates, we can update it as time synchronization on the host is refined, and we can even cleanly handle live migration where the guest ends up on a completely different host. It allows for use cases which *really* care (e.g. timestamping financial transactions) to ensure that there is never even a moment of getting *wrong* timestamps if they haven't yet resynced after a migration.
Quoted 3 lines
I considered a similar approach as well, but integrating that with the kernel timekeeping seemed too much effort for the first step. However, reading the clock from user space would be much simpler.
Right. In fact my *first* use case was userspace, specifically in the context of https://github.com/aws/clock-bound — but anything we design for this absolutely has to be usable for kernel timekeeping too.
Quoted 8 lines
It's also critical to solve the Live Migration problem.
But is it so hard to integrate into the kernel timekeeping? My plan would have given us effectively an infinite number of cross-reads of the realtime clock vs. TSC. You don't have to actually read from a virtio device; you just read the TSC and do the maths, using the values in the shared memory region. Couldn't that be used to present a PTP device to the guest kernel just the same as you do at the moment?
Yes, and it would also decrease the clock reading overhead (saving at least the Virtio response interrupt and associated scheduling). Would make sense to me.
To be clear, with "kernel timekeeping integration" I meant to have timekeeping.c derive the time directly from the Virtio timekeeper.
Quoted 45 lines
You could probably even simulate PPS with it. Typically with PPS we have to catch the hardware interrupt and then read the TSC as soon as possible thereafter. With this, you'd be able to *calculate* the TSC value at the start of the next second, and wouldn't have to suffer the real hardware latency :)
Quoted 17 lines
Quoted 6 lines
Now I'm trying to work out if I should attempt to reconcile with your existing virtio-rtc work, or just decide that virtio-rtc isn't trying to solve the actual problem that we have, and go ahead with something different... ?
We are certainly interested into the discussed, say, "virtual timekeeper"
mechanism, which would also solve a lot of problems for us (especially if
it would be integrated with kernel timekeeping). Even without Linux kernel
timekeeping, the virtual timekeeper would be useful to us for guests with
simpler timekeeping, and potentially for user space applications.Quoted 8 lines
Our current intent is to at first try to upstream the current (RFC spec v3)
feature set. I think the virtual timekeeper would be suitable as an optional feature ofvirtio_rtc(with Virtio, this could easily be added after initial upstreaming). It is also possible to have a virtio-rtc device
only implement the virtual timekeeper, but not the other clock reading methods, if these are of no interest.Yeah, that might make sense. I was thinking of a simple ACPI/DT device exposing a page of memory and *maybe* an interrupt for when an update happens. (With the caveat that the interrupt would always occur too late by definition, so it's no substitute for using the seqlock correctly in applications that *really* care and are going to get fined millions of dollars for mis-timestamping their transactions.)
But using the virtio-rtc device as the vehicle for that shared memory page is reasonable too. It's not even mutually exclusive; we could expose the *same* data structure in memory via whatever mechanisms we wanted.
Quoted 6 lines
One other thing to note is I think we're being very naïve about the TSC on x86 hosts. Theoretically, the TSC for every vCPU might run at a different frequency, and even if they run at the same frequency they might be offset from each other. I'm happy to be naïve but I think we should be *explicitly* so, and just say for example that it's defined against vCPU0 so if other vCPUs are different then all bets are off.
ATM Virtio has no notion of vCPUs, or vCPU topology. So I wonder if you have an opinion on how to represent this in a platform-independent way.
Thank you for the comments,
Peter
Quoted 14 lines
We *can* cope with TSC frequencies changing. Fundamentally, that's the whole *point*; NTP calibrates itself as the underlying frequency does change due to temperature changes, etc. — so a deliberate frequency scaling, or even a live migration, are just a slightly special case of the same thing.
One thing I have added to the memory region is a migration counter. In the ideal case, guests will be happy just to use the hypervisor's synchronization. But in some cases the guests may want to do NTP (or PPS, PTP or something else) for themselves, to have more precise timekeeping than the host. Even if the host is advertising itself as stratum 16, the guest still needs to know of *migration*, because it has to consider itself unsynchronized when that happens
David Woodhouse
maintainerQuoted 50 lines · Peter Hilber
Quoted 40 lines · David Woodhouse
Quoted 30 lines · Peter Hilber
Quoted 9 lines · David Woodhouse
Hm, should we allow UTC? If you tell me the time in UTC, then (sometimes) I still don't actually know what the time is, because some UTC seconds occur twice. UTC only makes sense if you provide the TAI offset, surely? Should the
virtio_rtcspecification make it mandatory to provide such?Otherwise you're just designing it to allow crappy hypervisors to expose incomplete information.
Hi David,
(adding [email protected] for spec discussion),
thank you for your insightful comments. I think I take a broadly similar view. The reason why the current spec and driver is like this is that I took a pragmatic approach at first and only included features which work out-of-the-box for the current Linux ecosystem.
The current
virtio_rtcfeatures work similar toptp_kvm, and therefore can work out-of-the-box with time sync daemons such as chrony.As of RFC spec v3, UTC clock only is allowed. If mandating a TAI clock as well, I am afraid that
- in some (embedded) scenarios, the TAI clock may not be available
- crappy hypervisors will pass off the UTC clock as the TAI clock.
Quoted 8 lines
For the same reasons, I am also not sure about adding a *mandatory* TAI offset to each readout. I don't know user-space software which would leverage this already (at least not through the PTP clock interface). And why would such software not go straight for the TAI clock instead?
How about adding a requirement to the spec that the virtio-rtc device SHOULD expose the TAI clock whenever it is available - would this address your concerns?
Quoted 8 lines
I think that would be too easy for implementors to miss, or decide not to obey. Or to get *wrong*, by exposing a TAI clock but actually putting UTC in it.
I think I prefer to mandate the
tai_offsetfield with the UTC clock. Crappy implementations will just set it to zero, but at least that gives a clear signal to the guests that it's *their* problem to resolve.
Quoted 9 lines
To me there are some open questions regarding how this would work. Is there a use case for this with the v3 clock reading methods, or would it be enough to address this with the Virtio timekeeper?
Looking at
clock_adjtime(2), thetai_offsetcould be exposed, but probably best alongside some additional information about leap seconds. I am not aware about any user-space user. In addition, leap second smearing should also be addressed.
Is there even a standard yet for leap-smearing? Will it be linear over 1000 seconds like UTC-SLS? Or semi-raised-cosine over 24 hours, which I think is what Google does? Meta does something different again, don't they?
Exposing UTC as the only clock reference is bad enough; when leap seconds happen there's a whole second during which you don't *know* which second it is. It seems odd to me, for a precision clock to be deliberately ambiguous about what the time is!
But if the virtio-rtc clock is defined as UTC and then expose something *different* in it, that's even worse. You potentially end up providing inaccurate time for a whole *day* leading up to the leap second.
I think you're right that leap second smearing should be addressed. At the very least, by making it clear that the virtio-rtc clock which advertises UTC shall be used *only* for UTC, never UTC-SLS or any other yet-to-be-defined variant.
Please make it explicit that any hypervisor which wants to advertise a smeared clock shall define a new type which specifies the precise smearing algorithm and cannot be conflated with the one you're defining here.
Quoted 9 lines
Quoted 6 lines
One other thing to note is I think we're being very naïve about the TSC on x86 hosts. Theoretically, the TSC for every vCPU might run at a different frequency, and even if they run at the same frequency they might be offset from each other. I'm happy to be naïve but I think we should be *explicitly* so, and just say for example that it's defined against vCPU0 so if other vCPUs are different then all bets are off.
ATM Virtio has no notion of vCPUs, or vCPU topology. So I wonder if you have an opinion on how to represent this in a platform-independent way.
Well, it doesn't have a notion of TSCs either; you include that by implicit reference don't you?
Quoted 66 lines · David Woodhouse
Quoted 50 lines · Peter Hilber
Quoted 40 lines · David Woodhouse
Quoted 30 lines · Peter Hilber
Quoted 9 lines · David Woodhouse
Hm, should we allow UTC? If you tell me the time in UTC, then (sometimes) I still don't actually know what the time is, because some UTC seconds occur twice. UTC only makes sense if you provide the TAI offset, surely? Should the
virtio_rtcspecification make it mandatory to provide such?Otherwise you're just designing it to allow crappy hypervisors to expose incomplete information.
Hi David,
(adding [email protected] for spec discussion),
thank you for your insightful comments. I think I take a broadly similar view. The reason why the current spec and driver is like this is that I took a pragmatic approach at first and only included features which work out-of-the-box for the current Linux ecosystem.
The current
virtio_rtcfeatures work similar toptp_kvm, and therefore can work out-of-the-box with time sync daemons such as chrony.As of RFC spec v3, UTC clock only is allowed. If mandating a TAI clock as well, I am afraid that
- in some (embedded) scenarios, the TAI clock may not be available
- crappy hypervisors will pass off the UTC clock as the TAI clock.
Quoted 8 lines
For the same reasons, I am also not sure about adding a *mandatory* TAI offset to each readout. I don't know user-space software which would leverage this already (at least not through the PTP clock interface). And why would such software not go straight for the TAI clock instead?
How about adding a requirement to the spec that the virtio-rtc device SHOULD expose the TAI clock whenever it is available - would this address your concerns?
Quoted 8 lines
I think that would be too easy for implementors to miss, or decide not to obey. Or to get *wrong*, by exposing a TAI clock but actually putting UTC in it.
I think I prefer to mandate the
tai_offsetfield with the UTC clock. Crappy implementations will just set it to zero, but at least that gives a clear signal to the guests that it's *their* problem to resolve.Quoted 9 lines
To me there are some open questions regarding how this would work. Is there a use case for this with the v3 clock reading methods, or would it be enough to address this with the Virtio timekeeper?
Looking at
clock_adjtime(2), thetai_offsetcould be exposed, but probably best alongside some additional information about leap seconds. I am not aware about any user-space user. In addition, leap second smearing should also be addressed.Is there even a standard yet for leap-smearing? Will it be linear over 1000 seconds like UTC-SLS? Or semi-raised-cosine over 24 hours, which I think is what Google does? Meta does something different again, don't they?
Quoted 4 lines
Exposing UTC as the only clock reference is bad enough; when leap seconds happen there's a whole second during which you don't *know* which second it is. It seems odd to me, for a precision clock to be deliberately ambiguous about what the time is!
Just to be clear, the device can perfectly expose only a TAI reference clock (or both UTC and TAI), the spec is just completely open about this, as it tries to work for diverse use cases.
Quoted 10 lines
But if the virtio-rtc clock is defined as UTC and then expose something *different* in it, that's even worse. You potentially end up providing inaccurate time for a whole *day* leading up to the leap second.
I think you're right that leap second smearing should be addressed. At the very least, by making it clear that the virtio-rtc clock which advertises UTC shall be used *only* for UTC, never UTC-SLS or any other yet-to-be-defined variant.
Agreed.
Quoted 5 lines
Please make it explicit that any hypervisor which wants to advertise a smeared clock shall define a new type which specifies the precise smearing algorithm and cannot be conflated with the one you're defining here.
I will add a requirement that the UTC clock can never have smeared/smoothed leap seconds.
I think that not every vendor would bother to first add a definition of a smearing algorithm. Also, I think in some cases knowing the precise smearing algorithm might not be important (when having the same time as the hypervisor is enough and accuracy w.r.t. actual time is less important).
So maybe I should add a VIRTIO_RTC_CLOCK_UTC_SMEARED clock type, which for now could catch every UTC-like clock which smears/smoothes leap seconds, where the vendor cannot be bothered to add the smearing algorithm to spec and implementations.
As for UTC-SLS, this *could* also be added, although [1] says
It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
[1] https://datatracker.ietf.org/doc/html/draft-kuhn-leapsecond-00
Quoted 7 lines
Quoted 7 lines
Quoted 6 lines
One other thing to note is I think we're being very naïve about the TSC on x86 hosts. Theoretically, the TSC for every vCPU might run at a different frequency, and even if they run at the same frequency they might be offset from each other. I'm happy to be naïve but I think we should be *explicitly* so, and just say for example that it's defined against vCPU0 so if other vCPUs are different then all bets are off.
Quoted 5 lines
Quoted 2 lines
ATM Virtio has no notion of vCPUs, or vCPU topology. So I wonder if you have an opinion on how to represent this in a platform-independent way.
Well, it doesn't have a notion of TSCs either; you include that by implicit reference don't you?
I think I can add a SHOULD requirement which vaguely refers to vCPU 0, or boot vCPU. But the Virtio device is not necessarily hosted by a hypervisor, so the device might not even know which vCPUs there are. E.g. there is even interest to make virtio-rtc work as part of the virtio-net device (which might be implemented in hardware).
Thanks for the comments,
Peter
Alexandre Belloni
maintainerQuoted 36 lines · Peter Hilber
Quoted 4 lines
Exposing UTC as the only clock reference is bad enough; when leap seconds happen there's a whole second during which you don't *know* which second it is. It seems odd to me, for a precision clock to be deliberately ambiguous about what the time is!
Just to be clear, the device can perfectly expose only a TAI reference clock (or both UTC and TAI), the spec is just completely open about this, as it tries to work for diverse use cases.
Quoted 10 lines
But if the virtio-rtc clock is defined as UTC and then expose something *different* in it, that's even worse. You potentially end up providing inaccurate time for a whole *day* leading up to the leap second.
I think you're right that leap second smearing should be addressed. At the very least, by making it clear that the virtio-rtc clock which advertises UTC shall be used *only* for UTC, never UTC-SLS or any other yet-to-be-defined variant.
Agreed.
Quoted 5 lines
Please make it explicit that any hypervisor which wants to advertise a smeared clock shall define a new type which specifies the precise smearing algorithm and cannot be conflated with the one you're defining here.
I will add a requirement that the UTC clock can never have smeared/smoothed leap seconds.
I think that not every vendor would bother to first add a definition of a smearing algorithm. Also, I think in some cases knowing the precise smearing algorithm might not be important (when having the same time as the hypervisor is enough and accuracy w.r.t. actual time is less important).
Quoted 5 lines
So maybe I should add a
VIRTIO_RTC_CLOCK_UTC_SMEAREDclock type, which for now could catch every UTC-like clock which smears/smoothes leap seconds, where the vendor cannot be bothered to add the smearing algorithm to spec and implementations.
I still don't know anything about virtio but under Linux, an RTC is always UTC (or localtime when dual booting but let's not care) and never accounts for leap seconds. Having an RTC and RTC driver behaving differently would be super inconvenient. Why don't you leave this to userspace?
I guess I'm still questioning whether this is the correct interface to expose the host system time instead of an actual RTC.
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
David Woodhouse
maintainerQuoted 6 lines · Alexandre Belloni
I still don't know anything about virtio but under Linux, an RTC is always UTC (or localtime when dual booting but let's not care) and never accounts for leap seconds. Having an RTC and RTC driver behaving differently would be super inconvenient. Why don't you leave this to userspace?
Well yes, we don't need to expose *anything* from the hypervisor and we can leave it all to guest userspace. We can run NTP on every single one of *hundreds* of guests, leaving them all to duplicate the work of calibrating the *same* underlying oscillator.
I thought we were trying to avoid that, by having the hypervisor tell them what the time was. If we're going to do that, we need it to be sufficiently precise (and some clients want to *know* the precision), and above all we need it to be *unambiguous*.
If the hypervisor says that the time is 3692217600.001, then the guest doesn't actually know *which* 3692217600.001 it is, and thus it still doesn't know the time to an accuracy better than 1 second.
And if we start allowing the hypervisor to smear clocks in some other underspecified ways, then we end up with errors of up to 1 second in the clock for long periods of time *around* the leap second.
We need to avoid that ambiguity.
Quoted 2 lines
I guess I'm still questioning whether this is the correct interface to expose the host system time instead of an actual RTC.
If an RTC device is able to report '23:59:60' as the time of day, I suppose that *could* resolve the ambiguity. But talking to a device is slow; we want guests to be able to know the time — accurately — with a simple counter/tsc read and some arithmetic. Which means *paired* reads of 'RTC' and the counter, and a precise indication of the counter frequency.
Alexandre Belloni
maintainerQuoted 8 lines · David Woodhouse
Quoted 6 lines · Alexandre Belloni
I still don't know anything about virtio but under Linux, an RTC is always UTC (or localtime when dual booting but let's not care) and never accounts for leap seconds. Having an RTC and RTC driver behaving differently would be super inconvenient. Why don't you leave this to userspace?
Quoted 5 lines
Well yes, we don't need to expose *anything* from the hypervisor and we can leave it all to guest userspace. We can run NTP on every single one of *hundreds* of guests, leaving them all to duplicate the work of calibrating the *same* underlying oscillator.
Really, I see the point of sharing the time accurately between the host and the guest and not duplicating the effort. This is not what I am objecting to.
Quoted 9 lines
I thought we were trying to avoid that, by having the hypervisor tell them what the time was. If we're going to do that, we need it to be sufficiently precise (and some clients want to *know* the precision), and above all we need it to be *unambiguous*.
If the hypervisor says that the time is 3692217600.001, then the guest doesn't actually know *which* 3692217600.001 it is, and thus it still doesn't know the time to an accuracy better than 1 second.
The RTC subsystem has a 1 second resolution and this is not going to change because there is no point doing so for the hardware, to get the time precisely, UIE MUST be used there is no vendor that will just support reading the time/date or timestamp as this is way too imprecise.
Quoted 5 lines
And if we start allowing the hypervisor to smear clocks in some other underspecified ways, then we end up with errors of up to 1 second in the clock for long periods of time *around* the leap second.
We need to avoid that ambiguity.
Exactly my point and I said, reading an RTC is always UTC and never handles leap seconds so if userspace doesn't handle the leap second and updates the RTC, too bad. There are obviously no RTC that will smear clock unless instructed to, so the hypervisor must not smear the clock.
Note that this is not an issue for the subsystem because if you are not capable to track an accurate clock, the RTC itself will have drifted by much more than a second in between leap second inclusions.
Quoted 10 lines
Quoted 3 lines
I guess I'm still questioning whether this is the correct interface to expose the host system time instead of an actual RTC.
If an RTC device is able to report '23:59:60' as the time of day, I suppose that *could* resolve the ambiguity. But talking to a device is slow; we want guests to be able to know the time — accurately — with a simple counter/tsc read and some arithmetic. Which means *paired* reads of 'RTC' and the counter, and a precise indication of the counter frequency.
23:59:60 is not and will never be allowed in the RTC subsystem as this is an invalid value for the hardware.
The TSC or whatever CPU counter/clock that is used to keep the system time is not an RTC, I don't get why it has to be exposed as such to the guests. PTP is fine and precise, RTC is not.
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
David Woodhouse
maintainerQuoted 3 lines · Alexandre Belloni
The TSC or whatever CPU counter/clock that is used to keep the system time is not an RTC, I don't get why it has to be exposed as such to the guests. PTP is fine and precise, RTC is not.
Ah, I see. But the point of the virtio_rtc is not really to expose that CPU counter. The point is to report the wallclock time, just like an actual RTC. The real difference is the *precision*.
The virtio_rtc device has a facility to *also* expose the counter, because that's what we actually need to gain that precision...
Applications don't read the RTC every time they want to know what the time is. These days, they don't even make a system call; it's done entirely in userspace mode. The kernel exposes some shared memory, essentially saying "the counter was X at time Y, and runs at Z Hz". Then applications just read the CPU counter and do some arithmetic.
As we require more and more precision in the calibration, it becomes important to get *paired* readings of the CPU counter and the wallclock time at precisely the same moment. If the guest has to read one and then the other, potentially taking interrupts, getting preempted and suffering steal/SMI time in the middle, that introduces an error which is increasingly significant as we increasingly care about precision.
Peter's proposal exposes the pairs of {X,Y} and leaves *all* the guest kernels having to repeat readings over time and perform the calibration as the underlying hardware oscillator frequency (Z) drifts with temperature. I'm trying to get him to let the hypervisor expose the calibrated frequency Z too. Along with *error* bounds for ±δX and ±δZ. Which aside from reducing the duplication of effort, will *also* fix the problem of live migration where *all* those things suffer a step change and leave the guest with an inaccurate clock but not knowing it.
But that part isn't relevant to the RTC, as you say. RTC doesn't care about that level of precision; it's just what the system uses to know roughly what year it is, when it powers up. (And isn't even really trusted for that, which is a large part of why I added the X509_V_FLAG_NO_CHECK_TIME flag to OpenSSL, so Secure Boot doesn't break when the RTC is catastrophically wrong :)
If you're asking why patch 7/7 in Peter's series exists to expose the virtio clock through RTC, and you're not particularly interested in the first six, I suppose that's a fair question. As is the question of "why is it called virtio_rtc not virtio_ptp?".
But let me turn it around: if the kernel has access to this virtio device and *not* any other RTC, why *wouldn't* the kernel use the time from it? The fact that it can optionally *also* provide paired readings with the CPU counter doesn't actually *hurt* for the RTC use case, does it?
Alexandre Belloni
maintainerQuoted 5 lines · David Woodhouse
If you're asking why patch 7/7 in Peter's series exists to expose the virtio clock through RTC, and you're not particularly interested in the first six, I suppose that's a fair question. As is the question of "why is it called
virtio_rtcnotvirtio_ptp?".
Exactly my question, thanks :)
Quoted 5 lines
But let me turn it around: if the kernel has access to this virtio device and *not* any other RTC, why *wouldn't* the kernel use the time from it? The fact that it can optionally *also* provide paired readings with the CPU counter doesn't actually *hurt* for the RTC use case, does it?
As long as it doesn't behave differently from the other RTC, I'm fine with this. This is important because I don't want to carry any special infrastructure for this driver or to have to special case this driver later on because it is incompatible with some evolution of the subsystem.
Signature · 3 lines
Alexandre Belloni, co-owner and COO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Quoted 5 lines
As long as it doesn't behave differently from the other RTC, I'm fine with this. This is important because I don't want to carry any special infrastructure for this driver or to have to special case this driver later on because it is incompatible with some evolution of the subsystem.
Maybe deliberately throw away all the sub-second accuracy when accessing the time via the RTC API? That helps to make it look like an RTC. And when doing the rounding, add a constant offset of 10ms to emulate the virtual i2c bus it is hanging off, like most RTCs?
Andrew
Quoted 6 lines · Andrew Lunn
Quoted 5 lines
As long as it doesn't behave differently from the other RTC, I'm fine with this. This is important because I don't want to carry any special infrastructure for this driver or to have to special case this driver later on because it is incompatible with some evolution of the subsystem.
Quoted 6 lines
Maybe deliberately throw away all the sub-second accuracy when accessing the time via the RTC API? That helps to make it look like an RTC. And when doing the rounding, add a constant offset of 10ms to emulate the virtual i2c bus it is hanging off, like most RTCs?
Andrew
The truncating to whole seconds is already done. As to the offset, I do not understand how this would help. I can read out my CMOS RTC in ~50 us.
Thanks for the comment,
Peter
Quoted 25 lines · David Woodhouse
Quoted 3 lines · Alexandre Belloni
The TSC or whatever CPU counter/clock that is used to keep the system time is not an RTC, I don't get why it has to be exposed as such to the guests. PTP is fine and precise, RTC is not.
Ah, I see. But the point of the
virtio_rtcis not really to expose that CPU counter. The point is to report the wallclock time, just like an actual RTC. The real difference is the *precision*.The
virtio_rtcdevice has a facility to *also* expose the counter, because that's what we actually need to gain that precision...Applications don't read the RTC every time they want to know what the time is. These days, they don't even make a system call; it's done entirely in userspace mode. The kernel exposes some shared memory, essentially saying "the counter was X at time Y, and runs at Z Hz". Then applications just read the CPU counter and do some arithmetic.
As we require more and more precision in the calibration, it becomes important to get *paired* readings of the CPU counter and the wallclock time at precisely the same moment. If the guest has to read one and then the other, potentially taking interrupts, getting preempted and suffering steal/SMI time in the middle, that introduces an error which is increasingly significant as we increasingly care about precision.
Quoted 8 lines
Peter's proposal exposes the pairs of {X,Y} and leaves *all* the guest kernels having to repeat readings over time and perform the calibration as the underlying hardware oscillator frequency (Z) drifts with temperature. I'm trying to get him to let the hypervisor expose the calibrated frequency Z too. Along with *error* bounds for ±δX and ±δZ. Which aside from reducing the duplication of effort, will *also* fix the problem of live migration where *all* those things suffer a step change and leave the guest with an inaccurate clock but not knowing it.
I am already convinced that this would work significantly better than the {X,Y} pair (but would be a bit more effort to implement):
1. when accessed by user space, obviously
2. when backing the PTP clock, it saves CPU time and makes non-paired reads more precise.
I would just prefer to try upstreaming the {X,Y} pairing first. I think the {X,Y,Z...} pairing could be discussed and developed in parallel.
Thanks for the comments,
Peter
Quoted 43 lines · Alexandre Belloni
Quoted 36 lines · Peter Hilber
Quoted 4 lines
Exposing UTC as the only clock reference is bad enough; when leap seconds happen there's a whole second during which you don't *know* which second it is. It seems odd to me, for a precision clock to be deliberately ambiguous about what the time is!
Just to be clear, the device can perfectly expose only a TAI reference clock (or both UTC and TAI), the spec is just completely open about this, as it tries to work for diverse use cases.
Quoted 10 lines
But if the virtio-rtc clock is defined as UTC and then expose something *different* in it, that's even worse. You potentially end up providing inaccurate time for a whole *day* leading up to the leap second.
I think you're right that leap second smearing should be addressed. At the very least, by making it clear that the virtio-rtc clock which advertises UTC shall be used *only* for UTC, never UTC-SLS or any other yet-to-be-defined variant.
Agreed.
Quoted 5 lines
Please make it explicit that any hypervisor which wants to advertise a smeared clock shall define a new type which specifies the precise smearing algorithm and cannot be conflated with the one you're defining here.
I will add a requirement that the UTC clock can never have smeared/smoothed leap seconds.
I think that not every vendor would bother to first add a definition of a smearing algorithm. Also, I think in some cases knowing the precise smearing algorithm might not be important (when having the same time as the hypervisor is enough and accuracy w.r.t. actual time is less important).
Quoted 5 lines
So maybe I should add a
VIRTIO_RTC_CLOCK_UTC_SMEAREDclock type, which for now could catch every UTC-like clock which smears/smoothes leap seconds, where the vendor cannot be bothered to add the smearing algorithm to spec and implementations.
Quoted 9 lines
I still don't know anything about virtio but under Linux, an RTC is always UTC (or localtime when dual booting but let's not care) and never accounts for leap seconds. Having an RTC and RTC driver behaving differently would be super inconvenient. Why don't you leave this to userspace?
I guess I'm still questioning whether this is the correct interface to expose the host system time instead of an actual RTC.
virtio_rtc only registers RTC class devices for virtio_rtc clock type UTC, so adding an UTC_SMEARED clock type would avoid leap seconds for the RTC class.
But I understand that there are more concerns and I will re-consider. From my POV CLOCK_{REALTIME,MONOTONIC}_ALARM support is very important however.
So the only alternative to me seems to be adding an alternative alarmtimer backend (and time synchronization through user space).
Thanks for the comment,
Peter
David Woodhouse
maintainerQuoted 67 lines · Peter Hilber
Quoted 66 lines · David Woodhouse
Quoted 50 lines · Peter Hilber
Quoted 40 lines · David Woodhouse
Quoted 30 lines · Peter Hilber
Quoted 9 lines · David Woodhouse
Hm, should we allow UTC? If you tell me the time in UTC, then (sometimes) I still don't actually know what the time is, because some UTC seconds occur twice. UTC only makes sense if you provide the TAI offset, surely? Should the
virtio_rtcspecification make it mandatory to provide such?Otherwise you're just designing it to allow crappy hypervisors to expose incomplete information.
Hi David,
(adding [email protected] for spec discussion),
thank you for your insightful comments. I think I take a broadly similar view. The reason why the current spec and driver is like this is that I took a pragmatic approach at first and only included features which work out-of-the-box for the current Linux ecosystem.
The current
virtio_rtcfeatures work similar toptp_kvm, and therefore can work out-of-the-box with time sync daemons such as chrony.As of RFC spec v3, UTC clock only is allowed. If mandating a TAI clock as well, I am afraid that
- in some (embedded) scenarios, the TAI clock may not be available
- crappy hypervisors will pass off the UTC clock as the TAI clock.
Quoted 8 lines
For the same reasons, I am also not sure about adding a *mandatory* TAI offset to each readout. I don't know user-space software which would leverage this already (at least not through the PTP clock interface). And why would such software not go straight for the TAI clock instead?
How about adding a requirement to the spec that the virtio-rtc device SHOULD expose the TAI clock whenever it is available - would this address your concerns?
Quoted 8 lines
I think that would be too easy for implementors to miss, or decide not to obey. Or to get *wrong*, by exposing a TAI clock but actually putting UTC in it.
I think I prefer to mandate the
tai_offsetfield with the UTC clock. Crappy implementations will just set it to zero, but at least that gives a clear signal to the guests that it's *their* problem to resolve.Quoted 9 lines
To me there are some open questions regarding how this would work. Is there a use case for this with the v3 clock reading methods, or would it be enough to address this with the Virtio timekeeper?
Looking at
clock_adjtime(2), thetai_offsetcould be exposed, but probably best alongside some additional information about leap seconds. I am not aware about any user-space user. In addition, leap second smearing should also be addressed.Is there even a standard yet for leap-smearing? Will it be linear over 1000 seconds like UTC-SLS? Or semi-raised-cosine over 24 hours, which I think is what Google does? Meta does something different again, don't they?
Quoted 8 lines
Quoted 4 lines
Exposing UTC as the only clock reference is bad enough; when leap seconds happen there's a whole second during which you don't *know* which second it is. It seems odd to me, for a precision clock to be deliberately ambiguous about what the time is!
Just to be clear, the device can perfectly expose only a TAI reference clock (or both UTC and TAI), the spec is just completely open about this, as it tries to work for diverse use cases.
As long as the guest *knows* what it's getting, sure.
Quoted 13 lines
Quoted 10 lines
But if the virtio-rtc clock is defined as UTC and then expose something *different* in it, that's even worse. You potentially end up providing inaccurate time for a whole *day* leading up to the leap second.
I think you're right that leap second smearing should be addressed. At the very least, by making it clear that the virtio-rtc clock which advertises UTC shall be used *only* for UTC, never UTC-SLS or any other yet-to-be-defined variant.
Agreed.
Quoted 8 lines
Quoted 5 lines
Please make it explicit that any hypervisor which wants to advertise a smeared clock shall define a new type which specifies the precise smearing algorithm and cannot be conflated with the one you're defining here.
I will add a requirement that the UTC clock can never have smeared/smoothed leap seconds.
Thanks.
Quoted 9 lines
I think that not every vendor would bother to first add a definition of a smearing algorithm. Also, I think in some cases knowing the precise smearing algorithm might not be important (when having the same time as the hypervisor is enough and accuracy w.r.t. actual time is less important).
So maybe I should add a
VIRTIO_RTC_CLOCK_UTC_SMEAREDclock type, which for now could catch every UTC-like clock which smears/smoothes leap seconds, where the vendor cannot be bothered to add the smearing algorithm to spec and implementations.
Please $DEITY no.
Surely the whole point of this effort is to provide guests with precise and *unambiguous* knowledge of what the time is?
Using UTC is bad enough, because for a UTC timestamp in the middle of a leap second the guest can't know know *which* occurrence of that leap second it is, so it might be wrong by a second. To resolve that ambiguity needs a leap indicator and/or tai_offset field.
But if you allow and encourage the use of smeared time without even a specification of *how* it's smeared... that's even worse. You have an unknown inaccuracy of up to a second for whole periods of time around a leap second. That's surely the *antithesis* of what we're trying to do here? Without an actual definition of the smearing, how is a guest actually supposed to know what time it is?
(I suppose you could add a tai_offset_nanoseconds field? I don't know that I want to *encourage* that thought process...)
Quoted 17 lines
As for UTC-SLS, this *could* also be added, although [1] says
It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
[1] https://datatracker.ietf.org/doc/html/draft-kuhn-leapsecond-00
Quoted 10 lines
Quoted 9 lines
Quoted 6 lines
One other thing to note is I think we're being very naïve about the TSC on x86 hosts. Theoretically, the TSC for every vCPU might run at a different frequency, and even if they run at the same frequency they might be offset from each other. I'm happy to be naïve but I think we should be *explicitly* so, and just say for example that it's defined against vCPU0 so if other vCPUs are different then all bets are off.
ATM Virtio has no notion of vCPUs, or vCPU topology. So I wonder if you have an opinion on how to represent this in a platform-independent way.
Quoted 8 lines
Quoted 2 lines
Well, it doesn't have a notion of TSCs either; you include that by implicit reference don't you?
I think I can add a SHOULD requirement which vaguely refers to vCPU 0, or boot vCPU. But the Virtio device is not necessarily hosted by a hypervisor, so the device might not even know which vCPUs there are. E.g. there is even interest to make virtio-rtc work as part of the virtio-net device (which might be implemented in hardware).
Sure, but those implementations aren't going to offer the TSC pairing at all, are they?
Quoted 113 lines · David Woodhouse
Quoted 67 lines · Peter Hilber
Quoted 66 lines · David Woodhouse
Quoted 50 lines · Peter Hilber
Quoted 40 lines · David Woodhouse
Quoted 30 lines · Peter Hilber
Quoted 9 lines · David Woodhouse
Hm, should we allow UTC? If you tell me the time in UTC, then (sometimes) I still don't actually know what the time is, because some UTC seconds occur twice. UTC only makes sense if you provide the TAI offset, surely? Should the
virtio_rtcspecification make it mandatory to provide such?Otherwise you're just designing it to allow crappy hypervisors to expose incomplete information.
Hi David,
(adding [email protected] for spec discussion),
thank you for your insightful comments. I think I take a broadly similar view. The reason why the current spec and driver is like this is that I took a pragmatic approach at first and only included features which work out-of-the-box for the current Linux ecosystem.
The current
virtio_rtcfeatures work similar toptp_kvm, and therefore can work out-of-the-box with time sync daemons such as chrony.As of RFC spec v3, UTC clock only is allowed. If mandating a TAI clock as well, I am afraid that
- in some (embedded) scenarios, the TAI clock may not be available
- crappy hypervisors will pass off the UTC clock as the TAI clock.
Quoted 8 lines
For the same reasons, I am also not sure about adding a *mandatory* TAI offset to each readout. I don't know user-space software which would leverage this already (at least not through the PTP clock interface). And why would such software not go straight for the TAI clock instead?
How about adding a requirement to the spec that the virtio-rtc device SHOULD expose the TAI clock whenever it is available - would this address your concerns?
Quoted 8 lines
I think that would be too easy for implementors to miss, or decide not to obey. Or to get *wrong*, by exposing a TAI clock but actually putting UTC in it.
I think I prefer to mandate the
tai_offsetfield with the UTC clock. Crappy implementations will just set it to zero, but at least that gives a clear signal to the guests that it's *their* problem to resolve.Quoted 9 lines
To me there are some open questions regarding how this would work. Is there a use case for this with the v3 clock reading methods, or would it be enough to address this with the Virtio timekeeper?
Looking at
clock_adjtime(2), thetai_offsetcould be exposed, but probably best alongside some additional information about leap seconds. I am not aware about any user-space user. In addition, leap second smearing should also be addressed.Is there even a standard yet for leap-smearing? Will it be linear over 1000 seconds like UTC-SLS? Or semi-raised-cosine over 24 hours, which I think is what Google does? Meta does something different again, don't they?
Quoted 8 lines
Quoted 4 lines
Exposing UTC as the only clock reference is bad enough; when leap seconds happen there's a whole second during which you don't *know* which second it is. It seems odd to me, for a precision clock to be deliberately ambiguous about what the time is!
Just to be clear, the device can perfectly expose only a TAI reference clock (or both UTC and TAI), the spec is just completely open about this, as it tries to work for diverse use cases.
As long as the guest *knows* what it's getting, sure.
Quoted 13 lines
Quoted 10 lines
But if the virtio-rtc clock is defined as UTC and then expose something *different* in it, that's even worse. You potentially end up providing inaccurate time for a whole *day* leading up to the leap second.
I think you're right that leap second smearing should be addressed. At the very least, by making it clear that the virtio-rtc clock which advertises UTC shall be used *only* for UTC, never UTC-SLS or any other yet-to-be-defined variant.
Agreed.
Quoted 8 lines
Quoted 5 lines
Please make it explicit that any hypervisor which wants to advertise a smeared clock shall define a new type which specifies the precise smearing algorithm and cannot be conflated with the one you're defining here.
I will add a requirement that the UTC clock can never have smeared/smoothed leap seconds.
Thanks.
Quoted 9 lines
I think that not every vendor would bother to first add a definition of a smearing algorithm. Also, I think in some cases knowing the precise smearing algorithm might not be important (when having the same time as the hypervisor is enough and accuracy w.r.t. actual time is less important).
So maybe I should add a
VIRTIO_RTC_CLOCK_UTC_SMEAREDclock type, which for now could catch every UTC-like clock which smears/smoothes leap seconds, where the vendor cannot be bothered to add the smearing algorithm to spec and implementations.
Quoted 4 lines
Please $DEITY no.
Surely the whole point of this effort is to provide guests with precise and *unambiguous* knowledge of what the time is?
I would say, a fundamental point of this effort is to enable such implementations, and to detect if a device is promising to support this.
Where we might differ is as to whether the Virtio clock *for every implementation* has to be *continuously* accurate w.r.t. a time standard, or whether *for some implementations* it could be enough that all guests in the local system have the same, precise local notion of time, which might be off from the actual time standard.
Also, cf. ptp_kvm, which AFAIU doesn't address leap seconds at all...
With your described use case the UTC_SMEARED clock should of course not be used. The UTC_SMEARED clock would get a distinct name through udev, like /dev/ptp_virtio_utc_smeared, so the incompatibility could at least be detected.
Quoted 5 lines
Using UTC is bad enough, because for a UTC timestamp in the middle of a leap second the guest can't know know *which* occurrence of that leap second it is, so it might be wrong by a second. To resolve that ambiguity needs a leap indicator and/or
tai_offsetfield.
I agree that virtio-rtc should communicate this. The question is, what exactly, and for which clock read request?
As for PTP clocks:
- It doesn't fit into the ioctl PTP_SYS_OFFSET_PRECISE2.
- The clock_adjtime(2) tai_offset and return value could be set (if upstream will accept this). Would this help? As discussed, user space would need to interpret this (and currently no dynamic POSIX clock sets this).
Quoted 7 lines
But if you allow and encourage the use of smeared time without even a specification of *how* it's smeared... that's even worse. You have an unknown inaccuracy of up to a second for whole periods of time around a leap second. That's surely the *antithesis* of what we're trying to do here? Without an actual definition of the smearing, how is a guest actually supposed to know what time it is?
As discussed above, I think in some use cases it is enough for the guest to have a precise notion of time shared with the other guests.
Quoted 24 lines
(I suppose you could add a
tai_offset_nanosecondsfield? I don't know that I want to *encourage* that thought process...)Quoted 20 lines
As for UTC-SLS, this *could* also be added, although [1] says
It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress."
[1] https://datatracker.ietf.org/doc/html/draft-kuhn-leapsecond-00
Quoted 12 lines
Quoted 9 lines
Quoted 6 lines
One other thing to note is I think we're being very naïve about the TSC on x86 hosts. Theoretically, the TSC for every vCPU might run at a different frequency, and even if they run at the same frequency they might be offset from each other. I'm happy to be naïve but I think we should be *explicitly* so, and just say for example that it's defined against vCPU0 so if other vCPUs are different then all bets are off.
ATM Virtio has no notion of vCPUs, or vCPU topology. So I wonder if you have an opinion on how to represent this in a platform-independent way.
Well, it doesn't have a notion of TSCs either; you include that by implicit reference don't you?
Quoted 9 lines
Quoted 5 lines
I think I can add a SHOULD requirement which vaguely refers to vCPU 0, or boot vCPU. But the Virtio device is not necessarily hosted by a hypervisor, so the device might not even know which vCPUs there are. E.g. there is even interest to make virtio-rtc work as part of the virtio-net device (which might be implemented in hardware).
Sure, but those implementations aren't going to offer the TSC pairing at all, are they?
They could offer an Intel ART pairing (some physical PTP NICs are already doing this, look for the convert_art_to_tsc() users).
Thanks for the comments,
Peter
David Woodhouse
maintainerQuoted 4 lines · Peter Hilber
Quoted 2 lines · David Woodhouse
Surely the whole point of this effort is to provide guests with precise and *unambiguous* knowledge of what the time is?
Quoted 8 lines
I would say, a fundamental point of this effort is to enable such implementations, and to detect if a device is promising to support this.
Where we might differ is as to whether the Virtio clock *for every implementation* has to be *continuously* accurate w.r.t. a time standard, or whether *for some implementations* it could be enough that all guests in the local system have the same, precise local notion of time, which might be off from the actual time standard.
That makes sense, but remember I don't just want {X, Y, Z} but *also* the error bounds of ±deltaY and ±deltaZ too.
So your example just boils down to "I'm calling it UTC, and it's really precise, but we make no promises about its *accuracy*". And that's fine.
Quoted 1 line
Also, cf.
ptp_kvm, which AFAIU doesn't address leap seconds at all...
KVM is not an exemplar of good time practices.
Not in *any* respect :)
Quoted 4 lines
With your described use case the
UTC_SMEAREDclock should of course not be used. TheUTC_SMEAREDclock would get a distinct name through udev, like/dev/ptp_virtio_utc_smeared, so the incompatibility could at least be detected.
As long as it's clear to all concerned that this is fundamentally not usable as an accurate time source, and is only for the local-sync case you described, sure.
Quoted 7 lines
Quoted 4 lines
Using UTC is bad enough, because for a UTC timestamp in the middle of a leap second the guest can't know know *which* occurrence of that leap second it is, so it might be wrong by a second. To resolve that ambiguity needs a leap indicator and/or
tai_offsetfield.I agree that virtio-rtc should communicate this. The question is, what exactly, and for which clock read request?
Are we now conflating software architecture (and Linux in particular) with "hardware" design?
To a certain extent, as long as the virtio-rtc device is designed to expose time precisely and unambiguously, it's less important if the Linux kernel *today* can use that. Although of course we should strive for that. Let's be...well, *unambiguous*, I suppose... that we've changed topics to discuss that though.
Quoted 8 lines
As for PTP clocks:
- It doesn't fit into the ioctl
PTP_SYS_OFFSET_PRECISE2.- The
clock_adjtime(2)tai_offsetand return value could be set (if upstream will accept this). Would this help? As discussed, user space would need to interpret this (and currently no dynamic POSIX clock sets this).
Hm, maybe?
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
I think I can add a SHOULD requirement which vaguely refers to vCPU 0, or boot vCPU. But the Virtio device is not necessarily hosted by a hypervisor, so the device might not even know which vCPUs there are. E.g. there is even interest to make virtio-rtc work as part of the virtio-net device (which might be implemented in hardware).
Quoted 6 lines
Quoted 3 lines
Sure, but those implementations aren't going to offer the TSC pairing at all, are they?
They could offer an Intel ART pairing (some physical PTP NICs are already doing this, look for the
convert_art_to_tsc()users).
Right, but isn't that software's problem? The time pairing is defined against the ART in that case.
Now CC'ing the previous commenters to the virtio-rtc spec draft, since this discussion is mostly about the spec, and the Virtio mailing lists still seem to be in a migration hiatus...
Quoted 35 lines · David Woodhouse
Quoted 4 lines · Peter Hilber
Quoted 2 lines · David Woodhouse
Surely the whole point of this effort is to provide guests with precise and *unambiguous* knowledge of what the time is?
Quoted 8 lines
I would say, a fundamental point of this effort is to enable such implementations, and to detect if a device is promising to support this.
Where we might differ is as to whether the Virtio clock *for every implementation* has to be *continuously* accurate w.r.t. a time standard, or whether *for some implementations* it could be enough that all guests in the local system have the same, precise local notion of time, which might be off from the actual time standard.
That makes sense, but remember I don't just want {X, Y, Z} but *also* the error bounds of ±deltaY and ±deltaZ too.
So your example just boils down to "I'm calling it UTC, and it's really precise, but we make no promises about its *accuracy*". And that's fine.
Quoted 1 line
Also, cf.
ptp_kvm, which AFAIU doesn't address leap seconds at all...KVM is not an exemplar of good time practices.
Not in *any* respect :)Quoted 4 lines
With your described use case the
UTC_SMEAREDclock should of course not be used. TheUTC_SMEAREDclock would get a distinct name through udev, like/dev/ptp_virtio_utc_smeared, so the incompatibility could at least be detected.As long as it's clear to all concerned that this is fundamentally not usable as an accurate time source, and is only for the local-sync case you described, sure.
Quoted 5 lines
Quoted 4 lines
Using UTC is bad enough, because for a UTC timestamp in the middle of a leap second the guest can't know know *which* occurrence of that leap second it is, so it might be wrong by a second. To resolve that ambiguity needs a leap indicator and/or
tai_offsetfield.
Quoted 7 lines
Quoted 2 lines
I agree that virtio-rtc should communicate this. The question is, what exactly, and for which clock read request?
Are we now conflating software architecture (and Linux in particular) with "hardware" design?
To a certain extent, as long as the virtio-rtc device is designed to expose time precisely and unambiguously, it's less important if the Linux kernel *today* can use that. Although of course we should strive for that. Let's be...well, *unambiguous*, I suppose... that we've changed topics to discuss that though.
As Virtio is extensible (unlike hardware), my approach is to mostly specify only what also has a PoC user and a use case.
Quoted 18 lines
Quoted 8 lines
As for PTP clocks:
- It doesn't fit into the ioctl
PTP_SYS_OFFSET_PRECISE2.- The
clock_adjtime(2)tai_offsetand return value could be set (if upstream will accept this). Would this help? As discussed, user space would need to interpret this (and currently no dynamic POSIX clock sets this).Hm, maybe?
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
I think I can add a SHOULD requirement which vaguely refers to vCPU 0, or boot vCPU. But the Virtio device is not necessarily hosted by a hypervisor, so the device might not even know which vCPUs there are. E.g. there is even interest to make virtio-rtc work as part of the virtio-net device (which might be implemented in hardware).
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Sure, but those implementations aren't going to offer the TSC pairing at all, are they?
They could offer an Intel ART pairing (some physical PTP NICs are already doing this, look for the
convert_art_to_tsc()users).Right, but isn't that software's problem? The time pairing is defined against the ART in that case.
My point was that such a device would then not necessarily have an idea what vCPU 0 is. But let's just say that this will be phrased as a SHOULD best-effort requirement anyway.
Thanks for the comments,
Peter
David Woodhouse
maintainerQuoted 5 lines · Peter Hilber
Quoted 2 lines
To a certain extent, as long as the virtio-rtc device is designed to expose time precisely and unambiguously, it's less important if the Linux kernel *today* can use that. Although of course we should strive for that. Let's be...well, *unambiguous*, I suppose... that we've changed topics to discuss that though.
As Virtio is extensible (unlike hardware), my approach is to mostly specify only what also has a PoC user and a use case.
If we get memory-mapped (X, Y, Z, ±x, ±y) I'll have a user and a use case on day one. Otherwise, as I said in my first response, I can go do that as a separate device and decide that virtio_rtc doesn't meet our needs (especially for maintaining accuracy over LM).
My main concern for virto_rtc is that we avoid *ambiguity*. Yes, I get that it's extensible but we don't want a v1.0 of the spec, implemented by various hypervisors, which still leaves guests not knowing what the actual time is. That would not be good. And even UTC without a leap second indicator has that problem.
While the virtio-comment list is not available, now also CC'ing Parav, which may be interested in this virtio-rtc spec related discussion thread.
Quoted 8 lines · David Woodhouse
Quoted 5 lines · Peter Hilber
Quoted 2 lines
To a certain extent, as long as the virtio-rtc device is designed to expose time precisely and unambiguously, it's less important if the Linux kernel *today* can use that. Although of course we should strive for that. Let's be...well, *unambiguous*, I suppose... that we've changed topics to discuss that though.
As Virtio is extensible (unlike hardware), my approach is to mostly specify only what also has a PoC user and a use case.
If we get memory-mapped (X, Y, Z, ±x, ±y) I'll have a user and a use case on day one. Otherwise, as I said in my first response, I can go do that as a separate device and decide that
virtio_rtcdoesn't meet our needs (especially for maintaining accuracy over LM).
We plan to add
- leap second indication,
- UTC-to-TAI offset,
- clock smearing indication (including the noon-to-noon linear smearing variant which seems to be somewhat popular), and
- clock accuracy indication
to the initial spec and to the PoC implementation.
However, due to resource restrictions, we cannot ourselves add the memory-mapped clock to the initial spec.
Everyone is very welcome to contribute the memory-mapped clock to the spec, and I think it might then still make it to the initial version.
Quoted 2 lines
My main concern for
virto_rtcis that we avoid *ambiguity*. Yes, I get that it's extensible but we don't want a v1.0 of the spec, implemented by various hypervisors, which still leaves guests not knowing what the actual time is. That would not be good. And even UTC without a leap second indicator has that problem.
Agreed. That should be addressed by the above changes.
Best regards,
Peter
David Woodhouse
maintainerQuoted 17 lines · Peter Hilber
While the virtio-comment list is not available, now also CC'ing Parav, which may be interested in this virtio-rtc spec related discussion thread.
Quoted 8 lines · David Woodhouse
Quoted 5 lines · Peter Hilber
Quoted 2 lines
To a certain extent, as long as the virtio-rtc device is designed to expose time precisely and unambiguously, it's less important if the Linux kernel *today* can use that. Although of course we should strive for that. Let's be...well, *unambiguous*, I suppose... that we've changed topics to discuss that though.
As Virtio is extensible (unlike hardware), my approach is to mostly specify only what also has a PoC user and a use case.
If we get memory-mapped (X, Y, Z, ±x, ±y) I'll have a user and a use case on day one. Otherwise, as I said in my first response, I can go do that as a separate device and decide that
virtio_rtcdoesn't meet our needs (especially for maintaining accuracy over LM).We plan to add
- leap second indication,
Quoted 8 lines
- UTC-to-TAI offset,
- clock smearing indication (including the noon-to-noon linear smearing variant which seems to be somewhat popular), and
- clock accuracy indication
to the initial spec and to the PoC implementation.
Sounds good, thanks! I look forward to seeing the new revision. I'm hoping Julien can give feedback on the clock accuracy parts.
Quoted 5 lines
However, due to resource restrictions, we cannot ourselves add the memory-mapped clock to the initial spec.
Everyone is very welcome to contribute the memory-mapped clock to the spec, and I think it might then still make it to the initial version.
Makes sense. That is my primary target, so I'm *hoping* we can converge and get that into your initial spec, otherwise for expediency I'm going to have to define an ACPI or DT or PCI device of our own and expose the memory region through that instead.
(Even if I have to do that in the short term to stop the bleeding with customers' clocks and live migration, I'd still aspire to migrate to a virtio_rtc version of it in future)
David Woodhouse
maintainerQuoted 22 lines · Peter Hilber
RFC v3 updates
--------------This series implements a driver for a virtio-rtc device conforming to spec RFC v3 [1]. It now includes an RTC class driver with alarm, in addition to the PTP clock driver already present before.
This patch series depends on the patch series "treewide: Use clocksource id for
get_device_system_crosststamp()" [3]. Pull [4] to get the combined series on top of mainline.Overview
--------This patch series adds the
virtio_rtcmodule, and related bugfixes. Thevirtio_rtcmodule implements a driver compatible with the proposed Virtio RTC device specification [1]. The Virtio RTC (Real Time Clock) device provides information about current time. The device can provide different clocks, e.g. for the UTC or TAI time standards, or for physical time elapsed since some past epoch. The driver can read the clocks with simple or more accurate methods. Optionally, the driver can set an alarm.
Quoted 6 lines
The series first fixes some bugs in the
get_device_system_crosststamp()interpolation code, which is required for reliablevirtio_rtcoperation. Then, add thevirtio_rtcimplementation.For the Virtio RTC device, there is currently a proprietary implementation, which has been used for provisional testing.
As discussed before, I don't think it makes sense to design a new high- precision virtual clock which only gets it right *most* of the time. We absolutely need to address the issue of live migration.
When live migration occurs, the guest's time precision suffers in two ways.
First, even when migrating to a supposedly identical host the precise rate of the underlying counter (TSC, arch counter, etc.) can change within the tolerances (e.g. ±50PPM) of the hardware. Unlike the natural changes that NTP normally manages to track, this is a *step* change, potentially from -50PPM to +50PPM from one host to the next.
Second, the accuracy of the counter as preserved across migration is limited by the accuracy of each host's NTP synchronization. So there is also a step change in the value of the counter itself.
At the moment of migration, the guest's timekeeping should be considered invalid. Any previous cross-timestamps are meaningless, and blindly using the previously-known relationship between the counter and real time can lead to problems such as corruption in distributed databases, fines for mis-timestamped transactions, and other general unhappiness.
We obviously can't get a new timestamp from the virtio_rtc device every time an application wants to know the time reliably. We don't even want *system* calls for that, which is why we have it in a vDSO.
We can take the same approach to warning the guest about clock disruption due to live migration. A shared memory region from the virtual clock device even be mapped all the way to userspace, for those applications which need precise and *reliable* time to check a 'disruption' marker in it, and do whatever is appropriate (e.g. abort transactions and wait for time to resync) when it happens.
We can do better than just letting the guest know about disruption, of course. We can put the actual counter→realtime relationship into the memory region too. As well as being able to provide a PTP driver with this, the applications which care about *reliable* timestamps can mmap the page directly and use it, vDSO-style, to have accurate timestamps even from the first cycle after migration.
When disruption is signalled, the guest needs to throw away any *additional* refinement that it's done with NTP/PTP/PPS/etc. and revert to knowing nothing more than what the hypervisor advertises here.
Here's a first attempt at defining such a memory structure. For now I've done it as a "vmclock" ACPI device based loosely on vmgenid, but I think it makes most sense for this to be part of the virtio_rtc spec. Ultimately it doesn't matter *how* the guest finds the memory region.
Very preliminary QEMU hacks at
https://git.infradead.org/users/dwmw2/qemu.git/shortlog/refs/heads/vmclock
(I still need to do the KVM side helper for actually filling in the host clock information, converted to the *guest* TSC)
This is the guest side. H aving heckled your assumption that we can use the virt counter on Arm, I concede I'm doing the same thing for now. The structure itself is at the end, or see
https://git.infradead.org/?p=users/dwmw2/linux.git;a=blob;f=include/uapi/linux/vmclock.h;hb=vmclock
From 9e1c3b823d497efa4e0acb21b226a72e4d6e8a53 Mon Sep 17 00:00:00 2001
From: David Woodhouse <[email protected]>
Date: Mon, 10 Jun 2024 15:10:11 +0100
Subject: [PATCH] ptp: Add vDSO-style vmclock support
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
--- drivers/ptp/Kconfig | 13 ++ drivers/ptp/Makefile | 1 + drivers/ptp/ptp_vmclock.c | 404 +++++++++++++++++++++++++++++++++++ include/uapi/linux/vmclock.h | 102 +++++++++ 4 files changed, 520 insertions(+) create mode 100644 drivers/ptp/ptp_vmclock.c create mode 100644 include/uapi/linux/vmclock.h
drivers/ptp/Kconfig +13 -0
@@ -131,6 +131,19 @@ config PTP_1588_CLOCK_KVM To compile this driver as a module, choose M here: the module will be called ptp_kvm. +config PTP_1588_CLOCK_VMCLOCK + tristate "Virtual machine PTP clock" + depends on X86_TSC || ARM_ARCH_TIMER + depends on PTP_1588_CLOCK && ACPI + default y + help + This driver adds support for using a virtual precision clock + advertised by the hypervisor. This clock is only useful in virtual + machines where such a device is present. + + To compile this driver as a module, choose M here: the module + will be called ptp_vmclock. + config PTP_1588_CLOCK_IDT82P33 tristate "IDT 82P33xxx PTP clock" depends on PTP_1588_CLOCK && I2C
drivers/ptp/Makefile +1 -0
@@ -11,6 +11,7 @@ obj-$(CONFIG_PTP_1588_CLOCK_DTE) += ptp_dte.o obj-$(CONFIG_PTP_1588_CLOCK_INES) += ptp_ines.o obj-$(CONFIG_PTP_1588_CLOCK_PCH) += ptp_pch.o obj-$(CONFIG_PTP_1588_CLOCK_KVM) += ptp_kvm.o +obj-$(CONFIG_PTP_1588_CLOCK_VMCLOCK) += ptp_vmclock.o obj-$(CONFIG_PTP_1588_CLOCK_QORIQ) += ptp-qoriq.o ptp-qoriq-y += ptp_qoriq.o ptp-qoriq-$(CONFIG_DEBUG_FS) += ptp_qoriq_debugfs.o
drivers/ptp/ptp_vmclock.c new file +404 -0
404 lines not on this page · raw message
include/uapi/linux/vmclock.h new file +102 -0
102 lines not on this page · raw message
Signature · 1 line
2.44.0
Changing virtio-dev address to the new one. The discussion might also be relevant for virtio-comment, but it is discouraged to forward it to both.
Quoted 72 lines · David Woodhouse
Quoted 22 lines · Peter Hilber
RFC v3 updates
--------------This series implements a driver for a virtio-rtc device conforming to spec RFC v3 [1]. It now includes an RTC class driver with alarm, in addition to the PTP clock driver already present before.
This patch series depends on the patch series "treewide: Use clocksource id for
get_device_system_crosststamp()" [3]. Pull [4] to get the combined series on top of mainline.Overview
--------This patch series adds the
virtio_rtcmodule, and related bugfixes. Thevirtio_rtcmodule implements a driver compatible with the proposed Virtio RTC device specification [1]. The Virtio RTC (Real Time Clock) device provides information about current time. The device can provide different clocks, e.g. for the UTC or TAI time standards, or for physical time elapsed since some past epoch. The driver can read the clocks with simple or more accurate methods. Optionally, the driver can set an alarm.Quoted 6 lines
The series first fixes some bugs in the
get_device_system_crosststamp()interpolation code, which is required for reliablevirtio_rtcoperation. Then, add thevirtio_rtcimplementation.For the Virtio RTC device, there is currently a proprietary implementation, which has been used for provisional testing.
As discussed before, I don't think it makes sense to design a new high- precision virtual clock which only gets it right *most* of the time. We absolutely need to address the issue of live migration.
When live migration occurs, the guest's time precision suffers in two ways.
First, even when migrating to a supposedly identical host the precise rate of the underlying counter (TSC, arch counter, etc.) can change within the tolerances (e.g. ±50PPM) of the hardware. Unlike the natural changes that NTP normally manages to track, this is a *step* change, potentially from -50PPM to +50PPM from one host to the next.
Second, the accuracy of the counter as preserved across migration is limited by the accuracy of each host's NTP synchronization. So there is also a step change in the value of the counter itself.
At the moment of migration, the guest's timekeeping should be considered invalid. Any previous cross-timestamps are meaningless, and blindly using the previously-known relationship between the counter and real time can lead to problems such as corruption in distributed databases, fines for mis-timestamped transactions, and other general unhappiness.
We obviously can't get a new timestamp from the
virtio_rtcdevice every time an application wants to know the time reliably. We don't even want *system* calls for that, which is why we have it in a vDSO.We can take the same approach to warning the guest about clock disruption due to live migration. A shared memory region from the virtual clock device even be mapped all the way to userspace, for those applications which need precise and *reliable* time to check a 'disruption' marker in it, and do whatever is appropriate (e.g. abort transactions and wait for time to resync) when it happens.
We can do better than just letting the guest know about disruption, of course. We can put the actual counter→realtime relationship into the memory region too. As well as being able to provide a PTP driver with this, the applications which care about *reliable* timestamps can mmap the page directly and use it, vDSO-style, to have accurate timestamps even from the first cycle after migration.
Quoted 8 lines
When disruption is signalled, the guest needs to throw away any *additional* refinement that it's done with NTP/PTP/PPS/etc. and revert to knowing nothing more than what the hypervisor advertises here.
Here's a first attempt at defining such a memory structure. For now I've done it as a "vmclock" ACPI device based loosely on vmgenid, but I think it makes most sense for this to be part of the
virtio_rtcspec. Ultimately it doesn't matter *how* the guest finds the memory region.
This looks sensible to me. I also think it would be possible to adapt this for the virtio-rtc spec. The proposal also supports some other use cases which are not in the virtio-rtc RFC spec v4 [2], notably vDSO-style clock reading, and others such as indication of a past leap second.
Compared to the virtio-rtc RFC spec v4 [2], this proposal does not seem to support leap second smearing. Also, it would be helpful to allow indicating when some of the fields are not valid (such as leapsecond_counter_value, leapsecond_tai_time, tai_offset_sec, utc_time_maxerror_picosec, ...).
Do you have plans to contribute this to the Virtio specification and Linux driver implementation?
I also added a few comments below.
Thanks for sharing,
Peter
[2] https://lore.kernel.org/virtio-comment/[email protected]/
Quoted 29 lines
Very preliminary QEMU hacks at
https://git.infradead.org/users/dwmw2/qemu.git/shortlog/refs/heads/vmclock
(I still need to do the KVM side helper for actually filling in the host clock information, converted to the *guest* TSC)This is the guest side. H aving heckled your assumption that we can use the virt counter on Arm, I concede I'm doing the same thing for now. The structure itself is at the end, or see
https://git.infradead.org/?p=users/dwmw2/linux.git;a=blob;f=include/uapi/linux/vmclock.h;hb=vmclockFrom
9e1c3b823d497efa4e0acb21b226a72e4d6e8a53Mon Sep 17 00:00:00 2001
From: David Woodhouse <[email protected]>
Date: Mon, 10 Jun 2024 15:10:11 +0100
Subject: [PATCH] ptp: Add vDSO-style vmclock supportThe vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Signed-off-by David Woodhouse <[email protected]>--- drivers/ptp/Kconfig | 13 ++ drivers/ptp/Makefile | 1 + drivers/ptp/ptp_vmclock.c | 404 +++++++++++++++++++++++++++++++++++ include/uapi/linux/vmclock.h | 102 +++++++++ 4 files changed, 520 insertions(+) create mode 100644 drivers/ptp/ptp_vmclock.c create mode 100644 include/uapi/linux/vmclock.h
[...]
drivers/ptp/ptp_vmclock.c line 189
Quoted 10 lines
drivers/ptp/ptp_vmclock.c new file +10
-0+ +static const struct ptp_clock_info ptp_vmclock_info = { + .owner =THIS_MODULE , + .max_adj =0 , + .n_ext_ts =0 , + .n_pins =0 , + .pps =0 , + .adjfine = ptp_vmclock_adjfine, + .adjtime = ptp_vmclock_adjtime, + .gettime64 = ptp_vmclock_gettime,
Should implement .gettimex64 instead.
Quoted 5 lines
drivers/ptp/ptp_vmclock.c new file +5
-0+ .settime64 = ptp_vmclock_settime, + .enable = ptp_vmclock_enable, + .getcrosststamp = ptp_vmclock_getcrosststamp, +}; +
[...]
Quoted 85 lines
include/uapi/linux/vmclock.h new file +85
-0+/* +* This structure provides a vDSO-style clock to VM guests, exposing the +* relationship (or lack thereof) between the CPU clock (TSC, timebase, arch +* counter, etc.) and real time. It is designed to address the problem of +* live migration, which other clock enlightenments do not. +* +* When a guest is live migrated, this affects the clock in two ways. +* +* First, even between identical hosts the actual frequency of the underlying +* counter will change within the tolerances of its specification (typically +* ±50PPM, or 4 seconds a day). The frequency also varies over time on the +* same host, but can be tracked by NTP as it generally varies slowly. With +* live migration there is a step change in the frequency, with no warning. +* +* Second, there may be a step change in the value of the counter itself, as +* its accuracy is limited by the precision of the NTP synchronization on the +* source and destination hosts. +* +* So any calibration (NTP, PTP, etc.) which the guest has done on the source +* host before migration is invalid, and needs to be redone on the new host. +* +* In its most basic mode, this structure provides only an indication to the +* guest that live migration has occurred. This allows the guest to know that +* its clock is invalid and take remedial action. For applications that need +* reliable accurate timestamps (e.g. distributed databases), the structure +* can be mapped all the way to userspace. This allows the application to see +* directly for itself that the clock is disrupted and take appropriate +* action, even when using a vDSO-style method to get the time instead of a +* system call. +* +* In its more advanced mode. this structure can also be used to expose the +* precise relationship of the CPU counter to real time, as calibrated by the +* host. This means that userspace applications can have accurate time +* immediately after live migration, rather than having to pause operations +* and wait for NTP to recover. This mode does, of course, rely on the +* counter being reliable and consistent across CPUs. +*/ + +#ifdef __KERNEL__ +#include <linux/types.h> +#else +#include <stdint.h> +#endif + +struct vmclock_abi { +uint32_t magic; +#define VMCLOCK_MAGIC 0x4b4c4356/* "VCLK" */ +uint16_t size;/* Size of page containing this structure */ +uint16_t version;/* 1 */ + +/* Sequence lock. Low bit means an update is in progress. */ +uint64_t seq_count; + +/* +* This field changes to another non-repeating value when the CPU +* counter is disrupted, for example on live migration. +*/ +uint64_t disruption_marker; + +uint8_t clock_status; +#define VMCLOCK_STATUS_UNKNOWN 0 +#define VMCLOCK_STATUS_INITIALIZING 1 +#define VMCLOCK_STATUS_SYNCHRONIZED 2 +#define VMCLOCK_STATUS_FREERUNNING 3 +#define VMCLOCK_STATUS_UNRELIABLE 4 + +uint8_t counter_id; +#define VMCLOCK_COUNTER_INVALID 0 +#define VMCLOCK_COUNTER_X86_TSC 1 +#define VMCLOCK_COUNTER_ARM_VCNT 2 + +uint8_t pad[3 ]; + +/* +* UTC on its own is non-monotonic and ambiguous. +* +* Inform the guest about the TAI offset, so that it can have an +* actual monotonic and reliable time reference if it needs it. +* +* Also indicate a nearby leap second, if one exists. Unlike in +* NTP, this may indicate a leap second in the past in order to +* indicate that it *has* been taken into account. +*/ +int8_t leapsecond_direction; +int16_t tai_offset_sec;
include/uapi/linux/vmclock.h line 97
Quoted 10 lines
include/uapi/linux/vmclock.h new file +10
-0+uint64_t leapsecond_counter_value; +uint64_t leapsecond_tai_time; + +/* Paired values of counter and UTC at a given point in time. */ +uint64_t counter_value; +uint64_t utc_time_sec; +uint64_t utc_time_frac_sec; + +/* Counter frequency, and error margin. Units of (second >> 64) */ +uint64_t counter_period_frac_sec;
AFAIU this might limit the precision in case of high counter frequencies. Could the unit be aligned to the expected frequency band of counters?
Quoted 5 lines
include/uapi/linux/vmclock.h new file +5
-0+uint64_t counter_period_error_rate_frac_sec; + +/* Error margin of UTC reading above (± picoseconds) */ +uint64_t utc_time_maxerror_picosec; +};
David Woodhouse
maintainerQuoted 2 lines · Peter Hilber
Changing virtio-dev address to the new one. The discussion might also be relevant for virtio-comment, but it is discouraged to forward it to both.
I will happily take it to whichever forum you think is most appropriate. (And you have my permission to direct replies to whichever you choose.)
Quoted 4 lines · David Woodhouse
Quoted 3 lines
As discussed before, I don't think it makes sense to design a new high- precision virtual clock which only gets it right *most* of the time. We absolutely need to address the issue of live migration.
...
Quoted 9 lines
Quoted 4 lines
Here's a first attempt at defining such a memory structure. For now I've done it as a "vmclock" ACPI device based loosely on vmgenid, but I think it makes most sense for this to be part of the
virtio_rtcspec. Ultimately it doesn't matter *how* the guest finds the memory region.This looks sensible to me. I also think it would be possible to adapt this for the virtio-rtc spec. The proposal also supports some other use cases which are not in the virtio-rtc RFC spec v4 [2], notably vDSO-style clock reading, and others such as indication of a past leap second.
Right. The vDSO-style clock reading is key to solving the live migration problem.
The other key thing this adds is the error bounds, which some applications care deeply about. I've been working with the team that owns ClockBound on that part: https://github.com/aws/clock-bound
Quoted 2 lines
Compared to the virtio-rtc RFC spec v4 [2], this proposal does not seem to support leap second smearing.
That's kind of intentional. Leap second smearing should be considered the *antithesis* of precise time. Anyone who wants a monotonic realtime clock should be using the POSIX CLOCK_TAI.
Part of my motivation for fixing the LM problem is because some financial institutions can incur significant penalties for putting inaccurate timestamps on transactions — even the disruption caused by live migration is enough to trigger that. So deliberately lying to them about what the UTC time is, by up to a second in either direction, is not necessarily in their best interest.
As you noted, this proposal does expose leap seconds in the recent past, which is all that's needed to allow a guest to generate a smeared clock *from* the accurate clock that is provided through this mechanism.
(Knowledge of past leap seconds is needed because in some modes, smearing adjustments continue for some hours *afte* the leap second should have occurred. So the NTP style of leap indicator isn't sufficient).
Quoted 3 lines
Also, it would be helpful to allow indicating
when some of the fields are not valid (such asleapsecond_counter_value,leapsecond_tai_time,tai_offset_sec,utc_time_maxerror_picosec, ...).
Right. For some of those the answer can just be 'zero means invalid', for the max error, perhaps MAX_UINT64. But we should definitely make that explicit.
I'm also not entirely sure I understood Julien's insistence that we include the leapsecond_counter_value as *well* as the leapsecond_tai_time. It seems to me that the implementation would have to recalculate that every time the frequency is adjusted.
For some of those fields, I was expecting a certain amount of bikeshedding to occur and figured it was better to post an early straw man and solicit feedback.
Quoted 2 lines
Do you have plans to contribute this to the Virtio specification and Linux driver implementation?
Yes, absolutely. For now I've implemented it in the Linux guest¹ and in QEMU² as an ACPI device modelled on vmgenid, but I'd love *not* to have to do that, and just to do it based on virtio instead.
¹ https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads/vmclock
² https://git.infradead.org/users/dwmw2/qemu.git/shortlog/refs/heads/vmclock
Quoted 11 lines
Quoted 9 lines
+static const struct
ptp_clock_infoptp_vmclock_info= { + .owner =THIS_MODULE,
+ .max_adj = 0,
+ .n_ext_ts = 0,
+ .n_pins = 0,
+ .pps = 0,
+ .adjfine =ptp_vmclock_adjfine, + .adjtime =ptp_vmclock_adjtime, + .gettime64 =ptp_vmclock_gettime,Should implement .gettimex64 instead.
Ack, thanks. I'll go play with that.
Quoted 7 lines
Quoted 4 lines
+
+ /* Counter frequency, and error margin. Units of (second >> 64) */ + uint64_tcounter_period_frac_sec;AFAIU this might limit the precision in case of high counter frequencies. Could the unit be aligned to the expected frequency band of counters?
This field indicates the period of a single tick, in units of 1>>64 of a second. That's about 5.4e-20 seconds, or 54 zeptoseconds?
Can you walk me through a calculation where you believe that level of precision is insufficient?
I guess the precision matters if the structure isn't updated for a long period of time, and the delta between the current counter and the snapshot is high? That's a *lot* of 54 zeptosecondses? But you really would need a *lot* of them before you care? And if nobody's been calibrating your counter for that long, surely you have bigger worries?
Am I missing something there?
David Woodhouse
maintainerQuoted 15 lines · David Woodhouse
Quoted 8 lines
Quoted 5 lines
+
+ /* Counter frequency, and error margin. Units of (second >> 64) */ + uint64_tcounter_period_frac_sec;AFAIU this might limit the precision in case of high counter frequencies. Could the unit be aligned to the expected frequency band of counters?
This field indicates the period of a single tick, in units of 1>>64 of a second. That's about 5.4e-20 seconds, or 54 zeptoseconds?
Can you walk me through a calculation where you believe that level of precision is insufficient?
Quoted 7 lines
I guess the precision matters if the structure isn't updated for a long period of time, and the delta between the current counter and the snapshot is high? That's a *lot* of 54 zeptosecondses? But you really would need a *lot* of them before you care? And if nobody's been calibrating your counter for that long, surely you have bigger worries?
Am I missing something there?
Hm, that was a bit rushed at the end of the day; let's take a better look...
Let's take a hypothetical example of a 100GHz counter. That's two orders of magnitude more than today's Arm arch counter.
The period of such a counter would be 10 picoseconds.
(Let's ignore the question of how far light actually travels in that time and how *realistic* that example is, for the moment.)
It turns out that at that rate, there *are* a lot of 54 zeptosecondses of precision loss in the day. It could be half a millisecond a day, or 20µs an hour.
That particular example of 10 picoseconds is 184467440.7370955 (seconds>>64) which could be truncated to 184467440 — losing about 4PPB (a third of a millisecond a day; 14µs an hour).
So yeah, I suppose a 'shift' field could make sense. It's easy enough to consume on the guest side as it doesn't really perturb the 128-bit multiplication very much; especially if we don't let it be negative.
And implementations *can* just set it to zero. It hurts nobody.
Or were you thinking of just using a fixed shift like (seconds>>80) instead?
David Woodhouse
maintainerRFC PATCH v2 1/1 ptp: Add vDSO-style vmclock support
From: David Woodhouse <[email protected]>
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so only when such is actually helpful.
The memory region of the device is also exposed to userspace so it can be read or memory mapped by application which need reliable notification of clock disruptions.
---
v2:
• Add gettimex64() support
• Convert TSC values to KVM clock when appropriate
• Require int128 support
• Add counter_period_shift
• Add timeout when seq_count is invalid
• Add flags field
• Better comments in vmclock ABI structure
• Explicitly forbid smearing (as clock rates would need to change)
drivers/ptp/Kconfig | 13 + drivers/ptp/Makefile | 1 + drivers/ptp/ptp_vmclock.c | 516 +++++++++++++++++++++++++++++++++++ include/uapi/linux/vmclock.h | 138 ++++++++++ 4 files changed, 668 insertions(+) create mode 100644 drivers/ptp/ptp_vmclock.c create mode 100644 include/uapi/linux/vmclock.h
drivers/ptp/Kconfig +13 -0
@@ -131,6 +131,19 @@ config PTP_1588_CLOCK_KVM To compile this driver as a module, choose M here: the module will be called ptp_kvm. +config PTP_1588_CLOCK_VMCLOCK + tristate "Virtual machine PTP clock" + depends on X86_TSC || ARM_ARCH_TIMER + depends on PTP_1588_CLOCK && ACPI && ARCH_SUPPORTS_INT128 + default y + help + This driver adds support for using a virtual precision clock + advertised by the hypervisor. This clock is only useful in virtual + machines where such a device is present. + + To compile this driver as a module, choose M here: the module + will be called ptp_vmclock. + config PTP_1588_CLOCK_IDT82P33 tristate "IDT 82P33xxx PTP clock" depends on PTP_1588_CLOCK && I2C
drivers/ptp/Makefile +1 -0
@@ -11,6 +11,7 @@ obj-$(CONFIG_PTP_1588_CLOCK_DTE) += ptp_dte.o obj-$(CONFIG_PTP_1588_CLOCK_INES) += ptp_ines.o obj-$(CONFIG_PTP_1588_CLOCK_PCH) += ptp_pch.o obj-$(CONFIG_PTP_1588_CLOCK_KVM) += ptp_kvm.o +obj-$(CONFIG_PTP_1588_CLOCK_VMCLOCK) += ptp_vmclock.o obj-$(CONFIG_PTP_1588_CLOCK_QORIQ) += ptp-qoriq.o ptp-qoriq-y += ptp_qoriq.o ptp-qoriq-$(CONFIG_DEBUG_FS) += ptp_qoriq_debugfs.o
drivers/ptp/ptp_vmclock.c new file +516 -0
516 lines not on this page · raw message
include/uapi/linux/vmclock.h new file +138 -0
138 lines not on this page · raw message
Signature · 1 line
2.44.0
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 5 lines · David Woodhouse
From: David Woodhouse <[email protected]>
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Quoted 7 lines
Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so only when such is actually helpful.
The memory region of the device is also exposed to userspace so it can be read or memory mapped by application which need reliable notification of clock disruptions.
There is effort underway to expose PTP clocks to user space via VDSO. Can we please not expose an ad hoc interface for that?
As you might have heard the sad news, I'm not feeling up to the task to dig deeper into this right now. Give me a couple of days to look at this with working brain.
Thanks,
tglx
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 10 lines · Thomas Gleixner
Quoted 9 lines · David Woodhouse
From: David Woodhouse <[email protected]>
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so only when such is actually helpful.
Quoted 5 lines
Quoted 3 lines
The memory region of the device is also exposed to userspace so it can be read or memory mapped by application which need reliable notification of clock disruptions.
There is effort underway to expose PTP clocks to user space via VDSO.
Ooh, interesting. Got a reference to that please?
Quoted 1 line
Can we please not expose an ad hoc interface for that?
Absolutely. I'm explicitly trying to intercept the virtio-rtc specification here, to *avoid* having to do anything ad hoc.
Note that this is a "vDSO-style" interface from hypervisor to guest via a shared memory region, not necessarily an actual vDSO.
But yes, it *is* intended to be exposed to userspace, so that userspace can know the *accurate* time without a system call, and know that it hasn't been perturbed by live migration.
Quoted 3 lines
As you might have heard the sad news, I'm not feeling up to the task to dig deeper into this right now. Give me a couple of days to look at this with working brain.
I have not heard any news, although now I'm making inferences.
Wishing you the best!
John Stultz
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 24 lines · David Woodhouse
Quoted 10 lines · Thomas Gleixner
Quoted 9 lines · David Woodhouse
From: David Woodhouse <[email protected]>
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so only when such is actually helpful.
Quoted 5 lines
Quoted 3 lines
The memory region of the device is also exposed to userspace so it can be read or memory mapped by application which need reliable notification of clock disruptions.
There is effort underway to expose PTP clocks to user space via VDSO.
Ooh, interesting. Got a reference to that please?
Quoted 1 line
Can we please not expose an ad hoc interface for that?
Absolutely. I'm explicitly trying to intercept the virtio-rtc specification here, to *avoid* having to do anything ad hoc.
Quoted 6 lines
Note that this is a "vDSO-style" interface from hypervisor to guest via a shared memory region, not necessarily an actual vDSO.
But yes, it *is* intended to be exposed to userspace, so that userspace can know the *accurate* time without a system call, and know that it hasn't been perturbed by live migration.
Yea, I was going to raise a concern that just defining an mmaped structure means it has to trust the guest logic is as expected. It's good that it's versioned! :)
I'd fret a bit about exposing this to userland. It feels very similar to the old powerpc systemcfg implementation that similarly mapped just kernel data out to userland and was difficult to maintain as changes were made. Would including a code page like a proper vdso make sense to make this more flexible of an UABI to maintain?
thanks
-john
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 28 lines · John Stultz
Quoted 27 lines · David Woodhouse
Quoted 10 lines · Thomas Gleixner
Quoted 9 lines · David Woodhouse
From: David Woodhouse <[email protected]>
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so only when such is actually helpful.
Quoted 5 lines
Quoted 3 lines
The memory region of the device is also exposed to userspace so it can be read or memory mapped by application which need reliable notification of clock disruptions.
There is effort underway to expose PTP clocks to user space via VDSO.
Ooh, interesting. Got a reference to that please?
Quoted 1 line
Can we please not expose an ad hoc interface for that?
Absolutely. I'm explicitly trying to intercept the virtio-rtc specification here, to *avoid* having to do anything ad hoc.
Note that this is a "vDSO-style" interface from hypervisor to guest via a shared memory region, not necessarily an actual vDSO.
Quoted 7 lines
Quoted 3 lines
But yes, it *is* intended to be exposed to userspace, so that userspace can know the *accurate* time without a system call, and know that it hasn't been perturbed by live migration.
Yea, I was going to raise a concern that just defining an mmaped structure means it has to trust the guest logic is as expected. It's good that it's versioned! :)
Right. Although it's basically a pvclock, and we've had those for ages.
The main difference here is that we add an indicator that tells the guest that it's been live migrated, so any additional NTP/PTP refinement that the *guest* has done of its oscillator, should now be discarded.
It's also designed to be useful in "disruption-only" mode, where the pvclock information isn't actually populated, so *all* it does is tell guests that their clock is now hosed due to live migration.
That part is why it needs to be mappable directly to userspace, so that userspace can not only get a timestamp but *also* know that it's actually valid. All without a system call.
The critical use cases are financial systems where they incur massive fines if they submit mis-timestamped transactions, and distributed databases which rely on accurate timestamps (and error bounds) for eventual coherence. Live migration can screw those completely.
I'm open to changing fairly much anything about the proposal as long as we can address those use cases (which the existing virtio-rtc and other KVM enlightenments do not).
Quoted 5 lines
I'd fret a bit about exposing this to userland. It feels very similar to the old powerpc systemcfg implementation that similarly mapped just kernel data out to userland and was difficult to maintain as changes were made. Would including a code page like a proper vdso make sense to make this more flexible of an UABI to maintain?
I think the structure itself should be stable once we've bikeshedded it a bit. But there is certainly some potential for vDSO functions which help us expose it to the user...
This structure exposes a 'disruption count' which is updated every time the TSC/counter is messed with by live migration. But what is userspace actually going to *compare* it with?
It basically needs to compare it with the disruption count when the clock was last synchronized, so maybe the kernel could export *that* to vDSO too, then expose a simple vDSO function which reports whether the clock is valid?
The 'invalid' code path could turn into an actual system call which makes the kernel (check for itself and) call ntp_clear() when the disruption occurs. Or maybe not just ntp_clear() but actually consume the pvclock rate information directly and apply the *new* calibration?
That kind of thing would be great, and I've definitely tried to design the structure so that it *can* be made a first-class citizen within the kernel's timekeeping code and used like that.
But I was going to start with a more modest proposal that it's "just a device", and applications which care about reliable time after LM would have to /dev/vmclock0 and mmap it and check for themselves. (Which would be assisted by things like the ClockBound library).
Richard Cochran
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
In reply to Thomas GleixnerQuoted 2 lines · Thomas Gleixner
There is effort underway to expose PTP clocks to user space via VDSO.
That sounds interesting. Has anything been posted?
Thanks,
Richard
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
In reply to David WoodhouseQuoted 16 lines · David Woodhouse
From: David Woodhouse <[email protected]>
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so only when such is actually helpful.
The memory region of the device is also exposed to userspace so it can be read or memory mapped by application which need reliable notification of clock disruptions.
Signed-off-by David Woodhouse <[email protected]>---
Quoted 9 lines
v2:
• Addgettimex64()support
• Convert TSC values to KVM clock when appropriate
• Require int128 support
• Addcounter_period_shift
• Add timeout whenseq_countis invalid
• Add flags field
• Better comments in vmclock ABI structure
• Explicitly forbid smearing (as clock rates would need to change)
Leap second smearing information could still be conveyed through the vmclock_abi. AFAIU, to cover the popular smearing variants, it should be enough to indicate whether the driver should apply linear or cosine smearing, and the start time and end time.
Quoted 9 lines
drivers/ptp/Kconfig | 13 + drivers/ptp/Makefile | 1 + drivers/ptp/ptp_vmclock.c | 516 +++++++++++++++++++++++++++++++++++ include/uapi/linux/vmclock.h | 138 ++++++++++ 4 files changed, 668 insertions(+) create mode 100644 drivers/ptp/ptp_vmclock.c create mode 100644 include/uapi/linux/vmclock.h
[...]
Quoted 64 lines
drivers/ptp/ptp_vmclock.c new file +64
-0+ +/* +* Multiply a 64-bit count by a 64-bit tick 'period' in units of seconds >> 64 +* and add the fractional second part of the reference time. +* +* The result is a 128-bit value, the top 64 bits of which are seconds, and +* the low 64 bits are (seconds >> 64). +* +* If __int128 isn't available, perform the calculation 32 bits at a time to +* avoid overflow. +*/ +static inline uint64_t mul_u64_u64_shr_add_u64 (uint64_t *res_hi,uint64_t delta, +uint64_t period,uint8_t shift, +uint64_t frac_sec) +{ +unsigned __int128 res = (unsigned __int128 )delta * period; + + res >>= shift; + res += frac_sec; + *res_hi = res >>64 ; +return (uint64_t )res; +} + +static int vmclock_get_crosststamp (struct vmclock_state *st, +struct ptp_system_timestamp *sts, +struct system_counterval_t *system_counter, +struct timespec64 *tspec) +{ +ktime_t deadline =ktime_add (ktime_get (),VMCLOCK_MAX_WAIT ); +struct system_time_snapshot systime_snapshot; +uint64_t cycle, delta, seq, frac_sec; + +#ifdef CONFIG_X86 +/* +* We'd expect the hypervisor to know this and to report the clock +* status as VMCLOCK_STATUS_UNRELIABLE. But be paranoid. +*/ +if (check_tsc_unstable ()) +return -EINVAL ; +#endif + +while (1 ) { + seq = st->clk->seq_count & ~1ULL ; +virt_rmb (); + +if (st->clk->clock_status ==VMCLOCK_STATUS_UNRELIABLE ) +return -EINVAL ; + +/* +* When invoked for gettimex64(), fill in the pre/post system +* times. The simple case is when system time is based on the +* same counter as st->cs_id, in which case all three times +* will be derived from the *same* counter value. +* +* If the system isn't using the same counter, then the value +* from ktime_get_snapshot() will still be used as pre_ts, and +* ptp_read_system_postts() is called to populate postts after +* calling get_cycles(). +* +* The conversion to timespec64 happens further down, outside +* the seq_count loop. +*/ +if (sts) { +ktime_get_snapshot (&systime_snapshot);
drivers/ptp/ptp_vmclock.c line 115
Quoted 10 lines
drivers/ptp/ptp_vmclock.c new file +10
-0+if (systime_snapshot.cs_id == st->cs_id) { + cycle = systime_snapshot.cycles; + }else { + cycle =get_cycles (); +ptp_read_system_postts (sts); + } + }else + cycle =get_cycles (); + + delta = cycle - st->clk->counter_value;
AFAIU in the general case this needs to be masked for non 64-bit counters.
Quoted 30 lines
drivers/ptp/ptp_vmclock.c new file +30
-0+ + frac_sec =mul_u64_u64_shr_add_u64 (&tspec->tv_sec, delta, + st->clk->counter_period_frac_sec, + st->clk->counter_period_shift, + st->clk->utc_time_frac_sec); + tspec->tv_nsec =mul_u64_u64_shr (frac_sec,NSEC_PER_SEC ,64 ); + tspec->tv_sec += st->clk->utc_time_sec; + +virt_rmb (); +if (seq == st->clk->seq_count) +break ; + +if (ktime_after (ktime_get (), deadline)) +return -ETIMEDOUT ; + } + +if (system_counter) { + system_counter->cycles = cycle; + system_counter->cs_id = st->cs_id; + } + +if (sts) { + sts->pre_ts =ktime_to_timespec64 (systime_snapshot.real); +if (systime_snapshot.cs_id == st->cs_id) + sts->post_ts = sts->pre_ts; + } + +return 0 ; +} +
[...]
drivers/ptp/ptp_vmclock.c line 293
Quoted 10 lines
drivers/ptp/ptp_vmclock.c new file +10
-0+ +static const struct ptp_clock_info ptp_vmclock_info = { + .owner =THIS_MODULE , + .max_adj =0 , + .n_ext_ts =0 , + .n_pins =0 , + .pps =0 , + .adjfine = ptp_vmclock_adjfine, + .adjtime = ptp_vmclock_adjtime, + .gettime64 = ptp_vmclock_gettime,
The .gettime64 op is now unneeded.
Quoted 6 lines
drivers/ptp/ptp_vmclock.c new file +6
-0+ .gettimex64 = ptp_vmclock_gettimex, + .settime64 = ptp_vmclock_settime, + .enable = ptp_vmclock_enable, + .getcrosststamp = ptp_vmclock_getcrosststamp, +}; +
[...]
Quoted 42 lines
include/uapi/linux/vmclock.h new file +36
-0@@ -0,0 +1,138 @@ +/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */ + +/* +* This structure provides a vDSO-style clock to VM guests, exposing the +* relationship (or lack thereof) between the CPU clock (TSC, timebase, arch +* counter, etc.) and real time. It is designed to address the problem of +* live migration, which other clock enlightenments do not. +* +* When a guest is live migrated, this affects the clock in two ways. +* +* First, even between identical hosts the actual frequency of the underlying +* counter will change within the tolerances of its specification (typically +* ±50PPM, or 4 seconds a day). The frequency also varies over time on the +* same host, but can be tracked by NTP as it generally varies slowly. With +* live migration there is a step change in the frequency, with no warning. +* +* Second, there may be a step change in the value of the counter itself, as +* its accuracy is limited by the precision of the NTP synchronization on the +* source and destination hosts. +* +* So any calibration (NTP, PTP, etc.) which the guest has done on the source +* host before migration is invalid, and needs to be redone on the new host. +* +* In its most basic mode, this structure provides only an indication to the +* guest that live migration has occurred. This allows the guest to know that +* its clock is invalid and take remedial action. For applications that need +* reliable accurate timestamps (e.g. distributed databases), the structure +* can be mapped all the way to userspace. This allows the application to see +* directly for itself that the clock is disrupted and take appropriate +* action, even when using a vDSO-style method to get the time instead of a +* system call. +* +* In its more advanced mode. this structure can also be used to expose the +* precise relationship of the CPU counter to real time, as calibrated by the +* host. This means that userspace applications can have accurate time +* immediately after live migration, rather than having to pause operations
include/uapi/linux/vmclock.h line 46
Quoted 10 lines
include/uapi/linux/vmclock.h new file +10
-0+* and wait for NTP to recover. This mode does, of course, rely on the +* counter being reliable and consistent across CPUs. +* +* Note that this must be true UTC, never with smeared leap seconds. If a +* guest wishes to construct a smeared clock, it can do so. Presenting a +* smeared clock through this interface would be problematic because it +* actually messes with the apparent counter *period*. A linear smearing +* of 1 ms per second would effectively tweak the counter period by 1000PPM +* at the start/end of the smearing period, while a sinusoidal smear would +* basically be impossible to represent.
Clock types other than UTC could also be supported: TAI, monotonic.
Quoted 15 lines
include/uapi/linux/vmclock.h new file +15
-0+*/ + +#ifndef __VMCLOCK_H__ +#define __VMCLOCK_H__ + +#ifdef __KERNEL__ +#include <linux/types.h> +#else +#include <stdint.h> +#endif + +struct vmclock_abi { + uint32_t magic; +#define VMCLOCK_MAGIC 0x4b4c4356 /* "VCLK" */ + uint16_t size; /* Size of page containing this structure */
include/uapi/linux/vmclock.h line 71
Quoted 10 lines
include/uapi/linux/vmclock.h new file +10
-0+uint16_t version;/* 1 */ + +/* Sequence lock. Low bit means an update is in progress. */ +uint64_t seq_count; + +/* +* This field changes to another non-repeating value when the CPU +* counter is disrupted, for example on live migration. +*/ +uint64_t disruption_marker;
The field could also change when the clock is stepped (leap seconds excepted), or when the clock frequency is slewed.
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 27 lines · Peter Hilber
Quoted 16 lines · David Woodhouse
From: David Woodhouse <[email protected]>
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so only when such is actually helpful.
The memory region of the device is also exposed to userspace so it can be read or memory mapped by application which need reliable notification of clock disruptions.
Signed-off-by David Woodhouse <[email protected]>---
Quoted 9 lines
v2:
• Addgettimex64()support
• Convert TSC values to KVM clock when appropriate
• Require int128 support
• Addcounter_period_shift
• Add timeout whenseq_countis invalid
• Add flags field
• Better comments in vmclock ABI structure
• Explicitly forbid smearing (as clock rates would need to change)
Quoted 4 lines
Leap second smearing information could still be conveyed through the
vmclock_abi. AFAIU, to cover the popular smearing variants, it should be enough to indicate whether the driver should apply linear or cosine smearing, and the start time and end time.
Yes. The clock information actually conveyed through the {counter, time, rate} tuple should never be smeared, and should only ever be UTC.
But we could provide a hint to the guest operating system about what type of smearing to perform, *if* it chooses to offer a clock other than the standard CLOCK_REALTIME to its users.
I already added a flags field, so this might look something like:
/*
* Smearing flags. The UTC clock exposed through this structure
* is only ever true UTC, but a guest operating system may
* choose to offer a monotonic smeared clock to its users. This
* merely offers a hint about what kind of smearing to perform,
* for consistency with systems in the nearby environment. */
#define VMCLOCK_FLAGS_SMEAR_UTC_SLS (1<<5) /* draft-kuhn-leapsecond-00.txt */
(UTC-SLS is probably a bad example but are there formal definitions for anything else?)
Quoted 80 lines
Quoted 9 lines
But we
drivers/ptp/Kconfig | 13 +
drivers/ptp/Makefile | 1 + drivers/ptp/ptp_vmclock.c | 516 +++++++++++++++++++++++++++++++++++include/uapi/linux/vmclock.h| 138 ++++++++++4 files changed, 668 insertions(+)create mode 100644
drivers/ptp/ptp_vmclock.c
create mode 100644include/uapi/linux/vmclock.h[...]
Quoted 68 lines
drivers/ptp/ptp_vmclock.c new file +68
-0+ +/* +* Multiply a 64-bit count by a 64-bit tick 'period' in units of seconds >> 64 +* and add the fractional second part of the reference time. +* +* The result is a 128-bit value, the top 64 bits of which are seconds, and +* the low 64 bits are (seconds >> 64). +* +* If __int128 isn't available, perform the calculation 32 bits at a time to +* avoid overflow. +*/ +static inline uint64_t mul_u64_u64_shr_add_u64 (uint64_t *res_hi,uint64_t delta, + uint64_t period, uint8_t shift, + uint64_t frac_sec) +{ + unsigned __int128 res = (unsigned __int128)delta * period; + + res >>= shift; + res += frac_sec; + *res_hi = res >> 64; + return (uint64_t)res; +} + +static int vmclock_get_crosststamp (struct vmclock_state *st, + struct ptp_system_timestamp *sts, + struct system_counterval_t *system_counter, + struct timespec64 *tspec) +{ + ktime_t deadline = ktime_add(ktime_get(), VMCLOCK_MAX_WAIT); + struct system_time_snapshot systime_snapshot; + uint64_t cycle, delta, seq, frac_sec; + +#ifdef CONFIG_X86 + /* + * We'd expect the hypervisor to know this and to report the clock + * status as VMCLOCK_STATUS_UNRELIABLE. But be paranoid. + */ + if (check_tsc_unstable()) + return -EINVAL; +#endif + + while (1) { + seq = st->clk->seq_count & ~1ULL; + virt_rmb(); + + if (st->clk->clock_status == VMCLOCK_STATUS_UNRELIABLE) + return -EINVAL; + + /* + * When invoked for gettimex64(), fill in the pre/post system + * times. The simple case is when system time is based on the + * same counter as st->cs_id, in which case all three times + * will be derived from the *same* counter value. + * + * If the system isn't using the same counter, then the value + * from ktime_get_snapshot() will still be used as pre_ts, and + * ptp_read_system_postts() is called to populate postts after + * calling get_cycles(). + * + * The conversion to timespec64 happens further down, outside + * the seq_count loop. + */ + if (sts) { + ktime_get_snapshot(&systime_snapshot); + if (systime_snapshot.cs_id == st->cs_id) { + cycle = systime_snapshot.cycles; + } else { + cycle = get_cycles();
Quoted 8 lines
Quoted 6 lines
+ ptp_read_system_postts(sts); + }
+ } else
+ cycle =get_cycles();
+
+ delta = cycle -st->clk->counter_value;AFAIU in the general case this needs to be masked for non 64-bit counters.
Are there any non-64-bit counters that will be exposed this way? And can we handle that with explicit knowledge of the counter type, rather than a separate explicit field?
If we really dig deep, it gets horrible for scaled TSCs. The guest TSC is actually calculated from the host TSC with a scale and offset:
guest_tsc = ((host_tsc * SCALE) >> 48_or_32) + OFFSET
(The shift is 48 bits for Intel, 32 for AMD).
So when the host TSC wraps to zero, the guest TSC jumps from some non- power-of-two upper limit, to OFFSET which is generally a *negative* value. And will continue counting from there until it actually reaches the 64-bit limit and wraps back to zero.
Quoted 34 lines
Quoted 31 lines
drivers/ptp/ptp_vmclock.c new file +30
-0+ + frac_sec = mul_u64_u64_shr_add_u64(&tspec->tv_sec, delta, + st->clk->counter_period_frac_sec, + st->clk->counter_period_shift, + st->clk->utc_time_frac_sec); + tspec->tv_nsec = mul_u64_u64_shr(frac_sec, NSEC_PER_SEC, 64); + tspec->tv_sec += st->clk->utc_time_sec; + + virt_rmb(); + if (seq == st->clk->seq_count) + break; + + if (ktime_after(ktime_get(), deadline)) + return -ETIMEDOUT; + } + + if (system_counter) { + system_counter->cycles = cycle; + system_counter->cs_id = st->cs_id; + } + + if (sts) { + sts->pre_ts = ktime_to_timespec64(systime_snapshot.real); + if (systime_snapshot.cs_id == st->cs_id) + sts->post_ts = sts->pre_ts; + } + + return 0; +} +[...]
Quoted 12 lines
drivers/ptp/ptp_vmclock.c line 293
Quoted 10 lines
drivers/ptp/ptp_vmclock.c new file +10
-0+ +static const struct ptp_clock_info ptp_vmclock_info = { + .owner = THIS_MODULE, + .max_adj = 0, + .n_ext_ts = 0, + .n_pins = 0, + .pps = 0, + .adjfine = ptp_vmclock_adjfine, + .adjtime = ptp_vmclock_adjtime, + .gettime64 = ptp_vmclock_gettime,The .gettime64 op is now unneeded.
Ack, thanks.
Quoted 55 lines
Quoted 6 lines
+ .gettimex64 =
ptp_vmclock_gettimex, + .settime64 =ptp_vmclock_settime, + .enable =ptp_vmclock_enable, + .getcrosststamp =ptp_vmclock_getcrosststamp,(quoted diff) +2
-0+}; +[...]
Quoted 46 lines
include/uapi/linux/vmclock.h new file +40
-0@@ -0,0 +1,138 @@ +/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */ + +/* +* This structure provides a vDSO-style clock to VM guests, exposing the +* relationship (or lack thereof) between the CPU clock (TSC, timebase, arch +* counter, etc.) and real time. It is designed to address the problem of +* live migration, which other clock enlightenments do not. +* +* When a guest is live migrated, this affects the clock in two ways. +* +* First, even between identical hosts the actual frequency of the underlying +* counter will change within the tolerances of its specification (typically +* ±50PPM, or 4 seconds a day). The frequency also varies over time on the +* same host, but can be tracked by NTP as it generally varies slowly. With +* live migration there is a step change in the frequency, with no warning. +* +* Second, there may be a step change in the value of the counter itself, as +* its accuracy is limited by the precision of the NTP synchronization on the +* source and destination hosts. +* +* So any calibration (NTP, PTP, etc.) which the guest has done on the source +* host before migration is invalid, and needs to be redone on the new host. +* +* In its most basic mode, this structure provides only an indication to the +* guest that live migration has occurred. This allows the guest to know that +* its clock is invalid and take remedial action. For applications that need +* reliable accurate timestamps (e.g. distributed databases), the structure +* can be mapped all the way to userspace. This allows the application to see +* directly for itself that the clock is disrupted and take appropriate +* action, even when using a vDSO-style method to get the time instead of a +* system call. +* +* In its more advanced mode. this structure can also be used to expose the +* precise relationship of the CPU counter to real time, as calibrated by the +* host. This means that userspace applications can have accurate time +* immediately after live migration, rather than having to pause operations +* and wait for NTP to recover. This mode does, of course, rely on the +* counter being reliable and consistent across CPUs. +* +* Note that this must be true UTC, never with smeared leap seconds. If a
Quoted 8 lines
include/uapi/linux/vmclock.h line 46
Quoted 6 lines
include/uapi/linux/vmclock.h new file +6
-0+* guest wishes to construct a smeared clock, it can do so. Presenting a +* smeared clock through this interface would be problematic because it +* actually messes with the apparent counter *period*. A linear smearing +* of 1 ms per second would effectively tweak the counter period by 1000PPM +* at the start/end of the smearing period, while a sinusoidal smear would +* basically be impossible to represent. Clock types other than UTC could also be supported: TAI, monotonic.
This exposes both TAI *and* UTC, by exposing the TAI offset. Or it can expose UTC only, without the TAI offset if that's unknown.
Should we also have a mode for exposing TAI only, for when TAI is known but not the offset from UTC? Is that really a likely scenario? Isn't a host much more likely to know UTC and *not* the TAI offset?
I suppose if we have *hardware* implementations of this, they could be based on an atomic clock and all they'll have is TAI? So OK, maybe that makes sense?
(We'd have to add something like the ART as the counter to pair with over an actual PCI bus, of course.)
We can add a type field like the one you have for virtio-rtc, yes?
Quoted 21 lines
Quoted 21 lines
include/uapi/linux/vmclock.h new file +20
-0+*/ + +#ifndef __VMCLOCK_H__ +#define __VMCLOCK_H__ + +#ifdef __KERNEL +#include <linux/types.h> +#else +#include <stdint.h> +#endif + +struct vmclock_abi { + uint32_t magic; +#define VMCLOCK_MAGIC 0x4b4c4356 /* "VCLK" */ + uint16_t size; /* Size of page containing this structure */ + uint16_t version; /* 1 */ + + /* Sequence lock. Low bit means an update is in progress. */ + uint64_t seq_count; +
Quoted 8 lines
include/uapi/linux/vmclock.h line 71
Quoted 5 lines
include/uapi/linux/vmclock.h new file +5
-0+ /* + * This field changes to another non-repeating value when the CPU + * counter is disrupted, for example on live migration. + */ + uint64_t disruption_marker;The field could also change when the clock is stepped (leap seconds excepted), or when the clock frequency is slewed.
I'm not sure. The concept of the disruption marker is that it tells the guest to throw away any calibration of the counter that the guest has done for *itself* (with NTP, other PTP devices, etc.).
One mode for this device would be not to populate the clock fields at all, but *only* to signal disruption when it occurs. So the guest can abort transactions until it's resynced its clocks (to avoid incurring fines if breaking databases, etc.).
Exposing the host timekeeping through the structure means that the migrated guest can keep working because it can trust the timekeeping performed by the (new) host and exposed to it.
If the counter is actually varying in frequency over time, and the host is slewing the clock frequency that it reports, that *isn't* a step change and doesn't mean that the guest should throw away any calibration that it's been doing for itself. One hopes that the guest would have detected the *same* frequency change, and be adapting for itself. So I don't think that should indicate a disruption.
I think the same is even true if the clock is stepped by the host. The actual *counter* hasn't changed, so the guest is better off ignoring the vacillating host and continuing to derive its idea of time from the hardware counter itself, as calibrated against some external NTP/PTP sources. Surely we actively *don't* to tell the guest to throw its own calibrations away, in this case?
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 52 lines · David Woodhouse
Quoted 27 lines · Peter Hilber
Quoted 16 lines · David Woodhouse
From: David Woodhouse <[email protected]>
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so only when such is actually helpful.
The memory region of the device is also exposed to userspace so it can be read or memory mapped by application which need reliable notification of clock disruptions.
Signed-off-by David Woodhouse <[email protected]>---
Quoted 9 lines
v2:
• Addgettimex64()support
• Convert TSC values to KVM clock when appropriate
• Require int128 support
• Addcounter_period_shift
• Add timeout whenseq_countis invalid
• Add flags field
• Better comments in vmclock ABI structure
• Explicitly forbid smearing (as clock rates would need to change)Quoted 4 lines
Leap second smearing information could still be conveyed through the
vmclock_abi. AFAIU, to cover the popular smearing variants, it should be enough to indicate whether the driver should apply linear or cosine smearing, and the start time and end time.Yes. The clock information actually conveyed through the {counter, time, rate} tuple should never be smeared, and should only ever be UTC.
But we could provide a hint to the guest operating system about what type of smearing to perform, *if* it chooses to offer a clock other than the standard
CLOCK_REALTIMEto its users.I already added a flags field, so this might look something like:
/*
* Smearing flags. The UTC clock exposed through this structure
* is only ever true UTC, but a guest operating system may
* choose to offer a monotonic smeared clock to its users. This
* merely offers a hint about what kind of smearing to perform,
* for consistency with systems in the nearby environment. */
#defineVMCLOCK_FLAGS_SMEAR_UTC_SLS(1<<5) /* draft-kuhn-leapsecond-00.txt */
Quoted 4 lines
(UTC-SLS is probably a bad example but are there formal definitions for anything else?)
I think it could also be more generic, like flags for linear smearing, cosine smearing(?), and smear_start_sec and smear_end_sec fields (relative to the leap second start). That could also represent UTC-SLS, and noon-to-noon, and it would be well-defined.
This should reduce the likelihood that the guest doesn't know the smearing variant.
[...]
Quoted 62 lines
Quoted 46 lines
Quoted 46 lines
include/uapi/linux/vmclock.h new file +40
-0@@ -0,0 +1,138 @@ +/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-2-Clause) */ + +/* +* This structure provides a vDSO-style clock to VM guests, exposing the +* relationship (or lack thereof) between the CPU clock (TSC, timebase, arch +* counter, etc.) and real time. It is designed to address the problem of +* live migration, which other clock enlightenments do not. +* +* When a guest is live migrated, this affects the clock in two ways. +* +* First, even between identical hosts the actual frequency of the underlying +* counter will change within the tolerances of its specification (typically +* ±50PPM, or 4 seconds a day). The frequency also varies over time on the +* same host, but can be tracked by NTP as it generally varies slowly. With +* live migration there is a step change in the frequency, with no warning. +* +* Second, there may be a step change in the value of the counter itself, as +* its accuracy is limited by the precision of the NTP synchronization on the +* source and destination hosts. +* +* So any calibration (NTP, PTP, etc.) which the guest has done on the source +* host before migration is invalid, and needs to be redone on the new host. +* +* In its most basic mode, this structure provides only an indication to the +* guest that live migration has occurred. This allows the guest to know that +* its clock is invalid and take remedial action. For applications that need +* reliable accurate timestamps (e.g. distributed databases), the structure +* can be mapped all the way to userspace. This allows the application to see +* directly for itself that the clock is disrupted and take appropriate +* action, even when using a vDSO-style method to get the time instead of a +* system call. +* +* In its more advanced mode. this structure can also be used to expose the +* precise relationship of the CPU counter to real time, as calibrated by the +* host. This means that userspace applications can have accurate time +* immediately after live migration, rather than having to pause operations +* and wait for NTP to recover. This mode does, of course, rely on the +* counter being reliable and consistent across CPUs. +* +* Note that this must be true UTC, never with smeared leap seconds. If a Quoted 8 lines
include/uapi/linux/vmclock.h line 46
Quoted 6 lines
include/uapi/linux/vmclock.h new file +6
-0+* guest wishes to construct a smeared clock, it can do so. Presenting a +* smeared clock through this interface would be problematic because it +* actually messes with the apparent counter *period*. A linear smearing +* of 1 ms per second would effectively tweak the counter period by 1000PPM +* at the start/end of the smearing period, while a sinusoidal smear would +* basically be impossible to represent. Clock types other than UTC could also be supported: TAI, monotonic.
This exposes both TAI *and* UTC, by exposing the TAI offset. Or it can expose UTC only, without the TAI offset if that's unknown.
Should we also have a mode for exposing TAI only, for when TAI is known but not the offset from UTC? Is that really a likely scenario? Isn't a host much more likely to know UTC and *not* the TAI offset?
Quoted 10 lines
I suppose if we have *hardware* implementations of this, they could be based on an atomic clock and all they'll have is TAI? So OK, maybe that makes sense?
(We'd have to add something like the ART as the counter to pair with over an actual PCI bus, of course.)
We can add a type field like the one you have for virtio-rtc, yes?
Ack.
Quoted 50 lines
Quoted 21 lines
Quoted 21 lines
include/uapi/linux/vmclock.h new file +20
-0+*/ + +#ifndef __VMCLOCK_H__ +#define __VMCLOCK_H__ + +#ifdef __KERNEL +#include <linux/types.h> +#else +#include <stdint.h> +#endif + +struct vmclock_abi { + uint32_t magic; +#define VMCLOCK_MAGIC 0x4b4c4356 /* "VCLK" */ + uint16_t size; /* Size of page containing this structure */ + uint16_t version; /* 1 */ + + /* Sequence lock. Low bit means an update is in progress. */ + uint64_t seq_count; +Quoted 8 lines
include/uapi/linux/vmclock.h line 71
Quoted 5 lines
include/uapi/linux/vmclock.h new file +5
-0+ /* + * This field changes to another non-repeating value when the CPU + * counter is disrupted, for example on live migration. + */ + uint64_t disruption_marker;The field could also change when the clock is stepped (leap seconds excepted), or when the clock frequency is slewed.
I'm not sure. The concept of the disruption marker is that it tells the guest to throw away any calibration of the counter that the guest has done for *itself* (with NTP, other PTP devices, etc.).
One mode for this device would be not to populate the clock fields at all, but *only* to signal disruption when it occurs. So the guest can abort transactions until it's resynced its clocks (to avoid incurring fines if breaking databases, etc.).
Exposing the host timekeeping through the structure means that the migrated guest can keep working because it can trust the timekeeping performed by the (new) host and exposed to it.
If the counter is actually varying in frequency over time, and the host is slewing the clock frequency that it reports, that *isn't* a step change and doesn't mean that the guest should throw away any calibration that it's been doing for itself. One hopes that the guest would have detected the *same* frequency change, and be adapting for itself. So I don't think that should indicate a disruption.
Quoted 6 lines
I think the same is even true if the clock is stepped by the host. The actual *counter* hasn't changed, so the guest is better off ignoring the vacillating host and continuing to derive its idea of time from the hardware counter itself, as calibrated against some external NTP/PTP sources. Surely we actively *don't* to tell the guest to throw its own calibrations away, in this case?
In case the guest is also considering other time sources, it might indeed not be a good idea to mix host clock changes into the hardware counter disruption marker.
But if the vmclock is the authoritative source of time, it can still be helpful to know about such changes, maybe through another marker.
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 15 lines · Peter Hilber
Quoted 11 lines · David Woodhouse
I already added a flags field, so this might look something like:
/*
* Smearing flags. The UTC clock exposed through this structure
* is only ever true UTC, but a guest operating system may
* choose to offer a monotonic smeared clock to its users. This
* merely offers a hint about what kind of smearing to perform,
* for consistency with systems in the nearby environment. */
#defineVMCLOCK_FLAGS_SMEAR_UTC_SLS(1<<5) /* draft-kuhn-leapsecond-00.txt */Quoted 2 lines
(UTC-SLS is probably a bad example but are there formal definitions for anything else?)
Quoted 7 lines
I think it could also be more generic, like flags for linear smearing, cosine smearing(?), and
smear_start_secandsmear_end_secfields (relative to the leap second start). That could also represent UTC-SLS, and noon-to-noon, and it would be well-defined.This should reduce the likelihood that the guest doesn't know the smearing variant.
I'm wary of making it too generic. That would seem to encourage a *proliferation* of false "UTC-like" clocks.
It's bad enough that we do smearing at all, let alone that we don't have a single definition of how to do it.
I made the smearing hint a full uint8_t instead of using bits in flags, in the end. That gives us a full 255 ways of lying to users about what the time is, so we're unlikely to run out. And it's easy enough to add a new VMCLOCK_SMEARING_XXX type to the 'registry' for any new methods that get invented.
Quoted 36 lines
Quoted 29 lines
Quoted 8 lines
Quoted 5 lines
+ /*
+ * This field changes to another non-repeating value when the CPU + * counter is disrupted, for example on live migration. + */
+ uint64_tdisruption_marker;The field could also change when the clock is stepped (leap seconds excepted), or when the clock frequency is slewed.
I'm not sure. The concept of the disruption marker is that it tells the guest to throw away any calibration of the counter that the guest has done for *itself* (with NTP, other PTP devices, etc.).
One mode for this device would be not to populate the clock fields at all, but *only* to signal disruption when it occurs. So the guest can abort transactions until it's resynced its clocks (to avoid incurring fines if breaking databases, etc.).
Exposing the host timekeeping through the structure means that the migrated guest can keep working because it can trust the timekeeping performed by the (new) host and exposed to it.
If the counter is actually varying in frequency over time, and the host is slewing the clock frequency that it reports, that *isn't* a step change and doesn't mean that the guest should throw away any calibration that it's been doing for itself. One hopes that the guest would have detected the *same* frequency change, and be adapting for itself. So I don't think that should indicate a disruption.
Quoted 6 lines
I think the same is even true if the clock is stepped by the host. The actual *counter* hasn't changed, so the guest is better off ignoring the vacillating host and continuing to derive its idea of time from the hardware counter itself, as calibrated against some external NTP/PTP sources. Surely we actively *don't* to tell the guest to throw its own calibrations away, in this case?
Quoted 6 lines
In case the guest is also considering other time sources, it might indeed not be a good idea to mix host clock changes into the hardware counter disruption marker.
But if the vmclock is the authoritative source of time, it can still be helpful to know about such changes, maybe through another marker.
Could that be the existing seq_count field?
Skewing the counter_period_frac_sec as the underlying oscillator speeds up and slows down is perfectly normal and expected, and we already expect the seq_count to change when that happens.
Maybe step changes are different, but arguably if the time advertised by the host steps *outside* the error bounds previously advertised, that's just broken?
Depending on how the clock information is fed, a change in seq_count may even result in non-monotonicity. If the underlying oscillator has sped up and the structure is updated accordingly, the time calculated the moment *before* that update may appear later than the time calculated immediately after it.
It's up to the guest operating system to feed that information into its own timekeeping system and skew towards correctness instead of stepping the time it reports to its users.
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 27 lines · David Woodhouse
Quoted 15 lines · Peter Hilber
Quoted 11 lines · David Woodhouse
I already added a flags field, so this might look something like:
/*
* Smearing flags. The UTC clock exposed through this structure
* is only ever true UTC, but a guest operating system may
* choose to offer a monotonic smeared clock to its users. This
* merely offers a hint about what kind of smearing to perform,
* for consistency with systems in the nearby environment. */
#defineVMCLOCK_FLAGS_SMEAR_UTC_SLS(1<<5) /* draft-kuhn-leapsecond-00.txt */Quoted 2 lines
(UTC-SLS is probably a bad example but are there formal definitions for anything else?)
Quoted 7 lines
I think it could also be more generic, like flags for linear smearing, cosine smearing(?), and
smear_start_secandsmear_end_secfields (relative to the leap second start). That could also represent UTC-SLS, and noon-to-noon, and it would be well-defined.This should reduce the likelihood that the guest doesn't know the smearing variant.
I'm wary of making it too generic. That would seem to encourage a *proliferation* of false "UTC-like" clocks.
Quoted 10 lines
It's bad enough that we do smearing at all, let alone that we don't have a single definition of how to do it.
I made the smearing hint a full
uint8_tinstead of using bits in flags, in the end. That gives us a full 255 ways of lying to users about what the time is, so we're unlikely to run out. And it's easy enough to add a newVMCLOCK_SMEARING_XXXtype to the 'registry' for any new methods that get invented.
My concern is that the registry update may come after a driver has already been implemented, so that it may be hard to ensure that the smearing which has been chosen is actually implemented.
Quoted 45 lines
Quoted 36 lines
Quoted 29 lines
Quoted 8 lines
Quoted 5 lines
+ /*
+ * This field changes to another non-repeating value when the CPU + * counter is disrupted, for example on live migration. + */
+ uint64_tdisruption_marker;The field could also change when the clock is stepped (leap seconds excepted), or when the clock frequency is slewed.
I'm not sure. The concept of the disruption marker is that it tells the guest to throw away any calibration of the counter that the guest has done for *itself* (with NTP, other PTP devices, etc.).
One mode for this device would be not to populate the clock fields at all, but *only* to signal disruption when it occurs. So the guest can abort transactions until it's resynced its clocks (to avoid incurring fines if breaking databases, etc.).
Exposing the host timekeeping through the structure means that the migrated guest can keep working because it can trust the timekeeping performed by the (new) host and exposed to it.
If the counter is actually varying in frequency over time, and the host is slewing the clock frequency that it reports, that *isn't* a step change and doesn't mean that the guest should throw away any calibration that it's been doing for itself. One hopes that the guest would have detected the *same* frequency change, and be adapting for itself. So I don't think that should indicate a disruption.
Quoted 6 lines
I think the same is even true if the clock is stepped by the host. The actual *counter* hasn't changed, so the guest is better off ignoring the vacillating host and continuing to derive its idea of time from the hardware counter itself, as calibrated against some external NTP/PTP sources. Surely we actively *don't* to tell the guest to throw its own calibrations away, in this case?
Quoted 6 lines
In case the guest is also considering other time sources, it might indeed not be a good idea to mix host clock changes into the hardware counter disruption marker.
But if the vmclock is the authoritative source of time, it can still be helpful to know about such changes, maybe through another marker.
Could that be the existing
seq_countfield?
Quoted 7 lines
Skewing the
counter_period_frac_secas the underlying oscillator speeds up and slows down is perfectly normal and expected, and we already expect theseq_countto change when that happens.Maybe step changes are different, but arguably if the time advertised by the host steps *outside* the error bounds previously advertised, that's just broken?
But the error bounds could be large or missing. I am trying to address use cases where the host steps or slews the clock as well.
Quoted 11 lines
Depending on how the clock information is fed, a change in
seq_countmay even result in non-monotonicity. If the underlying oscillator has sped up and the structure is updated accordingly, the time calculated the moment *before* that update may appear later than the time calculated immediately after it.It's up to the guest operating system to feed that information into its own timekeeping system and skew towards correctness instead of stepping the time it reports to its users.
The guest can anyway infer from the other information that the clock changed, so my proposal might not be that useful. Maybe it can be added in a future version if there is any need.
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 39 lines · Peter Hilber
Quoted 27 lines · David Woodhouse
Quoted 15 lines · Peter Hilber
Quoted 11 lines · David Woodhouse
I already added a flags field, so this might look something like:
/*
* Smearing flags. The UTC clock exposed through this structure
* is only ever true UTC, but a guest operating system may
* choose to offer a monotonic smeared clock to its users. This
* merely offers a hint about what kind of smearing to perform,
* for consistency with systems in the nearby environment. */
#defineVMCLOCK_FLAGS_SMEAR_UTC_SLS(1<<5) /* draft-kuhn-leapsecond-00.txt */Quoted 2 lines
(UTC-SLS is probably a bad example but are there formal definitions for anything else?)
Quoted 7 lines
I think it could also be more generic, like flags for linear smearing, cosine smearing(?), and
smear_start_secandsmear_end_secfields (relative to the leap second start). That could also represent UTC-SLS, and noon-to-noon, and it would be well-defined.This should reduce the likelihood that the guest doesn't know the smearing variant.
I'm wary of making it too generic. That would seem to encourage a *proliferation* of false "UTC-like" clocks.
Quoted 10 lines
It's bad enough that we do smearing at all, let alone that we don't have a single definition of how to do it.
I made the smearing hint a full
uint8_tinstead of using bits in flags, in the end. That gives us a full 255 ways of lying to users about what the time is, so we're unlikely to run out. And it's easy enough to add a newVMCLOCK_SMEARING_XXXtype to the 'registry' for any new methods that get invented.
Quoted 3 lines
My concern is that the registry update may come after a driver has already been implemented, so that it may be hard to ensure that the smearing which has been chosen is actually implemented.
Well yes, but why in the name of all that is holy would anyone want to invent *new* ways to lie to users about the time? If we capture the existing ones as we write this, surely it's a good thing that there's a barrier to entry for adding more?
Quoted 2 lines
But the error bounds could be large or missing. I am trying to address use cases where the host steps or slews the clock as well.
The host is absolutely intended to be skewing the clock to keep it accurate as the frequency of the underlying oscillator changes, and the seq_count field will change every time the host does so.
Do we need to handle steps differently? Or just let the guest deal with it?
If an NTP server suddenly steps the time it reports, what does the client do?
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 40 lines · David Woodhouse
Quoted 39 lines · Peter Hilber
Quoted 37 lines · David Woodhouse
Quoted 15 lines · Peter Hilber
Quoted 11 lines · David Woodhouse
I already added a flags field, so this might look something like:
/*
* Smearing flags. The UTC clock exposed through this structure
* is only ever true UTC, but a guest operating system may
* choose to offer a monotonic smeared clock to its users. This
* merely offers a hint about what kind of smearing to perform,
* for consistency with systems in the nearby environment. */
#defineVMCLOCK_FLAGS_SMEAR_UTC_SLS(1<<5) /* draft-kuhn-leapsecond-00.txt */Quoted 2 lines
(UTC-SLS is probably a bad example but are there formal definitions for anything else?)
Quoted 7 lines
I think it could also be more generic, like flags for linear smearing, cosine smearing(?), and
smear_start_secandsmear_end_secfields (relative to the leap second start). That could also represent UTC-SLS, and noon-to-noon, and it would be well-defined.This should reduce the likelihood that the guest doesn't know the smearing variant.
I'm wary of making it too generic. That would seem to encourage a *proliferation* of false "UTC-like" clocks.
It's bad enough that we do smearing at all, let alone that we don't have a single definition of how to do it.
I made the smearing hint a full
uint8_tinstead of using bits in flags, in the end. That gives us a full 255 ways of lying to users about what the time is, so we're unlikely to run out. And it's easy enough to add a newVMCLOCK_SMEARING_XXXtype to the 'registry' for any new methods that get invented.
Quoted 8 lines
Quoted 3 lines
My concern is that the registry update may come after a driver has already been implemented, so that it may be hard to ensure that the smearing which has been chosen is actually implemented.
Well yes, but why in the name of all that is holy would anyone want to invent *new* ways to lie to users about the time? If we capture the existing ones as we write this, surely it's a good thing that there's a barrier to entry for adding more?
Ultimately though, this isn't the hill for me to die on. I'm pushing on that topic because I want to avoid the proliferation of *ambiguity*. If we have a precision clock, we should *know* what the time is.
So how about this proposal. I line up the fields in the proposed shared memory structure to match your virtio-rtc proposal, using 'subtype' as you proposed. But, instead of the 'subtype' being valid only for VIRTIO_RTC_CLOCK_UTC, we define a new top-level type for *smeared* UTC.
So, you have:
+\begin{lstlisting}
+#define VIRTIO_RTC_CLOCK_UTC 0
+#define VIRTIO_RTC_CLOCK_TAI 1
+#define VIRTIO_RTC_CLOCK_MONO 2
+\end{lstlisting}
I propose that you add
#define VIRTIO_RTC_CLOCK_SMEARED_UTC 3
If my proposed memory structure is subsumed into the virtio-rtc proposal we'd literally use the same names, but for the time being I'll update mine to:
/* * What time is exposed in the time_sec/time_frac_sec fields? */ uint8_t time_type;
#define VMCLOCK_TIME_UTC 0 /* Since 1970-01-01 00:00:00z */
#define VMCLOCK_TIME_TAI 1 /* Since 1970-01-01 00:00:00z */
#define VMCLOCK_TIME_MONOTONIC 2 /* Since undefined epoch */
#define VMCLOCK_TIME_INVALID 3 /* virtio-rtc uses this for smeared UTC */
I can then use your smearing subtype values as the 'hint' field in the shared memory structure. You currently have:
+\begin{lstlisting}
+#define VIRTIO_RTC_SUBTYPE_STRICT 0
+#define VIRTIO_RTC_SUBTYPE_SMEAR 1
+#define VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR 2
+#define VIRTIO_RTC_SUBTYPE_LEAP_UNSPECIFIED 3
+\end{lstlisting}
I can certainly ensure that 'noon linear' has the same value. I don't think you need both 'SMEAR' and 'LEAP_UNSPECIFIED' though:
+\item VIRTIO_RTC_SUBTYPE_SMEAR deviates from the UTC standard by
+ smearing time in the vicinity of the leap second, in a not
+ precisely defined manner. This avoids clock steps due to UTC
+ leap seconds.
...
+\item VIRTIO_RTC_SUBTYPE_LEAP_UNSPECIFIED may deviate from the UTC
+ standard w.r.t.\ leap second introduction in an unspecified
way
+ (leap seconds may, or may not, be smeared).
To the client, both of those just mean "for a day or so around a leap second event, you can't trust this device to know what the time is". There isn't any point in separating "does lie to you" from "might lie to you", surely? The guest can't do anything useful with that distinction. Let's drop SMEAR and keep only LEAP_UNSPECIFIED?
And if you *really* want to parameterise it, I think that's a bad idea and it encourages the proliferation of different time "standards", but I'd probably just suck it up and do whatever you do because that's not strictly within the remit of my live-migration part.
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 67 lines · David Woodhouse
Quoted 40 lines · David Woodhouse
Quoted 39 lines · Peter Hilber
Quoted 37 lines · David Woodhouse
Quoted 15 lines · Peter Hilber
Quoted 11 lines · David Woodhouse
I already added a flags field, so this might look something like:
/*
* Smearing flags. The UTC clock exposed through this structure
* is only ever true UTC, but a guest operating system may
* choose to offer a monotonic smeared clock to its users. This
* merely offers a hint about what kind of smearing to perform,
* for consistency with systems in the nearby environment. */
#defineVMCLOCK_FLAGS_SMEAR_UTC_SLS(1<<5) /* draft-kuhn-leapsecond-00.txt */Quoted 2 lines
(UTC-SLS is probably a bad example but are there formal definitions for anything else?)
Quoted 7 lines
I think it could also be more generic, like flags for linear smearing, cosine smearing(?), and
smear_start_secandsmear_end_secfields (relative to the leap second start). That could also represent UTC-SLS, and noon-to-noon, and it would be well-defined.This should reduce the likelihood that the guest doesn't know the smearing variant.
I'm wary of making it too generic. That would seem to encourage a *proliferation* of false "UTC-like" clocks.
It's bad enough that we do smearing at all, let alone that we don't have a single definition of how to do it.
I made the smearing hint a full
uint8_tinstead of using bits in flags, in the end. That gives us a full 255 ways of lying to users about what the time is, so we're unlikely to run out. And it's easy enough to add a newVMCLOCK_SMEARING_XXXtype to the 'registry' for any new methods that get invented.Quoted 8 lines
Quoted 3 lines
My concern is that the registry update may come after a driver has already been implemented, so that it may be hard to ensure that the smearing which has been chosen is actually implemented.
Well yes, but why in the name of all that is holy would anyone want to invent *new* ways to lie to users about the time? If we capture the existing ones as we write this, surely it's a good thing that there's a barrier to entry for adding more?
Ultimately though, this isn't the hill for me to die on. I'm pushing on that topic because I want to avoid the proliferation of *ambiguity*. If we have a precision clock, we should *know* what the time is.
So how about this proposal. I line up the fields in the proposed shared memory structure to match your virtio-rtc proposal, using 'subtype' as you proposed. But, instead of the 'subtype' being valid only for
VIRTIO_RTC_CLOCK_UTC, we define a new top-level type for *smeared* UTC.So, you have:
+\begin{lstlisting}
(quoted diff) +4
-0+#define VIRTIO_RTC_CLOCK_UTC 0 +#define VIRTIO_RTC_CLOCK_TAI 1 +#define VIRTIO_RTC_CLOCK_MONO 2 +\end{lstlisting}
Quoted 7 lines
I propose that you add
#define
VIRTIO_RTC_CLOCK_SMEARED_UTC3If my proposed memory structure is subsumed into the virtio-rtc proposal we'd literally use the same names, but for the time being I'll update mine to:
Do you intend vmclock and virtio-rtc to be ABI compatible? FYI, I see a potential problem in that Virtio does avoid the use of signed integers so far. I did not check carefully if there might be other problems, yet.
Quoted 16 lines
/* * What time is exposed in the time_sec/time_frac_sec fields? */ uint8_t time_type;#define
VMCLOCK_TIME_UTC0 /* Since 1970-01-01 00:00:00z */
#defineVMCLOCK_TIME_TAI1 /* Since 1970-01-01 00:00:00z */
#defineVMCLOCK_TIME_MONOTONIC2 /* Since undefined epoch */
#defineVMCLOCK_TIME_INVALID3 /* virtio-rtc uses this for smeared UTC */I can then use your smearing subtype values as the 'hint' field in the shared memory structure. You currently have:
+\begin{lstlisting}
Review
Quoted 5 lines
(quoted diff) +5
-0+#define VIRTIO_RTC_SUBTYPE_STRICT 0 +#define VIRTIO_RTC_SUBTYPE_SMEAR 1 +#define VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR 2 +#define VIRTIO_RTC_SUBTYPE_LEAP_UNSPECIFIED 3 +\end{lstlisting}
I agree with the above part of your proposal.
Quoted 16 lines
I can certainly ensure that 'noon linear' has the same value. I don't think you need both 'SMEAR' and '
LEAP_UNSPECIFIED' though:+\item
VIRTIO_RTC_SUBTYPE_SMEARdeviates from the UTC standard by(quoted diff) +5
-0+ smearing time in the vicinity of the leap second, in a not + precisely defined manner. This avoids clock steps due to UTC + leap seconds. +\item VIRTIO_RTC_SUBTYPE_LEAP_UNSPECIFIED may deviate from the UTC + standard w.r.t.\ leap second introduction in an unspecifiedway
(quoted diff) +1
-0+ (leap seconds may, or may not, be smeared).
Quoted 5 lines
To the client, both of those just mean "for a day or so around a leap second event, you can't trust this device to know what the time is". There isn't any point in separating "does lie to you" from "might lie to you", surely? The guest can't do anything useful with that distinction. Let's drop SMEAR and keep only
LEAP_UNSPECIFIED?
As for VIRTIO_RTC_SUBTYPE_SMEAR, I think this could be dropped indeed (resp., UTC_SLS may be added).
But VIRTIO_RTC_CLOCK_SMEARED_UTC is an assurance that there will be no steps (in particular, steps backwards, which some clients might not like) due to leap seconds, while LEAP_UNSPECIFIED provides no such guarantee.
So I think this might be better handled by adding, alongside
Quoted 1 line
#define
VIRTIO_RTC_CLOCK_SMEARED_UTC3
#define VIRTIO_RTC_CLOCK_LEAP_UNSPECIFIED_UTC 4
(or any better name, like VIRTIO_RTC_CLOCK_MAYBE_SMEARED_UTC).
Quoted 5 lines
And if you *really* want to parameterise it, I think that's a bad idea and it encourages the proliferation of different time "standards", but I'd probably just suck it up and do whatever you do because that's not strictly within the remit of my live-migration part.
I think the above proposal to have subtypes forVIRTIO_RTC_CLOCK_SMEARED_UTC should work.
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 6 lines · Peter Hilber
Quoted 6 lines · David Woodhouse
Quoted 3 lines
Quoted 3 lines
If my proposed memory structure is subsumed into the virtio-rtc proposal we'd literally use the same names, but for the time being I'll update mine to:
Do you intend vmclock and virtio-rtc to be ABI compatible?
I intend you to incorporate a shared memory structure like the vmclock one into the virtio-rtc standard :)
Because precision clocks in a VM are fundamentally nonsensical without a way for the guest to know when live migration has screwed them up.
So yes, so facilitate that, I'm trying to align things so that the numeric values of fields like the time_type and smearing hint are *precisely* the same as the VIRTIO_RTC_xxx values.
Time pressure *may* mean I have to ship an ACPI-based device with a preliminary version of the structure before I've finished persuading you, and before we've completely finalized the structure. I am hoping to avoid that.
(In fact, my time pressure only applies to a version of the structure which carries the disruption_marker field; the actual clock calibration information doesn't have to be present in the interim implementation.)
Quoted 3 lines
Quoted 3 lines
FYI, I see a
potential problem in that Virtio does avoid the use of signed integers so far. I did not check carefully if there might be other problems, yet.
Hm, you use an unsigned integer to convey the tai_offset. I suppose at +37 and with a plan to stop doing leap seconds in the next decade, we're unlikely to get back below zero?
The other signed integer I had was for the leap second direction, but I think I'm happy to drop that and just adopt your uint8_t leap field with VIRTIO_RTC_LEAP_{PRE_POS,PRE_NEG,etc.}.
Quoted 62 lines
Quoted 62 lines
Quoted 14 lines
Quoted 14 lines
/*
* What time is exposed in the time_sec/time_frac_sec fields?
*/
uint8_ttime_type;
#define VMCLOCK_TIME_UTC 0 /* Since 1970-01-01 00:00:00z */ #define VMCLOCK_TIME_TAI 1 /* Since 1970-01-01 00:00:00z */ #define VMCLOCK_TIME_MONOTONIC 2 /* Since undefined epoch */ #define VMCLOCK_TIME_INVALID 3 /* virtio-rtc uses this for smeared UTC */I can then use your smearing subtype values as the 'hint' field in the shared memory structure. You currently have:
Quoted 7 lines
Review
Quoted 7 lines
+\begin{lstlisting}
(quoted diff) +5
-0+#define VIRTIO_RTC_SUBTYPE_STRICT 0 +#define VIRTIO_RTC_SUBTYPE_SMEAR 1 +#define VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR 2 +#define VIRTIO_RTC_SUBTYPE_LEAP_UNSPECIFIED 3 +\end{lstlisting}I agree with the above part of your proposal.
Quoted 16 lines
Quoted 16 lines
I can certainly ensure that 'noon linear' has the same value. I don't think you need both 'SMEAR' and '
LEAP_UNSPECIFIED' though:+\item
VIRTIO_RTC_SUBTYPE_SMEARdeviates from the UTC standard by + smearing time in the vicinity of the leap second, in a not + precisely defined manner. This avoids clock steps due to UTC + leap seconds....
+\item
VIRTIO_RTC_SUBTYPE_LEAP_UNSPECIFIEDmay deviate from the UTC + standard w.r.t.\ leap second introduction in an unspecified way
+ (leap seconds may, or may not, be smeared).Quoted 5 lines
Quoted 5 lines
To the client, both of those just mean "for a day or so around a leap second event, you can't trust this device to know what the time is". There isn't any point in separating "does lie to you" from "might lie to you", surely? The guest can't do anything useful with that distinction. Let's drop SMEAR and keep only
LEAP_UNSPECIFIED?As for
VIRTIO_RTC_SUBTYPE_SMEAR, I think this could be dropped indeed (resp.,UTC_SLSmay be added).But
VIRTIO_RTC_CLOCK_SMEARED_UTCis an assurance that there will be no steps (in particular, steps backwards, which some clients might not like) due to leap seconds, whileLEAP_UNSPECIFIEDprovides no such guarantee.So I think this might be better handled by adding, alongside
Quoted 1 line
Quoted 1 line
#define
VIRTIO_RTC_CLOCK_SMEARED_UTC3#define
VIRTIO_RTC_CLOCK_LEAP_UNSPECIFIED_UTC4(or any better name, like
VIRTIO_RTC_CLOCK_MAYBE_SMEARED_UTC).Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
And if you *really* want to parameterise it, I think that's a bad idea and it encourages the proliferation of different time "standards", but I'd probably just suck it up and do whatever you do because that's not strictly within the remit of my live-migration part.
I think the above proposal to have subtypes for
VIRTIO_RTC_CLOCK_SMEARED_UTCshould work.
To clarify then, the main types are
VIRTIO_RTC_CLOCK_UTC == 0
VIRTIO_RTC_CLOCK_TAI == 1
VIRTIO_RTC_CLOCK_MONOTONIC == 2
VIRTIO_RTC_CLOCK_SMEARED_UTC == 3
And the subtypes are *only* for the case ofVIRTIO_RTC_CLOCK_SMEARED_UTC. They include
VIRTIO_RTC_SUBTYPE_STRICT
VIRTIO_RTC_SUBTYPE_UNDEFINED /* or whatever you want to call it */ VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR VIRTIO_RTC_SUBTYPE_UTC_SLS /* if it's worth doing this one */
Is that what we just agreed on?
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 28 lines · David Woodhouse
Quoted 6 lines · Peter Hilber
Quoted 6 lines · David Woodhouse
Quoted 3 lines
Quoted 3 lines
If my proposed memory structure is subsumed into the virtio-rtc proposal we'd literally use the same names, but for the time being I'll update mine to:
Do you intend vmclock and virtio-rtc to be ABI compatible?
I intend you to incorporate a shared memory structure like the vmclock one into the virtio-rtc standard :)
Because precision clocks in a VM are fundamentally nonsensical without a way for the guest to know when live migration has screwed them up.
So yes, so facilitate that, I'm trying to align things so that the numeric values of fields like the
time_typeand smearing hint are *precisely* the same as theVIRTIO_RTC_xxxvalues.Time pressure *may* mean I have to ship an ACPI-based device with a preliminary version of the structure before I've finished persuading you, and before we've completely finalized the structure. I am hoping to avoid that.
(In fact, my time pressure only applies to a version of the structure which carries the
disruption_markerfield; the actual clock calibration information doesn't have to be present in the interim implementation.)
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
FYI, I see a
potential problem in that Virtio does avoid the use of signed integers so far. I did not check carefully if there might be other problems, yet.Hm, you use an unsigned integer to convey the
tai_offset. I suppose at +37 and with a plan to stop doing leap seconds in the next decade, we're unlikely to get back below zero?
I think so.
Quoted 88 lines
The other signed integer I had was for the leap second direction, but I think I'm happy to drop that and just adopt your
uint8_tleap field with VIRTIO_RTC_LEAP_{PRE_POS,PRE_NEG,etc.}.Quoted 62 lines
Quoted 62 lines
Quoted 14 lines
Quoted 14 lines
/*
* What time is exposed in the time_sec/time_frac_sec fields?
*/
uint8_ttime_type;
#define VMCLOCK_TIME_UTC 0 /* Since 1970-01-01 00:00:00z */ #define VMCLOCK_TIME_TAI 1 /* Since 1970-01-01 00:00:00z */ #define VMCLOCK_TIME_MONOTONIC 2 /* Since undefined epoch */ #define VMCLOCK_TIME_INVALID 3 /* virtio-rtc uses this for smeared UTC */I can then use your smearing subtype values as the 'hint' field in the shared memory structure. You currently have:
Quoted 7 lines
Review
Quoted 7 lines
+\begin{lstlisting}
(quoted diff) +5
-0+#define VIRTIO_RTC_SUBTYPE_STRICT 0 +#define VIRTIO_RTC_SUBTYPE_SMEAR 1 +#define VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR 2 +#define VIRTIO_RTC_SUBTYPE_LEAP_UNSPECIFIED 3 +\end{lstlisting}I agree with the above part of your proposal.
Quoted 16 lines
Quoted 16 lines
I can certainly ensure that 'noon linear' has the same value. I don't think you need both 'SMEAR' and '
LEAP_UNSPECIFIED' though:+\item
VIRTIO_RTC_SUBTYPE_SMEARdeviates from the UTC standard by + smearing time in the vicinity of the leap second, in a not + precisely defined manner. This avoids clock steps due to UTC + leap seconds....
+\item
VIRTIO_RTC_SUBTYPE_LEAP_UNSPECIFIEDmay deviate from the UTC + standard w.r.t.\ leap second introduction in an unspecified way
+ (leap seconds may, or may not, be smeared).Quoted 5 lines
Quoted 5 lines
To the client, both of those just mean "for a day or so around a leap second event, you can't trust this device to know what the time is". There isn't any point in separating "does lie to you" from "might lie to you", surely? The guest can't do anything useful with that distinction. Let's drop SMEAR and keep only
LEAP_UNSPECIFIED?As for
VIRTIO_RTC_SUBTYPE_SMEAR, I think this could be dropped indeed (resp.,UTC_SLSmay be added).But
VIRTIO_RTC_CLOCK_SMEARED_UTCis an assurance that there will be no steps (in particular, steps backwards, which some clients might not like) due to leap seconds, whileLEAP_UNSPECIFIEDprovides no such guarantee.So I think this might be better handled by adding, alongside
Quoted 1 line
Quoted 1 line
#define
VIRTIO_RTC_CLOCK_SMEARED_UTC3#define
VIRTIO_RTC_CLOCK_LEAP_UNSPECIFIED_UTC4(or any better name, like
VIRTIO_RTC_CLOCK_MAYBE_SMEARED_UTC).Quoted 1 line
Quoted 1 line
Quoted 7 lines
Quoted 7 lines
Quoted 4 lines
Quoted 4 lines
And if you *really* want to parameterise it, I think that's a bad idea and it encourages the proliferation of different time "standards", but I'd probably just suck it up and do whatever you do because that's not strictly within the remit of my live-migration part.
I think the above proposal to have subtypes for
VIRTIO_RTC_CLOCK_SMEARED_UTCshould work.To clarify then, the main types are
VIRTIO_RTC_CLOCK_UTC== 0
VIRTIO_RTC_CLOCK_TAI== 1
VIRTIO_RTC_CLOCK_MONOTONIC== 2
VIRTIO_RTC_CLOCK_SMEARED_UTC== 3And the subtypes are *only* for the case of
VIRTIO_RTC_CLOCK_SMEARED_UTC. They include
Quoted 8 lines
VIRTIO_RTC_SUBTYPE_STRICT
VIRTIO_RTC_SUBTYPE_UNDEFINED/* or whatever you want to call it */VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEARVIRTIO_RTC_SUBTYPE_UTC_SLS/* if it's worth doing this one */Is that what we just agreed on?
This is a misunderstanding. My idea was that the main types are
Quoted 4 lines
VIRTIO_RTC_CLOCK_UTC== 0
VIRTIO_RTC_CLOCK_TAI== 1
VIRTIO_RTC_CLOCK_MONOTONIC== 2
VIRTIO_RTC_CLOCK_SMEARED_UTC== 3
VIRTIO_RTC_CLOCK_MAYBE_SMEARED_UTC == 4
The subtypes would be (1st for clocks other thanVIRTIO_RTC_CLOCK_SMEARED_UTC, 2nd to last forVIRTIO_RTC_CLOCK_SMEARED_UTC):
#define VIRTIO_RTC_SUBTYPE_STRICT 0
#define VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR 1
#define VIRTIO_RTC_SUBTYPE_SMEAR_UTC_SLS 2
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 29 lines · Peter Hilber
Quoted 10 lines · David Woodhouse
To clarify then, the main types are
VIRTIO_RTC_CLOCK_UTC== 0
VIRTIO_RTC_CLOCK_TAI== 1
VIRTIO_RTC_CLOCK_MONOTONIC== 2
VIRTIO_RTC_CLOCK_SMEARED_UTC== 3And the subtypes are *only* for the case of
VIRTIO_RTC_CLOCK_SMEARED_UTC. They includeQuoted 8 lines
VIRTIO_RTC_SUBTYPE_STRICT
VIRTIO_RTC_SUBTYPE_UNDEFINED/* or whatever you want to call it */VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEARVIRTIO_RTC_SUBTYPE_UTC_SLS/* if it's worth doing this one */Is that what we just agreed on?
This is a misunderstanding. My idea was that the main types are
Quoted 4 lines
VIRTIO_RTC_CLOCK_UTC== 0
VIRTIO_RTC_CLOCK_TAI== 1
VIRTIO_RTC_CLOCK_MONOTONIC== 2
VIRTIO_RTC_CLOCK_SMEARED_UTC== 3
VIRTIO_RTC_CLOCK_MAYBE_SMEARED_UTC== 4
Quoted 8 lines
The subtypes would be (1st for clocks other than
VIRTIO_RTC_CLOCK_SMEARED_UTC, 2nd to last forVIRTIO_RTC_CLOCK_SMEARED_UTC):#define
VIRTIO_RTC_SUBTYPE_STRICT0
#defineVIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR1
#defineVIRTIO_RTC_SUBTYPE_SMEAR_UTC_SLS2
Thanks. I really do think that from the guest point of view there's really no distinction between "maybe smeared" and "undefined smearing", and have a preference for using the latter form, which is the key difference there?
Again though, not a hill for me to die on.
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 34 lines · David Woodhouse
Quoted 33 lines · Peter Hilber
Quoted 10 lines · David Woodhouse
To clarify then, the main types are
VIRTIO_RTC_CLOCK_UTC== 0
VIRTIO_RTC_CLOCK_TAI== 1
VIRTIO_RTC_CLOCK_MONOTONIC== 2
VIRTIO_RTC_CLOCK_SMEARED_UTC== 3And the subtypes are *only* for the case of
VIRTIO_RTC_CLOCK_SMEARED_UTC. They includeQuoted 8 lines
VIRTIO_RTC_SUBTYPE_STRICT
VIRTIO_RTC_SUBTYPE_UNDEFINED/* or whatever you want to call it */VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEARVIRTIO_RTC_SUBTYPE_UTC_SLS/* if it's worth doing this one */Is that what we just agreed on?
This is a misunderstanding. My idea was that the main types are
Quoted 4 lines
VIRTIO_RTC_CLOCK_UTC== 0
VIRTIO_RTC_CLOCK_TAI== 1
VIRTIO_RTC_CLOCK_MONOTONIC== 2
VIRTIO_RTC_CLOCK_SMEARED_UTC== 3
VIRTIO_RTC_CLOCK_MAYBE_SMEARED_UTC== 4The subtypes would be (1st for clocks other than
VIRTIO_RTC_CLOCK_SMEARED_UTC, 2nd to last forVIRTIO_RTC_CLOCK_SMEARED_UTC):
Quoted 8 lines
Quoted 4 lines
#define
VIRTIO_RTC_SUBTYPE_STRICT0
#defineVIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR1
#defineVIRTIO_RTC_SUBTYPE_SMEAR_UTC_SLS2Thanks. I really do think that from the guest point of view there's really no distinction between "maybe smeared" and "undefined smearing", and have a preference for using the latter form, which is the key difference there?
Again though, not a hill for me to die on.
I have no issue with staying with "undefined smearing", so would you agree to something like
VIRTIO_RTC_CLOCK_SMEAR_UNDEFINED_UTC == 4
(or another name if you prefer)?
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 45 lines · Peter Hilber
Quoted 44 lines · David Woodhouse
Quoted 29 lines · Peter Hilber
Quoted 10 lines · David Woodhouse
To clarify then, the main types are
VIRTIO_RTC_CLOCK_UTC == 0
VIRTIO_RTC_CLOCK_TAI == 1
VIRTIO_RTC_CLOCK_MONOTONIC == 2
VIRTIO_RTC_CLOCK_SMEARED_UTC == 3And the subtypes are *only* for the case of
VIRTIO_RTC_CLOCK_SMEARED_UTC. They includeQuoted 8 lines
VIRTIO_RTC_SUBTYPE_STRICT
VIRTIO_RTC_SUBTYPE_UNDEFINED /* or whatever you want to call it */VIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEARVIRTIO_RTC_SUBTYPE_UTC_SLS/* if it's worth doing this one */Is that what we just agreed on?
This is a misunderstanding. My idea was that the main types are
Quoted 4 lines
VIRTIO_RTC_CLOCK_UTC == 0
VIRTIO_RTC_CLOCK_TAI == 1
VIRTIO_RTC_CLOCK_MONOTONIC == 2
VIRTIO_RTC_CLOCK_SMEARED_UTC == 3
VIRTIO_RTC_CLOCK_MAYBE_SMEARED_UTC== 4Quoted 8 lines
The subtypes would be (1st for clocks other than
VIRTIO_RTC_CLOCK_SMEARED_UTC, 2nd to last forVIRTIO_RTC_CLOCK_SMEARED_UTC):#define
VIRTIO_RTC_SUBTYPE_STRICT0
#defineVIRTIO_RTC_SUBTYPE_SMEAR_NOON_LINEAR1
#defineVIRTIO_RTC_SUBTYPE_SMEAR_UTC_SLS2Thanks. I really do think that from the guest point of view there's really no distinction between "maybe smeared" and "undefined smearing", and have a preference for using the latter form, which is the key difference there?
Quoted 8 lines
Quoted 1 line
Again though, not a hill for me to die on.
I have no issue with staying with "undefined smearing", so would you agree to something like
VIRTIO_RTC_CLOCK_SMEAR_UNDEFINED_UTC== 4(or another name if you prefer)?
Well, the point of contention was really whether that was a *type* or a *subtype*.
Either way, it's a "precision clock" telling its consumer that the device *itself* doesn't really know what time is being exposed. Which seems like a bizarre thing to support.
But I think I've constructed an argument which persuades me to your point of view that *if* we permit it, it should be a primary type...
A clock can *either* be UTC, *or* it can be monotonic. The whole point of smearing is to produce a monotonic clock, of course.
VIRTIO_RTC_CLOCK_UTC is UTC. It is not monotonic.
VIRTIO_RTC_CLOCK_SMEARED is, presumably, monotonic (and I think we should explicitly require that to be true in virtio-rtc).
But VIRTIO_RTC_CLOCK_MAYBE_SMEARED is the worst of both worlds. It is neither known to be correct UTC, *nor* is it known to be monotonic. So (again, if we permit it at all) I think it probably does make sense for that to be a primary type.
This is what I currently have for 'struct vmclock_abi' that I'd like to persuade you to adopt. I need to tweak it some more, for at least the following reasons, as well as any more you can see:
• size isn't big enough for 64KiB pages
• Should be explicitly little-endian
• Does it need esterror as well as maxerror?
• Why is maxerror in picoseconds? It's the only use of that unit
• Where do the clock_status values come from? Do they make sense?
• Are signed integers OK? (I think so!).
/*
* This structure provides a vDSO-style clock to VM guests, exposing the
* relationship (or lack thereof) between the CPU clock (TSC, timebase, arch
* counter, etc.) and real time. It is designed to address the problem of
* live migration, which other clock enlightenments do not.
*
* When a guest is live migrated, this affects the clock in two ways. *
* First, even between identical hosts the actual frequency of the underlying
* counter will change within the tolerances of its specification (typically
* ±50PPM, or 4 seconds a day). This frequency also varies over time on the
* same host, but can be tracked by NTP as it generally varies slowly. With
* live migration there is a step change in the frequency, with no warning. *
* Second, there may be a step change in the value of the counter itself, as
* its accuracy is limited by the precision of the NTP synchronization on the
* source and destination hosts.
*
* So any calibration (NTP, PTP, etc.) which the guest has done on the source
* host before migration is invalid, and needs to be redone on the new host. *
* In its most basic mode, this structure provides only an indication to the
* guest that live migration has occurred. This allows the guest to know that
* its clock is invalid and take remedial action. For applications that need
* reliable accurate timestamps (e.g. distributed databases), the structure
* can be mapped all the way to userspace. This allows the application to see
* directly for itself that the clock is disrupted and take appropriate
* action, even when using a vDSO-style method to get the time instead of a
* system call.
*
* In its more advanced mode. this structure can also be used to expose the
* precise relationship of the CPU counter to real time, as calibrated by the
* host. This means that userspace applications can have accurate time
* immediately after live migration, rather than having to pause operations
* and wait for NTP to recover. This mode does, of course, rely on the
* counter being reliable and consistent across CPUs.
*
* Note that this must be true UTC, never with smeared leap seconds. If a
* guest wishes to construct a smeared clock, it can do so. Presenting a
* smeared clock through this interface would be problematic because it
* actually messes with the apparent counter *period*. A linear smearing
* of 1 ms per second would effectively tweak the counter period by 1000PPM
* at the start/end of the smearing period, while a sinusoidal smear would
* basically be impossible to represent.
*
* This structure is offered with the intent that it be adopted into the
* nascent virtio-rtc standard, as a virtio-rtc that does not address the live
* migration problem seems a little less than fit for purpose. For that
* reason, certain fields use precisely the same numeric definitions as in
* the virtio-rtc proposal. The structure can also be exposed through an ACPI
* device with the CID "VMCLOCK", modelled on the "VMGENID" device except for
* the fact that it uses a real _CRS to convey the address of the structure
* (which should be a full page, to allow for mapping directly to userspace). */
#ifndef __VMCLOCK_ABI_H__
#define __VMCLOCK_ABI_H__
#ifdef __KERNEL__
#include <linux/types.h>
#else
#include <stdint.h>
#endif
struct vmclock_abi {
uint64_t magic;
#define VMCLOCK_MAGIC 0x4b4c4356 /* "VCLK" */
uint16_t size; /* Size of page containing this structure */
uint16_t version; /* 1 */
/* Sequence lock. Low bit means an update is in progress. */
uint32_t seq_count;
uint32_t flags;
/* Indicates that the tai_offset_sec field is valid */#define VMCLOCK_FLAG_TAI_OFFSET_VALID (1 << 0)
/*
* Optionally used to notify guests of pending maintenance events.
* A guest may wish to remove itself from service if an event is
* coming up. Two flags indicate the rough imminence of the event. */
#define VMCLOCK_FLAG_DISRUPTION_SOON (1 << 1) /* About a day */
#define VMCLOCK_FLAG_DISRUPTION_IMMINENT (1 << 2) /* About an hour */ /* Indicates that the utc_time_maxerror_picosec field is valid */ #define VMCLOCK_FLAG_UTC_MAXERROR_VALID (1 << 3) /* Indicates counter_period_error_rate_frac_sec is valid */
#define VMCLOCK_FLAG_PERIOD_ERROR_VALID (1 << 4)
/* * This field changes to another non-repeating value when the CPU * counter is disrupted, for example on live migration. This lets * the guest know that it should discard any calibration it has * performed of the counter against external sources (NTP/PTP/etc.). */ uint64_t disruption_marker; uint8_t clock_status;
#define VMCLOCK_STATUS_UNKNOWN 0
#define VMCLOCK_STATUS_INITIALIZING 1
#define VMCLOCK_STATUS_SYNCHRONIZED 2
#define VMCLOCK_STATUS_FREERUNNING 3
#define VMCLOCK_STATUS_UNRELIABLE 4
uint8_t counter_id; /* Matches VIRTIO_RTC_COUNTER_xxx */
#define VMCLOCK_COUNTER_ARM_VCNT 0
#define VMCLOCK_COUNTER_X86_TSC 1
#define VMCLOCK_COUNTER_INVALID 0xff
/* * By providing the offset from UTC to TAI, the guest can know both * UTC and TAI reliably, whichever is indicated in the time_type * field. Valid if VMCLOCK_FLAG_TAI_OFFSET_VALID is set in flags. */ int16_t tai_offset_sec; /* * What time is exposed in the time_sec/time_frac_sec fields? */ uint8_t time_type; /* Matches VIRTIO_RTC_TYPE_xxx */
#define VMCLOCK_TIME_UTC 0 /* Since 1970-01-01 00:00:00z */
#define VMCLOCK_TIME_TAI 1 /* Since 1970-01-01 00:00:00z */
#define VMCLOCK_TIME_MONOTONIC 2 /* Since undefined epoch */
#define VMCLOCK_TIME_INVALID_SMEARED 3 /* Not supported */
#define VMCLOCK_TIME_INVALID_MAYBE_SMEARED 4 /* Not supported */
/*
* The time exposed through this device is never smeared. This field
* corresponds to the 'subtype' field in virtio-rtc, which indicates
* the smearing method. However in this case it provides a *hint* to
* the guest operating system, such that *if* the guest OS wants to
* provide its users with an alternative clock which does not follow
* the POSIX CLOCK_REALTIME standard, it may do so in a fashion
* consistent with the other systems in the nearby environment. */
uint8_t leap_second_smearing_hint; /* Matches VIRTIO_RTC_SUBTYPE_xxx */
#define VMCLOCK_SMEARING_STRICT 0
#define VMCLOCK_SMEARING_NOON_LINEAR 1
#define VMCLOCK_SMEARING_UTC_SLS 2
/* Bit shift for counter_period_frac_sec and its error rate */ uint8_t counter_period_shift;
/*
* Unlike in NTP, this can indicate a leap second in the past. This
* is needed to allow guests to derive an imprecise clock with
* smeared leap seconds for themselves, as some modes of smearing
* need the adjustments to continue even after the moment at which
* the leap second should have occurred.
*/
uint8_t leap_indicator; /* Matches VIRTIO_RTC_LEAP_xxx */
#define VMCLOCK_LEAP_NONE 0
#define VMCLOCK_LEAP_PRE_POS 1
#define VMCLOCK_LEAP_PRE_NEG 2
#define VMCLOCK_LEAP_POS 3
#define VMCLOCK_LEAP_NEG 4
uint64_t leapsecond_tai_sec; /* Since 1970-01-01 00:00:00z */ /* * Paired values of counter and UTC at a given point in time. */ uint64_t counter_value; uint64_t time_sec; uint64_t time_frac_sec; /* * Counter frequency, and error margin. The unit of these fields is * seconds >> (64 + counter_period_shift) */ uint64_t counter_period_frac_sec; uint64_t counter_period_error_rate_frac_sec; /* Error margin of UTC reading above (± picoseconds) */ uint64_t utc_time_maxerror_picosec; };
#endif /* __VMCLOCK_ABI_H__ */
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
On 03.07.24 12:40, David Woodhouse wrote:
[...]
Quoted 9 lines
This is what I currently have for 'struct
vmclock_abi' that I'd like to persuade you to adopt. I need to tweak it some more, for at least the following reasons, as well as any more you can see:• size isn't big enough for 64KiB pages
• Should be explicitly little-endian
• Does it need esterror as well as maxerror?
I have no opinion about this. I can drop esterror if unwanted.
Quoted 3 lines
• Why is maxerror in picoseconds? It's the only use of that unit
• Where do theclock_statusvalues come from? Do they make sense?
• Are signed integers OK? (I think so!).
Signed integers would need to be introduced to Virtio, which so far only uses explicitly unsigned types: u8, le16 etc.
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 10 lines · Peter Hilber
On 03.07.24 12:40, David Woodhouse wrote:
[...]
Quoted 6 lines
This is what I currently have for 'struct
vmclock_abi' that I'd like to persuade you to adopt. I need to tweak it some more, for at least the following reasons, as well as any more you can see:
Quoted 5 lines
Quoted 3 lines
• size isn't big enough for 64KiB pages
• Should be explicitly little-endian
• Does it need esterror as well as maxerror?I have no opinion about this. I can drop esterror if unwanted.
I also don't care. I'm just observing the inconsistency.
Quoted 1 line
Quoted 1 line
• Why is maxerror in picoseconds? It's the only use of that unit
Between us we now have picoseconds, nanoseconds, (seconds >> 64) and (seconds >> 64+n).
The power-of-two fractions seem to make a lot of sense for the counter period, because they mean we don't have to perform divisions.
Does it makes sense to harmonise on (seconds >> 64) for all of the fractional seconds? Again I don't have a strong opinion; I only want us to have a *reason* for any differences that exist.
Quoted 5 lines
Quoted 2 lines
• Where do the
clock_statusvalues come from? Do they make sense?
• Are signed integers OK? (I think so!).Signed integers would need to be introduced to Virtio, which so far only uses explicitly unsigned types: u8, le16 etc.
Perhaps. Although it would also be possible (if not ideal) to define that e.g. the tai_offset field is a 16-bit "unsigned" integer according to virtio, but to be interpreted as follows:
If the number is <= 32767 then the TAI offset is that value, but if the number is >= 32768 then the TAI offset is that value minus 65536.
Perhaps not pretty, but there isn't a *fundamental* dependency on virtio supporting signed integers as a primary type.
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 2 lines · David Woodhouse
Quoted 1 line · Peter Hilber
On 03.07.24 12:40, David Woodhouse wrote:
[...]
Quoted 5 lines
Quoted 1 line
Quoted 1 line
• Why is maxerror in picoseconds? It's the only use of that unit
Between us we now have picoseconds, nanoseconds, (seconds >> 64) and (seconds >> 64+n).
Quoted 7 lines
The power-of-two fractions seem to make a lot of sense for the counter period, because they mean we don't have to perform divisions.
Does it makes sense to harmonise on (seconds >> 64) for all of the fractional seconds? Again I don't have a strong opinion; I only want us to have a *reason* for any differences that exist.
I don't have the expertise with fixed-point arithmetic to judge if this would become unwieldy.
I selected ns for the virtio-rtc drafts so far because that didn't have any impact on the precision with the Linux kernel driver message-based use cases, but that would be different for SHM in my understanding.
So I would tend to retain ns for convenience for messages (where it doesn't impact precision) but do not have any preference for SHM.
Quoted 10 lines
Quoted 5 lines
Quoted 2 lines
• Where do the
clock_statusvalues come from? Do they make sense?
• Are signed integers OK? (I think so!).Signed integers would need to be introduced to Virtio, which so far only uses explicitly unsigned types: u8, le16 etc.
Perhaps. Although it would also be possible (if not ideal) to define that e.g. the
tai_offsetfield is a 16-bit "unsigned" integer according to virtio, but to be interpreted as follows:
Quoted 6 lines
If the number is <= 32767 then the TAI offset is that value, but if the number is >= 32768 then the TAI offset is that value minus 65536.
Perhaps not pretty, but there isn't a *fundamental* dependency on virtio supporting signed integers as a primary type.
Agreed.
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
In reply to Peter HilberI've updated the tree at
https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads/vmclock
(but not yet the qemu one).
I think I've taken into account all your comments apart from the one about non-64-bit counters wrapping. I reduced the seq_count to 32 bit to make room for a 32-bit flags field, added the time type (UTC/TAI/MONOTONIC) and a smearing hint, with some straw man definitions for smearing algorithms for which I could actually find definitions.
The structure now looks like this:
struct vmclock_abi {
uint32_t magic;
#define VMCLOCK_MAGIC 0x4b4c4356 /* "VCLK" */
uint16_t size; /* Size of page containing this structure */
uint16_t version; /* 1 */
/* Sequence lock. Low bit means an update is in progress. */
uint32_t seq_count;
uint32_t flags;
/* Indicates that the tai_offset_sec field is valid */#define VMCLOCK_FLAG_TAI_OFFSET_VALID (1 << 0)
/*
* Optionally used to notify guests of pending maintenance events.
* A guest may wish to remove itself from service if an event is
* coming up. Two flags indicate the rough imminence of the event. */
#define VMCLOCK_FLAG_DISRUPTION_SOON (1 << 1) /* About a day */
#define VMCLOCK_FLAG_DISRUPTION_IMMINENT (1 << 2) /* About an hour */ /* Indicates that the utc_time_maxerror_picosec field is valid */ #define VMCLOCK_FLAG_UTC_MAXERROR_VALID (1 << 3) /* Indicates counter_period_error_rate_frac_sec is valid */
#define VMCLOCK_FLAG_PERIOD_ERROR_VALID (1 << 4)
/* * This field changes to another non-repeating value when the CPU * counter is disrupted, for example on live migration. This lets * the guest know that it should discard any calibration it has * performed of the counter against external sources (NTP/PTP/etc.). */ uint64_t disruption_marker; uint8_t clock_status;
#define VMCLOCK_STATUS_UNKNOWN 0
#define VMCLOCK_STATUS_INITIALIZING 1
#define VMCLOCK_STATUS_SYNCHRONIZED 2
#define VMCLOCK_STATUS_FREERUNNING 3
#define VMCLOCK_STATUS_UNRELIABLE 4
uint8_t counter_id;
#define VMCLOCK_COUNTER_INVALID 0
#define VMCLOCK_COUNTER_X86_TSC 1
#define VMCLOCK_COUNTER_ARM_VCNT 2
#define VMCLOCK_COUNTER_X86_ART 3
/*
* By providing the offset from UTC to TAI, the guest can know both
* UTC and TAI reliably, whichever is indicated in the time_type
* field. Valid if VMCLOCK_FLAG_TAI_OFFSET_VALID is set in flags. */
int16_t tai_offset_sec;
/*
* The time exposed through this device is never smeaared; if it
* claims to be VMCLOCK_TIME_UTC then it MUST be UTC. This field
* provides a hint to the guest operating system, such that *if*
* the guest OS wants to provide its users with an alternative
* clock which does not follow the POSIX CLOCK_REALTIME standard,
* it may do so in a fashion consistent with the other systems
* in the nearby environment.
*/
uint8_t leap_second_smearing_hint;
/* Provide true UTC to users, unsmeared. */;
#define VMCLOCK_SMEARING_NONE 0
/*
* https://aws.amazon.com/blogs/aws/look-before-you-leap-the-coming-leap-second-and-aws/
* From noon on the day before to noon on the day after, smear the
* clock by a linear 1/86400s per second.
*/
#define VMCLOCK_SMEARING_LINEAR_86400 1
/*
* draft-kuhn-leapsecond-00
* For the 1000s leading up to the leap second, smear the clock by
* clock by a linear 1ms per second.
*/
#define VMCLOCK_SMEARING_UTC_SLS 2
/* * What time is exposed in the time_sec/time_frac_sec fields? */ uint8_t time_type;
#define VMCLOCK_TIME_UNKNOWN 0 /* Invalid / no time exposed */
#define VMCLOCK_TIME_UTC 1 /* Since 1970-01-01 00:00:00z */
#define VMCLOCK_TIME_TAI 2 /* Since 1970-01-01 00:00:00z */
#define VMCLOCK_TIME_MONOTONIC 3 /* Since undefined epoch */
/* Bit shift for counter_period_frac_sec and its error rate */ uint8_t counter_period_shift; /* * Unlike in NTP, this can indicate a leap second in the past. This * is needed to allow guests to derive an imprecise clock with * smeared leap seconds for themselves, as some modes of smearing * need the adjustments to continue even after the moment at which * the leap second should have occurred. */ int8_t leapsecond_direction; uint64_t leapsecond_tai_sec; /* Since 1970-01-01 00:00:00z */ /* * Paired values of counter and UTC at a given point in time. */ uint64_t counter_value; uint64_t time_sec; /* Since 1970-01-01 00:00:00z */ uint64_t time_frac_sec; /* * Counter frequency, and error margin. The unit of these fields is * seconds >> (64 + counter_period_shift) */ uint64_t counter_period_frac_sec; uint64_t counter_period_error_rate_frac_sec; /* Error margin of UTC reading above (± picoseconds) */ uint64_t utc_time_maxerror_picosec; };
#endif /* __VMCLOCK_H__ */
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 16 lines · David Woodhouse
I've updated the tree at
https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads/vmclock
(but not yet the qemu one).I think I've taken into account all your comments apart from the one about non-64-bit counters wrapping. I reduced the
seq_countto 32 bit to make room for a 32-bit flags field, added the time type (UTC/TAI/MONOTONIC) and a smearing hint, with some straw man definitions for smearing algorithms for which I could actually find definitions.The structure now looks like this:
struct
vmclock_abi{
[...]
Quoted 20 lines
/* * What time is exposed in the time_sec/time_frac_sec fields? */ uint8_t time_type;#define
VMCLOCK_TIME_UNKNOWN0 /* Invalid / no time exposed */
#defineVMCLOCK_TIME_UTC1 /* Since 1970-01-01 00:00:00z */
#defineVMCLOCK_TIME_TAI2 /* Since 1970-01-01 00:00:00z */
#defineVMCLOCK_TIME_MONOTONIC3 /* Since undefined epoch *//* Bit shift for counter_period_frac_sec and its error rate */ uint8_t counter_period_shift; /* * Unlike in NTP, this can indicate a leap second in the past. This * is needed to allow guests to derive an imprecise clock with * smeared leap seconds for themselves, as some modes of smearing * need the adjustments to continue even after the moment at which * the leap second should have occurred. */
Quoted 8 lines
int8_t leapsecond_direction; uint64_t leapsecond_tai_sec; /* Since 1970-01-01 00:00:00z */ /* * Paired values of counter and UTC at a given point in time. */ uint64_t counter_value; uint64_t time_sec; /* Since 1970-01-01 00:00:00z */
Nitpick: The comment is not valid any more for TIME_MONOTONIC.
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 24 lines · Peter Hilber
Quoted 24 lines
/*
* What time is exposed in the time_sec/time_frac_sec fields? */
uint8_ttime_type;
#define VMCLOCK_TIME_UNKNOWN 0 /* Invalid / no time exposed */ #define VMCLOCK_TIME_UTC 1 /* Since 1970-01-01 00:00:00z */ #define VMCLOCK_TIME_TAI 2 /* Since 1970-01-01 00:00:00z */ #define VMCLOCK_TIME_MONOTONIC 3 /* Since undefined epoch *//* Bit shift for
counter_period_frac_secand its error rate */uint8_tcounter_period_shift;/*
* Unlike in NTP, this can indicate a leap second in the past. This
* is needed to allow guests to derive an imprecise clock with
* smeared leap seconds for themselves, as some modes of smearing
* need the adjustments to continue even after the moment at which
* the leap second should have occurred.
*/
int8_tleapsecond_direction;
uint64_tleapsecond_tai_sec; /* Since 1970-01-01 00:00:00z */
Quoted 7 lines
Quoted 5 lines
/*
* Paired values of counter and UTC at a given point in time. */
uint64_tcounter_value;
uint64_ttime_sec; /* Since 1970-01-01 00:00:00z */Nitpick: The comment is not valid any more for
TIME_MONOTONIC.
Ah yes, I "moved" that comment up to the UTC/TAI time_type values, but neglected to actually delete it from here. Fixed; thanks.
kernel test robot
build botRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
In reply to David Woodhousekernel test robot noticed the following build errors:
Hi David,
[This is a private test report for your RFC patch.] kernel test robot noticed the following build errors:
[auto build test ERROR on soc/for-next]
[also build test ERROR on linus/master v6.10-rc5 next-20240628] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/David-Woodhouse/ptp-Add-vDSO-style-vmclock-support/20240626-053931 base: https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git for-next patch link: https://lore.kernel.org/r/4a0a240dffc21dde4d69179288547b945142259f.camel%40infradead.org patch subject: [RFC PATCH v2] ptp: Add vDSO-style vmclock support config: x86_64-buildonly-randconfig-006-20240629 compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build):
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> ld.lld: error: undefined symbol: hv_clock_per_cpu >>> referenced by ptp_vmclock.c >>> drivers/ptp/ptp_vmclock.o:(ptp_vmclock_get_time_fn) in archive vmlinux.a
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
reproduce (this is a W=1 build):
git clone https://github.com/intel/lkp-tests.git ~/lkp-tests
git remote add soc https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc.git
git fetch soc for-next
git checkout soc/for-next
b4 shazam https://lore.kernel.org/r/[email protected]
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang-18 ~/lkp-tests/kbuild/make.cross W=1 O=build_dir ARCH=x86_64 olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang-18 ~/lkp-tests/kbuild/make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 6.10.0-rc4 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="clang version 18.1.5 (git://gitmirror/llvm_project 617a15a9eac96088ae5e9134248d8236e34b91b1)" CONFIG_GCC_VERSION=0CONFIG_CC_IS_CLANG=yCONFIG_CLANG_VERSION=180105CONFIG_AS_IS_LLVM=yCONFIG_AS_VERSION=180105CONFIG_LD_VERSION=0CONFIG_LD_IS_LLD=yCONFIG_LLD_VERSION=180105CONFIG_RUST_IS_AVAILABLE=yCONFIG_CC_CAN_LINK=yCONFIG_CC_CAN_LINK_STATIC=yCONFIG_CC_HAS_ASM_GOTO_OUTPUT=yCONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=yCONFIG_TOOLS_SUPPORT_RELR=yCONFIG_CC_HAS_ASM_INLINE=yCONFIG_CC_HAS_NO_PROFILE_FN_ATTR=yCONFIG_PAHOLE_VERSION=127CONFIG_IRQ_WORK=yCONFIG_BUILDTIME_TABLE_SORT=yCONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_BROKEN_ON_SMP=yCONFIG_INIT_ENV_ARG_LIMIT=32CONFIG_COMPILE_TEST=y
# CONFIG_WERROR is not setCONFIG_LOCALVERSION=""CONFIG_BUILD_SALT=""CONFIG_HAVE_KERNEL_GZIP=yCONFIG_HAVE_KERNEL_BZIP2=yCONFIG_HAVE_KERNEL_LZMA=yCONFIG_HAVE_KERNEL_XZ=yCONFIG_HAVE_KERNEL_LZO=yCONFIG_HAVE_KERNEL_LZ4=yCONFIG_HAVE_KERNEL_ZSTD=yCONFIG_KERNEL_GZIP=y
# CONFIG_KERNEL_BZIP2 is not set
# CONFIG_KERNEL_LZMA is not set
# CONFIG_KERNEL_XZ is not set
# CONFIG_KERNEL_LZO is not set
# CONFIG_KERNEL_LZ4 is not set
# CONFIG_KERNEL_ZSTD is not setCONFIG_DEFAULT_INIT=""CONFIG_DEFAULT_HOSTNAME="(none)"
# CONFIG_SYSVIPC is not setCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=yCONFIG_WATCH_QUEUE=y
# CONFIG_CROSS_MEMORY_ATTACH is not set
# CONFIG_USELIB is not setCONFIG_AUDIT=yCONFIG_HAVE_ARCH_AUDITSYSCALL=yCONFIG_AUDITSYSCALL=y
#
# IRQ subsystem
#CONFIG_GENERIC_IRQ_PROBE=yCONFIG_GENERIC_IRQ_SHOW=yCONFIG_GENERIC_IRQ_INJECTION=yCONFIG_HARDIRQS_SW_RESEND=yCONFIG_GENERIC_IRQ_CHIP=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_SIM=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_IRQ_FASTEOI_HIERARCHY_HANDLERS=yCONFIG_GENERIC_MSI_IRQ=yCONFIG_IRQ_MSI_IOMMU=yCONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=yCONFIG_GENERIC_IRQ_DEBUGFS=y
# end of IRQ subsystem
CONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_ARCH_CLOCKSOURCE_INIT=yCONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST_IDLE=yCONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_CONTEXT_TRACKING=yCONFIG_CONTEXT_TRACKING_IDLE=y
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not setCONFIG_NO_HZ_IDLE=yCONFIG_NO_HZ=y
# CONFIG_HIGH_RES_TIMERS is not setCONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=125
# end of Timers subsystem
CONFIG_BPF=yCONFIG_HAVE_EBPF_JIT=yCONFIG_ARCH_WANT_DEFAULT_BPF_JIT=y
#
# BPF subsystem
#
# CONFIG_BPF_SYSCALL is not set
# CONFIG_BPF_JIT is not set
# end of BPF subsystem
CONFIG_PREEMPT_BUILD=yCONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=yCONFIG_PREEMPT_DYNAMIC=y
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=y
# CONFIG_VIRT_CPU_ACCOUNTING_GEN is not set
# CONFIG_IRQ_TIME_ACCOUNTING is not setCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=yCONFIG_TASKSTATS=y
# CONFIG_TASK_DELAY_ACCT is not set
# CONFIG_TASK_XACCT is not set
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=yCONFIG_PREEMPT_RCU=y
# CONFIG_RCU_EXPERT is not setCONFIG_TREE_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_NEED_TASKS_RCU=yCONFIG_TASKS_RCU=yCONFIG_RCU_STALL_COMMON=yCONFIG_RCU_NEED_SEGCBLIST=y
# end of RCU Subsystem
# CONFIG_IKCONFIG is not setCONFIG_IKHEADERS=yCONFIG_LOG_BUF_SHIFT=17
# CONFIG_PRINTK_INDEX is not setCONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# end of Scheduler features
CONFIG_ARCH_SUPPORTS_NUMA_BALANCING=y CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y CONFIG_CC_HAS_INT128=y CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough" CONFIG_GCC10_NO_ARRAY_BOUNDS=y CONFIG_GCC_NO_STRINGOP_OVERFLOW=y CONFIG_ARCH_SUPPORTS_INT128=yCONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=y CONFIG_CGROUP_FAVOR_DYNMODS=y
# CONFIG_MEMCG is not set
# CONFIG_BLK_CGROUP is not set
# CONFIG_CGROUP_SCHED is not set
# CONFIG_CGROUP_PIDS is not set
# CONFIG_CGROUP_RDMA is not set
# CONFIG_CGROUP_FREEZER is not set CONFIG_CGROUP_HUGETLB=yCONFIG_CGROUP_DEVICE=yCONFIG_CGROUP_CPUACCT=yCONFIG_CGROUP_PERF=y
# CONFIG_CGROUP_MISC is not set
# CONFIG_CGROUP_DEBUG is not set CONFIG_NAMESPACES=y
# CONFIG_UTS_NS is not setCONFIG_TIME_NS=y
# CONFIG_IPC_NS is not setCONFIG_USER_NS=yCONFIG_PID_NS=y
# CONFIG_NET_NS is not set
# CONFIG_CHECKPOINT_RESTORE is not set
# CONFIG_SCHED_AUTOGROUP is not set CONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE=""
# CONFIG_RD_GZIP is not set
# CONFIG_RD_BZIP2 is not setCONFIG_RD_LZMA=yCONFIG_RD_XZ=y
# CONFIG_RD_LZO is not set
# CONFIG_RD_LZ4 is not setCONFIG_RD_ZSTD=yCONFIG_BOOT_CONFIG=y
# CONFIG_BOOT_CONFIG_FORCE is not set
# CONFIG_BOOT_CONFIG_EMBED is not set CONFIG_INITRAMFS_PRESERVE_MTIME=y CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_LD_ORPHAN_WARN=y CONFIG_LD_ORPHAN_WARN_LEVEL="warn" CONFIG_SYSCTL=yCONFIG_HAVE_UID16=y CONFIG_SYSCTL_EXCEPTION_TRACE=y CONFIG_HAVE_PCSPKR_PLATFORM=y
# CONFIG_EXPERT is not setCONFIG_UID16=yCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=y CONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_FUTEX=yCONFIG_FUTEX_PI=yCONFIG_EPOLL=yCONFIG_SIGNALFD=yCONFIG_TIMERFD=yCONFIG_EVENTFD=yCONFIG_SHMEM=yCONFIG_AIO=yCONFIG_IO_URING=yCONFIG_ADVISE_SYSCALLS=yCONFIG_MEMBARRIER=yCONFIG_RSEQ=yCONFIG_CACHESTAT_SYSCALL=yCONFIG_KALLSYMS=yCONFIG_KALLSYMS_SELFTEST=y CONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_BASE_RELATIVE=y CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y CONFIG_HAVE_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=yCONFIG_DEBUG_PERF_USE_VMALLOC=y
# end of Kernel Performance Events And Counters
CONFIG_SYSTEM_DATA_VERIFICATION=y
# CONFIG_PROFILING is not set
#
# Kexec and crash features
#CONFIG_VMCORE_INFO=y
# CONFIG_KEXEC is not set
# CONFIG_KEXEC_FILE is not set
# end of Kexec and crash features # end of General setup
CONFIG_64BIT=yCONFIG_X86_64=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=yCONFIG_OUTPUT_FORMAT="elf64-x86-64"CONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_ARCH_MMAP_RND_BITS_MIN=28CONFIG_ARCH_MMAP_RND_BITS_MAX=32CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16CONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_BUG=yCONFIG_GENERIC_BUG_RELATIVE_POINTERS=yCONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_AUDIT_ARCH=yCONFIG_HAVE_INTEL_TXT=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_DYNAMIC_PHYSICAL_MASK=yCONFIG_PGTABLE_LEVELS=4CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#
# CONFIG_SMP is not setCONFIG_X86_MPPARSE=yCONFIG_X86_CPU_RESCTRL=yCONFIG_X86_FRED=yCONFIG_X86_EXTENDED_PLATFORM=yCONFIG_X86_GOLDFISH=y
# CONFIG_X86_INTEL_LPSS is not setCONFIG_X86_AMD_PLATFORM_DEVICE=yCONFIG_IOSF_MBI=y
# CONFIG_IOSF_MBI_DEBUG is not setCONFIG_SCHED_OMIT_FRAME_POINTER=y
# CONFIG_HYPERVISOR_GUEST is not set
# CONFIG_MK8 is not set
# CONFIG_MPSC is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not setCONFIG_GENERIC_CPU=yCONFIG_X86_INTERNODE_CACHE_SHIFT=6CONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_TSC=yCONFIG_X86_HAVE_PAE=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=yCONFIG_X86_MINIMUM_CPU_FAMILY=64CONFIG_X86_DEBUGCTLMSR=yCONFIG_IA32_FEAT_CTL=yCONFIG_X86_VMX_FEATURE_NAMES=yCONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_HYGON=yCONFIG_CPU_SUP_CENTAUR=yCONFIG_CPU_SUP_ZHAOXIN=yCONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=yCONFIG_DMI=y
# CONFIG_GART_IOMMU is not setCONFIG_NR_CPUS_RANGE_BEGIN=1CONFIG_NR_CPUS_RANGE_END=1CONFIG_NR_CPUS_DEFAULT=1CONFIG_NR_CPUS=1CONFIG_UP_LATE_INIT=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=y
# CONFIG_X86_MCE is not set
#
# Performance monitoring
#CONFIG_PERF_EVENTS_INTEL_UNCORE=yCONFIG_PERF_EVENTS_INTEL_RAPL=yCONFIG_PERF_EVENTS_INTEL_CSTATE=y
# CONFIG_PERF_EVENTS_AMD_POWER is not setCONFIG_PERF_EVENTS_AMD_UNCORE=y
# CONFIG_PERF_EVENTS_AMD_BRS is not set
# end of Performance monitoring
CONFIG_X86_16BIT=yCONFIG_X86_ESPFIX64=yCONFIG_X86_VSYSCALL_EMULATION=y
# CONFIG_X86_IOPL_IOPERM is not setCONFIG_MICROCODE=y
# CONFIG_X86_MSR is not setCONFIG_X86_CPUID=y
# CONFIG_X86_5LEVEL is not setCONFIG_X86_DIRECT_GBPAGES=yCONFIG_X86_CPA_STATISTICS=yCONFIG_X86_MEM_ENCRYPT=yCONFIG_AMD_MEM_ENCRYPT=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_DEFAULT=yCONFIG_ARCH_PROC_KCORE_TEXT=yCONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000
# CONFIG_X86_CHECK_BIOS_CORRUPTION is not setCONFIG_MTRR=y
# CONFIG_MTRR_SANITIZER is not setCONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=yCONFIG_X86_UMIP=yCONFIG_CC_HAS_IBT=yCONFIG_X86_CET=y
# CONFIG_X86_KERNEL_IBT is not setCONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=yCONFIG_X86_INTEL_TSX_MODE_OFF=y
# CONFIG_X86_INTEL_TSX_MODE_ON is not set
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not setCONFIG_X86_USER_SHADOW_STACK=yCONFIG_EFI=yCONFIG_EFI_STUB=yCONFIG_EFI_HANDOVER_PROTOCOL=yCONFIG_EFI_MIXED=y
# CONFIG_EFI_FAKE_MEMMAP is not set
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250CONFIG_ARCH_SUPPORTS_KEXEC=yCONFIG_ARCH_SUPPORTS_KEXEC_FILE=yCONFIG_ARCH_SUPPORTS_KEXEC_PURGATORY=yCONFIG_ARCH_SUPPORTS_KEXEC_SIG=yCONFIG_ARCH_SUPPORTS_KEXEC_SIG_FORCE=yCONFIG_ARCH_SUPPORTS_KEXEC_BZIMAGE_VERIFY_SIG=yCONFIG_ARCH_SUPPORTS_KEXEC_JUMP=yCONFIG_ARCH_SUPPORTS_CRASH_DUMP=yCONFIG_ARCH_SUPPORTS_CRASH_HOTPLUG=yCONFIG_PHYSICAL_START=0x1000000CONFIG_RELOCATABLE=yCONFIG_RANDOMIZE_BASE=yCONFIG_X86_NEED_RELOCS=yCONFIG_PHYSICAL_ALIGN=0x200000
# CONFIG_RANDOMIZE_MEMORY is not set
# CONFIG_ADDRESS_MASKING is not set
# CONFIG_COMPAT_VDSO is not setCONFIG_LEGACY_VSYSCALL_XONLY=y
# CONFIG_LEGACY_VSYSCALL_NONE is not setCONFIG_CMDLINE_BOOL=yCONFIG_CMDLINE=""CONFIG_MODIFY_LDT_SYSCALL=y
# CONFIG_STRICT_SIGALTSTACK_SIZE is not setCONFIG_HAVE_LIVEPATCH=y
# end of Processor type and features
CONFIG_CC_HAS_SLS=yCONFIG_CC_HAS_RETURN_THUNK=yCONFIG_CC_HAS_ENTRY_PADDING=yCONFIG_FUNCTION_PADDING_CFI=11CONFIG_FUNCTION_PADDING_BYTES=11CONFIG_CPU_MITIGATIONS=yCONFIG_MITIGATION_PAGE_TABLE_ISOLATION=y
# CONFIG_MITIGATION_RETPOLINE is not set
# CONFIG_MITIGATION_IBPB_ENTRY is not setCONFIG_MITIGATION_IBRS_ENTRY=yCONFIG_MITIGATION_SLS=yCONFIG_MITIGATION_GDS_FORCE=yCONFIG_MITIGATION_RFDS=yCONFIG_MITIGATION_SPECTRE_BHI=yCONFIG_ARCH_HAS_ADD_PAGES=y
#
# Power management and ACPI options
#
# CONFIG_SUSPEND is not set
# CONFIG_HIBERNATION is not set
# CONFIG_PM is not setCONFIG_ARCH_SUPPORTS_ACPI=yCONFIG_ACPI=yCONFIG_ACPI_LEGACY_TABLES_LOOKUP=yCONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=yCONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=yCONFIG_ACPI_THERMAL_LIB=y
# CONFIG_ACPI_DEBUGGER is not setCONFIG_ACPI_SPCR_TABLE=yCONFIG_ACPI_FPDT=yCONFIG_ACPI_LPIT=yCONFIG_ACPI_REV_OVERRIDE_POSSIBLE=y
# CONFIG_ACPI_EC_DEBUGFS is not setCONFIG_ACPI_AC=y
# CONFIG_ACPI_BATTERY is not setCONFIG_ACPI_BUTTON=yCONFIG_ACPI_FAN=yCONFIG_ACPI_DOCK=yCONFIG_ACPI_CPU_FREQ_PSS=yCONFIG_ACPI_PROCESSOR_CSTATE=yCONFIG_ACPI_PROCESSOR_IDLE=yCONFIG_ACPI_CPPC_LIB=yCONFIG_ACPI_PROCESSOR=y
# CONFIG_ACPI_IPMI is not setCONFIG_ACPI_PROCESSOR_AGGREGATOR=yCONFIG_ACPI_THERMAL=yCONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_TABLE_UPGRADE is not set
# CONFIG_ACPI_DEBUG is not setCONFIG_ACPI_PCI_SLOT=yCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_HOTPLUG_IOAPIC=yCONFIG_ACPI_SBS=yCONFIG_ACPI_HED=y
# CONFIG_ACPI_BGRT is not setCONFIG_HAVE_ACPI_APEI=yCONFIG_HAVE_ACPI_APEI_NMI=y
# CONFIG_ACPI_APEI is not setCONFIG_ACPI_DPTF=yCONFIG_DPTF_POWER=y
# CONFIG_DPTF_PCH_FIVR is not set
# CONFIG_ACPI_CONFIGFS is not set
# CONFIG_ACPI_PFRUT is not setCONFIG_ACPI_PCC=y
# CONFIG_ACPI_FFH is not set
# CONFIG_PMIC_OPREGION is not set
# CONFIG_ACPI_PRMT is not setCONFIG_X86_PM_TIMER=y
#
# CPU Frequency scaling
#CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_GOV_ATTR_SET=y CONFIG_CPU_FREQ_GOV_COMMON=y CONFIG_CPU_FREQ_STAT=y CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y
# CONFIG_CPU_FREQ_GOV_USERSPACE is not set CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
#
# CPU frequency scaling drivers
#CONFIG_CPUFREQ_DT=yCONFIG_CPUFREQ_DT_PLATDEV=yCONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not setCONFIG_X86_AMD_PSTATE=yCONFIG_X86_AMD_PSTATE_DEFAULT_MODE=3CONFIG_X86_AMD_PSTATE_UT=y
# CONFIG_X86_ACPI_CPUFREQ is not setCONFIG_X86_SPEEDSTEP_CENTRINO=yCONFIG_X86_P4_CLOCKMOD=y
#
# shared options # CONFIG_X86_SPEEDSTEP_LIB=y CONFIG_QORIQ_CPUFREQ=y # end of CPU Frequency scaling
#
# CPU Idle
#CONFIG_CPU_IDLE=y
# CONFIG_CPU_IDLE_GOV_LADDER is not setCONFIG_CPU_IDLE_GOV_MENU=y
# CONFIG_CPU_IDLE_GOV_TEO is not set
# end of CPU Idle
CONFIG_INTEL_IDLE=y
# end of Power management and ACPI options
#
# Bus options (PCI etc.)
#CONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=yCONFIG_MMCONF_FAM10H=yCONFIG_ISA_DMA_API=yCONFIG_AMD_NB=y
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_IA32_EMULATION=y
# CONFIG_IA32_EMULATION_DEFAULT_DISABLED is not set CONFIG_COMPAT_32=yCONFIG_COMPAT=y CONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# end of Binary Emulations
# CONFIG_VIRTUALIZATION is not setCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=yCONFIG_AS_GFNI=yCONFIG_AS_VAES=yCONFIG_AS_VPCLMULQDQ=yCONFIG_AS_WRUSS=yCONFIG_ARCH_CONFIGURES_CPU_MITIGATIONS=y
#
# General architecture-dependent options
#CONFIG_GENERIC_ENTRY=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not setCONFIG_STATIC_CALL_SELFTEST=yCONFIG_OPTPROBES=yCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_ARCH_USE_BUILTIN_BSWAP=yCONFIG_KRETPROBES=yCONFIG_KRETPROBE_ON_RETHOOK=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_OPTPROBES=yCONFIG_HAVE_KPROBES_ON_FTRACE=yCONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=yCONFIG_HAVE_FUNCTION_ERROR_INJECTION=yCONFIG_HAVE_NMI=yCONFIG_TRACE_IRQFLAGS_SUPPORT=yCONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_CONTIGUOUS=yCONFIG_GENERIC_SMP_IDLE_THREAD=yCONFIG_ARCH_HAS_FORTIFY_SOURCE=yCONFIG_ARCH_HAS_SET_MEMORY=yCONFIG_ARCH_HAS_SET_DIRECT_MAP=yCONFIG_ARCH_HAS_CPU_FINALIZE_INIT=yCONFIG_ARCH_HAS_CPU_PASID=yCONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=yCONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=yCONFIG_ARCH_WANTS_NO_INSTR=yCONFIG_HAVE_ASM_MODVERSIONS=yCONFIG_HAVE_REGS_AND_STACK_ACCESS_API=yCONFIG_HAVE_RSEQ=yCONFIG_HAVE_RUST=yCONFIG_HAVE_FUNCTION_ARG_ACCESS_API=yCONFIG_HAVE_HW_BREAKPOINT=yCONFIG_HAVE_MIXED_BREAKPOINTS_REGS=yCONFIG_HAVE_USER_RETURN_NOTIFIER=yCONFIG_HAVE_PERF_EVENTS_NMI=yCONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=yCONFIG_HAVE_PERF_REGS=yCONFIG_HAVE_PERF_USER_STACK_DUMP=yCONFIG_HAVE_ARCH_JUMP_LABEL=yCONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=yCONFIG_MMU_GATHER_MERGE_VMAS=yCONFIG_MMU_LAZY_TLB_REFCOUNT=yCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=yCONFIG_ARCH_HAS_NMI_SAFE_THIS_CPU_OPS=yCONFIG_HAVE_ALIGNED_STRUCT_PAGE=yCONFIG_HAVE_CMPXCHG_LOCAL=yCONFIG_HAVE_CMPXCHG_DOUBLE=yCONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=yCONFIG_ARCH_WANT_OLD_COMPAT_IPC=yCONFIG_HAVE_ARCH_SECCOMP=yCONFIG_HAVE_ARCH_SECCOMP_FILTER=yCONFIG_SECCOMP=yCONFIG_SECCOMP_FILTER=yCONFIG_SECCOMP_CACHE_DEBUG=yCONFIG_HAVE_ARCH_STACKLEAK=yCONFIG_HAVE_STACKPROTECTOR=yCONFIG_STACKPROTECTOR=yCONFIG_STACKPROTECTOR_STRONG=yCONFIG_ARCH_SUPPORTS_LTO_CLANG=yCONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=yCONFIG_HAS_LTO_CLANG=yCONFIG_LTO_NONE=y
# CONFIG_LTO_CLANG_THIN is not setCONFIG_ARCH_SUPPORTS_CFI_CLANG=yCONFIG_ARCH_USES_CFI_TRAPS=yCONFIG_CFI_CLANG=yCONFIG_CFI_PERMISSIVE=yCONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=yCONFIG_HAVE_CONTEXT_TRACKING_USER=yCONFIG_HAVE_CONTEXT_TRACKING_USER_OFFSTACK=yCONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=yCONFIG_HAVE_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_MOVE_PUD=yCONFIG_HAVE_MOVE_PMD=yCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=yCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=yCONFIG_HAVE_ARCH_HUGE_VMAP=yCONFIG_HAVE_ARCH_HUGE_VMALLOC=yCONFIG_ARCH_WANT_HUGE_PMD_SHARE=yCONFIG_ARCH_WANT_PMD_MKWRITE=yCONFIG_HAVE_ARCH_SOFT_DIRTY=yCONFIG_HAVE_MOD_ARCH_SPECIFIC=yCONFIG_MODULES_USE_ELF_RELA=yCONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=yCONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=yCONFIG_SOFTIRQ_ON_OWN_STACK=yCONFIG_ARCH_HAS_ELF_RANDOMIZE=yCONFIG_HAVE_ARCH_MMAP_RND_BITS=yCONFIG_HAVE_EXIT_THREAD=yCONFIG_ARCH_MMAP_RND_BITS=28CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=yCONFIG_ARCH_MMAP_RND_COMPAT_BITS=8CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=yCONFIG_HAVE_PAGE_SIZE_4KB=yCONFIG_PAGE_SIZE_4KB=yCONFIG_PAGE_SIZE_LESS_THAN_64KB=yCONFIG_PAGE_SIZE_LESS_THAN_256KB=yCONFIG_PAGE_SHIFT=12CONFIG_HAVE_OBJTOOL=yCONFIG_HAVE_JUMP_LABEL_HACK=yCONFIG_HAVE_NOINSTR_HACK=yCONFIG_HAVE_NOINSTR_VALIDATION=yCONFIG_HAVE_UACCESS_VALIDATION=yCONFIG_HAVE_STACK_VALIDATION=yCONFIG_HAVE_RELIABLE_STACKTRACE=yCONFIG_ISA_BUS_API=yCONFIG_OLD_SIGSUSPEND3=yCONFIG_COMPAT_OLD_SIGACTION=yCONFIG_COMPAT_32BIT_TIME=yCONFIG_HAVE_ARCH_VMAP_STACK=y
# CONFIG_VMAP_STACK is not setCONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=yCONFIG_RANDOMIZE_KSTACK_OFFSET=yCONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=yCONFIG_ARCH_HAS_STRICT_KERNEL_RWX=yCONFIG_STRICT_KERNEL_RWX=yCONFIG_ARCH_HAS_STRICT_MODULE_RWX=yCONFIG_HAVE_ARCH_PREL32_RELOCATIONS=yCONFIG_ARCH_USE_MEMREMAP_PROT=yCONFIG_LOCK_EVENT_COUNTS=yCONFIG_ARCH_HAS_MEM_ENCRYPT=yCONFIG_ARCH_HAS_CC_PLATFORM=yCONFIG_HAVE_STATIC_CALL=yCONFIG_HAVE_STATIC_CALL_INLINE=yCONFIG_HAVE_PREEMPT_DYNAMIC=yCONFIG_HAVE_PREEMPT_DYNAMIC_CALL=yCONFIG_ARCH_WANT_LD_ORPHAN_WARN=yCONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=yCONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=yCONFIG_ARCH_HAS_ELFCORE_COMPAT=yCONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=yCONFIG_DYNAMIC_SIGFRAME=yCONFIG_ARCH_HAS_HW_PTE_YOUNG=yCONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG=yCONFIG_ARCH_HAS_KERNEL_FPU_SUPPORT=y
#
# GCOV-based kernel profiling
#
# CONFIG_GCOV_KERNEL is not setCONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# end of GCOV-based kernel profiling
CONFIG_HAVE_GCC_PLUGINS=yCONFIG_FUNCTION_ALIGNMENT_4B=yCONFIG_FUNCTION_ALIGNMENT_16B=yCONFIG_FUNCTION_ALIGNMENT=16CONFIG_CC_HAS_SANE_FUNCTION_ALIGNMENT=y
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=y
# CONFIG_MODULES is not setCONFIG_BLOCK=yCONFIG_BLOCK_LEGACY_AUTOLOAD=yCONFIG_BLK_CGROUP_PUNT_BIO=yCONFIG_BLK_DEV_BSG_COMMON=yCONFIG_BLK_ICQ=yCONFIG_BLK_DEV_BSGLIB=yCONFIG_BLK_DEV_INTEGRITY=yCONFIG_BLK_DEV_INTEGRITY_T10=yCONFIG_BLK_DEV_WRITE_MOUNTED=y
# CONFIG_BLK_DEV_ZONED is not set
# CONFIG_BLK_WBT is not setCONFIG_BLK_DEBUG_FS=y
# CONFIG_BLK_SED_OPAL is not set
# CONFIG_BLK_INLINE_ENCRYPTION is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not setCONFIG_MSDOS_PARTITION=yCONFIG_EFI_PARTITION=y
# end of Partition Types
CONFIG_BLK_MQ_PCI=yCONFIG_BLK_MQ_VIRTIO=y
#
# IO Schedulers
#CONFIG_MQ_IOSCHED_DEADLINE=yCONFIG_MQ_IOSCHED_KYBER=yCONFIG_IOSCHED_BFQ=y
# end of IO Schedulers
CONFIG_ASN1=yCONFIG_UNINLINE_SPIN_UNLOCK=yCONFIG_ARCH_SUPPORTS_ATOMIC_RMW=yCONFIG_ARCH_USE_QUEUED_SPINLOCKS=yCONFIG_ARCH_USE_QUEUED_RWLOCKS=yCONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=yCONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=yCONFIG_ARCH_HAS_SYSCALL_WRAPPER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=yCONFIG_COMPAT_BINFMT_ELF=yCONFIG_ELFCORE=y
# CONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS is not set
# CONFIG_BINFMT_SCRIPT is not setCONFIG_BINFMT_MISC=yCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#CONFIG_ZPOOL=yCONFIG_SWAP=yCONFIG_ZSWAP=yCONFIG_ZSWAP_DEFAULT_ON=y
# CONFIG_ZSWAP_SHRINKER_DEFAULT_ON is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_DEFLATE is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZO=y
# CONFIG_ZSWAP_COMPRESSOR_DEFAULT_842 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4 is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_LZ4HC is not set # CONFIG_ZSWAP_COMPRESSOR_DEFAULT_ZSTD is not set CONFIG_ZSWAP_COMPRESSOR_DEFAULT="lzo"
# CONFIG_ZSWAP_ZPOOL_DEFAULT_ZBUD is not set # CONFIG_ZSWAP_ZPOOL_DEFAULT_Z3FOLD is not set CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC=y CONFIG_ZSWAP_ZPOOL_DEFAULT="zsmalloc"
# CONFIG_ZBUD is not set
# CONFIG_Z3FOLD is not setCONFIG_ZSMALLOC=y
# CONFIG_ZSMALLOC_STAT is not set CONFIG_ZSMALLOC_CHAIN_SIZE=8
#
# Slab allocator options
#CONFIG_SLUB=y
# CONFIG_SLAB_MERGE_DEFAULT is not setCONFIG_SLAB_FREELIST_RANDOM=y
# CONFIG_SLAB_FREELIST_HARDENED is not setCONFIG_SLUB_STATS=y
# CONFIG_RANDOM_KMALLOC_CACHES is not set
# end of Slab allocator options
CONFIG_SHUFFLE_PAGE_ALLOCATOR=yCONFIG_COMPAT_BRK=yCONFIG_SPARSEMEM=yCONFIG_SPARSEMEM_EXTREME=yCONFIG_SPARSEMEM_VMEMMAP_ENABLE=yCONFIG_SPARSEMEM_VMEMMAP=yCONFIG_ARCH_WANT_OPTIMIZE_DAX_VMEMMAP=yCONFIG_ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP=yCONFIG_HAVE_GUP_FAST=yCONFIG_EXCLUSIVE_SYSTEM_RAM=yCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y
# CONFIG_MEMORY_HOTPLUG is not setCONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=yCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=yCONFIG_COMPACTION=yCONFIG_COMPACT_UNEVICTABLE_DEFAULT=1CONFIG_PAGE_REPORTING=yCONFIG_MIGRATION=yCONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=yCONFIG_ARCH_ENABLE_THP_MIGRATION=yCONFIG_PCP_BATCH_SCALE_MAX=5CONFIG_PHYS_ADDR_T_64BIT=yCONFIG_MMU_NOTIFIER=y
# CONFIG_KSM is not setCONFIG_DEFAULT_MMAP_MIN_ADDR=4096CONFIG_ARCH_WANT_GENERAL_HUGETLB=yCONFIG_ARCH_WANTS_THP_SWAP=yCONFIG_TRANSPARENT_HUGEPAGE=yCONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not set
# CONFIG_TRANSPARENT_HUGEPAGE_NEVER is not setCONFIG_THP_SWAP=yCONFIG_READ_ONLY_THP_FOR_FS=yCONFIG_PGTABLE_HAS_HUGE_LEAVES=yCONFIG_NEED_PER_CPU_KM=yCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=yCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=yCONFIG_HAVE_SETUP_PER_CPU_AREA=y
# CONFIG_CMA is not setCONFIG_GENERIC_EARLY_IOREMAP=yCONFIG_PAGE_IDLE_FLAG=yCONFIG_IDLE_PAGE_TRACKING=yCONFIG_ARCH_HAS_CACHE_LINE_SIZE=yCONFIG_ARCH_HAS_CURRENT_STACK_POINTER=yCONFIG_ARCH_HAS_PTE_DEVMAP=yCONFIG_ZONE_DMA=yCONFIG_ZONE_DMA32=yCONFIG_GET_FREE_REGION=yCONFIG_ARCH_USES_HIGH_VMA_FLAGS=yCONFIG_ARCH_HAS_PKEYS=yCONFIG_VM_EVENT_COUNTERS=yCONFIG_PERCPU_STATS=y
# CONFIG_GUP_TEST is not setCONFIG_DMAPOOL_TEST=yCONFIG_ARCH_HAS_PTE_SPECIAL=yCONFIG_KMAP_LOCAL=yCONFIG_MEMFD_CREATE=yCONFIG_SECRETMEM=y
# CONFIG_ANON_VMA_NAME is not setCONFIG_HAVE_ARCH_USERFAULTFD_WP=yCONFIG_HAVE_ARCH_USERFAULTFD_MINOR=yCONFIG_USERFAULTFD=yCONFIG_PTE_MARKER_UFFD_WP=y
# CONFIG_LRU_GEN is not setCONFIG_ARCH_SUPPORTS_PER_VMA_LOCK=yCONFIG_LOCK_MM_AND_FIND_VMA=yCONFIG_IOMMU_MM_DATA=yCONFIG_EXECMEM=y
#
# Data Access Monitoring
#
# CONFIG_DAMON is not set
# end of Data Access Monitoring # end of Memory Management options
CONFIG_NET=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_DIAG=y
# CONFIG_UNIX is not set
# CONFIG_INET is not set
# CONFIG_NETWORK_SECMARK is not set CONFIG_NET_PTP_CLASSIFY=y CONFIG_NETWORK_PHY_TIMESTAMPING=y
# CONFIG_NETFILTER is not setCONFIG_ATM=y
# CONFIG_ATM_LANE is not setCONFIG_STP=yCONFIG_GARP=yCONFIG_MRP=yCONFIG_BRIDGE=y CONFIG_BRIDGE_VLAN_FILTERING=y
# CONFIG_BRIDGE_MRP is not set CONFIG_BRIDGE_CFM=yCONFIG_VLAN_8021Q=yCONFIG_VLAN_8021Q_GVRP=y CONFIG_VLAN_8021Q_MVRP=yCONFIG_LLC=yCONFIG_LLC2=yCONFIG_ATALK=yCONFIG_X25=yCONFIG_LAPB=yCONFIG_PHONET=yCONFIG_IEEE802154=y
# CONFIG_IEEE802154_NL802154_EXPERIMENTAL is not set CONFIG_IEEE802154_SOCKET=y CONFIG_MAC802154=y
# CONFIG_NET_SCHED is not set
# CONFIG_DCB is not set CONFIG_DNS_RESOLVER=yCONFIG_BATMAN_ADV=y CONFIG_BATMAN_ADV_BATMAN_V=y CONFIG_BATMAN_ADV_NC=y
# CONFIG_BATMAN_ADV_DEBUG is not set CONFIG_VSOCKETS=yCONFIG_VSOCKETS_DIAG=y CONFIG_VSOCKETS_LOOPBACK=y CONFIG_VIRTIO_VSOCKETS=y CONFIG_VIRTIO_VSOCKETS_COMMON=y CONFIG_NETLINK_DIAG=y
# CONFIG_MPLS is not setCONFIG_NET_NSH=y
# CONFIG_HSR is not setCONFIG_QRTR=yCONFIG_QRTR_SMD=y
# CONFIG_QRTR_TUN is not set CONFIG_QRTR_MHI=yCONFIG_MAX_SKB_FRAGS=17
# CONFIG_CGROUP_NET_PRIO is not set
# CONFIG_CGROUP_NET_CLASSID is not set CONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=y
#
# Network testing
#
# end of Network testing # end of Networking options
# CONFIG_HAMRADIO is not setCONFIG_CAN=yCONFIG_CAN_RAW=yCONFIG_CAN_BCM=yCONFIG_CAN_GW=yCONFIG_CAN_J1939=y
# CONFIG_CAN_ISOTP is not setCONFIG_BT=y
# CONFIG_BT_BREDR is not setCONFIG_BT_LE=yCONFIG_BT_LE_L2CAP_ECRED=yCONFIG_BT_LEDS=yCONFIG_BT_MSFTEXT=y
# CONFIG_BT_AOSPEXT is not setCONFIG_BT_DEBUGFS=y
# CONFIG_BT_SELFTEST is not set
#
# Bluetooth device drivers
#CONFIG_BT_INTEL=yCONFIG_BT_RTL=yCONFIG_BT_QCA=yCONFIG_BT_MTK=yCONFIG_BT_HCIUART=yCONFIG_BT_HCIUART_SERDEV=yCONFIG_BT_HCIUART_H4=yCONFIG_BT_HCIUART_BCSP=yCONFIG_BT_HCIUART_ATH3K=yCONFIG_BT_HCIUART_LL=yCONFIG_BT_HCIUART_3WIRE=yCONFIG_BT_HCIUART_INTEL=yCONFIG_BT_HCIUART_RTL=yCONFIG_BT_HCIUART_QCA=y
# CONFIG_BT_HCIUART_AG6XX is not set
# CONFIG_BT_HCIUART_MRVL is not setCONFIG_BT_HCIBCM4377=y
# CONFIG_BT_HCIVHCI is not setCONFIG_BT_MRVL=yCONFIG_BT_MTKUART=y
# CONFIG_BT_QCOMSMD is not setCONFIG_BT_VIRTIO=yCONFIG_BT_NXPUART=y
# CONFIG_BT_INTEL_PCIE is not set
# end of Bluetooth device drivers
# CONFIG_MCTP is not set
# CONFIG_WIRELESS is not set
# CONFIG_RFKILL is not set
# CONFIG_NET_9P is not setCONFIG_CAIF=yCONFIG_CAIF_DEBUG=yCONFIG_CAIF_NETDEV=y
# CONFIG_CAIF_USB is not setCONFIG_NFC=y
# CONFIG_NFC_DIGITAL is not setCONFIG_NFC_NCI=yCONFIG_NFC_NCI_SPI=y
# CONFIG_NFC_NCI_UART is not setCONFIG_NFC_HCI=y
# CONFIG_NFC_SHDLC is not set
#
# Near Field Communication (NFC) devices
#CONFIG_NFC_MEI_PHY=y
# CONFIG_NFC_VIRTUAL_NCI is not setCONFIG_NFC_FDP=yCONFIG_NFC_FDP_I2C=yCONFIG_NFC_PN544=yCONFIG_NFC_PN544_MEI=yCONFIG_NFC_PN533=y
# CONFIG_NFC_PN533_I2C is not setCONFIG_NFC_PN532_UART=yCONFIG_NFC_MICROREAD=yCONFIG_NFC_MICROREAD_MEI=yCONFIG_NFC_ST_NCI=yCONFIG_NFC_ST_NCI_I2C=yCONFIG_NFC_ST_NCI_SPI=yCONFIG_NFC_NXP_NCI=yCONFIG_NFC_NXP_NCI_I2C=yCONFIG_NFC_S3FWRN5=yCONFIG_NFC_S3FWRN5_I2C=yCONFIG_NFC_S3FWRN82_UART=y
# end of Near Field Communication (NFC) devices
CONFIG_PSAMPLE=yCONFIG_NET_IFE=yCONFIG_LWTUNNEL=yCONFIG_NET_DEVLINK=yCONFIG_PAGE_POOL=yCONFIG_PAGE_POOL_STATS=yCONFIG_FAILOVER=y
# CONFIG_ETHTOOL_NETLINK is not set
#
# Device Drivers
#CONFIG_HAVE_EISA=yCONFIG_EISA=yCONFIG_EISA_VLB_PRIMING=y
# CONFIG_EISA_PCI_EISA is not set
# CONFIG_EISA_VIRTUAL_ROOT is not setCONFIG_EISA_NAMES=yCONFIG_HAVE_PCI=yCONFIG_GENERIC_PCI_IOMAP=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=yCONFIG_HOTPLUG_PCI_PCIE=y
# CONFIG_PCIEAER is not setCONFIG_PCIEASPM=yCONFIG_PCIEASPM_DEFAULT=y
# CONFIG_PCIEASPM_POWERSAVE is not set
# CONFIG_PCIEASPM_POWER_SUPERSAVE is not set
# CONFIG_PCIEASPM_PERFORMANCE is not setCONFIG_PCIE_PTM=yCONFIG_PCI_MSI=yCONFIG_PCI_QUIRKS=yCONFIG_PCI_DEBUG=yCONFIG_PCI_REALLOC_ENABLE_AUTO=yCONFIG_PCI_STUB=yCONFIG_PCI_PF_STUB=yCONFIG_PCI_ATS=yCONFIG_PCI_DOE=yCONFIG_PCI_ECAM=yCONFIG_PCI_LOCKLESS_CONFIG=yCONFIG_PCI_BRIDGE_EMUL=yCONFIG_PCI_IOV=yCONFIG_PCI_PRI=yCONFIG_PCI_PASID=yCONFIG_PCI_LABEL=yCONFIG_PCI_DYNAMIC_OF_NODES=yCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=16CONFIG_HOTPLUG_PCI=yCONFIG_HOTPLUG_PCI_ACPI=yCONFIG_HOTPLUG_PCI_ACPI_IBM=y
# CONFIG_HOTPLUG_PCI_CPCI is not set
# CONFIG_HOTPLUG_PCI_SHPC is not set
#
# PCI controller drivers
#CONFIG_PCI_AARDVARK=yCONFIG_PCIE_ALTERA=yCONFIG_PCIE_ALTERA_MSI=yCONFIG_PCIE_APPLE_MSI_DOORBELL_ADDR=0xfffff000CONFIG_PCIE_APPLE=y
# CONFIG_PCI_VERSATILE is not setCONFIG_PCIE_BRCMSTB=yCONFIG_PCI_HOST_THUNDER_PEM=y
# CONFIG_PCI_HOST_THUNDER_ECAM is not set
# CONFIG_PCI_FTPCI100 is not setCONFIG_PCI_HOST_COMMON=yCONFIG_PCI_HOST_GENERIC=y
# CONFIG_VMD is not set
# CONFIG_PCI_LOONGSON is not setCONFIG_PCIE_MEDIATEK=yCONFIG_PCIE_MEDIATEK_GEN3=y
# CONFIG_PCIE_MT7621 is not setCONFIG_PCIE_MICROCHIP_HOST=y
# CONFIG_PCI_TEGRA is not setCONFIG_PCIE_RCAR_HOST=y
# CONFIG_PCIE_RCAR_EP is not setCONFIG_PCIE_ROCKCHIP=yCONFIG_PCIE_ROCKCHIP_HOST=yCONFIG_PCIE_ROCKCHIP_EP=yCONFIG_PCI_V3_SEMI=yCONFIG_PCI_XGENE=y
# CONFIG_PCI_XGENE_MSI is not setCONFIG_PCIE_XILINX=y
# CONFIG_PCIE_XILINX_DMA_PL is not setCONFIG_PCIE_XILINX_NWL=yCONFIG_PCIE_XILINX_CPM=y
#
# Cadence-based PCIe controllers
#CONFIG_PCIE_CADENCE=yCONFIG_PCIE_CADENCE_HOST=yCONFIG_PCIE_CADENCE_EP=yCONFIG_PCIE_CADENCE_PLAT=y
# CONFIG_PCIE_CADENCE_PLAT_HOST is not setCONFIG_PCIE_CADENCE_PLAT_EP=yCONFIG_PCI_J721E=yCONFIG_PCI_J721E_HOST=yCONFIG_PCI_J721E_EP=y
# end of Cadence-based PCIe controllers
#
# DesignWare-based PCIe controllers
#CONFIG_PCIE_DW=yCONFIG_PCIE_DW_HOST=yCONFIG_PCIE_DW_EP=yCONFIG_PCIE_AL=y
# CONFIG_PCI_MESON is not setCONFIG_PCIE_ARTPEC6=yCONFIG_PCIE_ARTPEC6_HOST=y
# CONFIG_PCIE_ARTPEC6_EP is not setCONFIG_PCIE_BT1=yCONFIG_PCI_IMX6=yCONFIG_PCI_IMX6_HOST=yCONFIG_PCI_IMX6_EP=yCONFIG_PCI_LAYERSCAPE=yCONFIG_PCI_LAYERSCAPE_EP=yCONFIG_PCI_HISI=yCONFIG_PCIE_KIRIN=yCONFIG_PCIE_HISI_STB=y
# CONFIG_PCIE_INTEL_GW is not setCONFIG_PCIE_KEEMBAY=y
# CONFIG_PCIE_KEEMBAY_HOST is not setCONFIG_PCIE_KEEMBAY_EP=yCONFIG_PCIE_ARMADA_8K=yCONFIG_PCIE_TEGRA194=y
# CONFIG_PCIE_TEGRA194_HOST is not setCONFIG_PCIE_TEGRA194_EP=y
# CONFIG_PCIE_DW_PLAT_HOST is not set
# CONFIG_PCIE_DW_PLAT_EP is not set
# CONFIG_PCIE_QCOM is not setCONFIG_PCIE_QCOM_EP=yCONFIG_PCIE_RCAR_GEN4=y
# CONFIG_PCIE_RCAR_GEN4_HOST is not setCONFIG_PCIE_RCAR_GEN4_EP=y
# CONFIG_PCIE_ROCKCHIP_DW_HOST is not set
# CONFIG_PCI_EXYNOS is not set
# CONFIG_PCIE_FU740 is not setCONFIG_PCIE_UNIPHIER=yCONFIG_PCIE_UNIPHIER_EP=yCONFIG_PCIE_SPEAR13XX=yCONFIG_PCI_DRA7XX=yCONFIG_PCI_DRA7XX_HOST=y
# CONFIG_PCI_DRA7XX_EP is not set
# CONFIG_PCI_KEYSTONE_HOST is not set
# CONFIG_PCI_KEYSTONE_EP is not set
# CONFIG_PCIE_VISCONTI_HOST is not set
# end of DesignWare-based PCIe controllers
#
# Mobiveil-based PCIe controllers
#CONFIG_PCIE_MOBIVEIL=yCONFIG_PCIE_MOBIVEIL_HOST=y
# CONFIG_PCIE_LAYERSCAPE_GEN4 is not setCONFIG_PCIE_MOBIVEIL_PLAT=y
# end of Mobiveil-based PCIe controllers # end of PCI controller drivers
#
# PCI Endpoint
#CONFIG_PCI_ENDPOINT=yCONFIG_PCI_ENDPOINT_CONFIGFS=yCONFIG_PCI_EPF_TEST=yCONFIG_PCI_EPF_NTB=yCONFIG_PCI_EPF_VNTB=yCONFIG_PCI_EPF_MHI=y
# end of PCI Endpoint
#
# PCI switch controller drivers
#CONFIG_PCI_SW_SWITCHTEC=y
# end of PCI switch controller drivers
CONFIG_CXL_BUS=yCONFIG_CXL_PCI=y
# CONFIG_CXL_MEM_RAW_COMMANDS is not setCONFIG_CXL_MEM=yCONFIG_CXL_PORT=yCONFIG_CXL_REGION=yCONFIG_CXL_REGION_INVALIDATION_TEST=y
# CONFIG_PCCARD is not setCONFIG_RAPIDIO=y
# CONFIG_RAPIDIO_TSI721 is not setCONFIG_RAPIDIO_DISC_TIMEOUT=30
# CONFIG_RAPIDIO_ENABLE_RX_TX_PORTS is not setCONFIG_RAPIDIO_DEBUG=y
# CONFIG_RAPIDIO_ENUM_BASIC is not setCONFIG_RAPIDIO_CHMAN=yCONFIG_RAPIDIO_MPORT_CDEV=y
#
# RapidIO Switch drivers
#CONFIG_RAPIDIO_CPS_XX=y
# CONFIG_RAPIDIO_CPS_GEN2 is not setCONFIG_RAPIDIO_RXS_GEN3=y
# end of RapidIO Switch drivers
#
# Generic Driver Options
#CONFIG_AUXILIARY_BUS=yCONFIG_UEVENT_HELPER=yCONFIG_UEVENT_HELPER_PATH=""CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not setCONFIG_DEVTMPFS_SAFE=yCONFIG_STANDALONE=y
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
#
# Firmware loader
#CONFIG_FW_LOADER=y
# CONFIG_FW_LOADER_DEBUG is not set CONFIG_FW_LOADER_PAGED_BUF=y CONFIG_FW_LOADER_SYSFS=y CONFIG_EXTRA_FIRMWARE="" CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_FW_LOADER_USER_HELPER_FALLBACK is not set # CONFIG_FW_LOADER_COMPRESS is not set CONFIG_FW_UPLOAD=y
# end of Firmware loader
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not setCONFIG_DEBUG_DEVRES=y
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not setCONFIG_GENERIC_CPU_DEVICES=yCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=yCONFIG_SOC_BUS=yCONFIG_REGMAP=yCONFIG_REGMAP_I2C=yCONFIG_REGMAP_SPI=yCONFIG_REGMAP_SPMI=yCONFIG_REGMAP_W1=yCONFIG_REGMAP_MMIO=yCONFIG_REGMAP_IRQ=yCONFIG_REGMAP_SOUNDWIRE=yCONFIG_REGMAP_I3C=yCONFIG_REGMAP_SPI_AVMM=yCONFIG_DMA_SHARED_BUFFER=yCONFIG_DMA_FENCE_TRACE=y
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
# end of Generic Driver Options
#
# Bus devices
#
# CONFIG_ARM_INTEGRATOR_LM is not setCONFIG_BT1_APB=y
# CONFIG_BT1_AXI is not setCONFIG_MOXTET=y
# CONFIG_HISILICON_LPC is not setCONFIG_INTEL_IXP4XX_EB=yCONFIG_QCOM_EBI2=y
# CONFIG_STM32_FIREWALL is not setCONFIG_FSL_MC_BUS=yCONFIG_FSL_MC_UAPI_SUPPORT=yCONFIG_MHI_BUS=y
# CONFIG_MHI_BUS_DEBUG is not setCONFIG_MHI_BUS_PCI_GENERIC=yCONFIG_MHI_BUS_EP=y
# end of Bus devices
#
# Cache Drivers
#
# end of Cache Drivers
# CONFIG_CONNECTOR is not set
#
# Firmware Drivers
#
#
# ARM System Control and Management Interface Protocol #CONFIG_ARM_SCMI_PROTOCOL=y CONFIG_ARM_SCMI_NEED_DEBUGFS=y CONFIG_ARM_SCMI_RAW_MODE_SUPPORT=y
# CONFIG_ARM_SCMI_RAW_MODE_SUPPORT_COEX is not set CONFIG_ARM_SCMI_HAVE_TRANSPORT=y CONFIG_ARM_SCMI_HAVE_MSG=y
# CONFIG_ARM_SCMI_TRANSPORT_MAILBOX is not set CONFIG_ARM_SCMI_TRANSPORT_VIRTIO=y
# CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_VERSION1_COMPLIANCE is not set CONFIG_ARM_SCMI_TRANSPORT_VIRTIO_ATOMIC_ENABLE=y CONFIG_ARM_SCMI_POWER_CONTROL=y
# end of ARM System Control and Management Interface Protocol
# CONFIG_ARM_SCPI_PROTOCOL is not setCONFIG_EDD=yCONFIG_EDD_OFF=yCONFIG_FIRMWARE_MEMMAP=yCONFIG_DMIID=yCONFIG_DMI_SYSFS=yCONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=y
# CONFIG_ISCSI_IBFT is not setCONFIG_FW_CFG_SYSFS=y
# CONFIG_FW_CFG_SYSFS_CMDLINE is not setCONFIG_MTK_ADSP_IPC=y
# CONFIG_SYSFB_SIMPLEFB is not setCONFIG_TURRIS_MOX_RWTM=yCONFIG_BCM47XX_NVRAM=yCONFIG_BCM47XX_SPROM=y
# CONFIG_TEE_BNXT_FW is not set
# CONFIG_GOOGLE_FIRMWARE is not set
#
# EFI (Extensible Firmware Interface) Support
#CONFIG_EFI_ESRT=y
# CONFIG_EFI_DXE_MEM_ATTRIBUTES is not setCONFIG_EFI_RUNTIME_WRAPPERS=y
# CONFIG_EFI_BOOTLOADER_CONTROL is not setCONFIG_EFI_CAPSULE_LOADER=y
# CONFIG_EFI_TEST is not setCONFIG_EFI_DEV_PATH_PARSER=yCONFIG_APPLE_PROPERTIES=yCONFIG_RESET_ATTACK_MITIGATION=y
# CONFIG_EFI_RCI2_TABLE is not setCONFIG_EFI_DISABLE_PCI_DMA=yCONFIG_EFI_EARLYCON=y
# CONFIG_EFI_CUSTOM_SSDT_OVERLAYS is not set
# CONFIG_EFI_DISABLE_RUNTIME is not setCONFIG_EFI_COCO_SECRET=yCONFIG_UNACCEPTED_MEMORY=y
# end of EFI (Extensible Firmware Interface) Support
#
# Qualcomm firmware drivers
#CONFIG_QCOM_SCM=y
# CONFIG_QCOM_SCM_DOWNLOAD_MODE_DEFAULT is not set CONFIG_QCOM_QSEECOM=y
# CONFIG_QCOM_QSEECOM_UEFISECAPP is not set
# end of Qualcomm firmware drivers
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
CONFIG_GNSS=yCONFIG_GNSS_SERIAL=y
# CONFIG_GNSS_MTK_SERIAL is not set
# CONFIG_GNSS_SIRF_SERIAL is not setCONFIG_GNSS_UBX_SERIAL=yCONFIG_MTD=y
#
# Partition parsers
#CONFIG_MTD_BCM63XX_PARTS=y
# CONFIG_MTD_BRCM_U_BOOT is not setCONFIG_MTD_CMDLINE_PARTS=yCONFIG_MTD_OF_PARTS=yCONFIG_MTD_OF_PARTS_BCM4908=y
# CONFIG_MTD_OF_PARTS_LINKSYS_NS is not setCONFIG_MTD_PARSER_IMAGETAG=yCONFIG_MTD_PARSER_TPLINK_SAFELOADER=yCONFIG_MTD_PARSER_TRX=yCONFIG_MTD_SHARPSL_PARTS=yCONFIG_MTD_REDBOOT_PARTS=yCONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1
# CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED is not setCONFIG_MTD_REDBOOT_PARTS_READONLY=y
# end of Partition parsers
#
# User Modules And Translation Layers
#CONFIG_MTD_BLKDEVS=y
# CONFIG_MTD_BLOCK is not setCONFIG_MTD_BLOCK_RO=y
#
# Note that in some cases UBI block is preferred. See MTD_UBI_BLOCK. #CONFIG_FTL=yCONFIG_NFTL=y
# CONFIG_NFTL_RW is not setCONFIG_INFTL=yCONFIG_RFD_FTL=yCONFIG_SSFDC=yCONFIG_SM_FTL=yCONFIG_MTD_OOPS=yCONFIG_MTD_SWAP=yCONFIG_MTD_PARTITIONED_MASTER=y
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=yCONFIG_MTD_JEDECPROBE=yCONFIG_MTD_GEN_PROBE=yCONFIG_MTD_CFI_ADV_OPTIONS=yCONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_GEOMETRY is not setCONFIG_MTD_MAP_BANK_WIDTH_1=yCONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=yCONFIG_MTD_OTP=yCONFIG_MTD_CFI_INTELEXT=yCONFIG_MTD_CFI_AMDSTD=y
# CONFIG_MTD_CFI_STAA is not setCONFIG_MTD_CFI_UTIL=y
# CONFIG_MTD_RAM is not setCONFIG_MTD_ROM=y
# CONFIG_MTD_ABSENT is not set
# end of RAM/ROM/Flash chip drivers
#
# Mapping drivers for chip access
#CONFIG_MTD_COMPLEX_MAPPINGS=y
# CONFIG_MTD_PHYSMAP is not setCONFIG_MTD_SC520CDP=yCONFIG_MTD_NETSC520=yCONFIG_MTD_TS5500=y
# CONFIG_MTD_SBC_GXX is not setCONFIG_MTD_AMD76XROM=y
# CONFIG_MTD_ICHXROM is not setCONFIG_MTD_ESB2ROM=yCONFIG_MTD_CK804XROM=yCONFIG_MTD_SCB2_FLASH=y
# CONFIG_MTD_NETtel is not set
# CONFIG_MTD_L440GX is not setCONFIG_MTD_PCI=y
# CONFIG_MTD_PLATRAM is not set
# end of Mapping drivers for chip access
#
# Self-contained MTD device drivers
#
# CONFIG_MTD_PMC551 is not set
# CONFIG_MTD_DATAFLASH is not set
# CONFIG_MTD_MCHP23K256 is not set
# CONFIG_MTD_MCHP48L640 is not set
# CONFIG_MTD_SPEAR_SMI is not set
# CONFIG_MTD_SST25L is not setCONFIG_MTD_SLRAM=yCONFIG_MTD_PHRAM=y
# CONFIG_MTD_MTDRAM is not setCONFIG_MTD_BLOCK2MTD=y
#
# Disk-On-Chip Device Drivers
#CONFIG_MTD_DOCG3=yCONFIG_BCH_CONST_M=14CONFIG_BCH_CONST_T=4
# end of Self-contained MTD device drivers
#
# NAND
#CONFIG_MTD_NAND_CORE=yCONFIG_MTD_ONENAND=y
# CONFIG_MTD_ONENAND_VERIFY_WRITE is not set
# CONFIG_MTD_ONENAND_GENERIC is not setCONFIG_MTD_ONENAND_SAMSUNG=yCONFIG_MTD_ONENAND_OTP=y
# CONFIG_MTD_ONENAND_2X_PROGRAM is not set
# CONFIG_MTD_RAW_NAND is not setCONFIG_MTD_SPI_NAND=y
#
# ECC engine support
#CONFIG_MTD_NAND_ECC=yCONFIG_MTD_NAND_ECC_SW_HAMMING=y
# CONFIG_MTD_NAND_ECC_SW_HAMMING_SMC is not set
# CONFIG_MTD_NAND_ECC_SW_BCH is not set
# CONFIG_MTD_NAND_ECC_MXIC is not setCONFIG_MTD_NAND_ECC_MEDIATEK=y
# end of ECC engine support # end of NAND
#
# LPDDR & LPDDR2 PCM memory drivers
#CONFIG_MTD_LPDDR=yCONFIG_MTD_QINFO_PROBE=y
# end of LPDDR & LPDDR2 PCM memory drivers
CONFIG_MTD_SPI_NOR=y
# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
# CONFIG_MTD_SPI_NOR_SWP_DISABLE is not setCONFIG_MTD_SPI_NOR_SWP_DISABLE_ON_VOLATILE=y
# CONFIG_MTD_SPI_NOR_SWP_KEEP is not setCONFIG_SPI_HISI_SFC=y
# CONFIG_SPI_NXP_SPIFI is not setCONFIG_MTD_UBI=yCONFIG_MTD_UBI_WL_THRESHOLD=4096CONFIG_MTD_UBI_BEB_LIMIT=20CONFIG_MTD_UBI_FASTMAP=y
# CONFIG_MTD_UBI_GLUEBI is not set
# CONFIG_MTD_UBI_BLOCK is not setCONFIG_MTD_UBI_NVMEM=yCONFIG_MTD_HYPERBUS=yCONFIG_HBMC_AM654=yCONFIG_DTC=yCONFIG_OF=yCONFIG_OF_UNITTEST=yCONFIG_OF_ALL_DTBS=yCONFIG_OF_FLATTREE=yCONFIG_OF_EARLY_FLATTREE=yCONFIG_OF_KOBJ=yCONFIG_OF_DYNAMIC=yCONFIG_OF_ADDRESS=yCONFIG_OF_IRQ=yCONFIG_OF_RESERVED_MEM=yCONFIG_OF_RESOLVE=yCONFIG_OF_OVERLAY=yCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=y
# CONFIG_PARPORT_SERIAL is not set
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not setCONFIG_PARPORT_1284=yCONFIG_PNP=yCONFIG_PNP_DEBUG_MESSAGES=y
#
# Protocols
#CONFIG_ISAPNP=yCONFIG_PNPACPI=y
# CONFIG_BLK_DEV is not set
#
# NVME Support
#CONFIG_NVME_CORE=yCONFIG_BLK_DEV_NVME=yCONFIG_NVME_MULTIPATH=yCONFIG_NVME_VERBOSE_ERRORS=y
# CONFIG_NVME_HWMON is not setCONFIG_NVME_FABRICS=yCONFIG_NVME_FC=y
# CONFIG_NVME_HOST_AUTH is not set
# CONFIG_NVME_TARGET is not set
# end of NVME Support
#
# Misc devices
#CONFIG_SENSORS_LIS3LV02D=yCONFIG_AD525X_DPOT=yCONFIG_AD525X_DPOT_I2C=yCONFIG_AD525X_DPOT_SPI=yCONFIG_DUMMY_IRQ=yCONFIG_IBM_ASM=y
# CONFIG_PHANTOM is not setCONFIG_TIFM_CORE=y
# CONFIG_TIFM_7XX1 is not set
# CONFIG_ICS932S401 is not set
# CONFIG_ATMEL_SSC is not setCONFIG_ENCLOSURE_SERVICES=y
# CONFIG_SMPRO_ERRMON is not setCONFIG_SMPRO_MISC=yCONFIG_CS5535_MFGPT=yCONFIG_CS5535_MFGPT_DEFAULT_IRQ=7
# CONFIG_CS5535_CLOCK_EVENT_SRC is not setCONFIG_GEHC_ACHC=y
# CONFIG_HI6421V600_IRQ is not setCONFIG_HP_ILO=y
# CONFIG_QCOM_COINCELL is not setCONFIG_QCOM_FASTRPC=yCONFIG_APDS9802ALS=yCONFIG_ISL29003=yCONFIG_ISL29020=yCONFIG_SENSORS_TSL2550=y
# CONFIG_SENSORS_BH1770 is not set
# CONFIG_SENSORS_APDS990X is not setCONFIG_HMC6352=yCONFIG_DS1682=yCONFIG_PCH_PHUB=yCONFIG_LATTICE_ECP3_CONFIG=yCONFIG_SRAM=y
# CONFIG_DW_XDATA_PCIE is not set
# CONFIG_PCI_ENDPOINT_TEST is not setCONFIG_XILINX_SDFEC=y
# CONFIG_OPEN_DICE is not setCONFIG_VCPU_STALL_DETECTOR=yCONFIG_NSM=y
# CONFIG_C2PORT is not set
#
# EEPROM support
#CONFIG_EEPROM_AT24=y
# CONFIG_EEPROM_AT25 is not setCONFIG_EEPROM_MAX6875=yCONFIG_EEPROM_93CX6=yCONFIG_EEPROM_93XX46=yCONFIG_EEPROM_IDT_89HPESX=y
# CONFIG_EEPROM_EE1004 is not set
# end of EEPROM support
CONFIG_CB710_CORE=y
# CONFIG_CB710_DEBUG is not setCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #CONFIG_TI_ST=y
# end of Texas Instruments shared transport line discipline
CONFIG_SENSORS_LIS3_I2C=y
# CONFIG_ALTERA_STAPL is not setCONFIG_INTEL_MEI=y
# CONFIG_INTEL_MEI_ME is not setCONFIG_INTEL_MEI_TXE=yCONFIG_INTEL_MEI_VSC_HW=yCONFIG_INTEL_MEI_VSC=y
# CONFIG_VMWARE_VMCI is not setCONFIG_GENWQE=yCONFIG_GENWQE_PLATFORM_ERROR_RECOVERY=0
# CONFIG_ECHO is not set
# CONFIG_BCM_VK is not setCONFIG_MISC_ALCOR_PCI=y
# CONFIG_MISC_RTSX_PCI is not setCONFIG_UACCE=yCONFIG_PVPANIC=yCONFIG_PVPANIC_MMIO=yCONFIG_PVPANIC_PCI=yCONFIG_GP_PCI1XXXX=y
# end of Misc devices
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=yCONFIG_SCSI_COMMON=yCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_CHR_DEV_SG=yCONFIG_BLK_DEV_BSG=yCONFIG_CHR_DEV_SCH=yCONFIG_SCSI_ENCLOSURE=yCONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not setCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=y
# CONFIG_SCSI_FC_ATTRS is not setCONFIG_SCSI_ISCSI_ATTRS=yCONFIG_SCSI_SAS_ATTRS=yCONFIG_SCSI_SAS_LIBSAS=yCONFIG_SCSI_SAS_HOST_SMP=yCONFIG_SCSI_SRP_ATTRS=y
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=yCONFIG_ISCSI_BOOT_SYSFS=yCONFIG_SCSI_BNX2_ISCSI=yCONFIG_BE2ISCSI=y
# CONFIG_BLK_DEV_3W_XXXX_RAID is not setCONFIG_SCSI_HPSA=y
# CONFIG_SCSI_3W_9XXX is not setCONFIG_SCSI_3W_SAS=yCONFIG_SCSI_ACARD=yCONFIG_SCSI_AHA1740=y
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not setCONFIG_SCSI_AIC79XX=yCONFIG_AIC79XX_CMDS_PER_DEVICE=32CONFIG_AIC79XX_RESET_DELAY_MS=5000
# CONFIG_AIC79XX_BUILD_FIRMWARE is not set
# CONFIG_AIC79XX_DEBUG_ENABLE is not setCONFIG_AIC79XX_DEBUG_MASK=0CONFIG_AIC79XX_REG_PRETTY_PRINT=yCONFIG_SCSI_AIC94XX=yCONFIG_AIC94XX_DEBUG=yCONFIG_SCSI_MVSAS=y
# CONFIG_SCSI_MVSAS_DEBUG is not setCONFIG_SCSI_MVSAS_TASKLET=yCONFIG_SCSI_MVUMI=y
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not setCONFIG_SCSI_ESAS2R=y
# CONFIG_MEGARAID_NEWGEN is not setCONFIG_MEGARAID_LEGACY=y
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_MPT3SAS is not set
# CONFIG_SCSI_MPT2SAS is not setCONFIG_SCSI_MPI3MR=yCONFIG_SCSI_SMARTPQI=yCONFIG_SCSI_HPTIOP=y
# CONFIG_SCSI_BUSLOGIC is not setCONFIG_SCSI_MYRB=yCONFIG_SCSI_MYRS=yCONFIG_VMWARE_PVSCSI=yCONFIG_SCSI_SNIC=y
# CONFIG_SCSI_SNIC_DEBUG_FS is not setCONFIG_SCSI_DMX3191D=yCONFIG_SCSI_FDOMAIN=yCONFIG_SCSI_FDOMAIN_PCI=y
# CONFIG_SCSI_ISCI is not setCONFIG_SCSI_IPS=yCONFIG_SCSI_INITIO=y
# CONFIG_SCSI_INIA100 is not setCONFIG_SCSI_PPA=yCONFIG_SCSI_IMM=y
# CONFIG_SCSI_IZIP_SLOW_CTR is not set
# CONFIG_SCSI_STEX is not setCONFIG_SCSI_SYM53C8XX_2=yCONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64
# CONFIG_SCSI_SYM53C8XX_MMIO is not setCONFIG_SCSI_IPR=yCONFIG_SCSI_IPR_TRACE=y
# CONFIG_SCSI_IPR_DUMP is not setCONFIG_SCSI_QLOGIC_1280=yCONFIG_SCSI_QLA_ISCSI=y
# CONFIG_QEDI is not setCONFIG_SCSI_SIM710=y
CONFIG_SCSI_DC395x=y
# CONFIG_SCSI_AM53C974 is not setCONFIG_SCSI_WD719X=yCONFIG_SCSI_DEBUG=yCONFIG_SCSI_PMCRAID=yCONFIG_SCSI_PM8001=yCONFIG_SCSI_VIRTIO=yCONFIG_SCSI_DH=yCONFIG_SCSI_DH_RDAC=y
# CONFIG_SCSI_DH_HP_SW is not set
# CONFIG_SCSI_DH_EMC is not setCONFIG_SCSI_DH_ALUA=y
# end of SCSI device support
# CONFIG_ATA is not set
# CONFIG_MD is not setCONFIG_TARGET_CORE=yCONFIG_TCM_IBLOCK=yCONFIG_TCM_FILEIO=yCONFIG_TCM_PSCSI=y
# CONFIG_TCM_USER2 is not set
# CONFIG_LOOPBACK_TARGET is not setCONFIG_SBP_TARGET=y
# CONFIG_REMOTE_TARGET is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=yCONFIG_FIREWIRE_OHCI=yCONFIG_FIREWIRE_SBP2=y
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support
# CONFIG_MACINTOSH_DRIVERS is not setCONFIG_NETDEVICES=yCONFIG_MII=yCONFIG_NET_CORE=yCONFIG_DUMMY=yCONFIG_EQUALIZER=y
# CONFIG_NET_FC is not set
# CONFIG_NET_TEAM is not setCONFIG_MACVLAN=y
# CONFIG_MACSEC is not setCONFIG_NETCONSOLE=yCONFIG_NETCONSOLE_DYNAMIC=y
# CONFIG_NETCONSOLE_EXTENDED_LOG is not setCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_RIONET=yCONFIG_RIONET_TX_SIZE=128CONFIG_RIONET_RX_SIZE=128CONFIG_TUN_VNET_CROSS_LE=y
# CONFIG_VETH is not setCONFIG_VIRTIO_NET=yCONFIG_NLMON=y
# CONFIG_MHI_NET is not setCONFIG_SUNGEM_PHY=y
# CONFIG_ARCNET is not setCONFIG_ATM_DRIVERS=yCONFIG_ATM_DUMMY=y
# CONFIG_ATM_LANAI is not set
# CONFIG_ATM_ENI is not setCONFIG_ATM_NICSTAR=y
# CONFIG_ATM_NICSTAR_USE_SUNI is not set
# CONFIG_ATM_NICSTAR_USE_IDT77105 is not setCONFIG_ATM_IDT77252=yCONFIG_ATM_IDT77252_DEBUG=y
# CONFIG_ATM_IDT77252_RCV_ALL is not setCONFIG_ATM_IDT77252_USE_SUNI=y
# CONFIG_ATM_IA is not set
# CONFIG_ATM_FORE200E is not set
# CONFIG_ATM_HE is not setCONFIG_ATM_SOLOS=y
# CONFIG_CAIF_DRIVERS is not setCONFIG_ETHERNET=yCONFIG_MDIO=y
# CONFIG_NET_VENDOR_3COM is not setCONFIG_NET_VENDOR_ACTIONS=yCONFIG_OWL_EMAC=y
# CONFIG_NET_VENDOR_ADAPTEC is not set
# CONFIG_NET_VENDOR_AGERE is not set
# CONFIG_NET_VENDOR_ALACRITECH is not set
# CONFIG_NET_VENDOR_ALTEON is not setCONFIG_ALTERA_TSE=y
# CONFIG_NET_VENDOR_AMAZON is not set
# CONFIG_NET_VENDOR_AMD is not setCONFIG_NET_XGENE=y
# CONFIG_NET_XGENE_V2 is not set
# CONFIG_NET_VENDOR_AQUANTIA is not setCONFIG_NET_VENDOR_ARC=yCONFIG_ARC_EMAC_CORE=y
# CONFIG_ARC_EMAC is not setCONFIG_EMAC_ROCKCHIP=y
# CONFIG_NET_VENDOR_ASIX is not set
# CONFIG_NET_VENDOR_ATHEROS is not setCONFIG_CX_ECAT=yCONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not setCONFIG_BCM4908_ENET=yCONFIG_BCMGENET=yCONFIG_BNX2=yCONFIG_CNIC=y
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# CONFIG_BGMAC_PLATFORM is not set
# CONFIG_SYSTEMPORT is not setCONFIG_BNXT=yCONFIG_BNXT_SRIOV=y
# CONFIG_BNXT_FLOWER_OFFLOAD is not set
# CONFIG_BNXT_HWMON is not set
# CONFIG_BCMASP is not setCONFIG_NET_VENDOR_CADENCE=y
# CONFIG_MACB is not set
# CONFIG_NET_CALXEDA_XGMAC is not setCONFIG_NET_VENDOR_CAVIUM=yCONFIG_THUNDER_NIC_PF=yCONFIG_THUNDER_NIC_VF=yCONFIG_THUNDER_NIC_BGX=yCONFIG_THUNDER_NIC_RGX=y
# CONFIG_CAVIUM_PTP is not setCONFIG_LIQUIDIO_CORE=yCONFIG_LIQUIDIO=yCONFIG_LIQUIDIO_VF=yCONFIG_NET_VENDOR_CHELSIO=yCONFIG_CHELSIO_T1=y
# CONFIG_CHELSIO_T1_1G is not setCONFIG_CHELSIO_T4=y
# CONFIG_CHELSIO_T4VF is not setCONFIG_CHELSIO_INLINE_CRYPTO=y
# CONFIG_NET_VENDOR_CIRRUS is not setCONFIG_NET_VENDOR_CISCO=yCONFIG_ENIC=y
# CONFIG_NET_VENDOR_CORTINA is not set
# CONFIG_NET_VENDOR_DAVICOM is not set
# CONFIG_DNET is not set
# CONFIG_NET_VENDOR_DEC is not set
# CONFIG_NET_VENDOR_DLINK is not setCONFIG_NET_VENDOR_EMULEX=yCONFIG_BE2NET=y
# CONFIG_BE2NET_HWMON is not set
# CONFIG_BE2NET_BE2 is not set
# CONFIG_BE2NET_BE3 is not set
# CONFIG_BE2NET_LANCER is not set
# CONFIG_BE2NET_SKYHAWK is not set
#
# WARNING: be2net is useless without any enabled chip #
# CONFIG_NET_VENDOR_ENGLEDER is not set CONFIG_NET_VENDOR_EZCHIP=y
# CONFIG_EZCHIP_NPS_MANAGEMENT_ENET is not set # CONFIG_NET_VENDOR_FARADAY is not set
# CONFIG_NET_VENDOR_FREESCALE is not set CONFIG_NET_VENDOR_FUNGIBLE=y
# CONFIG_FUN_ETH is not set CONFIG_NET_VENDOR_GOOGLE=yCONFIG_GVE=yCONFIG_NET_VENDOR_HISILICON=y CONFIG_HIX5HD2_GMAC=yCONFIG_HISI_FEMAC=y
# CONFIG_HIP04_ETH is not set CONFIG_HNS_MDIO=yCONFIG_HNS=yCONFIG_HNS_DSAF=yCONFIG_HNS_ENET=yCONFIG_HNS3=y
# CONFIG_HNS3_HCLGE is not set CONFIG_NET_VENDOR_HUAWEI=y
# CONFIG_HINIC is not set
# CONFIG_NET_VENDOR_INTEL is not set
# CONFIG_JME is not setCONFIG_KORINA=y
# CONFIG_NET_VENDOR_ADI is not set
# CONFIG_NET_VENDOR_LITEX is not set CONFIG_NET_VENDOR_MARVELL=yCONFIG_MVMDIO=y
# CONFIG_MVNETA is not setCONFIG_MVPP2=yCONFIG_MVPP2_PTP=y
# CONFIG_PXA168_ETH is not set
# CONFIG_SKGE is not setCONFIG_SKY2=yCONFIG_SKY2_DEBUG=y
# CONFIG_OCTEONTX2_AF is not set
# CONFIG_OCTEONTX2_PF is not set
# CONFIG_OCTEON_EP is not set CONFIG_OCTEON_EP_VF=y
# CONFIG_NET_VENDOR_MEDIATEK is not set
# CONFIG_NET_VENDOR_MELLANOX is not set
# CONFIG_NET_VENDOR_MICREL is not set
# CONFIG_NET_VENDOR_MICROCHIP is not set CONFIG_NET_VENDOR_MICROSEMI=y
# CONFIG_NET_VENDOR_MICROSOFT is not set
# CONFIG_FEALNX is not set CONFIG_NET_VENDOR_NI=y CONFIG_NI_XGE_MANAGEMENT_ENET=y CONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not setCONFIG_NS83820=yCONFIG_NET_VENDOR_NETERION=y
# CONFIG_S2IO is not set CONFIG_NET_VENDOR_NETRONOME=yCONFIG_NFP=yCONFIG_NFP_DEBUG=yCONFIG_NET_VENDOR_8390=yCONFIG_AX88796=yCONFIG_AX88796_93CX6=y
# CONFIG_NE2K_PCI is not set CONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not set CONFIG_LPC_ENET=yCONFIG_NET_VENDOR_OKI=y
# CONFIG_PCH_GBE is not setCONFIG_ETHOC=y CONFIG_NET_VENDOR_PACKET_ENGINES=y
# CONFIG_HAMACHI is not set CONFIG_YELLOWFIN=y CONFIG_NET_VENDOR_PENSANDO=yCONFIG_IONIC=yCONFIG_NET_VENDOR_QLOGIC=yCONFIG_QLA3XXX=y
# CONFIG_QLCNIC is not set CONFIG_NETXEN_NIC=yCONFIG_QED=yCONFIG_QED_SRIOV=yCONFIG_QEDE=y
# CONFIG_NET_VENDOR_BROCADE is not set CONFIG_NET_VENDOR_QUALCOMM=yCONFIG_QCA7000=y
# CONFIG_QCA7000_SPI is not set CONFIG_QCA7000_UART=y
# CONFIG_QCOM_EMAC is not set
# CONFIG_RMNET is not set CONFIG_NET_VENDOR_RDC=yCONFIG_R6040=y
# CONFIG_NET_VENDOR_REALTEK is not set
# CONFIG_NET_VENDOR_RENESAS is not set
# CONFIG_NET_VENDOR_ROCKER is not set
# CONFIG_NET_VENDOR_SAMSUNG is not set
# CONFIG_NET_VENDOR_SEEQ is not set CONFIG_NET_VENDOR_SILAN=yCONFIG_SC92031=y
# CONFIG_NET_VENDOR_SIS is not set CONFIG_NET_VENDOR_SOLARFLARE=yCONFIG_SFC=yCONFIG_SFC_MTD=yCONFIG_SFC_MCDI_MON=y
# CONFIG_SFC_MCDI_LOGGING is not set CONFIG_SFC_FALCON=yCONFIG_SFC_FALCON_MTD=yCONFIG_SFC_SIENA=y
# CONFIG_SFC_SIENA_MTD is not set
# CONFIG_SFC_SIENA_MCDI_MON is not set CONFIG_SFC_SIENA_SRIOV=y
# CONFIG_SFC_SIENA_MCDI_LOGGING is not set CONFIG_NET_VENDOR_SMSC=yCONFIG_SMC91X=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not set CONFIG_NET_VENDOR_SOCIONEXT=y CONFIG_SNI_AVE=yCONFIG_SNI_NETSEC=y CONFIG_NET_VENDOR_STMICRO=y CONFIG_STMMAC_ETH=y
# CONFIG_STMMAC_PLATFORM is not set
# CONFIG_DWMAC_INTEL is not set CONFIG_DWMAC_LOONGSON=yCONFIG_STMMAC_PCI=yCONFIG_NET_VENDOR_SUN=yCONFIG_HAPPYMEAL=yCONFIG_SUNGEM=yCONFIG_CASSINI=y
# CONFIG_NIU is not set CONFIG_NET_VENDOR_SUNPLUS=y CONFIG_SP7021_EMAC=y
# CONFIG_NET_VENDOR_SYNOPSYS is not set CONFIG_NET_VENDOR_TEHUTI=yCONFIG_TEHUTI=y
# CONFIG_NET_VENDOR_TI is not set
# CONFIG_NET_VENDOR_VERTEXCOM is not set
# CONFIG_NET_VENDOR_VIA is not set
# CONFIG_NET_VENDOR_WANGXUN is not set CONFIG_NET_VENDOR_WIZNET=y CONFIG_WIZNET_W5100=yCONFIG_WIZNET_W5300=y
# CONFIG_WIZNET_BUS_DIRECT is not set
# CONFIG_WIZNET_BUS_INDIRECT is not set CONFIG_WIZNET_BUS_ANY=y CONFIG_WIZNET_W5100_SPI=y
# CONFIG_NET_VENDOR_XILINX is not set CONFIG_FDDI=yCONFIG_DEFXX=yCONFIG_SKFP=yCONFIG_PHYLINK=yCONFIG_PHYLIB=yCONFIG_SWPHY=y
# CONFIG_LED_TRIGGER_PHY is not set CONFIG_PHYLIB_LEDS=yCONFIG_FIXED_PHY=yCONFIG_SFP=y
#
# MII PHY device drivers
#CONFIG_AIR_EN8811H_PHY=yCONFIG_AMD_PHY=yCONFIG_MESON_GXL_PHY=y
# CONFIG_ADIN_PHY is not set
# CONFIG_ADIN1100_PHY is not setCONFIG_AQUANTIA_PHY=yCONFIG_AX88796B_PHY=y
# CONFIG_BROADCOM_PHY is not setCONFIG_BCM54140_PHY=yCONFIG_BCM63XX_PHY=yCONFIG_BCM7XXX_PHY=y
# CONFIG_BCM84881_PHY is not setCONFIG_BCM87XX_PHY=yCONFIG_BCM_CYGNUS_PHY=yCONFIG_BCM_NET_PHYLIB=yCONFIG_CICADA_PHY=yCONFIG_CORTINA_PHY=y
# CONFIG_DAVICOM_PHY is not setCONFIG_ICPLUS_PHY=yCONFIG_LXT_PHY=y
# CONFIG_INTEL_XWAY_PHY is not setCONFIG_LSI_ET1011C_PHY=yCONFIG_MARVELL_PHY=yCONFIG_MARVELL_10G_PHY=yCONFIG_MARVELL_88Q2XXX_PHY=yCONFIG_MARVELL_88X2222_PHY=yCONFIG_MAXLINEAR_GPHY=yCONFIG_MEDIATEK_GE_PHY=y
# CONFIG_MICREL_PHY is not setCONFIG_MICROCHIP_T1S_PHY=yCONFIG_MICROCHIP_PHY=yCONFIG_MICROCHIP_T1_PHY=yCONFIG_MICROSEMI_PHY=yCONFIG_MOTORCOMM_PHY=yCONFIG_NATIONAL_PHY=y
# CONFIG_NXP_CBTX_PHY is not setCONFIG_NXP_C45_TJA11XX_PHY=yCONFIG_NXP_TJA11XX_PHY=yCONFIG_NCN26000_PHY=yCONFIG_QCOM_NET_PHYLIB=yCONFIG_AT803X_PHY=y
# CONFIG_QCA83XX_PHY is not set
# CONFIG_QCA808X_PHY is not setCONFIG_QCA807X_PHY=y
# CONFIG_QSEMI_PHY is not setCONFIG_REALTEK_PHY=y
# CONFIG_RENESAS_PHY is not setCONFIG_ROCKCHIP_PHY=yCONFIG_SMSC_PHY=y
# CONFIG_STE10XP is not set
# CONFIG_TERANETICS_PHY is not setCONFIG_DP83822_PHY=y
# CONFIG_DP83TC811_PHY is not setCONFIG_DP83848_PHY=yCONFIG_DP83867_PHY=y
# CONFIG_DP83869_PHY is not set
# CONFIG_DP83TD510_PHY is not set
# CONFIG_DP83TG720_PHY is not setCONFIG_VITESSE_PHY=yCONFIG_XILINX_GMII2RGMII=y
# CONFIG_MICREL_KS8995MA is not setCONFIG_PSE_CONTROLLER=yCONFIG_PSE_REGULATOR=yCONFIG_PSE_PD692X0=y
# CONFIG_PSE_TPS23881 is not setCONFIG_CAN_DEV=yCONFIG_CAN_VCAN=y
# CONFIG_CAN_VXCAN is not set
# CONFIG_CAN_NETLINK is not set
# CONFIG_CAN_DEBUG_DEVICES is not setCONFIG_MDIO_DEVICE=yCONFIG_MDIO_BUS=yCONFIG_FWNODE_MDIO=yCONFIG_OF_MDIO=yCONFIG_ACPI_MDIO=yCONFIG_MDIO_DEVRES=y
# CONFIG_MDIO_SUN4I is not setCONFIG_MDIO_XGENE=y
# CONFIG_MDIO_ASPEED is not setCONFIG_MDIO_BITBANG=yCONFIG_MDIO_BCM_IPROC=yCONFIG_MDIO_BCM_UNIMAC=yCONFIG_MDIO_CAVIUM=y
# CONFIG_MDIO_GPIO is not setCONFIG_MDIO_HISI_FEMAC=yCONFIG_MDIO_I2C=y
# CONFIG_MDIO_MSCC_MIIM is not setCONFIG_MDIO_MOXART=yCONFIG_MDIO_OCTEON=yCONFIG_MDIO_IPQ4019=y
# CONFIG_MDIO_IPQ8064 is not setCONFIG_MDIO_REGMAP=yCONFIG_MDIO_THUNDER=y
#
# MDIO Multiplexers
#CONFIG_MDIO_BUS_MUX=y
# CONFIG_MDIO_BUS_MUX_MESON_G12A is not setCONFIG_MDIO_BUS_MUX_MESON_GXL=y
# CONFIG_MDIO_BUS_MUX_BCM6368 is not setCONFIG_MDIO_BUS_MUX_BCM_IPROC=yCONFIG_MDIO_BUS_MUX_GPIO=y
# CONFIG_MDIO_BUS_MUX_MULTIPLEXER is not set
# CONFIG_MDIO_BUS_MUX_MMIOREG is not set
#
# PCS device drivers
#CONFIG_PCS_XPCS=yCONFIG_PCS_LYNX=yCONFIG_PCS_RZN1_MIIC=y
# end of PCS device drivers
# CONFIG_PLIP is not setCONFIG_PPP=yCONFIG_PPP_BSDCOMP=yCONFIG_PPP_DEFLATE=yCONFIG_PPP_FILTER=y
# CONFIG_PPP_MPPE is not set
# CONFIG_PPP_MULTILINK is not setCONFIG_PPPOATM=yCONFIG_PPPOE=y
# CONFIG_PPPOE_HASH_BITS_1 is not set
# CONFIG_PPPOE_HASH_BITS_2 is not setCONFIG_PPPOE_HASH_BITS_4=y
# CONFIG_PPPOE_HASH_BITS_8 is not setCONFIG_PPPOE_HASH_BITS=4CONFIG_PPP_ASYNC=y
# CONFIG_PPP_SYNC_TTY is not setCONFIG_SLIP=yCONFIG_SLHC=y
# CONFIG_SLIP_COMPRESSED is not set
# CONFIG_SLIP_SMART is not set
# CONFIG_SLIP_MODE_SLIP6 is not set
#
# Host-side USB support is needed for USB Network Adapter support #
# CONFIG_WLAN is not set
# CONFIG_WAN is not setCONFIG_IEEE802154_DRIVERS=yCONFIG_IEEE802154_FAKELB=y CONFIG_IEEE802154_AT86RF230=y CONFIG_IEEE802154_MRF24J40=y
# CONFIG_IEEE802154_CC2520 is not set
# CONFIG_IEEE802154_ADF7242 is not set
# CONFIG_IEEE802154_CA8210 is not set CONFIG_IEEE802154_MCR20A=yCONFIG_IEEE802154_HWSIM=y
#
# Wireless WAN
#CONFIG_WWAN=yCONFIG_WWAN_DEBUGFS=yCONFIG_WWAN_HWSIM=yCONFIG_MHI_WWAN_CTRL=yCONFIG_MHI_WWAN_MBIM=yCONFIG_QCOM_BAM_DMUX=yCONFIG_RPMSG_WWAN_CTRL=yCONFIG_IOSM=yCONFIG_MTK_T7XX=y
# end of Wireless WAN
CONFIG_FUJITSU_ES=yCONFIG_NET_FAILOVER=yCONFIG_ISDN=yCONFIG_ISDN_CAPI=yCONFIG_MISDN=yCONFIG_MISDN_DSP=yCONFIG_MISDN_L1OIP=y
#
# mISDN hardware drivers
#CONFIG_MISDN_HFCPCI=y
# CONFIG_MISDN_HFCMULTI is not set
# CONFIG_MISDN_AVMFRITZ is not setCONFIG_MISDN_SPEEDFAX=yCONFIG_MISDN_INFINEON=y
# CONFIG_MISDN_W6692 is not setCONFIG_MISDN_NETJET=yCONFIG_MISDN_HDLC=yCONFIG_MISDN_IPAC=yCONFIG_MISDN_ISAR=y
#
# Input device support
#CONFIG_INPUT=y
# CONFIG_INPUT_LEDS is not setCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_SPARSEKMAP=yCONFIG_INPUT_MATRIXKMAP=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=yCONFIG_INPUT_EVDEV=yCONFIG_INPUT_EVBUG=y
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADC is not set
# CONFIG_KEYBOARD_ADP5520 is not setCONFIG_KEYBOARD_ADP5588=y
# CONFIG_KEYBOARD_ADP5589 is not setCONFIG_KEYBOARD_APPLESPI=y
# CONFIG_KEYBOARD_ATKBD is not set
# CONFIG_KEYBOARD_QT1050 is not setCONFIG_KEYBOARD_QT1070=yCONFIG_KEYBOARD_QT2160=y
# CONFIG_KEYBOARD_CLPS711X is not setCONFIG_KEYBOARD_DLINK_DIR685=yCONFIG_KEYBOARD_LKKBD=yCONFIG_KEYBOARD_EP93XX=yCONFIG_KEYBOARD_GPIO=yCONFIG_KEYBOARD_GPIO_POLLED=yCONFIG_KEYBOARD_TCA6416=y
# CONFIG_KEYBOARD_TCA8418 is not setCONFIG_KEYBOARD_MATRIX=y
# CONFIG_KEYBOARD_LM8323 is not setCONFIG_KEYBOARD_LM8333=y
# CONFIG_KEYBOARD_LPC32XX is not setCONFIG_KEYBOARD_MAX7359=y
# CONFIG_KEYBOARD_MCS is not setCONFIG_KEYBOARD_MPR121=yCONFIG_KEYBOARD_SNVS_PWRKEY=yCONFIG_KEYBOARD_IMX=yCONFIG_KEYBOARD_NEWTON=yCONFIG_KEYBOARD_NOMADIK=y
# CONFIG_KEYBOARD_TEGRA is not setCONFIG_KEYBOARD_OPENCORES=yCONFIG_KEYBOARD_PINEPHONE=y
# CONFIG_KEYBOARD_PXA27x is not setCONFIG_KEYBOARD_PMIC8XXX=y
# CONFIG_KEYBOARD_SAMSUNG is not setCONFIG_KEYBOARD_GOLDFISH_EVENTS=yCONFIG_KEYBOARD_STOWAWAY=y
# CONFIG_KEYBOARD_ST_KEYSCAN is not set
# CONFIG_KEYBOARD_SUNKBD is not setCONFIG_KEYBOARD_SH_KEYSC=yCONFIG_KEYBOARD_IQS62X=y
# CONFIG_KEYBOARD_OMAP4 is not set
# CONFIG_KEYBOARD_SPEAR is not set
# CONFIG_KEYBOARD_TC3589X is not set
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_CAP11XX is not set
# CONFIG_KEYBOARD_BCM is not set
# CONFIG_KEYBOARD_MT6779 is not setCONFIG_KEYBOARD_MTK_PMIC=yCONFIG_KEYBOARD_CYPRESS_SF=yCONFIG_INPUT_MOUSE=y
# CONFIG_MOUSE_PS2 is not setCONFIG_MOUSE_SERIAL=y
# CONFIG_MOUSE_CYAPA is not set
# CONFIG_MOUSE_ELAN_I2C is not setCONFIG_MOUSE_VSXXXAA=yCONFIG_MOUSE_GPIO=yCONFIG_MOUSE_SYNAPTICS_I2C=yCONFIG_INPUT_JOYSTICK=yCONFIG_JOYSTICK_ANALOG=yCONFIG_JOYSTICK_A3D=yCONFIG_JOYSTICK_ADC=y
# CONFIG_JOYSTICK_ADI is not setCONFIG_JOYSTICK_COBRA=yCONFIG_JOYSTICK_GF2K=y
# CONFIG_JOYSTICK_GRIP is not set
# CONFIG_JOYSTICK_GRIP_MP is not set
# CONFIG_JOYSTICK_GUILLEMOT is not setCONFIG_JOYSTICK_INTERACT=yCONFIG_JOYSTICK_SIDEWINDER=yCONFIG_JOYSTICK_TMDC=y
# CONFIG_JOYSTICK_IFORCE is not set
# CONFIG_JOYSTICK_WARRIOR is not setCONFIG_JOYSTICK_MAGELLAN=yCONFIG_JOYSTICK_SPACEORB=y
# CONFIG_JOYSTICK_SPACEBALL is not setCONFIG_JOYSTICK_STINGER=yCONFIG_JOYSTICK_TWIDJOY=yCONFIG_JOYSTICK_ZHENHUA=y
# CONFIG_JOYSTICK_DB9 is not setCONFIG_JOYSTICK_GAMECON=yCONFIG_JOYSTICK_TURBOGRAFX=y
# CONFIG_JOYSTICK_AS5011 is not setCONFIG_JOYSTICK_JOYDUMP=y
# CONFIG_JOYSTICK_PSXPAD_SPI is not set
# CONFIG_JOYSTICK_QWIIC is not setCONFIG_JOYSTICK_FSIA6B=yCONFIG_JOYSTICK_SENSEHAT=yCONFIG_JOYSTICK_SEESAW=yCONFIG_INPUT_TABLET=yCONFIG_TABLET_SERIAL_WACOM4=yCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_88PM860X=yCONFIG_TOUCHSCREEN_ADS7846=yCONFIG_TOUCHSCREEN_AD7877=yCONFIG_TOUCHSCREEN_AD7879=y
# CONFIG_TOUCHSCREEN_AD7879_I2C is not setCONFIG_TOUCHSCREEN_AD7879_SPI=yCONFIG_TOUCHSCREEN_ADC=yCONFIG_TOUCHSCREEN_AR1021_I2C=yCONFIG_TOUCHSCREEN_ATMEL_MXT=yCONFIG_TOUCHSCREEN_AUO_PIXCIR=y
# CONFIG_TOUCHSCREEN_BU21013 is not set
# CONFIG_TOUCHSCREEN_BU21029 is not set
# CONFIG_TOUCHSCREEN_CHIPONE_ICN8318 is not setCONFIG_TOUCHSCREEN_CHIPONE_ICN8505=yCONFIG_TOUCHSCREEN_CY8CTMA140=yCONFIG_TOUCHSCREEN_CY8CTMG110=yCONFIG_TOUCHSCREEN_CYTTSP_CORE=y
# CONFIG_TOUCHSCREEN_CYTTSP_I2C is not setCONFIG_TOUCHSCREEN_CYTTSP_SPI=y
# CONFIG_TOUCHSCREEN_CYTTSP4_CORE is not set
# CONFIG_TOUCHSCREEN_CYTTSP5 is not setCONFIG_TOUCHSCREEN_DA9034=yCONFIG_TOUCHSCREEN_DA9052=y
# CONFIG_TOUCHSCREEN_DYNAPRO is not setCONFIG_TOUCHSCREEN_HAMPSHIRE=yCONFIG_TOUCHSCREEN_EETI=yCONFIG_TOUCHSCREEN_EGALAX=yCONFIG_TOUCHSCREEN_EGALAX_SERIAL=yCONFIG_TOUCHSCREEN_EXC3000=yCONFIG_TOUCHSCREEN_FUJITSU=yCONFIG_TOUCHSCREEN_GOODIX=yCONFIG_TOUCHSCREEN_GOODIX_BERLIN_CORE=y
# CONFIG_TOUCHSCREEN_GOODIX_BERLIN_I2C is not setCONFIG_TOUCHSCREEN_GOODIX_BERLIN_SPI=yCONFIG_TOUCHSCREEN_HIDEEP=yCONFIG_TOUCHSCREEN_HYCON_HY46XX=yCONFIG_TOUCHSCREEN_HYNITRON_CSTXXX=yCONFIG_TOUCHSCREEN_ILI210X=yCONFIG_TOUCHSCREEN_ILITEK=yCONFIG_TOUCHSCREEN_IPROC=y
# CONFIG_TOUCHSCREEN_S6SY761 is not setCONFIG_TOUCHSCREEN_GUNZE=yCONFIG_TOUCHSCREEN_EKTF2127=y
# CONFIG_TOUCHSCREEN_ELAN is not setCONFIG_TOUCHSCREEN_ELO=y
# CONFIG_TOUCHSCREEN_WACOM_W8001 is not setCONFIG_TOUCHSCREEN_WACOM_I2C=yCONFIG_TOUCHSCREEN_MAX11801=yCONFIG_TOUCHSCREEN_MCS5000=yCONFIG_TOUCHSCREEN_MMS114=y
# CONFIG_TOUCHSCREEN_MELFAS_MIP4 is not set
# CONFIG_TOUCHSCREEN_MSG2638 is not set
# CONFIG_TOUCHSCREEN_MTOUCH is not setCONFIG_TOUCHSCREEN_NOVATEK_NVT_TS=yCONFIG_TOUCHSCREEN_IMAGIS=yCONFIG_TOUCHSCREEN_IMX6UL_TSC=yCONFIG_TOUCHSCREEN_INEXIO=yCONFIG_TOUCHSCREEN_PENMOUNT=yCONFIG_TOUCHSCREEN_EDT_FT5X06=y
# CONFIG_TOUCHSCREEN_RASPBERRYPI_FW is not setCONFIG_TOUCHSCREEN_MIGOR=y
# CONFIG_TOUCHSCREEN_TOUCHRIGHT is not set
# CONFIG_TOUCHSCREEN_TOUCHWIN is not setCONFIG_TOUCHSCREEN_PIXCIR=y
# CONFIG_TOUCHSCREEN_WDT87XX_I2C is not setCONFIG_TOUCHSCREEN_WM831X=y
# CONFIG_TOUCHSCREEN_MXS_LRADC is not set
# CONFIG_TOUCHSCREEN_TOUCHIT213 is not setCONFIG_TOUCHSCREEN_TS4800=yCONFIG_TOUCHSCREEN_TSC_SERIO=yCONFIG_TOUCHSCREEN_TSC200X_CORE=y
# CONFIG_TOUCHSCREEN_TSC2004 is not setCONFIG_TOUCHSCREEN_TSC2005=yCONFIG_TOUCHSCREEN_TSC2007=yCONFIG_TOUCHSCREEN_TSC2007_IIO=yCONFIG_TOUCHSCREEN_PCAP=y
# CONFIG_TOUCHSCREEN_RM_TS is not setCONFIG_TOUCHSCREEN_SILEAD=yCONFIG_TOUCHSCREEN_SIS_I2C=yCONFIG_TOUCHSCREEN_ST1232=yCONFIG_TOUCHSCREEN_STMFTS=y
# CONFIG_TOUCHSCREEN_SUN4I is not set
# CONFIG_TOUCHSCREEN_SURFACE3_SPI is not setCONFIG_TOUCHSCREEN_SX8654=yCONFIG_TOUCHSCREEN_TPS6507X=y
# CONFIG_TOUCHSCREEN_ZET6223 is not setCONFIG_TOUCHSCREEN_ZFORCE=yCONFIG_TOUCHSCREEN_COLIBRI_VF50=yCONFIG_TOUCHSCREEN_ROHM_BU21023=yCONFIG_TOUCHSCREEN_IQS5XX=y
# CONFIG_TOUCHSCREEN_IQS7211 is not set
# CONFIG_TOUCHSCREEN_ZINITIX is not setCONFIG_TOUCHSCREEN_HIMAX_HX83112B=y
# CONFIG_INPUT_MISC is not setCONFIG_RMI4_CORE=yCONFIG_RMI4_I2C=y
# CONFIG_RMI4_SPI is not setCONFIG_RMI4_SMB=yCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=y
# CONFIG_RMI4_F11 is not set
# CONFIG_RMI4_F12 is not set
# CONFIG_RMI4_F30 is not setCONFIG_RMI4_F34=y
# CONFIG_RMI4_F3A is not set
# CONFIG_RMI4_F55 is not set
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=yCONFIG_SERIO_CT82C710=y
# CONFIG_SERIO_PARKBD is not setCONFIG_SERIO_PCIPS2=y
# CONFIG_SERIO_LIBPS2 is not setCONFIG_SERIO_RAW=yCONFIG_SERIO_ALTERA_PS2=yCONFIG_SERIO_PS2MULT=yCONFIG_SERIO_ARC_PS2=yCONFIG_SERIO_APBPS2=yCONFIG_SERIO_OLPC_APSP=yCONFIG_SERIO_SUN4I_PS2=yCONFIG_SERIO_GPIO_PS2=yCONFIG_USERIO=yCONFIG_GAMEPORT=yCONFIG_GAMEPORT_EMU10K1=yCONFIG_GAMEPORT_FM801=y
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=y
# CONFIG_VT_HW_CONSOLE_BINDING is not setCONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not setCONFIG_LEGACY_TIOCSTI=y
# CONFIG_LDISC_AUTOLOAD is not set
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=y CONFIG_SERIAL_8250=y
# CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set CONFIG_SERIAL_8250_PNP=y
# CONFIG_SERIAL_8250_16550A_VARIANTS is not set CONFIG_SERIAL_8250_FINTEK=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_PCILIB=y CONFIG_SERIAL_8250_PCI=y
# CONFIG_SERIAL_8250_EXAR is not set CONFIG_SERIAL_8250_NR_UARTS=4 CONFIG_SERIAL_8250_RUNTIME_UARTS=4
# CONFIG_SERIAL_8250_EXTENDED is not set CONFIG_SERIAL_8250_ASPEED_VUART=y CONFIG_SERIAL_8250_PCI1XXXX=y CONFIG_SERIAL_8250_DWLIB=y CONFIG_SERIAL_8250_FSL=y
# CONFIG_SERIAL_8250_DFL is not set CONFIG_SERIAL_8250_DW=y CONFIG_SERIAL_8250_EM=y
# CONFIG_SERIAL_8250_IOC3 is not set
# CONFIG_SERIAL_8250_RT288X is not set CONFIG_SERIAL_8250_OMAP=y CONFIG_SERIAL_8250_OMAP_TTYO_FIXUP=y CONFIG_SERIAL_8250_LPC18XX=y CONFIG_SERIAL_8250_MT6577=y CONFIG_SERIAL_8250_UNIPHIER=y CONFIG_SERIAL_8250_INGENIC=y CONFIG_SERIAL_8250_LPSS=y CONFIG_SERIAL_8250_MID=y CONFIG_SERIAL_8250_PERICOM=y CONFIG_SERIAL_8250_PXA=y CONFIG_SERIAL_8250_TEGRA=y CONFIG_SERIAL_8250_BCM7271=y
# CONFIG_SERIAL_OF_PLATFORM is not set
#
# Non-8250 serial port support
#CONFIG_SERIAL_AMBA_PL010=y
# CONFIG_SERIAL_AMBA_PL010_CONSOLE is not set # CONFIG_SERIAL_ATMEL is not set
# CONFIG_SERIAL_KGDB_NMI is not set CONFIG_SERIAL_MESON=y CONFIG_SERIAL_MESON_CONSOLE=y CONFIG_SERIAL_CLPS711X=y CONFIG_SERIAL_CLPS711X_CONSOLE=y CONFIG_SERIAL_SAMSUNG=y CONFIG_SERIAL_SAMSUNG_UARTS=4
# CONFIG_SERIAL_SAMSUNG_CONSOLE is not set CONFIG_SERIAL_TEGRA=y
# CONFIG_SERIAL_TEGRA_TCU is not set
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set CONFIG_SERIAL_IMX=y CONFIG_SERIAL_IMX_CONSOLE=y
# CONFIG_SERIAL_IMX_EARLYCON is not set
# CONFIG_SERIAL_UARTLITE is not set
# CONFIG_SERIAL_SH_SCI is not set CONFIG_SERIAL_HS_LPC32XX=y CONFIG_SERIAL_HS_LPC32XX_CONSOLE=y CONFIG_SERIAL_CORE=y CONFIG_SERIAL_CORE_CONSOLE=y CONFIG_CONSOLE_POLL=y
# CONFIG_SERIAL_ICOM is not set CONFIG_SERIAL_JSM=y
# CONFIG_SERIAL_MSM is not set CONFIG_SERIAL_VT8500=y
# CONFIG_SERIAL_VT8500_CONSOLE is not set # CONFIG_SERIAL_OMAP is not set CONFIG_SERIAL_SIFIVE=y CONFIG_SERIAL_SIFIVE_CONSOLE=y
# CONFIG_SERIAL_LANTIQ is not set CONFIG_SERIAL_SCCNXP=y CONFIG_SERIAL_SCCNXP_CONSOLE=y
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_TIMBERDALE is not set CONFIG_SERIAL_BCM63XX=y CONFIG_SERIAL_BCM63XX_CONSOLE=y CONFIG_SERIAL_ALTERA_JTAGUART=y CONFIG_SERIAL_ALTERA_JTAGUART_CONSOLE=y CONFIG_SERIAL_ALTERA_JTAGUART_CONSOLE_BYPASS=y CONFIG_SERIAL_ALTERA_UART=y CONFIG_SERIAL_ALTERA_UART_MAXPORTS=4 CONFIG_SERIAL_ALTERA_UART_BAUDRATE=115200 # CONFIG_SERIAL_ALTERA_UART_CONSOLE is not set CONFIG_SERIAL_PCH_UART=y
# CONFIG_SERIAL_PCH_UART_CONSOLE is not set # CONFIG_SERIAL_MXS_AUART is not set CONFIG_SERIAL_XILINX_PS_UART=y
# CONFIG_SERIAL_XILINX_PS_UART_CONSOLE is not set # CONFIG_SERIAL_MPS2_UART_CONSOLE is not set CONFIG_SERIAL_MPS2_UART=y CONFIG_SERIAL_ARC=y
# CONFIG_SERIAL_ARC_CONSOLE is not set CONFIG_SERIAL_ARC_NR_PORTS=1 CONFIG_SERIAL_RP2=y CONFIG_SERIAL_RP2_NR_UARTS=32 CONFIG_SERIAL_FSL_LPUART=y CONFIG_SERIAL_FSL_LPUART_CONSOLE=y CONFIG_SERIAL_FSL_LINFLEXUART=y
# CONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE is not set CONFIG_SERIAL_CONEXANT_DIGICOLOR=y CONFIG_SERIAL_CONEXANT_DIGICOLOR_CONSOLE=y CONFIG_SERIAL_ST_ASC=y
# CONFIG_SERIAL_ST_ASC_CONSOLE is not set CONFIG_SERIAL_SPRD=y CONFIG_SERIAL_SPRD_CONSOLE=y CONFIG_SERIAL_STM32=y
# CONFIG_SERIAL_STM32_CONSOLE is not set CONFIG_SERIAL_MVEBU_UART=y CONFIG_SERIAL_MVEBU_CONSOLE=y
# CONFIG_SERIAL_OWL is not set CONFIG_SERIAL_RDA=y
# CONFIG_SERIAL_RDA_CONSOLE is not set
# CONFIG_SERIAL_MILBEAUT_USIO is not set CONFIG_SERIAL_LITEUART=y CONFIG_SERIAL_LITEUART_MAX_PORTS=1
# CONFIG_SERIAL_LITEUART_CONSOLE is not set CONFIG_SERIAL_SUNPLUS=y
# CONFIG_SERIAL_SUNPLUS_CONSOLE is not set # CONFIG_SERIAL_NUVOTON_MA35D1 is not set # CONFIG_SERIAL_ESP32 is not set CONFIG_SERIAL_ESP32_ACM=y
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=yCONFIG_SERIAL_NONSTANDARD=yCONFIG_MOXA_INTELLIO=yCONFIG_MOXA_SMARTIO=y
# CONFIG_N_HDLC is not set
# CONFIG_N_GSM is not setCONFIG_NOZOMI=y
# CONFIG_NULL_TTY is not setCONFIG_RPMSG_TTY=yCONFIG_SERIAL_DEV_BUS=y
# CONFIG_SERIAL_DEV_CTRL_TTYPORT is not set
# CONFIG_PRINTER is not setCONFIG_PPDEV=y
# CONFIG_VIRTIO_CONSOLE is not setCONFIG_IPMI_HANDLER=yCONFIG_IPMI_DMI_DECODE=yCONFIG_IPMI_PLAT_DATA=y
# CONFIG_IPMI_PANIC_EVENT is not setCONFIG_IPMI_DEVICE_INTERFACE=yCONFIG_IPMI_SI=yCONFIG_IPMI_SSIF=yCONFIG_IPMI_IPMB=yCONFIG_IPMI_WATCHDOG=y
# CONFIG_IPMI_POWEROFF is not setCONFIG_IPMI_KCS_BMC=yCONFIG_ASPEED_KCS_IPMI_BMC=yCONFIG_NPCM7XX_KCS_IPMI_BMC=yCONFIG_IPMI_KCS_BMC_CDEV_IPMI=y
# CONFIG_IPMI_KCS_BMC_SERIO is not setCONFIG_ASPEED_BT_IPMI_BMC=y
# CONFIG_SSIF_IPMI_BMC is not setCONFIG_IPMB_DEVICE_INTERFACE=yCONFIG_HW_RANDOM=y
# CONFIG_HW_RANDOM_TIMERIOMEM is not setCONFIG_HW_RANDOM_INTEL=yCONFIG_HW_RANDOM_AMD=yCONFIG_HW_RANDOM_ATMEL=yCONFIG_HW_RANDOM_BA431=yCONFIG_HW_RANDOM_BCM2835=y
# CONFIG_HW_RANDOM_IPROC_RNG200 is not setCONFIG_HW_RANDOM_GEODE=yCONFIG_HW_RANDOM_VIA=y
# CONFIG_HW_RANDOM_IXP4XX is not set
# CONFIG_HW_RANDOM_OMAP is not setCONFIG_HW_RANDOM_OMAP3_ROM=yCONFIG_HW_RANDOM_VIRTIO=yCONFIG_HW_RANDOM_MXC_RNGA=yCONFIG_HW_RANDOM_IMX_RNGC=y
# CONFIG_HW_RANDOM_INGENIC_RNG is not setCONFIG_HW_RANDOM_INGENIC_TRNG=yCONFIG_HW_RANDOM_NOMADIK=y
# CONFIG_HW_RANDOM_HISI is not setCONFIG_HW_RANDOM_HISTB=yCONFIG_HW_RANDOM_ST=yCONFIG_HW_RANDOM_XGENE=y
# CONFIG_HW_RANDOM_STM32 is not setCONFIG_HW_RANDOM_PIC32=yCONFIG_HW_RANDOM_MESON=yCONFIG_HW_RANDOM_MTK=y
# CONFIG_HW_RANDOM_EXYNOS is not setCONFIG_HW_RANDOM_NPCM=yCONFIG_HW_RANDOM_KEYSTONE=yCONFIG_HW_RANDOM_CCTRNG=yCONFIG_HW_RANDOM_XIPHERA=y
# CONFIG_HW_RANDOM_CN10K is not setCONFIG_HW_RANDOM_JH7110=yCONFIG_APPLICOM=yCONFIG_MWAVE=yCONFIG_DEVMEM=yCONFIG_NVRAM=y
# CONFIG_DEVPORT is not setCONFIG_HPET=yCONFIG_HPET_MMAP=yCONFIG_HPET_MMAP_DEFAULT=yCONFIG_HANGCHECK_TIMER=yCONFIG_TCG_TPM=yCONFIG_TCG_TPM2_HMAC=yCONFIG_HW_RANDOM_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=yCONFIG_TCG_TIS_SPI=y
# CONFIG_TCG_TIS_SPI_CR50 is not setCONFIG_TCG_TIS_I2C=y
# CONFIG_TCG_TIS_SYNQUACER is not setCONFIG_TCG_TIS_I2C_CR50=yCONFIG_TCG_TIS_I2C_ATMEL=yCONFIG_TCG_TIS_I2C_INFINEON=yCONFIG_TCG_TIS_I2C_NUVOTON=yCONFIG_TCG_NSC=yCONFIG_TCG_ATMEL=yCONFIG_TCG_INFINEON=yCONFIG_TCG_CRB=y
# CONFIG_TCG_VTPM_PROXY is not setCONFIG_TCG_TIS_ST33ZP24=yCONFIG_TCG_TIS_ST33ZP24_I2C=y
# CONFIG_TCG_TIS_ST33ZP24_SPI is not setCONFIG_TELCLOCK=yCONFIG_XILLYBUS_CLASS=yCONFIG_XILLYBUS=yCONFIG_XILLYBUS_PCIE=yCONFIG_XILLYBUS_OF=y
# end of Character devices
#
# I2C support
#CONFIG_I2C=yCONFIG_ACPI_I2C_OPREGION=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=y
# CONFIG_I2C_MUX is not setCONFIG_I2C_ATR=yCONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=yCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#CONFIG_I2C_ALI1535=yCONFIG_I2C_ALI1563=yCONFIG_I2C_ALI15X3=y
# CONFIG_I2C_AMD756 is not setCONFIG_I2C_AMD8111=yCONFIG_I2C_AMD_MP2=yCONFIG_I2C_HIX5HD2=y
# CONFIG_I2C_I801 is not set
# CONFIG_I2C_ISCH is not setCONFIG_I2C_ISMT=yCONFIG_I2C_PIIX4=yCONFIG_I2C_NFORCE2=y
# CONFIG_I2C_NFORCE2_S4985 is not set
# CONFIG_I2C_NVIDIA_GPU is not setCONFIG_I2C_SIS5595=yCONFIG_I2C_SIS630=yCONFIG_I2C_SIS96X=y
# CONFIG_I2C_VIA is not set
# CONFIG_I2C_VIAPRO is not setCONFIG_I2C_ZHAOXIN=y
#
# ACPI drivers
#
# CONFIG_I2C_SCMI is not set
#
# I2C system bus drivers (mostly embedded / system-on-chip) #
# CONFIG_I2C_ALTERA is not setCONFIG_I2C_ASPEED=yCONFIG_I2C_AT91=y
# CONFIG_I2C_AT91_SLAVE_EXPERIMENTAL is not set
# CONFIG_I2C_AXXIA is not setCONFIG_I2C_BCM2835=yCONFIG_I2C_BCM_IPROC=yCONFIG_I2C_BCM_KONA=yCONFIG_I2C_BRCMSTB=y
# CONFIG_I2C_CADENCE is not set CONFIG_I2C_CBUS_GPIO=yCONFIG_I2C_DAVINCI=y
# CONFIG_I2C_DESIGNWARE_PLATFORM is not set
# CONFIG_I2C_DESIGNWARE_PCI is not set CONFIG_I2C_DIGICOLOR=yCONFIG_I2C_EG20T=yCONFIG_I2C_EMEV2=yCONFIG_I2C_EXYNOS5=yCONFIG_I2C_GPIO=y
# CONFIG_I2C_GPIO_FAULT_INJECTOR is not set
# CONFIG_I2C_GXP is not set
# CONFIG_I2C_HIGHLANDER is not set CONFIG_I2C_HISI=yCONFIG_I2C_IMG=y
# CONFIG_I2C_IMX is not set
# CONFIG_I2C_IMX_LPI2C is not set CONFIG_I2C_IOP3XX=y
# CONFIG_I2C_JZ4780 is not setCONFIG_I2C_KEMPLD=y
# CONFIG_I2C_LPC2K is not setCONFIG_I2C_LS2X=yCONFIG_I2C_MESON=y
# CONFIG_I2C_MICROCHIP_CORE is not set CONFIG_I2C_MT65XX=y
# CONFIG_I2C_MT7621 is not set
# CONFIG_I2C_MV64XXX is not setCONFIG_I2C_MXS=y
# CONFIG_I2C_NPCM is not setCONFIG_I2C_OCORES=yCONFIG_I2C_OMAP=yCONFIG_I2C_OWL=y
# CONFIG_I2C_APPLE is not set CONFIG_I2C_PCA_PLATFORM=yCONFIG_I2C_PNX=y
# CONFIG_I2C_PXA is not setCONFIG_I2C_QCOM_CCI=y
# CONFIG_I2C_QUP is not setCONFIG_I2C_RIIC=y
# CONFIG_I2C_RK3X is not setCONFIG_I2C_RZV2M=y
# CONFIG_I2C_S3C2410 is not set CONFIG_I2C_SH_MOBILE=y
# CONFIG_I2C_SIMTEC is not setCONFIG_I2C_SPRD=y
# CONFIG_I2C_ST is not set
# CONFIG_I2C_STM32F4 is not set
# CONFIG_I2C_STM32F7 is not set CONFIG_I2C_SUN6I_P2WI=yCONFIG_I2C_SYNQUACER=y
# CONFIG_I2C_TEGRA_BPMP is not set CONFIG_I2C_UNIPHIER=y
# CONFIG_I2C_UNIPHIER_F is not set CONFIG_I2C_VERSATILE=yCONFIG_I2C_WMT=yCONFIG_I2C_THUNDERX=yCONFIG_I2C_XILINX=y
# CONFIG_I2C_XLP9XX is not setCONFIG_I2C_RCAR=y
#
# External I2C/SMBus adapter drivers
#CONFIG_I2C_PARPORT=yCONFIG_I2C_PCI1XXXX=yCONFIG_I2C_TAOS_EVM=y
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_MLXCPLD=yCONFIG_I2C_VIRTIO=y
# end of I2C Hardware Bus support
CONFIG_I2C_SLAVE=y
# CONFIG_I2C_SLAVE_EEPROM is not setCONFIG_I2C_SLAVE_TESTUNIT=yCONFIG_I2C_DEBUG_CORE=y
# CONFIG_I2C_DEBUG_ALGO is not setCONFIG_I2C_DEBUG_BUS=y
# end of I2C support
CONFIG_I3C=y
# CONFIG_CDNS_I3C_MASTER is not setCONFIG_DW_I3C_MASTER=yCONFIG_AST2600_I3C_MASTER=y
# CONFIG_SVC_I3C_MASTER is not setCONFIG_MIPI_I3C_HCI=yCONFIG_SPI=yCONFIG_SPI_DEBUG=yCONFIG_SPI_MASTER=yCONFIG_SPI_MEM=y
#
# SPI Master Controller Drivers
#CONFIG_SPI_AIROHA_SNFI=yCONFIG_SPI_ALTERA=yCONFIG_SPI_ALTERA_CORE=y
# CONFIG_SPI_ALTERA_DFL is not setCONFIG_SPI_AMLOGIC_SPIFC_A1=yCONFIG_SPI_AR934X=y
# CONFIG_SPI_ATH79 is not setCONFIG_SPI_ARMADA_3700=y
# CONFIG_SPI_ASPEED_SMC is not setCONFIG_SPI_ATMEL=yCONFIG_SPI_AT91_USART=yCONFIG_SPI_ATMEL_QUADSPI=yCONFIG_SPI_AXI_SPI_ENGINE=y
# CONFIG_SPI_BCM2835 is not setCONFIG_SPI_BCM2835AUX=yCONFIG_SPI_BCM63XX=yCONFIG_SPI_BCM63XX_HSSPI=y
# CONFIG_SPI_BCM_QSPI is not setCONFIG_SPI_BCMBCA_HSSPI=yCONFIG_SPI_BITBANG=y
# CONFIG_SPI_BUTTERFLY is not setCONFIG_SPI_CADENCE=yCONFIG_SPI_CADENCE_QUADSPI=yCONFIG_SPI_CADENCE_XSPI=y
# CONFIG_SPI_CLPS711X is not setCONFIG_SPI_CS42L43=yCONFIG_SPI_DAVINCI=yCONFIG_SPI_DESIGNWARE=yCONFIG_SPI_DW_DMA=y
# CONFIG_SPI_DW_PCI is not setCONFIG_SPI_DW_MMIO=yCONFIG_SPI_DW_BT1=yCONFIG_SPI_DW_BT1_DIRMAP=yCONFIG_SPI_EP93XX=yCONFIG_SPI_FSL_LPSPI=yCONFIG_SPI_FSL_QUADSPI=yCONFIG_SPI_GXP=y
# CONFIG_SPI_HISI_KUNPENG is not setCONFIG_SPI_HISI_SFC_V3XX=y
# CONFIG_SPI_NXP_FLEXSPI is not setCONFIG_SPI_GPIO=yCONFIG_SPI_IMG_SPFI=y
# CONFIG_SPI_IMX is not setCONFIG_SPI_INGENIC=yCONFIG_SPI_INTEL=yCONFIG_SPI_INTEL_PCI=y
# CONFIG_SPI_INTEL_PLATFORM is not setCONFIG_SPI_JCORE=y
# CONFIG_SPI_LM70_LLP is not setCONFIG_SPI_LOONGSON_CORE=yCONFIG_SPI_LOONGSON_PCI=yCONFIG_SPI_LOONGSON_PLATFORM=yCONFIG_SPI_LP8841_RTC=y
# CONFIG_SPI_FSL_SPI is not setCONFIG_SPI_FSL_DSPI=y
# CONFIG_SPI_MESON_SPICC is not set
# CONFIG_SPI_MESON_SPIFC is not set
# CONFIG_SPI_MICROCHIP_CORE is not setCONFIG_SPI_MICROCHIP_CORE_QSPI=yCONFIG_SPI_MT65XX=yCONFIG_SPI_MT7621=y
# CONFIG_SPI_MTK_NOR is not setCONFIG_SPI_MTK_SNFI=yCONFIG_SPI_WPCM_FIU=yCONFIG_SPI_NPCM_FIU=yCONFIG_SPI_NPCM_PSPI=yCONFIG_SPI_LANTIQ_SSC=yCONFIG_SPI_OC_TINY=yCONFIG_SPI_OMAP24XX=y
# CONFIG_SPI_TI_QSPI is not setCONFIG_SPI_ORION=yCONFIG_SPI_PCI1XXXX=y
# CONFIG_SPI_PIC32 is not setCONFIG_SPI_PIC32_SQI=yCONFIG_SPI_PXA2XX=yCONFIG_SPI_PXA2XX_PCI=y
# CONFIG_SPI_ROCKCHIP is not setCONFIG_SPI_ROCKCHIP_SFC=yCONFIG_SPI_RSPI=yCONFIG_SPI_RZV2M_CSI=yCONFIG_SPI_QCOM_QSPI=y
# CONFIG_SPI_QUP is not setCONFIG_SPI_S3C64XX=y
# CONFIG_SPI_SC18IS602 is not setCONFIG_SPI_SH_MSIOF=yCONFIG_SPI_SH=yCONFIG_SPI_SH_HSPI=yCONFIG_SPI_SIFIVE=y
# CONFIG_SPI_SN_F_OSPI is not set
# CONFIG_SPI_SPRD is not setCONFIG_SPI_SPRD_ADI=y
# CONFIG_SPI_STM32 is not setCONFIG_SPI_STM32_QSPI=y
# CONFIG_SPI_ST_SSC4 is not setCONFIG_SPI_SUN4I=yCONFIG_SPI_SUN6I=yCONFIG_SPI_SUNPLUS_SP7021=yCONFIG_SPI_SYNQUACER=y
# CONFIG_SPI_MXIC is not setCONFIG_SPI_TEGRA210_QUAD=yCONFIG_SPI_TEGRA114=y
# CONFIG_SPI_TEGRA20_SFLASH is not set
# CONFIG_SPI_TEGRA20_SLINK is not setCONFIG_SPI_THUNDERX=yCONFIG_SPI_TOPCLIFF_PCH=y
# CONFIG_SPI_UNIPHIER is not setCONFIG_SPI_XCOMM=yCONFIG_SPI_XILINX=yCONFIG_SPI_XLP=yCONFIG_SPI_XTENSA_XTFPGA=yCONFIG_SPI_ZYNQ_QSPI=y
# CONFIG_SPI_ZYNQMP_GQSPI is not set
# CONFIG_SPI_AMD is not set
#
# SPI Multiplexer support
#
# CONFIG_SPI_MUX is not set
#
# SPI Protocol Masters
#CONFIG_SPI_SPIDEV=y
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not setCONFIG_SPI_DYNAMIC=yCONFIG_SPMI=yCONFIG_SPMI_HISI3670=yCONFIG_SPMI_MSM_PMIC_ARB=y
# CONFIG_SPMI_MTK_PMIF is not set
# CONFIG_HSI is not setCONFIG_PPS=yCONFIG_PPS_DEBUG=y
#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not setCONFIG_PPS_CLIENT_LDISC=y
# CONFIG_PPS_CLIENT_PARPORT is not set
# CONFIG_PPS_CLIENT_GPIO is not set
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=yCONFIG_PTP_1588_CLOCK_OPTIONAL=yCONFIG_PTP_1588_CLOCK_DTE=yCONFIG_PTP_1588_CLOCK_QORIQ=yCONFIG_DP83640_PHY=yCONFIG_PTP_1588_CLOCK_INES=yCONFIG_PTP_1588_CLOCK_PCH=yCONFIG_PTP_1588_CLOCK_VMCLOCK=y
# CONFIG_PTP_1588_CLOCK_IDT82P33 is not setCONFIG_PTP_1588_CLOCK_IDTCM=yCONFIG_PTP_1588_CLOCK_FC3W=y
# CONFIG_PTP_1588_CLOCK_MOCK is not set
# CONFIG_PTP_1588_CLOCK_OCP is not set
# CONFIG_PTP_DFL_TOD is not set
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_GENERIC_PINCTRL_GROUPS=yCONFIG_PINMUX=yCONFIG_GENERIC_PINMUX_FUNCTIONS=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=yCONFIG_DEBUG_PINCTRL=yCONFIG_PINCTRL_AMD=y
# CONFIG_PINCTRL_AT91PIO4 is not setCONFIG_PINCTRL_AW9523=yCONFIG_PINCTRL_BM1880=y
# CONFIG_PINCTRL_CY8C95X0 is not set
# CONFIG_PINCTRL_DA850_PUPD is not set
# CONFIG_PINCTRL_DA9062 is not set
# CONFIG_PINCTRL_EQUILIBRIUM is not setCONFIG_PINCTRL_INGENIC=y
# CONFIG_PINCTRL_LOONGSON2 is not set
# CONFIG_PINCTRL_LPC18XX is not setCONFIG_PINCTRL_MCP23S08_I2C=yCONFIG_PINCTRL_MCP23S08_SPI=yCONFIG_PINCTRL_MCP23S08=y
# CONFIG_PINCTRL_MICROCHIP_SGPIO is not setCONFIG_PINCTRL_OCELOT=y
# CONFIG_PINCTRL_PISTACHIO is not setCONFIG_PINCTRL_RK805=y
# CONFIG_PINCTRL_ROCKCHIP is not set
# CONFIG_PINCTRL_SCMI is not setCONFIG_PINCTRL_SINGLE=yCONFIG_PINCTRL_STMFX=y
# CONFIG_PINCTRL_SX150X is not set
# CONFIG_PINCTRL_MLXBF3 is not set
# CONFIG_PINCTRL_OWL is not setCONFIG_PINCTRL_ASPEED=yCONFIG_PINCTRL_ASPEED_G4=yCONFIG_PINCTRL_ASPEED_G5=y
# CONFIG_PINCTRL_ASPEED_G6 is not setCONFIG_PINCTRL_BCM281XX=yCONFIG_PINCTRL_BCM2835=y
# CONFIG_PINCTRL_BCM4908 is not setCONFIG_PINCTRL_BCM63XX=y
# CONFIG_PINCTRL_BCM6318 is not set
# CONFIG_PINCTRL_BCM6328 is not setCONFIG_PINCTRL_BCM6358=y
# CONFIG_PINCTRL_BCM6362 is not setCONFIG_PINCTRL_BCM6368=y
# CONFIG_PINCTRL_BCM63268 is not setCONFIG_PINCTRL_IPROC_GPIO=yCONFIG_PINCTRL_CYGNUS_MUX=y
# CONFIG_PINCTRL_NS is not set
# CONFIG_PINCTRL_NSP_GPIO is not set
# CONFIG_PINCTRL_NS2_MUX is not setCONFIG_PINCTRL_NSP_MUX=yCONFIG_PINCTRL_BERLIN=yCONFIG_PINCTRL_AS370=yCONFIG_PINCTRL_BERLIN_BG4CT=yCONFIG_PINCTRL_CS42L43=y
# CONFIG_PINCTRL_LOCHNAGAR is not setCONFIG_PINCTRL_IMX=y
# CONFIG_PINCTRL_IMX8MM is not setCONFIG_PINCTRL_IMX8MN=yCONFIG_PINCTRL_IMX8MP=yCONFIG_PINCTRL_IMX8MQ=y
#
# Intel pinctrl drivers
#CONFIG_PINCTRL_BAYTRAIL=yCONFIG_PINCTRL_CHERRYVIEW=yCONFIG_PINCTRL_LYNXPOINT=yCONFIG_PINCTRL_INTEL=yCONFIG_PINCTRL_INTEL_PLATFORM=y
# CONFIG_PINCTRL_ALDERLAKE is not setCONFIG_PINCTRL_BROXTON=yCONFIG_PINCTRL_CANNONLAKE=yCONFIG_PINCTRL_CEDARFORK=y
# CONFIG_PINCTRL_DENVERTON is not setCONFIG_PINCTRL_ELKHARTLAKE=yCONFIG_PINCTRL_EMMITSBURG=yCONFIG_PINCTRL_GEMINILAKE=y
# CONFIG_PINCTRL_ICELAKE is not set
# CONFIG_PINCTRL_JASPERLAKE is not set
# CONFIG_PINCTRL_LAKEFIELD is not setCONFIG_PINCTRL_LEWISBURG=yCONFIG_PINCTRL_METEORLAKE=y
# CONFIG_PINCTRL_METEORPOINT is not setCONFIG_PINCTRL_SUNRISEPOINT=yCONFIG_PINCTRL_TIGERLAKE=yCONFIG_PINCTRL_TANGIER=yCONFIG_PINCTRL_MERRIFIELD=yCONFIG_PINCTRL_MOOREFIELD=y
# end of Intel pinctrl drivers
#
# MediaTek pinctrl drivers
#CONFIG_EINT_MTK=yCONFIG_PINCTRL_MTK=yCONFIG_PINCTRL_MTK_V2=yCONFIG_PINCTRL_MTK_MOORE=yCONFIG_PINCTRL_MTK_PARIS=y
# CONFIG_PINCTRL_MT2701 is not setCONFIG_PINCTRL_MT7623=yCONFIG_PINCTRL_MT7629=y
# CONFIG_PINCTRL_MT8135 is not set
# CONFIG_PINCTRL_MT8127 is not set
# CONFIG_PINCTRL_MT2712 is not setCONFIG_PINCTRL_MT6765=yCONFIG_PINCTRL_MT6779=y
# CONFIG_PINCTRL_MT6795 is not set
# CONFIG_PINCTRL_MT6797 is not setCONFIG_PINCTRL_MT7622=y
# CONFIG_PINCTRL_MT7981 is not setCONFIG_PINCTRL_MT7986=yCONFIG_PINCTRL_MT8167=yCONFIG_PINCTRL_MT8173=y
# CONFIG_PINCTRL_MT8183 is not setCONFIG_PINCTRL_MT8186=yCONFIG_PINCTRL_MT8188=y
# CONFIG_PINCTRL_MT8192 is not setCONFIG_PINCTRL_MT8195=y
# CONFIG_PINCTRL_MT8365 is not setCONFIG_PINCTRL_MT8516=y
# CONFIG_PINCTRL_MT6397 is not set
# end of MediaTek pinctrl drivers
CONFIG_PINCTRL_MESON=y
# CONFIG_PINCTRL_NOMADIK is not setCONFIG_PINCTRL_WPCM450=yCONFIG_PINCTRL_NPCM7XX=yCONFIG_PINCTRL_NPCM8XX=yCONFIG_PINCTRL_PXA=y
# CONFIG_PINCTRL_PXA25X is not setCONFIG_PINCTRL_PXA27X=y
# CONFIG_PINCTRL_MSM is not setCONFIG_PINCTRL_QCOM_SPMI_PMIC=yCONFIG_PINCTRL_QCOM_SSBI_PMIC=yCONFIG_PINCTRL_LPASS_LPI=yCONFIG_PINCTRL_SC7280_LPASS_LPI=y
# CONFIG_PINCTRL_SM6115_LPASS_LPI is not setCONFIG_PINCTRL_SM8250_LPASS_LPI=yCONFIG_PINCTRL_SM8350_LPASS_LPI=yCONFIG_PINCTRL_SM8450_LPASS_LPI=y
# CONFIG_PINCTRL_SC8280XP_LPASS_LPI is not set
# CONFIG_PINCTRL_SM8550_LPASS_LPI is not set
# CONFIG_PINCTRL_SM8650_LPASS_LPI is not set
#
# Renesas pinctrl drivers
#
# CONFIG_PINCTRL_RENESAS is not setCONFIG_PINCTRL_SH_PFC=yCONFIG_PINCTRL_SH_PFC_GPIO=yCONFIG_PINCTRL_SH_FUNC_GPIO=y
# CONFIG_PINCTRL_PFC_EMEV2 is not setCONFIG_PINCTRL_PFC_R8A77995=yCONFIG_PINCTRL_PFC_R8A7794=yCONFIG_PINCTRL_PFC_R8A77990=yCONFIG_PINCTRL_PFC_R8A7779=yCONFIG_PINCTRL_PFC_R8A7790=y
# CONFIG_PINCTRL_PFC_R8A77951 is not set
# CONFIG_PINCTRL_PFC_R8A7778 is not setCONFIG_PINCTRL_PFC_R8A7793=y
# CONFIG_PINCTRL_PFC_R8A7791 is not set
# CONFIG_PINCTRL_PFC_R8A77965 is not setCONFIG_PINCTRL_PFC_R8A77960=y
# CONFIG_PINCTRL_PFC_R8A77961 is not set
# CONFIG_PINCTRL_PFC_R8A779F0 is not set
# CONFIG_PINCTRL_PFC_R8A7792 is not setCONFIG_PINCTRL_PFC_R8A77980=y
# CONFIG_PINCTRL_PFC_R8A77970 is not set
# CONFIG_PINCTRL_PFC_R8A779A0 is not set
# CONFIG_PINCTRL_PFC_R8A779G0 is not setCONFIG_PINCTRL_PFC_R8A779H0=y
# CONFIG_PINCTRL_PFC_R8A7740 is not set
# CONFIG_PINCTRL_PFC_R8A73A4 is not setCONFIG_PINCTRL_RZA1=y
# CONFIG_PINCTRL_RZA2 is not set
# CONFIG_PINCTRL_RZG2L is not set
# CONFIG_PINCTRL_PFC_R8A77470 is not setCONFIG_PINCTRL_PFC_R8A7745=y
# CONFIG_PINCTRL_PFC_R8A7742 is not set
# CONFIG_PINCTRL_PFC_R8A7743 is not set
# CONFIG_PINCTRL_PFC_R8A7744 is not set
# CONFIG_PINCTRL_PFC_R8A774C0 is not setCONFIG_PINCTRL_PFC_R8A774E1=y
# CONFIG_PINCTRL_PFC_R8A774A1 is not set
# CONFIG_PINCTRL_PFC_R8A774B1 is not set
# CONFIG_PINCTRL_RZN1 is not setCONFIG_PINCTRL_RZV2M=y
# CONFIG_PINCTRL_PFC_SH7203 is not set
# CONFIG_PINCTRL_PFC_SH7264 is not setCONFIG_PINCTRL_PFC_SH7269=yCONFIG_PINCTRL_PFC_SH7720=y
# CONFIG_PINCTRL_PFC_SH7722 is not set
# CONFIG_PINCTRL_PFC_SH7734 is not setCONFIG_PINCTRL_PFC_SH7757=yCONFIG_PINCTRL_PFC_SH7785=y
# CONFIG_PINCTRL_PFC_SH7786 is not set
# CONFIG_PINCTRL_PFC_SH73A0 is not set
# CONFIG_PINCTRL_PFC_SH7723 is not setCONFIG_PINCTRL_PFC_SH7724=yCONFIG_PINCTRL_PFC_SHX3=y
# end of Renesas pinctrl drivers
CONFIG_PINCTRL_SAMSUNG=y
# CONFIG_PINCTRL_EXYNOS is not setCONFIG_PINCTRL_S3C64XX=yCONFIG_PINCTRL_SPRD=yCONFIG_PINCTRL_SPRD_SC9860=y
# CONFIG_PINCTRL_STARFIVE_JH7100 is not setCONFIG_PINCTRL_STARFIVE_JH7110=yCONFIG_PINCTRL_STARFIVE_JH7110_SYS=y
# CONFIG_PINCTRL_STARFIVE_JH7110_AON is not setCONFIG_PINCTRL_STM32=y
# CONFIG_PINCTRL_STM32F429 is not setCONFIG_PINCTRL_STM32F469=yCONFIG_PINCTRL_STM32F746=y
# CONFIG_PINCTRL_STM32F769 is not setCONFIG_PINCTRL_STM32H743=yCONFIG_PINCTRL_STM32MP135=y
# CONFIG_PINCTRL_STM32MP157 is not setCONFIG_PINCTRL_STM32MP257=yCONFIG_PINCTRL_TI_IODELAY=yCONFIG_PINCTRL_UNIPHIER=y
# CONFIG_PINCTRL_UNIPHIER_LD4 is not set
# CONFIG_PINCTRL_UNIPHIER_PRO4 is not set
# CONFIG_PINCTRL_UNIPHIER_SLD8 is not setCONFIG_PINCTRL_UNIPHIER_PRO5=yCONFIG_PINCTRL_UNIPHIER_PXS2=yCONFIG_PINCTRL_UNIPHIER_LD6B=y
# CONFIG_PINCTRL_UNIPHIER_LD11 is not set
# CONFIG_PINCTRL_UNIPHIER_LD20 is not setCONFIG_PINCTRL_UNIPHIER_PXS3=y
# CONFIG_PINCTRL_UNIPHIER_NX1 is not setCONFIG_PINCTRL_VISCONTI=yCONFIG_PINCTRL_TMPV7700=yCONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_OF_GPIO=yCONFIG_GPIO_ACPI=yCONFIG_GPIOLIB_IRQCHIP=yCONFIG_OF_GPIO_MM_GPIOCHIP=yCONFIG_DEBUG_GPIO=yCONFIG_GPIO_CDEV=y
# CONFIG_GPIO_CDEV_V1 is not setCONFIG_GPIO_GENERIC=yCONFIG_GPIO_REGMAP=yCONFIG_GPIO_SWNODE_UNDEFINED=yCONFIG_GPIO_MAX730X=yCONFIG_GPIO_IDIO_16=y
#
# Memory mapped GPIO drivers
#CONFIG_GPIO_74XX_MMIO=yCONFIG_GPIO_ALTERA=yCONFIG_GPIO_AMDPT=y
# CONFIG_GPIO_ASPEED is not set
# CONFIG_GPIO_ASPEED_SGPIO is not set
# CONFIG_GPIO_ATH79 is not setCONFIG_GPIO_RASPBERRYPI_EXP=y
# CONFIG_GPIO_BCM_KONA is not setCONFIG_GPIO_BCM_XGS_IPROC=yCONFIG_GPIO_BRCMSTB=yCONFIG_GPIO_CADENCE=yCONFIG_GPIO_CLPS711X=yCONFIG_GPIO_DWAPB=yCONFIG_GPIO_EIC_SPRD=yCONFIG_GPIO_EM=y
# CONFIG_GPIO_GE_FPGA is not setCONFIG_GPIO_FTGPIO010=y
# CONFIG_GPIO_GENERIC_PLATFORM is not set
# CONFIG_GPIO_GRANITERAPIDS is not setCONFIG_GPIO_GRGPIO=yCONFIG_GPIO_HISI=yCONFIG_GPIO_HLWD=yCONFIG_GPIO_ICH=y
# CONFIG_GPIO_LOGICVC is not setCONFIG_GPIO_LOONGSON_64BIT=yCONFIG_GPIO_LPC18XX=y
# CONFIG_GPIO_LPC32XX is not setCONFIG_GPIO_MB86S7X=yCONFIG_GPIO_MPC8XXX=y
# CONFIG_GPIO_MT7621 is not setCONFIG_GPIO_MXC=y
# CONFIG_GPIO_MXS is not setCONFIG_GPIO_NOMADIK=y
# CONFIG_GPIO_NPCM_SGPIO is not setCONFIG_GPIO_PXA=y
# CONFIG_GPIO_RCAR is not setCONFIG_GPIO_RDA=y
# CONFIG_GPIO_ROCKCHIP is not set
# CONFIG_GPIO_SAMA5D2_PIOBU is not setCONFIG_GPIO_SIFIVE=yCONFIG_GPIO_SIOX=yCONFIG_GPIO_SNPS_CREG=yCONFIG_GPIO_SPRD=y
# CONFIG_GPIO_STP_XWAY is not setCONFIG_GPIO_SYSCON=yCONFIG_GPIO_TANGIER=yCONFIG_GPIO_TEGRA=y
# CONFIG_GPIO_TEGRA186 is not setCONFIG_GPIO_TS4800=yCONFIG_GPIO_THUNDERX=yCONFIG_GPIO_UNIPHIER=y
# CONFIG_GPIO_VF610 is not setCONFIG_GPIO_VISCONTI=y
# CONFIG_GPIO_XGENE_SB is not setCONFIG_GPIO_XILINX=yCONFIG_GPIO_XLP=yCONFIG_GPIO_AMD_FCH=yCONFIG_GPIO_IDT3243X=y
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#CONFIG_GPIO_VX855=yCONFIG_GPIO_F7188X=yCONFIG_GPIO_IT87=yCONFIG_GPIO_SCH=y
# CONFIG_GPIO_SCH311X is not setCONFIG_GPIO_TS5500=yCONFIG_GPIO_WINBOND=yCONFIG_GPIO_WS16C48=y
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#CONFIG_GPIO_ADNP=yCONFIG_GPIO_FXL6408=y
# CONFIG_GPIO_DS4520 is not setCONFIG_GPIO_GW_PLD=yCONFIG_GPIO_MAX7300=yCONFIG_GPIO_MAX732X=y
# CONFIG_GPIO_MAX732X_IRQ is not setCONFIG_GPIO_PCA953X=y
# CONFIG_GPIO_PCA953X_IRQ is not set
# CONFIG_GPIO_PCA9570 is not setCONFIG_GPIO_PCF857X=yCONFIG_GPIO_TPIC2810=yCONFIG_GPIO_TS4900=y
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#
# CONFIG_GPIO_ADP5520 is not set
# CONFIG_GPIO_ARIZONA is not setCONFIG_GPIO_BD71815=yCONFIG_GPIO_BD71828=y
# CONFIG_GPIO_CRYSTAL_COVE is not setCONFIG_GPIO_CS5535=yCONFIG_GPIO_DA9052=y
# CONFIG_GPIO_DA9055 is not setCONFIG_GPIO_ELKHARTLAKE=yCONFIG_GPIO_KEMPLD=yCONFIG_GPIO_LP3943=yCONFIG_GPIO_LP873X=y
# CONFIG_GPIO_PMIC_EIC_SPRD is not set
# CONFIG_GPIO_RC5T583 is not set
# CONFIG_GPIO_SL28CPLD is not setCONFIG_GPIO_TC3589X=y
# CONFIG_GPIO_TIMBERDALE is not setCONFIG_GPIO_TPS65086=y
# CONFIG_GPIO_TPS65219 is not set
# CONFIG_GPIO_TPS6586X is not set
# CONFIG_GPIO_TPS65910 is not set
# CONFIG_GPIO_TPS65912 is not setCONFIG_GPIO_TQMX86=y
# CONFIG_GPIO_WM831X is not set
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#CONFIG_GPIO_AMD8111=yCONFIG_GPIO_BT8XX=yCONFIG_GPIO_MLXBF=yCONFIG_GPIO_MLXBF2=yCONFIG_GPIO_MLXBF3=yCONFIG_GPIO_ML_IOH=yCONFIG_GPIO_PCH=yCONFIG_GPIO_PCI_IDIO_16=yCONFIG_GPIO_PCIE_IDIO_24=yCONFIG_GPIO_RDC321X=yCONFIG_GPIO_SODAVILLE=y
# end of PCI GPIO expanders
#
# SPI GPIO expanders
#
# CONFIG_GPIO_74X164 is not set
# CONFIG_GPIO_MAX3191X is not set
# CONFIG_GPIO_MAX7301 is not setCONFIG_GPIO_MC33880=yCONFIG_GPIO_PISOSR=y
# CONFIG_GPIO_XRA1403 is not setCONFIG_GPIO_MOXTET=y
# end of SPI GPIO expanders
#
# Virtual GPIO drivers
#CONFIG_GPIO_AGGREGATOR=yCONFIG_GPIO_LATCH=yCONFIG_GPIO_MOCKUP=y
# CONFIG_GPIO_VIRTIO is not setCONFIG_GPIO_SIM=y
# end of Virtual GPIO drivers
CONFIG_W1=y
#
# 1-wire Bus Masters
#
# CONFIG_W1_MASTER_AMD_AXI is not set
# CONFIG_W1_MASTER_MATROX is not setCONFIG_W1_MASTER_DS2482=yCONFIG_W1_MASTER_MXC=yCONFIG_W1_MASTER_GPIO=yCONFIG_HDQ_MASTER_OMAP=yCONFIG_W1_MASTER_SGI=yCONFIG_W1_MASTER_UART=y
# end of 1-wire Bus Masters
#
# 1-wire Slaves
#
# CONFIG_W1_SLAVE_THERM is not setCONFIG_W1_SLAVE_SMEM=yCONFIG_W1_SLAVE_DS2405=yCONFIG_W1_SLAVE_DS2408=yCONFIG_W1_SLAVE_DS2408_READBACK=yCONFIG_W1_SLAVE_DS2413=yCONFIG_W1_SLAVE_DS2406=y
# CONFIG_W1_SLAVE_DS2423 is not setCONFIG_W1_SLAVE_DS2805=yCONFIG_W1_SLAVE_DS2430=yCONFIG_W1_SLAVE_DS2431=y
# CONFIG_W1_SLAVE_DS2433 is not set
# CONFIG_W1_SLAVE_DS2438 is not setCONFIG_W1_SLAVE_DS250X=yCONFIG_W1_SLAVE_DS2780=y
# CONFIG_W1_SLAVE_DS2781 is not setCONFIG_W1_SLAVE_DS28E04=yCONFIG_W1_SLAVE_DS28E17=y
# end of 1-wire Slaves
CONFIG_POWER_RESET=y CONFIG_POWER_RESET_ATC260X=y CONFIG_POWER_RESET_BRCMKONA=y CONFIG_POWER_RESET_BRCMSTB=y
# CONFIG_POWER_RESET_GEMINI_POWEROFF is not set # CONFIG_POWER_RESET_GPIO is not set CONFIG_POWER_RESET_GPIO_RESTART=y CONFIG_POWER_RESET_LINKSTATION=y CONFIG_POWER_RESET_OCELOT_RESET=y
# CONFIG_POWER_RESET_ODROID_GO_ULTRA_POWEROFF is not set CONFIG_POWER_RESET_PIIX4_POWEROFF=y CONFIG_POWER_RESET_LTC2952=y
# CONFIG_POWER_RESET_MT6323 is not set CONFIG_POWER_RESET_REGULATOR=y
# CONFIG_POWER_RESET_RESTART is not set
# CONFIG_POWER_RESET_TPS65086 is not set
# CONFIG_POWER_RESET_KEYSTONE is not set CONFIG_POWER_RESET_SYSCON=y
# CONFIG_POWER_RESET_SYSCON_POWEROFF is not set # CONFIG_POWER_RESET_RMOBILE is not set CONFIG_REBOOT_MODE=y CONFIG_SYSCON_REBOOT_MODE=y CONFIG_POWER_RESET_SC27XX=y CONFIG_NVMEM_REBOOT_MODE=yCONFIG_POWER_MLXBF=yCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
# CONFIG_POWER_SUPPLY_HWMON is not set
# CONFIG_GENERIC_ADC_BATTERY is not set
# CONFIG_IP5XXX_POWER is not set
# CONFIG_MAX8925_POWER is not set CONFIG_WM831X_BACKUP=yCONFIG_WM831X_POWER=yCONFIG_TEST_POWER=yCONFIG_BATTERY_88PM860X=y CONFIG_CHARGER_ADP5061=y CONFIG_BATTERY_ACT8945A=y CONFIG_BATTERY_CPCAP=yCONFIG_BATTERY_CW2015=y
# CONFIG_BATTERY_DS2760 is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set CONFIG_BATTERY_DS2782=y CONFIG_BATTERY_LEGO_EV3=y
# CONFIG_BATTERY_SAMSUNG_SDI is not set CONFIG_BATTERY_SBS=yCONFIG_CHARGER_SBS=y
# CONFIG_BATTERY_BQ27XXX is not set CONFIG_BATTERY_DA9030=yCONFIG_BATTERY_DA9052=yCONFIG_CHARGER_DA9150=yCONFIG_BATTERY_DA9150=y CONFIG_BATTERY_MAX17040=y CONFIG_BATTERY_MAX17042=y CONFIG_BATTERY_MAX1721X=y CONFIG_CHARGER_88PM860X=y CONFIG_CHARGER_PCF50633=y
# CONFIG_CHARGER_CPCAP is not set
# CONFIG_CHARGER_MAX8903 is not set CONFIG_CHARGER_LP8727=yCONFIG_CHARGER_GPIO=y
# CONFIG_CHARGER_MANAGER is not set CONFIG_CHARGER_LT3651=y
# CONFIG_CHARGER_LTC4162L is not set CONFIG_CHARGER_MAX14577=y
# CONFIG_CHARGER_DETECTOR_MAX14656 is not set CONFIG_CHARGER_MAX77693=y
# CONFIG_CHARGER_MAX77976 is not set CONFIG_CHARGER_MT6360=yCONFIG_CHARGER_MT6370=y CONFIG_BATTERY_PM8916_BMS_VM=y
# CONFIG_CHARGER_PM8916_LBC is not set CONFIG_CHARGER_BQ2415X=y CONFIG_CHARGER_BQ24257=y CONFIG_CHARGER_BQ24735=y CONFIG_CHARGER_BQ2515X=y CONFIG_CHARGER_BQ25890=y CONFIG_CHARGER_BQ25980=y CONFIG_CHARGER_BQ256XX=yCONFIG_CHARGER_RK817=yCONFIG_CHARGER_SMB347=y CONFIG_CHARGER_TPS65217=y CONFIG_BATTERY_GAUGE_LTC2941=y CONFIG_BATTERY_GOLDFISH=y CONFIG_BATTERY_RT5033=yCONFIG_CHARGER_RT9455=yCONFIG_CHARGER_RT9467=yCONFIG_CHARGER_RT9471=y
# CONFIG_CHARGER_SC2731 is not set CONFIG_FUEL_GAUGE_SC27XX=y
# CONFIG_CHARGER_UCS1002 is not set CONFIG_CHARGER_BD99954=y
# CONFIG_BATTERY_ACER_A500 is not set CONFIG_BATTERY_UG3105=y CONFIG_CHARGER_QCOM_SMB2=y
# CONFIG_FUEL_GAUGE_MM8013 is not set CONFIG_HWMON=yCONFIG_HWMON_VID=yCONFIG_HWMON_DEBUG_CHIP=y
#
# Native drivers
#CONFIG_SENSORS_ABITUGURU=y
# CONFIG_SENSORS_ABITUGURU3 is not setCONFIG_SENSORS_SMPRO=yCONFIG_SENSORS_AD7314=yCONFIG_SENSORS_AD7414=yCONFIG_SENSORS_AD7418=yCONFIG_SENSORS_ADM1025=yCONFIG_SENSORS_ADM1026=yCONFIG_SENSORS_ADM1029=yCONFIG_SENSORS_ADM1031=yCONFIG_SENSORS_ADM1177=yCONFIG_SENSORS_ADM9240=yCONFIG_SENSORS_ADT7X10=yCONFIG_SENSORS_ADT7310=yCONFIG_SENSORS_ADT7410=yCONFIG_SENSORS_ADT7411=yCONFIG_SENSORS_ADT7462=yCONFIG_SENSORS_ADT7470=yCONFIG_SENSORS_ADT7475=yCONFIG_SENSORS_AHT10=y
# CONFIG_SENSORS_AS370 is not setCONFIG_SENSORS_ASC7621=yCONFIG_SENSORS_AXI_FAN_CONTROL=y
# CONFIG_SENSORS_K8TEMP is not setCONFIG_SENSORS_K10TEMP=yCONFIG_SENSORS_FAM15H_POWER=yCONFIG_SENSORS_APPLESMC=yCONFIG_SENSORS_ARM_SCMI=y
# CONFIG_SENSORS_ASB100 is not setCONFIG_SENSORS_ASPEED=y
# CONFIG_SENSORS_ATXP1 is not set
# CONFIG_SENSORS_BT1_PVT is not setCONFIG_SENSORS_CHIPCAP2=yCONFIG_SENSORS_DS620=yCONFIG_SENSORS_DS1621=y
# CONFIG_SENSORS_DA9052_ADC is not setCONFIG_SENSORS_DA9055=yCONFIG_SENSORS_I5K_AMB=yCONFIG_SENSORS_SPARX5=yCONFIG_SENSORS_F71805F=yCONFIG_SENSORS_F71882FG=yCONFIG_SENSORS_F75375S=y
# CONFIG_SENSORS_FSCHMD is not setCONFIG_SENSORS_GL518SM=yCONFIG_SENSORS_GL520SM=yCONFIG_SENSORS_G760A=y
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_GPIO_FAN is not setCONFIG_SENSORS_GXP_FAN_CTRL=y
# CONFIG_SENSORS_HIH6130 is not setCONFIG_SENSORS_HS3001=y
# CONFIG_SENSORS_IBMAEM is not setCONFIG_SENSORS_IBMPEX=yCONFIG_SENSORS_IIO_HWMON=yCONFIG_SENSORS_I5500=yCONFIG_SENSORS_CORETEMP=y
# CONFIG_SENSORS_IT87 is not setCONFIG_SENSORS_JC42=yCONFIG_SENSORS_POWR1220=y
# CONFIG_SENSORS_LAN966X is not setCONFIG_SENSORS_LENOVO_EC=yCONFIG_SENSORS_LINEAGE=yCONFIG_SENSORS_LOCHNAGAR=y
# CONFIG_SENSORS_LTC2945 is not setCONFIG_SENSORS_LTC2947=yCONFIG_SENSORS_LTC2947_I2C=yCONFIG_SENSORS_LTC2947_SPI=yCONFIG_SENSORS_LTC2990=y
# CONFIG_SENSORS_LTC2991 is not setCONFIG_SENSORS_LTC2992=yCONFIG_SENSORS_LTC4151=yCONFIG_SENSORS_LTC4215=yCONFIG_SENSORS_LTC4222=yCONFIG_SENSORS_LTC4245=yCONFIG_SENSORS_LTC4260=y
# CONFIG_SENSORS_LTC4261 is not set
# CONFIG_SENSORS_LTC4282 is not set
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX127 is not set
# CONFIG_SENSORS_MAX16065 is not set
# CONFIG_SENSORS_MAX1619 is not setCONFIG_SENSORS_MAX1668=yCONFIG_SENSORS_MAX197=yCONFIG_SENSORS_MAX31722=yCONFIG_SENSORS_MAX31730=yCONFIG_SENSORS_MAX31760=y
# CONFIG_MAX31827 is not setCONFIG_SENSORS_MAX6620=yCONFIG_SENSORS_MAX6621=yCONFIG_SENSORS_MAX6639=yCONFIG_SENSORS_MAX6650=yCONFIG_SENSORS_MAX6697=y
# CONFIG_SENSORS_MAX31790 is not setCONFIG_SENSORS_MC34VR500=yCONFIG_SENSORS_MCP3021=yCONFIG_SENSORS_MLXREG_FAN=yCONFIG_SENSORS_TC654=yCONFIG_SENSORS_TPS23861=yCONFIG_SENSORS_MENF21BMC_HWMON=y
# CONFIG_SENSORS_MR75203 is not setCONFIG_SENSORS_ADCXX=yCONFIG_SENSORS_LM63=y
# CONFIG_SENSORS_LM70 is not set
# CONFIG_SENSORS_LM73 is not set
# CONFIG_SENSORS_LM75 is not set
# CONFIG_SENSORS_LM77 is not set
# CONFIG_SENSORS_LM78 is not set
# CONFIG_SENSORS_LM80 is not setCONFIG_SENSORS_LM83=yCONFIG_SENSORS_LM85=y
# CONFIG_SENSORS_LM87 is not setCONFIG_SENSORS_LM90=yCONFIG_SENSORS_LM92=yCONFIG_SENSORS_LM93=yCONFIG_SENSORS_LM95234=yCONFIG_SENSORS_LM95241=yCONFIG_SENSORS_LM95245=y
# CONFIG_SENSORS_PC87360 is not setCONFIG_SENSORS_PC87427=yCONFIG_SENSORS_NTC_THERMISTOR=yCONFIG_SENSORS_NCT6683=yCONFIG_SENSORS_NCT6775_CORE=yCONFIG_SENSORS_NCT6775=yCONFIG_SENSORS_NCT6775_I2C=yCONFIG_SENSORS_NCT7802=y
# CONFIG_SENSORS_NPCM7XX is not setCONFIG_SENSORS_NSA320=yCONFIG_SENSORS_OCC_P8_I2C=yCONFIG_SENSORS_OCC=yCONFIG_SENSORS_OXP=yCONFIG_SENSORS_PCF8591=yCONFIG_SENSORS_PECI_CPUTEMP=y
# CONFIG_SENSORS_PECI_DIMMTEMP is not setCONFIG_SENSORS_PECI=y
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_PT5161L is not setCONFIG_SENSORS_PWM_FAN=y
# CONFIG_SENSORS_RASPBERRYPI_HWMON is not setCONFIG_SENSORS_SL28CPLD=yCONFIG_SENSORS_SBTSI=y
# CONFIG_SENSORS_SBRMI is not setCONFIG_SENSORS_SHT15=yCONFIG_SENSORS_SHT21=y
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHT4x is not setCONFIG_SENSORS_SHTC1=yCONFIG_SENSORS_SIS5595=yCONFIG_SENSORS_DME1737=yCONFIG_SENSORS_EMC1403=yCONFIG_SENSORS_EMC2103=yCONFIG_SENSORS_EMC2305=yCONFIG_SENSORS_EMC6W201=y
# CONFIG_SENSORS_SMSC47M1 is not setCONFIG_SENSORS_SMSC47M192=yCONFIG_SENSORS_SMSC47B397=yCONFIG_SENSORS_STTS751=y
# CONFIG_SENSORS_SFCTEMP is not setCONFIG_SENSORS_ADC128D818=yCONFIG_SENSORS_ADS7828=yCONFIG_SENSORS_ADS7871=yCONFIG_SENSORS_AMC6821=yCONFIG_SENSORS_INA209=y
# CONFIG_SENSORS_INA2XX is not setCONFIG_SENSORS_INA238=y
# CONFIG_SENSORS_INA3221 is not setCONFIG_SENSORS_TC74=y
# CONFIG_SENSORS_THMC50 is not setCONFIG_SENSORS_TMP102=yCONFIG_SENSORS_TMP103=yCONFIG_SENSORS_TMP108=yCONFIG_SENSORS_TMP401=yCONFIG_SENSORS_TMP421=yCONFIG_SENSORS_TMP464=yCONFIG_SENSORS_TMP513=yCONFIG_SENSORS_VIA_CPUTEMP=yCONFIG_SENSORS_VIA686A=y
# CONFIG_SENSORS_VT1211 is not set
# CONFIG_SENSORS_VT8231 is not set
# CONFIG_SENSORS_W83773G is not setCONFIG_SENSORS_W83781D=y
# CONFIG_SENSORS_W83791D is not setCONFIG_SENSORS_W83792D=y
# CONFIG_SENSORS_W83793 is not setCONFIG_SENSORS_W83795=yCONFIG_SENSORS_W83795_FANCTRL=yCONFIG_SENSORS_W83L785TS=yCONFIG_SENSORS_W83L786NG=yCONFIG_SENSORS_W83627HF=yCONFIG_SENSORS_W83627EHF=yCONFIG_SENSORS_WM831X=yCONFIG_SENSORS_XGENE=y
# CONFIG_SENSORS_INTEL_M10_BMC_HWMON is not set
#
# ACPI drivers
#
# CONFIG_SENSORS_ACPI_POWER is not set CONFIG_SENSORS_ATK0110=y CONFIG_SENSORS_ASUS_EC=yCONFIG_THERMAL=yCONFIG_THERMAL_NETLINK=y
# CONFIG_THERMAL_STATISTICS is not set CONFIG_THERMAL_DEBUGFS=y CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 # CONFIG_THERMAL_HWMON is not set CONFIG_THERMAL_OF=y CONFIG_THERMAL_DEFAULT_GOV_STEP_WISE=y
# CONFIG_THERMAL_DEFAULT_GOV_FAIR_SHARE is not set # CONFIG_THERMAL_DEFAULT_GOV_USER_SPACE is not set # CONFIG_THERMAL_DEFAULT_GOV_BANG_BANG is not set # CONFIG_THERMAL_GOV_FAIR_SHARE is not set CONFIG_THERMAL_GOV_STEP_WISE=y CONFIG_THERMAL_GOV_BANG_BANG=y CONFIG_THERMAL_GOV_USER_SPACE=y CONFIG_CPU_THERMAL=y CONFIG_CPU_FREQ_THERMAL=y
# CONFIG_DEVFREQ_THERMAL is not set
# CONFIG_THERMAL_EMULATION is not set CONFIG_THERMAL_MMIO=y
# CONFIG_HISI_THERMAL is not set CONFIG_IMX_THERMAL=y
# CONFIG_IMX8MM_THERMAL is not set CONFIG_K3_THERMAL=yCONFIG_QORIQ_THERMAL=y
# CONFIG_SPEAR_THERMAL is not set
# CONFIG_SUN8I_THERMAL is not set
# CONFIG_ROCKCHIP_THERMAL is not set CONFIG_RCAR_THERMAL=y
# CONFIG_RCAR_GEN3_THERMAL is not set CONFIG_RZG2L_THERMAL=y
# CONFIG_KIRKWOOD_THERMAL is not set CONFIG_DOVE_THERMAL=y
# CONFIG_ARMADA_THERMAL is not set CONFIG_DA9062_THERMAL=y
#
# Mediatek thermal drivers
#CONFIG_MTK_THERMAL=y
# CONFIG_MTK_SOC_THERMAL is not setCONFIG_MTK_LVTS_THERMAL=y
# CONFIG_MTK_LVTS_THERMAL_DEBUGFS is not set
# end of Mediatek thermal drivers
#
# Intel thermal drivers
#
# CONFIG_INTEL_POWERCLAMP is not setCONFIG_X86_THERMAL_VECTOR=yCONFIG_INTEL_TCC=y
# CONFIG_X86_PKG_TEMP_THERMAL is not setCONFIG_INTEL_SOC_DTS_IOSF_CORE=y
# CONFIG_INTEL_SOC_DTS_THERMAL is not set
#
# ACPI INT340X thermal drivers
#CONFIG_INT340X_THERMAL=yCONFIG_ACPI_THERMAL_REL=y
# end of ACPI INT340X thermal drivers
CONFIG_INTEL_PCH_THERMAL=y
# CONFIG_INTEL_TCC_COOLING is not setCONFIG_INTEL_HFI_THERMAL=y
# end of Intel thermal drivers
#
# Broadcom thermal drivers
#CONFIG_BCM2711_THERMAL=yCONFIG_BCM2835_THERMAL=y
# CONFIG_BRCMSTB_THERMAL is not setCONFIG_BCM_NS_THERMAL=yCONFIG_BCM_SR_THERMAL=y
# end of Broadcom thermal drivers
#
# Texas Instruments thermal drivers
#CONFIG_TI_SOC_THERMAL=y
# CONFIG_TI_THERMAL is not set
# CONFIG_OMAP3_THERMAL is not setCONFIG_OMAP4_THERMAL=y
# CONFIG_OMAP5_THERMAL is not set
# CONFIG_DRA752_THERMAL is not set
# end of Texas Instruments thermal drivers
#
# Samsung thermal drivers
#CONFIG_EXYNOS_THERMAL=y
# end of Samsung thermal drivers
#
# NVIDIA Tegra thermal drivers
#
# CONFIG_TEGRA_SOCTHERM is not set
# CONFIG_TEGRA_BPMP_THERMAL is not setCONFIG_TEGRA30_TSENSOR=y
# end of NVIDIA Tegra thermal drivers
CONFIG_GENERIC_ADC_THERMAL=y
#
# Qualcomm thermal drivers
#CONFIG_QCOM_TSENS=yCONFIG_QCOM_SPMI_ADC_TM5=y
# CONFIG_QCOM_SPMI_TEMP_ALARM is not set
# end of Qualcomm thermal drivers
CONFIG_UNIPHIER_THERMAL=y
# CONFIG_SPRD_THERMAL is not setCONFIG_KHADAS_MCU_FAN_THERMAL=yCONFIG_LOONGSON2_THERMAL=y
# CONFIG_WATCHDOG is not setCONFIG_SSB_POSSIBLE=yCONFIG_SSB=yCONFIG_SSB_SPROM=yCONFIG_SSB_PCIHOST_POSSIBLE=y
# CONFIG_SSB_PCIHOST is not setCONFIG_SSB_HOST_SOC=y
# CONFIG_SSB_DRIVER_GPIO is not setCONFIG_BCMA_POSSIBLE=y
# CONFIG_BCMA is not set
#
# Multifunction device drivers
#CONFIG_MFD_CORE=yCONFIG_MFD_CS5535=y
# CONFIG_MFD_ACT8945A is not setCONFIG_MFD_SUN4I_GPADC=y
# CONFIG_MFD_AS3711 is not setCONFIG_MFD_SMPRO=y
# CONFIG_MFD_AS3722 is not setCONFIG_PMIC_ADP5520=yCONFIG_MFD_AAT2870_CORE=yCONFIG_MFD_AT91_USART=yCONFIG_MFD_ATMEL_FLEXCOM=yCONFIG_MFD_ATMEL_HLCDC=y
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_BD9571MWV is not set
# CONFIG_MFD_AXP20X_I2C is not setCONFIG_MFD_CS42L43=yCONFIG_MFD_CS42L43_I2C=yCONFIG_MFD_CS42L43_SDW=y
# CONFIG_MFD_MADERA is not set
# CONFIG_MFD_MAX5970 is not setCONFIG_PMIC_DA903X=yCONFIG_PMIC_DA9052=y
# CONFIG_MFD_DA9052_SPI is not setCONFIG_MFD_DA9052_I2C=yCONFIG_MFD_DA9055=yCONFIG_MFD_DA9062=yCONFIG_MFD_DA9063=yCONFIG_MFD_DA9150=y
# CONFIG_MFD_ENE_KB3930 is not set
# CONFIG_MFD_EXYNOS_LPASS is not set
# CONFIG_MFD_GATEWORKS_GSC is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_MC13XXX_I2C is not setCONFIG_MFD_MP2629=yCONFIG_MFD_MXS_LRADC=y
# CONFIG_MFD_MX25_TSADC is not set
# CONFIG_MFD_HI6421_PMIC is not setCONFIG_MFD_HI6421_SPMI=y
# CONFIG_MFD_HI655X_PMIC is not setCONFIG_MFD_INTEL_QUARK_I2C_GPIO=yCONFIG_LPC_ICH=yCONFIG_LPC_SCH=yCONFIG_INTEL_SOC_PMIC=yCONFIG_MFD_INTEL_LPSS=yCONFIG_MFD_INTEL_LPSS_ACPI=yCONFIG_MFD_INTEL_LPSS_PCI=yCONFIG_MFD_IQS62X=y
# CONFIG_MFD_JANZ_CMODIO is not setCONFIG_MFD_KEMPLD=y
# CONFIG_MFD_88PM800 is not setCONFIG_MFD_88PM805=yCONFIG_MFD_88PM860X=yCONFIG_MFD_MAX14577=y
# CONFIG_MFD_MAX77541 is not set
# CONFIG_MFD_MAX77620 is not set
# CONFIG_MFD_MAX77650 is not set
# CONFIG_MFD_MAX77686 is not setCONFIG_MFD_MAX77693=yCONFIG_MFD_MAX77714=y
# CONFIG_MFD_MAX77843 is not setCONFIG_MFD_MAX8907=yCONFIG_MFD_MAX8925=y
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not setCONFIG_MFD_MT6360=yCONFIG_MFD_MT6370=yCONFIG_MFD_MT6397=yCONFIG_MFD_MENF21BMC=yCONFIG_MFD_OCELOT=yCONFIG_EZX_PCAP=yCONFIG_MFD_CPCAP=y
# CONFIG_MFD_NTXEC is not setCONFIG_MFD_RETU=yCONFIG_MFD_PCF50633=yCONFIG_PCF50633_ADC=yCONFIG_PCF50633_GPIO=yCONFIG_MFD_PM8XXX=yCONFIG_MFD_SPMI_PMIC=y
# CONFIG_MFD_SY7636A is not setCONFIG_MFD_RDC321X=yCONFIG_MFD_RT4831=y
# CONFIG_MFD_RT5033 is not setCONFIG_MFD_RT5120=yCONFIG_MFD_RC5T583=yCONFIG_MFD_RK8XX=yCONFIG_MFD_RK8XX_I2C=yCONFIG_MFD_RK8XX_SPI=yCONFIG_MFD_RN5T618=yCONFIG_MFD_SEC_CORE=y
# CONFIG_MFD_SI476X_CORE is not setCONFIG_MFD_SIMPLE_MFD_I2C=yCONFIG_MFD_SL28CPLD=yCONFIG_MFD_SM501=yCONFIG_MFD_SM501_GPIO=y
# CONFIG_MFD_SKY81452 is not setCONFIG_MFD_SC27XX_PMIC=yCONFIG_RZ_MTU3=y
# CONFIG_ABX500_CORE is not set
# CONFIG_MFD_STMPE is not set
# CONFIG_MFD_SUN6I_PRCM is not setCONFIG_MFD_SYSCON=y
# CONFIG_MFD_TI_AM335X_TSCADC is not setCONFIG_MFD_LP3943=yCONFIG_MFD_LP8788=y
# CONFIG_MFD_TI_LMU is not set
# CONFIG_MFD_PALMAS is not setCONFIG_TPS6105X=yCONFIG_TPS65010=yCONFIG_TPS6507X=yCONFIG_MFD_TPS65086=y
# CONFIG_MFD_TPS65090 is not setCONFIG_MFD_TPS65217=yCONFIG_MFD_TI_LP873X=y
# CONFIG_MFD_TI_LP87565 is not set
# CONFIG_MFD_TPS65218 is not setCONFIG_MFD_TPS65219=yCONFIG_MFD_TPS6586X=yCONFIG_MFD_TPS65910=yCONFIG_MFD_TPS65912=yCONFIG_MFD_TPS65912_I2C=y
# CONFIG_MFD_TPS65912_SPI is not set
# CONFIG_MFD_TPS6594_I2C is not set
# CONFIG_MFD_TPS6594_SPI is not set
# CONFIG_TWL4030_CORE is not set
# CONFIG_TWL6040_CORE is not set
# CONFIG_MFD_WL1273_CORE is not set
# CONFIG_MFD_LM3533 is not setCONFIG_MFD_TIMBERDALE=yCONFIG_MFD_TC3589X=yCONFIG_MFD_TQMX86=yCONFIG_MFD_VX855=yCONFIG_MFD_LOCHNAGAR=yCONFIG_MFD_ARIZONA=yCONFIG_MFD_ARIZONA_I2C=yCONFIG_MFD_ARIZONA_SPI=yCONFIG_MFD_CS47L24=yCONFIG_MFD_WM5102=yCONFIG_MFD_WM5110=y
# CONFIG_MFD_WM8997 is not setCONFIG_MFD_WM8998=y
# CONFIG_MFD_WM8400 is not setCONFIG_MFD_WM831X=yCONFIG_MFD_WM831X_I2C=yCONFIG_MFD_WM831X_SPI=y
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not setCONFIG_MFD_STW481X=yCONFIG_MFD_ROHM_BD718XX=yCONFIG_MFD_ROHM_BD71828=y
# CONFIG_MFD_ROHM_BD957XMUF is not setCONFIG_MFD_STM32_LPTIMER=yCONFIG_MFD_STM32_TIMERS=y
# CONFIG_MFD_STPMIC1 is not setCONFIG_MFD_STMFX=yCONFIG_MFD_ATC260X=yCONFIG_MFD_ATC260X_I2C=yCONFIG_MFD_KHADAS_MCU=yCONFIG_MFD_ACER_A500_EC=y
# CONFIG_MFD_QCOM_PM8008 is not setCONFIG_RAVE_SP_CORE=yCONFIG_MFD_INTEL_M10_BMC_CORE=yCONFIG_MFD_INTEL_M10_BMC_SPI=y
# CONFIG_MFD_INTEL_M10_BMC_PMCI is not setCONFIG_MFD_RSMU_I2C=y
# CONFIG_MFD_RSMU_SPI is not set
# end of Multifunction device drivers
CONFIG_REGULATOR=y
# CONFIG_REGULATOR_DEBUG is not setCONFIG_REGULATOR_FIXED_VOLTAGE=y
# CONFIG_REGULATOR_VIRTUAL_CONSUMER is not setCONFIG_REGULATOR_USERSPACE_CONSUMER=y
# CONFIG_REGULATOR_NETLINK_EVENTS is not setCONFIG_REGULATOR_88PG86X=yCONFIG_REGULATOR_88PM8607=yCONFIG_REGULATOR_ACT8865=yCONFIG_REGULATOR_AD5398=yCONFIG_REGULATOR_ANATOP=y
# CONFIG_REGULATOR_AAT2870 is not set
# CONFIG_REGULATOR_ARM_SCMI is not setCONFIG_REGULATOR_ATC260X=y
# CONFIG_REGULATOR_AW37503 is not setCONFIG_REGULATOR_BD71815=y
# CONFIG_REGULATOR_BD71828 is not set
# CONFIG_REGULATOR_BD718XX is not setCONFIG_REGULATOR_CPCAP=yCONFIG_REGULATOR_DA9052=yCONFIG_REGULATOR_DA9055=y
# CONFIG_REGULATOR_DA9062 is not setCONFIG_REGULATOR_DA9063=y
# CONFIG_REGULATOR_DA9121 is not setCONFIG_REGULATOR_DA9210=y
# CONFIG_REGULATOR_DA9211 is not setCONFIG_REGULATOR_FAN53555=y
# CONFIG_REGULATOR_FAN53880 is not setCONFIG_REGULATOR_GPIO=yCONFIG_REGULATOR_HI6421V600=y
# CONFIG_REGULATOR_ISL9305 is not setCONFIG_REGULATOR_ISL6271A=y
# CONFIG_REGULATOR_LOCHNAGAR is not setCONFIG_REGULATOR_LP3971=yCONFIG_REGULATOR_LP3972=y
# CONFIG_REGULATOR_LP872X is not set
# CONFIG_REGULATOR_LP873X is not setCONFIG_REGULATOR_LP8755=y
# CONFIG_REGULATOR_LP8788 is not set
# CONFIG_REGULATOR_LTC3589 is not setCONFIG_REGULATOR_LTC3676=y
# CONFIG_REGULATOR_MAX14577 is not set
# CONFIG_REGULATOR_MAX1586 is not setCONFIG_REGULATOR_MAX77503=yCONFIG_REGULATOR_MAX77620=yCONFIG_REGULATOR_MAX77650=yCONFIG_REGULATOR_MAX77857=y
# CONFIG_REGULATOR_MAX8649 is not setCONFIG_REGULATOR_MAX8660=y
# CONFIG_REGULATOR_MAX8893 is not setCONFIG_REGULATOR_MAX8907=yCONFIG_REGULATOR_MAX8925=yCONFIG_REGULATOR_MAX8952=yCONFIG_REGULATOR_MAX8973=y
# CONFIG_REGULATOR_MAX20086 is not setCONFIG_REGULATOR_MAX20411=yCONFIG_REGULATOR_MAX77686=y
# CONFIG_REGULATOR_MAX77693 is not setCONFIG_REGULATOR_MAX77802=yCONFIG_REGULATOR_MAX77826=yCONFIG_REGULATOR_MCP16502=yCONFIG_REGULATOR_MP5416=yCONFIG_REGULATOR_MP8859=yCONFIG_REGULATOR_MP886X=yCONFIG_REGULATOR_MPQ7920=yCONFIG_REGULATOR_MT6311=y
# CONFIG_REGULATOR_MT6315 is not setCONFIG_REGULATOR_MT6323=yCONFIG_REGULATOR_MT6331=yCONFIG_REGULATOR_MT6332=y
# CONFIG_REGULATOR_MT6357 is not set
# CONFIG_REGULATOR_MT6358 is not set
# CONFIG_REGULATOR_MT6359 is not setCONFIG_REGULATOR_MT6360=yCONFIG_REGULATOR_MT6370=y
# CONFIG_REGULATOR_MT6397 is not set
# CONFIG_REGULATOR_PBIAS is not setCONFIG_REGULATOR_PCA9450=yCONFIG_REGULATOR_PCAP=yCONFIG_REGULATOR_PCF50633=yCONFIG_REGULATOR_PF8X00=y
# CONFIG_REGULATOR_PFUZE100 is not setCONFIG_REGULATOR_PV88060=yCONFIG_REGULATOR_PV88080=yCONFIG_REGULATOR_PV88090=yCONFIG_REGULATOR_QCOM_REFGEN=yCONFIG_REGULATOR_QCOM_RPMH=yCONFIG_REGULATOR_QCOM_SPMI=yCONFIG_REGULATOR_QCOM_USB_VBUS=yCONFIG_REGULATOR_RAA215300=yCONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY=y
# CONFIG_REGULATOR_RC5T583 is not setCONFIG_REGULATOR_RK808=yCONFIG_REGULATOR_RN5T618=yCONFIG_REGULATOR_ROHM=y
# CONFIG_REGULATOR_RT4801 is not setCONFIG_REGULATOR_RT4803=yCONFIG_REGULATOR_RT4831=yCONFIG_REGULATOR_RT5120=yCONFIG_REGULATOR_RT5190A=y
# CONFIG_REGULATOR_RT5739 is not setCONFIG_REGULATOR_RT5759=y
# CONFIG_REGULATOR_RT6160 is not set
# CONFIG_REGULATOR_RT6190 is not set
# CONFIG_REGULATOR_RT6245 is not setCONFIG_REGULATOR_RTQ2134=yCONFIG_REGULATOR_RTMV20=y
# CONFIG_REGULATOR_RTQ6752 is not set
# CONFIG_REGULATOR_RTQ2208 is not setCONFIG_REGULATOR_S2MPA01=yCONFIG_REGULATOR_S2MPS11=yCONFIG_REGULATOR_S5M8767=yCONFIG_REGULATOR_SC2731=yCONFIG_REGULATOR_SLG51000=yCONFIG_REGULATOR_STM32_BOOSTER=y
# CONFIG_REGULATOR_STM32_VREFBUF is not setCONFIG_REGULATOR_STM32_PWR=yCONFIG_REGULATOR_TI_ABB=y
# CONFIG_REGULATOR_STW481X_VMMC is not setCONFIG_REGULATOR_SUN20I=y
# CONFIG_REGULATOR_SY8106A is not set
# CONFIG_REGULATOR_SY8824X is not setCONFIG_REGULATOR_SY8827N=y
# CONFIG_REGULATOR_TPS51632 is not set
# CONFIG_REGULATOR_TPS6105X is not setCONFIG_REGULATOR_TPS62360=yCONFIG_REGULATOR_TPS6286X=yCONFIG_REGULATOR_TPS6287X=yCONFIG_REGULATOR_TPS65023=yCONFIG_REGULATOR_TPS6507X=yCONFIG_REGULATOR_TPS65086=y
# CONFIG_REGULATOR_TPS65132 is not setCONFIG_REGULATOR_TPS65217=yCONFIG_REGULATOR_TPS65219=yCONFIG_REGULATOR_TPS6524X=y
# CONFIG_REGULATOR_TPS6586X is not setCONFIG_REGULATOR_TPS65910=yCONFIG_REGULATOR_TPS65912=yCONFIG_REGULATOR_TPS68470=yCONFIG_REGULATOR_UNIPHIER=yCONFIG_REGULATOR_VCTRL=y
# CONFIG_REGULATOR_WM831X is not setCONFIG_REGULATOR_QCOM_LABIBB=y
# CONFIG_RC_CORE is not setCONFIG_CEC_CORE=yCONFIG_CEC_NOTIFIER=yCONFIG_CEC_PIN=y
#
# CEC support
#CONFIG_CEC_PIN_ERROR_INJ=yCONFIG_MEDIA_CEC_SUPPORT=y
# CONFIG_CEC_CH7322 is not setCONFIG_CEC_MESON_AO=yCONFIG_CEC_MESON_G12A_AO=yCONFIG_CEC_GPIO=y
# CONFIG_CEC_SAMSUNG_S5P is not setCONFIG_CEC_STI=yCONFIG_CEC_STM32=yCONFIG_CEC_TEGRA=yCONFIG_CEC_SECO=y
# end of CEC support
CONFIG_MEDIA_SUPPORT=y
# CONFIG_MEDIA_SUPPORT_FILTER is not set
# CONFIG_MEDIA_SUBDRV_AUTOSELECT is not set
#
# Media device types
#CONFIG_MEDIA_CAMERA_SUPPORT=yCONFIG_MEDIA_ANALOG_TV_SUPPORT=yCONFIG_MEDIA_DIGITAL_TV_SUPPORT=yCONFIG_MEDIA_RADIO_SUPPORT=yCONFIG_MEDIA_SDR_SUPPORT=yCONFIG_MEDIA_PLATFORM_SUPPORT=yCONFIG_MEDIA_TEST_SUPPORT=y
# end of Media device types
#
# Media core support
#
# CONFIG_VIDEO_DEV is not set
# CONFIG_MEDIA_CONTROLLER is not setCONFIG_DVB_CORE=y
# end of Media core support
#
# Digital TV options
#CONFIG_DVB_MAX_ADAPTERS=16CONFIG_DVB_DYNAMIC_MINORS=y
# CONFIG_DVB_DEMUX_SECTION_LOSS_LOG is not setCONFIG_DVB_ULE_DEBUG=y
# end of Digital TV options
#
# Media drivers
#
#
# Media drivers
#
# CONFIG_MEDIA_PCI_SUPPORT is not set
# CONFIG_MEDIA_PLATFORM_DRIVERS is not set
# CONFIG_DVB_TEST_DRIVERS is not set
#
# FireWire (IEEE 1394) Adapters
#CONFIG_DVB_FIREDTV=yCONFIG_DVB_FIREDTV_INPUT=y
# end of Media drivers
#
# Media ancillary drivers
#CONFIG_MEDIA_TUNER=y
#
# Customize TV tuners
#CONFIG_MEDIA_TUNER_FC0011=y
# CONFIG_MEDIA_TUNER_FC0012 is not set
# CONFIG_MEDIA_TUNER_FC0013 is not setCONFIG_MEDIA_TUNER_IT913X=yCONFIG_MEDIA_TUNER_M88RS6000T=yCONFIG_MEDIA_TUNER_MAX2165=yCONFIG_MEDIA_TUNER_MC44S803=yCONFIG_MEDIA_TUNER_MT2060=y
# CONFIG_MEDIA_TUNER_MT2063 is not set
# CONFIG_MEDIA_TUNER_MT20XX is not setCONFIG_MEDIA_TUNER_MT2131=yCONFIG_MEDIA_TUNER_MT2266=yCONFIG_MEDIA_TUNER_MXL301RF=yCONFIG_MEDIA_TUNER_MXL5005S=yCONFIG_MEDIA_TUNER_MXL5007T=yCONFIG_MEDIA_TUNER_QM1D1B0004=yCONFIG_MEDIA_TUNER_QM1D1C0042=y
# CONFIG_MEDIA_TUNER_QT1010 is not setCONFIG_MEDIA_TUNER_R820T=yCONFIG_MEDIA_TUNER_SI2157=yCONFIG_MEDIA_TUNER_SIMPLE=yCONFIG_MEDIA_TUNER_TDA18212=yCONFIG_MEDIA_TUNER_TDA18218=yCONFIG_MEDIA_TUNER_TDA18250=yCONFIG_MEDIA_TUNER_TDA18271=y
# CONFIG_MEDIA_TUNER_TDA827X is not set
# CONFIG_MEDIA_TUNER_TDA8290 is not setCONFIG_MEDIA_TUNER_TDA9887=yCONFIG_MEDIA_TUNER_TEA5761=yCONFIG_MEDIA_TUNER_TEA5767=y
# CONFIG_MEDIA_TUNER_TUA9001 is not setCONFIG_MEDIA_TUNER_XC2028=yCONFIG_MEDIA_TUNER_XC4000=y
# CONFIG_MEDIA_TUNER_XC5000 is not set
# end of Customize TV tuners
#
# Customise DVB Frontends
#
#
# Multistandard (satellite) frontends
#CONFIG_DVB_MXL5XX=y
# CONFIG_DVB_STB0899 is not set
# CONFIG_DVB_STB6100 is not set
# CONFIG_DVB_STV090x is not setCONFIG_DVB_STV0910=y
CONFIG_DVB_STV6110x=y
# CONFIG_DVB_STV6111 is not set
#
# Multistandard (cable + terrestrial) frontends
#CONFIG_DVB_DRXK=yCONFIG_DVB_MN88472=y
# CONFIG_DVB_MN88473 is not setCONFIG_DVB_SI2165=y
# CONFIG_DVB_TDA18271C2DD is not set
#
# DVB-S (satellite) frontends
#
# CONFIG_DVB_CX24110 is not set
# CONFIG_DVB_CX24116 is not set
# CONFIG_DVB_CX24117 is not setCONFIG_DVB_CX24120=yCONFIG_DVB_CX24123=y
# CONFIG_DVB_DS3000 is not setCONFIG_DVB_MB86A16=yCONFIG_DVB_MT312=y
# CONFIG_DVB_S5H1420 is not set
# CONFIG_DVB_SI21XX is not setCONFIG_DVB_STB6000=y
# CONFIG_DVB_STV0288 is not set
# CONFIG_DVB_STV0299 is not setCONFIG_DVB_STV0900=y
# CONFIG_DVB_STV6110 is not set
# CONFIG_DVB_TDA10071 is not setCONFIG_DVB_TDA10086=yCONFIG_DVB_TDA8083=y
# CONFIG_DVB_TDA8261 is not set
# CONFIG_DVB_TDA826X is not set
# CONFIG_DVB_TS2020 is not setCONFIG_DVB_TUA6100=y
# CONFIG_DVB_TUNER_CX24113 is not setCONFIG_DVB_TUNER_ITD1000=yCONFIG_DVB_VES1X93=yCONFIG_DVB_ZL10036=y
# CONFIG_DVB_ZL10039 is not set
#
# DVB-T (terrestrial) frontends
#
# CONFIG_DVB_CX22700 is not setCONFIG_DVB_CX22702=yCONFIG_DVB_CXD2820R=yCONFIG_DVB_CXD2841ER=y
# CONFIG_DVB_DIB3000MB is not set
# CONFIG_DVB_DIB3000MC is not setCONFIG_DVB_DIB7000M=y
# CONFIG_DVB_DIB7000P is not setCONFIG_DVB_DIB9000=yCONFIG_DVB_DRXD=y
# CONFIG_DVB_EC100 is not set
# CONFIG_DVB_L64781 is not setCONFIG_DVB_MT352=yCONFIG_DVB_NXT6000=yCONFIG_DVB_S5H1432=yCONFIG_DVB_SP887X=y
# CONFIG_DVB_STV0367 is not setCONFIG_DVB_TDA10048=yCONFIG_DVB_TDA1004X=yCONFIG_DVB_ZD1301_DEMOD=yCONFIG_DVB_ZL10353=yCONFIG_DVB_CXD2880=y
#
# DVB-C (cable) frontends
#
# CONFIG_DVB_STV0297 is not set
# CONFIG_DVB_TDA10021 is not set
# CONFIG_DVB_TDA10023 is not setCONFIG_DVB_VES1820=y
#
# ATSC (North American/Korean Terrestrial/Cable DTV) frontends #
# CONFIG_DVB_AU8522_DTV is not set CONFIG_DVB_BCM3510=yCONFIG_DVB_LG2160=yCONFIG_DVB_LGDT3305=y
# CONFIG_DVB_LGDT330X is not setCONFIG_DVB_MXL692=yCONFIG_DVB_NXT200X=y
# CONFIG_DVB_OR51132 is not set
# CONFIG_DVB_OR51211 is not setCONFIG_DVB_S5H1409=yCONFIG_DVB_S5H1411=y
#
# ISDB-T (terrestrial) frontends
#CONFIG_DVB_DIB8000=yCONFIG_DVB_MB86A20S=yCONFIG_DVB_S921=y
#
# ISDB-S (satellite) & ISDB-T (terrestrial) frontends #CONFIG_DVB_MN88443X=yCONFIG_DVB_TC90522=y
#
# Digital terrestrial only tuners/PLL
#CONFIG_DVB_PLL=yCONFIG_DVB_TUNER_DIB0070=y
# CONFIG_DVB_TUNER_DIB0090 is not set
#
# SEC control devices for DVB-S
#
# CONFIG_DVB_A8293 is not set
# CONFIG_DVB_AF9033 is not set
# CONFIG_DVB_ASCOT2E is not set
# CONFIG_DVB_ATBM8830 is not setCONFIG_DVB_HELENE=yCONFIG_DVB_HORUS3A=y
# CONFIG_DVB_ISL6405 is not set
# CONFIG_DVB_ISL6421 is not set
# CONFIG_DVB_ISL6423 is not setCONFIG_DVB_IX2505V=yCONFIG_DVB_LGS8GL5=yCONFIG_DVB_LGS8GXX=yCONFIG_DVB_LNBH25=y
# CONFIG_DVB_LNBH29 is not setCONFIG_DVB_LNBP21=yCONFIG_DVB_LNBP22=yCONFIG_DVB_M88RS2000=y
CONFIG_DVB_TDA665x=y
# CONFIG_DVB_DRX39XYJ is not set
#
# Common Interface (EN50221) controller drivers
#CONFIG_DVB_CXD2099=yCONFIG_DVB_SP2=y
# end of Customise DVB Frontends
#
# Tools to develop new frontends
#CONFIG_DVB_DUMMY_FE=y
# end of Media ancillary drivers
#
# Graphics support
#CONFIG_APERTURE_HELPERS=yCONFIG_AUXDISPLAY=yCONFIG_CHARLCD=yCONFIG_HD44780_COMMON=yCONFIG_HD44780=yCONFIG_LCD2S=yCONFIG_PARPORT_PANEL=yCONFIG_PANEL_PARPORT=0CONFIG_PANEL_PROFILE=5CONFIG_PANEL_CHANGE_MESSAGE=yCONFIG_PANEL_BOOT_MESSAGE=""
# CONFIG_CHARLCD_BL_OFF is not set
# CONFIG_CHARLCD_BL_ON is not setCONFIG_CHARLCD_BL_FLASH=yCONFIG_KS0108=yCONFIG_KS0108_PORT=0x378CONFIG_KS0108_DELAY=2CONFIG_LINEDISP=yCONFIG_IMG_ASCII_LCD=yCONFIG_MAX6959=y
# CONFIG_SEG_LED_GPIO is not setCONFIG_PANEL=y
# CONFIG_AGP is not setCONFIG_VGA_SWITCHEROO=yCONFIG_TEGRA_HOST1X_CONTEXT_BUS=yCONFIG_TEGRA_HOST1X=yCONFIG_TEGRA_HOST1X_FIREWALL=yCONFIG_IMX_IPUV3_CORE=y
# CONFIG_DRM is not set
#
# Frame buffer Devices
#
# CONFIG_FB is not setCONFIG_MMP_DISP=y
# CONFIG_MMP_DISP_CONTROLLER is not set
# CONFIG_MMP_PANEL_TPOHVGA is not set
# end of Frame buffer Devices
#
# Backlight & LCD device support
#CONFIG_LCD_CLASS_DEVICE=yCONFIG_LCD_L4F00242T03=yCONFIG_LCD_LMS283GF05=y
# CONFIG_LCD_LTV350QV is not set
# CONFIG_LCD_ILI922X is not set
# CONFIG_LCD_ILI9320 is not setCONFIG_LCD_TDO24M=y
# CONFIG_LCD_VGG2432A4 is not setCONFIG_LCD_PLATFORM=y
# CONFIG_LCD_AMS369FG06 is not setCONFIG_LCD_LMS501KF03=yCONFIG_LCD_HX8357=yCONFIG_LCD_OTM3225A=yCONFIG_BACKLIGHT_CLASS_DEVICE=yCONFIG_BACKLIGHT_KTD253=yCONFIG_BACKLIGHT_KTD2801=yCONFIG_BACKLIGHT_KTZ8866=y
# CONFIG_BACKLIGHT_OMAP1 is not set
# CONFIG_BACKLIGHT_DA903X is not set
# CONFIG_BACKLIGHT_DA9052 is not set
# CONFIG_BACKLIGHT_MAX8925 is not setCONFIG_BACKLIGHT_MT6370=yCONFIG_BACKLIGHT_APPLE=y
# CONFIG_BACKLIGHT_QCOM_WLED is not setCONFIG_BACKLIGHT_RT4831=yCONFIG_BACKLIGHT_SAHARA=y
# CONFIG_BACKLIGHT_WM831X is not setCONFIG_BACKLIGHT_ADP5520=y
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not setCONFIG_BACKLIGHT_88PM860X=y
# CONFIG_BACKLIGHT_PCF50633 is not setCONFIG_BACKLIGHT_AAT2870=yCONFIG_BACKLIGHT_LM3639=yCONFIG_BACKLIGHT_TPS65217=yCONFIG_BACKLIGHT_GPIO=yCONFIG_BACKLIGHT_LV5207LP=yCONFIG_BACKLIGHT_BD6107=y
# CONFIG_BACKLIGHT_ARCXCNN is not set
# CONFIG_BACKLIGHT_RAVE_SP is not setCONFIG_BACKLIGHT_LED=y
# end of Backlight & LCD device support
#
# Console display driver support
#CONFIG_VGA_CONSOLE=yCONFIG_DUMMY_CONSOLE=yCONFIG_DUMMY_CONSOLE_COLUMNS=80CONFIG_DUMMY_CONSOLE_ROWS=25
# end of Console display driver support # end of Graphics support
CONFIG_SOUND=y
# CONFIG_SND is not set
# CONFIG_HID_SUPPORT is not setCONFIG_USB_OHCI_LITTLE_ENDIAN=y
# CONFIG_USB_SUPPORT is not set
# CONFIG_MMC is not setCONFIG_SCSI_UFSHCD=yCONFIG_SCSI_UFS_BSG=y
# CONFIG_SCSI_UFS_HWMON is not setCONFIG_SCSI_UFSHCD_PCI=yCONFIG_SCSI_UFS_DWC_TC_PCI=yCONFIG_SCSI_UFSHCD_PLATFORM=yCONFIG_SCSI_UFS_CDNS_PLATFORM=yCONFIG_SCSI_UFS_DWC_TC_PLATFORM=y
# CONFIG_SCSI_UFS_HISI is not setCONFIG_SCSI_UFS_RENESAS=yCONFIG_SCSI_UFS_TI_J721E=yCONFIG_SCSI_UFS_EXYNOS=yCONFIG_SCSI_UFS_SPRD=yCONFIG_MEMSTICK=y
# CONFIG_MEMSTICK_DEBUG is not set
#
# MemoryStick drivers
#
# CONFIG_MEMSTICK_UNSAFE_RESUME is not setCONFIG_MSPRO_BLOCK=yCONFIG_MS_BLOCK=y
#
# MemoryStick Host Controller Drivers
#CONFIG_MEMSTICK_TIFM_MS=y
# CONFIG_MEMSTICK_JMICRON_38X is not set
# CONFIG_MEMSTICK_R592 is not setCONFIG_LEDS_EXPRESSWIRE=yCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=yCONFIG_LEDS_CLASS_FLASH=yCONFIG_LEDS_CLASS_MULTICOLOR=yCONFIG_LEDS_BRIGHTNESS_HW_CHANGED=y
#
# LED drivers
#CONFIG_LEDS_88PM860X=yCONFIG_LEDS_AN30259A=y
# CONFIG_LEDS_APU is not setCONFIG_LEDS_ARIEL=yCONFIG_LEDS_AW200XX=yCONFIG_LEDS_AW2013=y
# CONFIG_LEDS_BCM6328 is not set
# CONFIG_LEDS_BCM6358 is not setCONFIG_LEDS_CPCAP=yCONFIG_LEDS_CR0014114=y
# CONFIG_LEDS_EL15203000 is not setCONFIG_LEDS_TURRIS_OMNIA=yCONFIG_LEDS_LM3530=y
# CONFIG_LEDS_LM3532 is not setCONFIG_LEDS_LM3642=yCONFIG_LEDS_LM3692X=yCONFIG_LEDS_MT6323=yCONFIG_LEDS_COBALT_QUBE=yCONFIG_LEDS_COBALT_RAQ=yCONFIG_LEDS_SUN50I_A100=yCONFIG_LEDS_PCA9532=y
# CONFIG_LEDS_PCA9532_GPIO is not setCONFIG_LEDS_GPIO=y
# CONFIG_LEDS_LP3944 is not set
# CONFIG_LEDS_LP3952 is not setCONFIG_LEDS_LP50XX=yCONFIG_LEDS_LP55XX_COMMON=y
# CONFIG_LEDS_LP5521 is not setCONFIG_LEDS_LP5523=yCONFIG_LEDS_LP5562=y
# CONFIG_LEDS_LP8501 is not setCONFIG_LEDS_LP8788=y
# CONFIG_LEDS_LP8860 is not setCONFIG_LEDS_PCA955X=y
# CONFIG_LEDS_PCA955X_GPIO is not set
# CONFIG_LEDS_PCA963X is not setCONFIG_LEDS_PCA995X=y
# CONFIG_LEDS_WM831X_STATUS is not setCONFIG_LEDS_DA903X=yCONFIG_LEDS_DA9052=yCONFIG_LEDS_DAC124S085=y
# CONFIG_LEDS_REGULATOR is not setCONFIG_LEDS_BD2606MVV=yCONFIG_LEDS_BD2802=yCONFIG_LEDS_INTEL_SS4200=y
# CONFIG_LEDS_LT3593 is not setCONFIG_LEDS_ADP5520=y
# CONFIG_LEDS_NS2 is not set
# CONFIG_LEDS_NETXBIG is not setCONFIG_LEDS_TCA6507=yCONFIG_LEDS_TLC591XX=y
CONFIG_LEDS_LM355x=y
# CONFIG_LEDS_OT200 is not set
# CONFIG_LEDS_MENF21BMC is not setCONFIG_LEDS_IS31FL319X=y
# CONFIG_LEDS_IS31FL32XX is not set
# CONFIG_LEDS_SC27XX_BLTC is not set
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #
# CONFIG_LEDS_BLINKM is not setCONFIG_LEDS_SYSCON=yCONFIG_LEDS_PM8058=y
# CONFIG_LEDS_MLXCPLD is not set
# CONFIG_LEDS_MLXREG is not setCONFIG_LEDS_USER=y
# CONFIG_LEDS_NIC78BX is not set
# CONFIG_LEDS_SPI_BYTE is not setCONFIG_LEDS_TI_LMU_COMMON=y
# CONFIG_LEDS_LM3697 is not set
# CONFIG_LEDS_TPS6105X is not setCONFIG_LEDS_IP30=yCONFIG_LEDS_ACER_A500=yCONFIG_LEDS_BCM63138=yCONFIG_LEDS_LGM=y
#
# Flash and Torch LED drivers
#CONFIG_LEDS_AAT1290=y
# CONFIG_LEDS_AS3645A is not setCONFIG_LEDS_KTD2692=y
# CONFIG_LEDS_LM3601X is not set
# CONFIG_LEDS_MAX77693 is not set
# CONFIG_LEDS_MT6360 is not setCONFIG_LEDS_MT6370_FLASH=yCONFIG_LEDS_QCOM_FLASH=yCONFIG_LEDS_RT4505=y
# CONFIG_LEDS_RT8515 is not setCONFIG_LEDS_SGM3140=y
#
# RGB LED drivers
#
# CONFIG_LEDS_GROUP_MULTICOLOR is not set
# CONFIG_LEDS_KTD202X is not setCONFIG_LEDS_NCP5623=yCONFIG_LEDS_MT6370_RGB=y
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=y
# CONFIG_LEDS_TRIGGER_TIMER is not setCONFIG_LEDS_TRIGGER_ONESHOT=yCONFIG_LEDS_TRIGGER_MTD=y
# CONFIG_LEDS_TRIGGER_HEARTBEAT is not set
# CONFIG_LEDS_TRIGGER_BACKLIGHT is not set
# CONFIG_LEDS_TRIGGER_CPU is not setCONFIG_LEDS_TRIGGER_ACTIVITY=yCONFIG_LEDS_TRIGGER_GPIO=y
# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
#
# iptables trigger is under Netfilter config (LED target) # CONFIG_LEDS_TRIGGER_TRANSIENT=y # CONFIG_LEDS_TRIGGER_CAMERA is not set # CONFIG_LEDS_TRIGGER_PANIC is not set # CONFIG_LEDS_TRIGGER_NETDEV is not set CONFIG_LEDS_TRIGGER_PATTERN=y CONFIG_LEDS_TRIGGER_TTY=y
#
# Simple LED drivers
#
# CONFIG_ACCESSIBILITY is not setCONFIG_EDAC_ATOMIC_SCRUB=yCONFIG_EDAC_SUPPORT=yCONFIG_RTC_LIB=yCONFIG_RTC_MC146818_LIB=yCONFIG_RTC_CLASS=y
# CONFIG_RTC_HCTOSYS is not set
# CONFIG_RTC_SYSTOHC is not set
# CONFIG_RTC_DEBUG is not setCONFIG_RTC_NVMEM=y
#
# RTC interfaces
#CONFIG_RTC_INTF_SYSFS=yCONFIG_RTC_INTF_PROC=y
# CONFIG_RTC_INTF_DEV is not setCONFIG_RTC_DRV_TEST=y
#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_88PM860X is not set
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABEOZ9 is not setCONFIG_RTC_DRV_ABX80X=yCONFIG_RTC_DRV_BRCMSTB=yCONFIG_RTC_DRV_DS1307=yCONFIG_RTC_DRV_DS1307_CENTURY=yCONFIG_RTC_DRV_DS1374=yCONFIG_RTC_DRV_DS1672=y
# CONFIG_RTC_DRV_HYM8563 is not setCONFIG_RTC_DRV_LP8788=y
# CONFIG_RTC_DRV_MAX6900 is not set
# CONFIG_RTC_DRV_MAX8907 is not setCONFIG_RTC_DRV_MAX8925=y
# CONFIG_RTC_DRV_MAX31335 is not set
# CONFIG_RTC_DRV_MAX77686 is not set
# CONFIG_RTC_DRV_NCT3018Y is not set
# CONFIG_RTC_DRV_RK808 is not setCONFIG_RTC_DRV_RS5C372=y
# CONFIG_RTC_DRV_ISL1208 is not setCONFIG_RTC_DRV_ISL12022=y
# CONFIG_RTC_DRV_ISL12026 is not setCONFIG_RTC_DRV_X1205=y
# CONFIG_RTC_DRV_PCF8523 is not set
# CONFIG_RTC_DRV_PCF85063 is not setCONFIG_RTC_DRV_PCF85363=yCONFIG_RTC_DRV_PCF8563=yCONFIG_RTC_DRV_PCF8583=yCONFIG_RTC_DRV_M41T80=y
# CONFIG_RTC_DRV_M41T80_WDT is not setCONFIG_RTC_DRV_BD70528=yCONFIG_RTC_DRV_BQ32K=yCONFIG_RTC_DRV_TPS6586X=yCONFIG_RTC_DRV_TPS65910=yCONFIG_RTC_DRV_RC5T583=yCONFIG_RTC_DRV_RC5T619=y
# CONFIG_RTC_DRV_S35390A is not setCONFIG_RTC_DRV_FM3130=y
# CONFIG_RTC_DRV_RX8010 is not set
# CONFIG_RTC_DRV_RX8111 is not set
# CONFIG_RTC_DRV_RX8581 is not set
# CONFIG_RTC_DRV_RX8025 is not setCONFIG_RTC_DRV_EM3027=y
# CONFIG_RTC_DRV_RV3028 is not setCONFIG_RTC_DRV_RV3032=yCONFIG_RTC_DRV_RV8803=y
# CONFIG_RTC_DRV_S5M is not setCONFIG_RTC_DRV_SD3078=y
#
# SPI RTC drivers
#CONFIG_RTC_DRV_M41T93=yCONFIG_RTC_DRV_M41T94=yCONFIG_RTC_DRV_DS1302=yCONFIG_RTC_DRV_DS1305=y
# CONFIG_RTC_DRV_DS1343 is not setCONFIG_RTC_DRV_DS1347=yCONFIG_RTC_DRV_DS1390=y
# CONFIG_RTC_DRV_MAX6916 is not setCONFIG_RTC_DRV_R9701=y
# CONFIG_RTC_DRV_RX4581 is not set
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not setCONFIG_RTC_DRV_PCF2123=yCONFIG_RTC_DRV_MCP795=yCONFIG_RTC_I2C_AND_SPI=y
#
# SPI and I2C RTC drivers
#CONFIG_RTC_DRV_DS3232=yCONFIG_RTC_DRV_DS3232_HWMON=y
# CONFIG_RTC_DRV_PCF2127 is not setCONFIG_RTC_DRV_RV3029C2=yCONFIG_RTC_DRV_RV3029_HWMON=yCONFIG_RTC_DRV_RX6110=y
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=yCONFIG_RTC_DRV_DS1286=yCONFIG_RTC_DRV_DS1511=yCONFIG_RTC_DRV_DS1553=yCONFIG_RTC_DRV_DS1685_FAMILY=yCONFIG_RTC_DRV_DS1685=y
# CONFIG_RTC_DRV_DS1689 is not set
# CONFIG_RTC_DRV_DS17285 is not set
# CONFIG_RTC_DRV_DS17485 is not set
# CONFIG_RTC_DRV_DS17885 is not setCONFIG_RTC_DRV_DS1742=y
# CONFIG_RTC_DRV_DS2404 is not set
# CONFIG_RTC_DRV_DA9052 is not set
# CONFIG_RTC_DRV_DA9055 is not setCONFIG_RTC_DRV_DA9063=y
# CONFIG_RTC_DRV_STK17TA8 is not setCONFIG_RTC_DRV_M48T86=y
# CONFIG_RTC_DRV_M48T35 is not setCONFIG_RTC_DRV_M48T59=y
# CONFIG_RTC_DRV_MSM6242 is not setCONFIG_RTC_DRV_BQ4802=y
# CONFIG_RTC_DRV_RP5C01 is not setCONFIG_RTC_DRV_GAMECUBE=yCONFIG_RTC_DRV_WM831X=yCONFIG_RTC_DRV_SC27XX=y
# CONFIG_RTC_DRV_SPEAR is not setCONFIG_RTC_DRV_PCF50633=yCONFIG_RTC_DRV_ZYNQMP=y
#
# on-CPU RTC drivers
#CONFIG_RTC_DRV_ASM9260=yCONFIG_RTC_DRV_DIGICOLOR=y
# CONFIG_RTC_DRV_IMXDI is not set
# CONFIG_RTC_DRV_FSL_FTM_ALARM is not set
# CONFIG_RTC_DRV_MESON is not setCONFIG_RTC_DRV_MESON_VRTC=yCONFIG_RTC_DRV_OMAP=y
# CONFIG_RTC_DRV_S3C is not set
# CONFIG_RTC_DRV_EP93XX is not set
# CONFIG_RTC_DRV_AT91RM9200 is not setCONFIG_RTC_DRV_AT91SAM9=yCONFIG_RTC_DRV_RZN1=yCONFIG_RTC_DRV_GENERIC=y
# CONFIG_RTC_DRV_VT8500 is not setCONFIG_RTC_DRV_SUN6I=yCONFIG_RTC_DRV_SUNXI=y
# CONFIG_RTC_DRV_MV is not setCONFIG_RTC_DRV_ARMADA38X=yCONFIG_RTC_DRV_CADENCE=yCONFIG_RTC_DRV_FTRTC010=y
# CONFIG_RTC_DRV_STMP is not setCONFIG_RTC_DRV_PCAP=yCONFIG_RTC_DRV_JZ4740=y
# CONFIG_RTC_DRV_LOONGSON is not setCONFIG_RTC_DRV_LPC24XX=yCONFIG_RTC_DRV_LPC32XX=yCONFIG_RTC_DRV_PM8XXX=yCONFIG_RTC_DRV_TEGRA=y
# CONFIG_RTC_DRV_MXC is not setCONFIG_RTC_DRV_MXC_V2=yCONFIG_RTC_DRV_SNVS=y
# CONFIG_RTC_DRV_BBNSM is not set
# CONFIG_RTC_DRV_MOXART is not setCONFIG_RTC_DRV_MT2712=y
# CONFIG_RTC_DRV_MT6397 is not set
# CONFIG_RTC_DRV_MT7622 is not set
# CONFIG_RTC_DRV_XGENE is not setCONFIG_RTC_DRV_R7301=yCONFIG_RTC_DRV_STM32=yCONFIG_RTC_DRV_CPCAP=y
# CONFIG_RTC_DRV_RTD119X is not setCONFIG_RTC_DRV_ASPEED=yCONFIG_RTC_DRV_TI_K3=y
# CONFIG_RTC_DRV_MA35D1 is not set
#
# HID Sensor RTC drivers
#CONFIG_RTC_DRV_GOLDFISH=y
# CONFIG_RTC_DRV_MSC313 is not setCONFIG_RTC_DRV_SSD202D=y
# CONFIG_DMADEVICES is not set
#
# DMABUF options
#CONFIG_SYNC_FILE=yCONFIG_SW_SYNC=yCONFIG_UDMABUF=yCONFIG_DMABUF_MOVE_NOTIFY=y
# CONFIG_DMABUF_DEBUG is not setCONFIG_DMABUF_SELFTESTS=y
# CONFIG_DMABUF_HEAPS is not setCONFIG_DMABUF_SYSFS_STATS=y
# end of DMABUF options
CONFIG_UIO=yCONFIG_UIO_CIF=y
# CONFIG_UIO_PDRV_GENIRQ is not set
# CONFIG_UIO_DMEM_GENIRQ is not setCONFIG_UIO_AEC=y
# CONFIG_UIO_SERCOS3 is not setCONFIG_UIO_PCI_GENERIC=y
# CONFIG_UIO_NETX is not set
# CONFIG_UIO_MF624 is not setCONFIG_UIO_DFL=yCONFIG_VFIO=yCONFIG_VFIO_DEVICE_CDEV=y
# CONFIG_VFIO_GROUP is not setCONFIG_VFIO_VIRQFD=yCONFIG_VFIO_DEBUGFS=y
#
# VFIO support for PCI devices
#CONFIG_VFIO_PCI_CORE=yCONFIG_VFIO_PCI_MMAP=yCONFIG_VFIO_PCI_INTX=y
# CONFIG_VFIO_PCI is not set
# CONFIG_NVGRACE_GPU_VFIO_PCI is not setCONFIG_QAT_VFIO_PCI=y
# end of VFIO support for PCI devices
#
# VFIO support for platform devices
#CONFIG_VFIO_PLATFORM_BASE=yCONFIG_VFIO_PLATFORM=yCONFIG_VFIO_AMBA=y
#
# VFIO platform reset drivers
#CONFIG_VFIO_PLATFORM_CALXEDAXGMAC_RESET=yCONFIG_VFIO_PLATFORM_AMDXGBE_RESET=yCONFIG_VFIO_PLATFORM_BCMFLEXRM_RESET=y
# end of VFIO platform reset drivers # end of VFIO support for platform devices
#
# VFIO support for FSL_MC bus devices
#CONFIG_VFIO_FSL_MC=y
# end of VFIO support for FSL_MC bus devices
CONFIG_IRQ_BYPASS_MANAGER=yCONFIG_VIRT_DRIVERS=yCONFIG_VMGENID=yCONFIG_VBOXGUEST=yCONFIG_EFI_SECRET=y
# CONFIG_SEV_GUEST is not setCONFIG_VIRTIO_ANCHOR=yCONFIG_VIRTIO=yCONFIG_VIRTIO_MENU=y
# CONFIG_VIRTIO_PCI is not set
# CONFIG_VIRTIO_BALLOON is not setCONFIG_VIRTIO_INPUT=yCONFIG_VIRTIO_MMIO=yCONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=yCONFIG_VIRTIO_DEBUG=y
# CONFIG_VDPA is not set
# CONFIG_VHOST_MENU is not set
#
# Microsoft Hyper-V guest support
#
# end of Microsoft Hyper-V guest support
CONFIG_GREYBUS=yCONFIG_GREYBUS_BEAGLEPLAY=yCONFIG_COMEDI=y
# CONFIG_COMEDI_DEBUG is not setCONFIG_COMEDI_DEFAULT_BUF_SIZE_KB=2048CONFIG_COMEDI_DEFAULT_BUF_MAXSIZE_KB=20480CONFIG_COMEDI_MISC_DRIVERS=yCONFIG_COMEDI_BOND=y
# CONFIG_COMEDI_TEST is not setCONFIG_COMEDI_PARPORT=y
# CONFIG_COMEDI_SSV_DNP is not set
# CONFIG_COMEDI_PCI_DRIVERS is not setCONFIG_COMEDI_8255=yCONFIG_COMEDI_8255_SA=yCONFIG_COMEDI_KCOMEDILIB=yCONFIG_COMEDI_NI_ROUTING=yCONFIG_COMEDI_TESTS=yCONFIG_COMEDI_TESTS_EXAMPLE=yCONFIG_COMEDI_TESTS_NI_ROUTES=yCONFIG_STAGING=yCONFIG_RTS5208=yCONFIG_OCTEON_ETHERNET=y
#
# IIO staging drivers
#
#
# Accelerometers
#CONFIG_ADIS16203=y
# CONFIG_ADIS16240 is not set
# end of Accelerometers
#
# Analog to digital converters
#CONFIG_AD7816=y
# end of Analog to digital converters
#
# Analog digital bi-direction converters
#CONFIG_ADT7316=y
# CONFIG_ADT7316_SPI is not setCONFIG_ADT7316_I2C=y
# end of Analog digital bi-direction converters
#
# Direct Digital Synthesis
#CONFIG_AD9832=yCONFIG_AD9834=y
# end of Direct Digital Synthesis
#
# Network Analyzer, Impedance Converters
#CONFIG_AD5933=y
# end of Network Analyzer, Impedance Converters # end of IIO staging drivers
CONFIG_STAGING_MEDIA=y
# CONFIG_INTEL_ATOMISP is not set
#
# StarFive media platform drivers
#CONFIG_VIDEO_SUNXI=yCONFIG_STAGING_MEDIA_DEPRECATED=y
#
# Atmel media platform drivers
#CONFIG_MOST_COMPONENTS=yCONFIG_MOST_NET=yCONFIG_MOST_DIM2=yCONFIG_MOST_I2C=y
# CONFIG_GREYBUS_BOOTROM is not set
# CONFIG_GREYBUS_FIRMWARE is not set
# CONFIG_GREYBUS_LIGHT is not setCONFIG_GREYBUS_LOG=yCONFIG_GREYBUS_LOOPBACK=yCONFIG_GREYBUS_POWER=y
# CONFIG_GREYBUS_RAW is not setCONFIG_GREYBUS_VIBRATOR=yCONFIG_GREYBUS_BRIDGED_PHY=yCONFIG_GREYBUS_GPIO=y
# CONFIG_GREYBUS_I2C is not setCONFIG_GREYBUS_SPI=y
# CONFIG_GREYBUS_UART is not setCONFIG_GREYBUS_ARCHE=yCONFIG_BCM_VIDEOCORE=yCONFIG_BCM2835_VCHIQ=y
# CONFIG_VCHIQ_CDEV is not setCONFIG_BCM2835_VCHIQ_MMAL=y
# CONFIG_XIL_AXIS_FIFO is not set
# CONFIG_FIELDBUS_DEV is not setCONFIG_VME_BUS=y
#
# VME Bridge Drivers
#
# CONFIG_VME_TSI148 is not setCONFIG_VME_FAKE=y
#
# VME Device Drivers
#CONFIG_VME_USER=y
# CONFIG_GOLDFISH is not set
# CONFIG_CHROME_PLATFORMS is not setCONFIG_MELLANOX_PLATFORM=yCONFIG_MLXREG_HOTPLUG=yCONFIG_MLXREG_IO=yCONFIG_MLXREG_LC=yCONFIG_NVSW_SN2201=y
# CONFIG_OLPC_XO175 is not setCONFIG_SURFACE_PLATFORMS=y
# CONFIG_SURFACE_3_POWER_OPREGION is not set
# CONFIG_SURFACE_GPE is not setCONFIG_SURFACE_HOTPLUG=yCONFIG_SURFACE_PRO3_BUTTON=y
# CONFIG_SURFACE_AGGREGATOR is not set
# CONFIG_X86_PLATFORM_DEVICES is not setCONFIG_P2SB=yCONFIG_ARM64_PLATFORM_DEVICES=yCONFIG_HAVE_CLK=yCONFIG_HAVE_CLK_PREPARE=yCONFIG_COMMON_CLK=yCONFIG_COMMON_CLK_WM831X=y
#
# Clock driver for ARM Reference designs
#CONFIG_CLK_ICST=y
# CONFIG_CLK_SP810 is not set
# end of Clock driver for ARM Reference designs
# CONFIG_CLK_HSDK is not setCONFIG_LMK04832=yCONFIG_COMMON_CLK_APPLE_NCO=yCONFIG_COMMON_CLK_MAX77686=y
# CONFIG_COMMON_CLK_MAX9485 is not setCONFIG_COMMON_CLK_RK808=yCONFIG_COMMON_CLK_SCMI=y
# CONFIG_COMMON_CLK_SCPI is not set
# CONFIG_COMMON_CLK_SI5341 is not setCONFIG_COMMON_CLK_SI5351=yCONFIG_COMMON_CLK_SI514=y
# CONFIG_COMMON_CLK_SI544 is not setCONFIG_COMMON_CLK_SI570=y
# CONFIG_COMMON_CLK_BM1880 is not setCONFIG_COMMON_CLK_CDCE706=y
# CONFIG_COMMON_CLK_TPS68470 is not setCONFIG_COMMON_CLK_CDCE925=y
# CONFIG_COMMON_CLK_CS2000_CP is not set
# CONFIG_COMMON_CLK_EN7523 is not setCONFIG_COMMON_CLK_FSL_FLEXSPI=y
# CONFIG_COMMON_CLK_FSL_SAI is not set
# CONFIG_COMMON_CLK_GEMINI is not setCONFIG_COMMON_CLK_LAN966X=yCONFIG_COMMON_CLK_ASPEED=yCONFIG_COMMON_CLK_S2MPS11=yCONFIG_COMMON_CLK_AXI_CLKGEN=yCONFIG_CLK_QORIQ=y
# CONFIG_CLK_LS1028A_PLLDIG is not setCONFIG_COMMON_CLK_XGENE=yCONFIG_COMMON_CLK_LOCHNAGAR=yCONFIG_COMMON_CLK_LOONGSON2=y
# CONFIG_COMMON_CLK_RS9_PCIE is not set
# CONFIG_COMMON_CLK_SI521XX is not setCONFIG_COMMON_CLK_VC3=yCONFIG_COMMON_CLK_VC5=y
# CONFIG_COMMON_CLK_VC7 is not set
# CONFIG_COMMON_CLK_MMP2_AUDIO is not setCONFIG_COMMON_CLK_BD718XX=y
# CONFIG_COMMON_CLK_FIXED_MMIO is not setCONFIG_COMMON_CLK_SP7021=y
# CONFIG_CLK_ACTIONS is not set
# CONFIG_CLK_BAIKAL_T1 is not setCONFIG_CLK_BCM2711_DVP=y
# CONFIG_CLK_BCM2835 is not set
# CONFIG_CLK_BCM_63XX is not set
# CONFIG_CLK_BCM_63XX_GATE is not set
# CONFIG_CLK_BCM63268_TIMER is not setCONFIG_CLK_BCM_KONA=yCONFIG_COMMON_CLK_IPROC=y
# CONFIG_CLK_BCM_CYGNUS is not setCONFIG_CLK_BCM_HR2=y
# CONFIG_CLK_BCM_NSP is not setCONFIG_CLK_BCM_NS2=y
# CONFIG_CLK_BCM_SR is not setCONFIG_CLK_RASPBERRYPI=yCONFIG_COMMON_CLK_HI3516CV300=yCONFIG_COMMON_CLK_HI3519=y
# CONFIG_COMMON_CLK_HI3559A is not set
# CONFIG_COMMON_CLK_HI3660 is not set
# CONFIG_COMMON_CLK_HI3670 is not set
# CONFIG_COMMON_CLK_HI3798CV200 is not set
# CONFIG_COMMON_CLK_HI6220 is not setCONFIG_RESET_HISI=y
# CONFIG_COMMON_CLK_BOSTON is not setCONFIG_MXC_CLK=y
# CONFIG_CLK_IMX8MM is not setCONFIG_CLK_IMX8MN=yCONFIG_CLK_IMX8MP=yCONFIG_CLK_IMX8MQ=yCONFIG_CLK_IMX8ULP=yCONFIG_CLK_IMX93=yCONFIG_CLK_IMX95_BLK_CTL=yCONFIG_CLK_IMXRT1050=y
#
# Ingenic SoCs drivers
#CONFIG_INGENIC_CGU_COMMON=y
# CONFIG_INGENIC_CGU_JZ4740 is not setCONFIG_INGENIC_CGU_JZ4755=y
# CONFIG_INGENIC_CGU_JZ4725B is not setCONFIG_INGENIC_CGU_JZ4760=yCONFIG_INGENIC_CGU_JZ4770=yCONFIG_INGENIC_CGU_JZ4780=yCONFIG_INGENIC_CGU_X1000=yCONFIG_INGENIC_CGU_X1830=yCONFIG_INGENIC_TCU_CLK=y
# end of Ingenic SoCs drivers
# CONFIG_COMMON_CLK_KEYSTONE is not setCONFIG_TI_SYSCON_CLK=y
#
# Clock driver for MediaTek SoC
#CONFIG_COMMON_CLK_MEDIATEK=y CONFIG_COMMON_CLK_MEDIATEK_FHCTL=y CONFIG_COMMON_CLK_MT2701=y
# CONFIG_COMMON_CLK_MT2701_MMSYS is not set # CONFIG_COMMON_CLK_MT2701_IMGSYS is not set # CONFIG_COMMON_CLK_MT2701_VDECSYS is not set # CONFIG_COMMON_CLK_MT2701_HIFSYS is not set CONFIG_COMMON_CLK_MT2701_ETHSYS=y CONFIG_COMMON_CLK_MT2701_BDPSYS=y
# CONFIG_COMMON_CLK_MT2701_AUDSYS is not set # CONFIG_COMMON_CLK_MT2701_G3DSYS is not set # CONFIG_COMMON_CLK_MT2712 is not set
# CONFIG_COMMON_CLK_MT6765 is not set
# CONFIG_COMMON_CLK_MT6779 is not set CONFIG_COMMON_CLK_MT6795=y CONFIG_COMMON_CLK_MT6795_MFGCFG=y
# CONFIG_COMMON_CLK_MT6795_MMSYS is not set # CONFIG_COMMON_CLK_MT6795_VDECSYS is not set CONFIG_COMMON_CLK_MT6795_VENCSYS=y CONFIG_COMMON_CLK_MT6797=y
# CONFIG_COMMON_CLK_MT6797_MMSYS is not set # CONFIG_COMMON_CLK_MT6797_IMGSYS is not set CONFIG_COMMON_CLK_MT6797_VDECSYS=y
# CONFIG_COMMON_CLK_MT6797_VENCSYS is not set CONFIG_COMMON_CLK_MT7622=y CONFIG_COMMON_CLK_MT7622_ETHSYS=y CONFIG_COMMON_CLK_MT7622_HIFSYS=y CONFIG_COMMON_CLK_MT7622_AUDSYS=y
# CONFIG_COMMON_CLK_MT7629 is not set CONFIG_COMMON_CLK_MT7981=y CONFIG_COMMON_CLK_MT7981_ETHSYS=y
# CONFIG_COMMON_CLK_MT7986 is not set CONFIG_COMMON_CLK_MT7988=y
# CONFIG_COMMON_CLK_MT8135 is not set CONFIG_COMMON_CLK_MT8167=y CONFIG_COMMON_CLK_MT8167_AUDSYS=y
# CONFIG_COMMON_CLK_MT8167_IMGSYS is not set CONFIG_COMMON_CLK_MT8167_MFGCFG=y CONFIG_COMMON_CLK_MT8167_MMSYS=y CONFIG_COMMON_CLK_MT8167_VDECSYS=y CONFIG_COMMON_CLK_MT8173=y CONFIG_COMMON_CLK_MT8173_IMGSYS=y CONFIG_COMMON_CLK_MT8173_MMSYS=y CONFIG_COMMON_CLK_MT8173_VDECSYS=y CONFIG_COMMON_CLK_MT8173_VENCSYS=y
# CONFIG_COMMON_CLK_MT8183 is not set CONFIG_COMMON_CLK_MT8186=y
# CONFIG_COMMON_CLK_MT8186_CAMSYS is not set CONFIG_COMMON_CLK_MT8186_IMGSYS=y CONFIG_COMMON_CLK_MT8186_IPESYS=y CONFIG_COMMON_CLK_MT8186_WPESYS=y CONFIG_COMMON_CLK_MT8186_IMP_IIC_WRAP=y CONFIG_COMMON_CLK_MT8186_MCUSYS=y CONFIG_COMMON_CLK_MT8186_MDPSYS=y CONFIG_COMMON_CLK_MT8186_MFGCFG=y CONFIG_COMMON_CLK_MT8186_MMSYS=y CONFIG_COMMON_CLK_MT8186_VDECSYS=y CONFIG_COMMON_CLK_MT8186_VENCSYS=y CONFIG_COMMON_CLK_MT8188=y CONFIG_COMMON_CLK_MT8188_ADSP_AUDIO26M=y CONFIG_COMMON_CLK_MT8188_CAMSYS=y
# CONFIG_COMMON_CLK_MT8188_IMGSYS is not set CONFIG_COMMON_CLK_MT8188_IMP_IIC_WRAP=y CONFIG_COMMON_CLK_MT8188_MFGCFG=y
# CONFIG_COMMON_CLK_MT8188_VDECSYS is not set # CONFIG_COMMON_CLK_MT8188_VDOSYS is not set CONFIG_COMMON_CLK_MT8188_VENCSYS=y CONFIG_COMMON_CLK_MT8188_VPPSYS=y CONFIG_COMMON_CLK_MT8192=y CONFIG_COMMON_CLK_MT8192_AUDSYS=y CONFIG_COMMON_CLK_MT8192_CAMSYS=y CONFIG_COMMON_CLK_MT8192_IMGSYS=y CONFIG_COMMON_CLK_MT8192_IMP_IIC_WRAP=y CONFIG_COMMON_CLK_MT8192_IPESYS=y
# CONFIG_COMMON_CLK_MT8192_MDPSYS is not set CONFIG_COMMON_CLK_MT8192_MFGCFG=y
# CONFIG_COMMON_CLK_MT8192_MMSYS is not set # CONFIG_COMMON_CLK_MT8192_MSDC is not set CONFIG_COMMON_CLK_MT8192_SCP_ADSP=y CONFIG_COMMON_CLK_MT8192_VDECSYS=y CONFIG_COMMON_CLK_MT8192_VENCSYS=y CONFIG_COMMON_CLK_MT8195=y CONFIG_COMMON_CLK_MT8195_APUSYS=y
# CONFIG_COMMON_CLK_MT8195_AUDSYS is not set # CONFIG_COMMON_CLK_MT8195_IMP_IIC_WRAP is not set CONFIG_COMMON_CLK_MT8195_MFGCFG=y CONFIG_COMMON_CLK_MT8195_MSDC=y CONFIG_COMMON_CLK_MT8195_SCP_ADSP=y CONFIG_COMMON_CLK_MT8195_VDOSYS=y CONFIG_COMMON_CLK_MT8195_VPPSYS=y CONFIG_COMMON_CLK_MT8195_CAMSYS=y CONFIG_COMMON_CLK_MT8195_IMGSYS=y CONFIG_COMMON_CLK_MT8195_IPESYS=y CONFIG_COMMON_CLK_MT8195_WPESYS=y CONFIG_COMMON_CLK_MT8195_VDECSYS=y CONFIG_COMMON_CLK_MT8195_VENCSYS=y CONFIG_COMMON_CLK_MT8365=y CONFIG_COMMON_CLK_MT8365_APU=y CONFIG_COMMON_CLK_MT8365_CAM=y CONFIG_COMMON_CLK_MT8365_MFG=y
# CONFIG_COMMON_CLK_MT8365_MMSYS is not set CONFIG_COMMON_CLK_MT8365_VDEC=y CONFIG_COMMON_CLK_MT8365_VENC=y CONFIG_COMMON_CLK_MT8516=y CONFIG_COMMON_CLK_MT8516_AUDSYS=y
# end of Clock driver for MediaTek SoC
#
# Clock support for Amlogic platforms
#
# end of Clock support for Amlogic platforms
CONFIG_MSTAR_MSC313_CPUPLL=y
# CONFIG_MSTAR_MSC313_MPLL is not set
# CONFIG_MCHP_CLK_MPFS is not setCONFIG_COMMON_CLK_NUVOTON=y
# CONFIG_CLK_MA35D1 is not setCONFIG_COMMON_CLK_PISTACHIO=yCONFIG_QCOM_GDSC=yCONFIG_COMMON_CLK_QCOM=yCONFIG_CLK_X1E80100_CAMCC=yCONFIG_CLK_X1E80100_DISPCC=yCONFIG_CLK_X1E80100_GCC=yCONFIG_CLK_X1E80100_GPUCC=yCONFIG_CLK_X1E80100_TCSRCC=yCONFIG_QCOM_A53PLL=yCONFIG_QCOM_A7PLL=y
# CONFIG_QCOM_CLK_APCS_MSM8916 is not setCONFIG_QCOM_CLK_APCS_SDX55=y
# CONFIG_QCOM_CLK_RPMH is not set
# CONFIG_APQ_GCC_8084 is not set
# CONFIG_APQ_MMCC_8084 is not set
# CONFIG_IPQ_APSS_PLL is not setCONFIG_IPQ_GCC_4019=yCONFIG_IPQ_GCC_5018=yCONFIG_IPQ_GCC_5332=yCONFIG_IPQ_GCC_6018=yCONFIG_IPQ_GCC_806X=yCONFIG_IPQ_LCC_806X=yCONFIG_IPQ_GCC_8074=yCONFIG_IPQ_GCC_9574=yCONFIG_MSM_GCC_8660=yCONFIG_MSM_GCC_8909=yCONFIG_MSM_GCC_8916=yCONFIG_MSM_GCC_8917=yCONFIG_MSM_GCC_8939=yCONFIG_MSM_GCC_8960=yCONFIG_MSM_LCC_8960=yCONFIG_MDM_GCC_9607=yCONFIG_MDM_GCC_9615=yCONFIG_MSM_MMCC_8960=yCONFIG_MSM_GCC_8953=yCONFIG_MSM_GCC_8974=y
# CONFIG_MSM_MMCC_8974 is not set
# CONFIG_MSM_GCC_8976 is not setCONFIG_MSM_MMCC_8994=yCONFIG_MSM_GCC_8994=yCONFIG_MSM_GCC_8996=yCONFIG_MSM_MMCC_8996=yCONFIG_MSM_GCC_8998=yCONFIG_MSM_GPUCC_8998=yCONFIG_MSM_MMCC_8998=yCONFIG_QCM_GCC_2290=yCONFIG_QCM_DISPCC_2290=yCONFIG_QCS_GCC_404=yCONFIG_SC_CAMCC_7180=y
# CONFIG_SC_CAMCC_7280 is not set
# CONFIG_SC_CAMCC_8280XP is not setCONFIG_SC_DISPCC_7180=yCONFIG_SC_DISPCC_7280=yCONFIG_SC_DISPCC_8280XP=yCONFIG_SA_GCC_8775P=yCONFIG_SA_GPUCC_8775P=yCONFIG_SC_GCC_7180=yCONFIG_SC_GCC_7280=yCONFIG_SC_GCC_8180X=yCONFIG_SC_GCC_8280XP=y
# CONFIG_SC_GPUCC_7180 is not setCONFIG_SC_GPUCC_7280=yCONFIG_SC_GPUCC_8280XP=y
# CONFIG_SC_LPASSCC_7280 is not set
# CONFIG_SC_LPASSCC_8280XP is not setCONFIG_SC_LPASS_CORECC_7180=yCONFIG_SC_LPASS_CORECC_7280=yCONFIG_SC_VIDEOCC_7180=yCONFIG_SC_VIDEOCC_7280=y
# CONFIG_SDM_CAMCC_845 is not setCONFIG_SDM_GCC_660=yCONFIG_SDM_MMCC_660=yCONFIG_SDM_GPUCC_660=yCONFIG_QCS_TURING_404=yCONFIG_QCS_Q6SSTOP_404=yCONFIG_QDU_GCC_1000=yCONFIG_QDU_ECPRICC_1000=yCONFIG_SDM_GCC_845=y
# CONFIG_SDM_GPUCC_845 is not setCONFIG_SDM_VIDEOCC_845=yCONFIG_SDM_DISPCC_845=yCONFIG_SDM_LPASSCC_845=y
# CONFIG_SDX_GCC_55 is not setCONFIG_SDX_GCC_65=yCONFIG_SDX_GCC_75=yCONFIG_SM_CAMCC_6350=yCONFIG_SM_CAMCC_8250=yCONFIG_SM_CAMCC_8450=yCONFIG_SM_CAMCC_8550=yCONFIG_SM_DISPCC_6115=yCONFIG_SM_DISPCC_6125=y
# CONFIG_SM_DISPCC_8250 is not setCONFIG_SM_DISPCC_6350=yCONFIG_SM_DISPCC_6375=y
# CONFIG_SM_DISPCC_8450 is not setCONFIG_SM_DISPCC_8550=y
# CONFIG_SM_DISPCC_8650 is not setCONFIG_SM_GCC_4450=yCONFIG_SM_GCC_6115=yCONFIG_SM_GCC_6125=yCONFIG_SM_GCC_6350=yCONFIG_SM_GCC_6375=yCONFIG_SM_GCC_7150=yCONFIG_SM_GCC_8150=yCONFIG_SM_GCC_8250=yCONFIG_SM_GCC_8350=yCONFIG_SM_GCC_8450=yCONFIG_SM_GCC_8550=y
# CONFIG_SM_GCC_8650 is not setCONFIG_SM_GPUCC_6115=yCONFIG_SM_GPUCC_6125=yCONFIG_SM_GPUCC_6375=yCONFIG_SM_GPUCC_6350=yCONFIG_SM_GPUCC_8150=yCONFIG_SM_GPUCC_8250=yCONFIG_SM_GPUCC_8350=yCONFIG_SM_GPUCC_8450=yCONFIG_SM_GPUCC_8550=y
# CONFIG_SM_GPUCC_8650 is not setCONFIG_SM_TCSRCC_8550=y
# CONFIG_SM_TCSRCC_8650 is not setCONFIG_SM_VIDEOCC_8150=y
# CONFIG_SM_VIDEOCC_8250 is not setCONFIG_SM_VIDEOCC_8350=y
# CONFIG_SM_VIDEOCC_8550 is not setCONFIG_SPMI_PMIC_CLKDIV=y
# CONFIG_QCOM_HFPLL is not set
# CONFIG_KPSS_XCC is not setCONFIG_CLK_GFM_LPASS_SM8250=yCONFIG_SM_VIDEOCC_8450=yCONFIG_CLK_MT7621=yCONFIG_CLK_MTMIPS=yCONFIG_CLK_RENESAS=yCONFIG_CLK_EMEV2=y
# CONFIG_CLK_RZA1 is not setCONFIG_CLK_R7S9210=y
# CONFIG_CLK_R8A73A4 is not setCONFIG_CLK_R8A7740=y
# CONFIG_CLK_R8A7742 is not setCONFIG_CLK_R8A7743=y
# CONFIG_CLK_R8A7745 is not set
# CONFIG_CLK_R8A77470 is not set
# CONFIG_CLK_R8A774A1 is not set
# CONFIG_CLK_R8A774B1 is not setCONFIG_CLK_R8A774C0=y
# CONFIG_CLK_R8A774E1 is not setCONFIG_CLK_R8A7778=yCONFIG_CLK_R8A7779=y
# CONFIG_CLK_R8A7790 is not set
# CONFIG_CLK_R8A7791 is not set
# CONFIG_CLK_R8A7792 is not set
# CONFIG_CLK_R8A7794 is not set
# CONFIG_CLK_R8A7795 is not set
# CONFIG_CLK_R8A77960 is not set
# CONFIG_CLK_R8A77961 is not set
# CONFIG_CLK_R8A77965 is not set
# CONFIG_CLK_R8A77970 is not set
# CONFIG_CLK_R8A77980 is not set
# CONFIG_CLK_R8A77990 is not set
# CONFIG_CLK_R8A77995 is not set
# CONFIG_CLK_R8A779A0 is not set
# CONFIG_CLK_R8A779F0 is not set
# CONFIG_CLK_R8A779G0 is not setCONFIG_CLK_R8A779H0=y
# CONFIG_CLK_R9A06G032 is not set
# CONFIG_CLK_R9A07G043 is not set
# CONFIG_CLK_R9A07G044 is not set
# CONFIG_CLK_R9A07G054 is not setCONFIG_CLK_R9A08G045=y
# CONFIG_CLK_R9A09G011 is not set
# CONFIG_CLK_SH73A0 is not setCONFIG_CLK_RCAR_CPG_LIB=yCONFIG_CLK_RCAR_GEN2_CPG=yCONFIG_CLK_RCAR_GEN3_CPG=yCONFIG_CLK_RCAR_GEN4_CPG=yCONFIG_CLK_RCAR_USB2_CLOCK_SEL=yCONFIG_CLK_RZG2L=yCONFIG_CLK_RENESAS_CPG_MSSR=yCONFIG_CLK_RENESAS_CPG_MSTP=yCONFIG_CLK_RENESAS_DIV6=yCONFIG_COMMON_CLK_SAMSUNG=y
# CONFIG_S3C64XX_COMMON_CLK is not setCONFIG_S5PV210_COMMON_CLK=yCONFIG_EXYNOS_3250_COMMON_CLK=yCONFIG_EXYNOS_4_COMMON_CLK=yCONFIG_EXYNOS_5250_COMMON_CLK=y
# CONFIG_EXYNOS_5260_COMMON_CLK is not setCONFIG_EXYNOS_5410_COMMON_CLK=y
# CONFIG_EXYNOS_5420_COMMON_CLK is not setCONFIG_EXYNOS_ARM64_COMMON_CLK=yCONFIG_EXYNOS_AUDSS_CLK_CON=yCONFIG_EXYNOS_CLKOUT=y
# CONFIG_TESLA_FSD_COMMON_CLK is not set
# CONFIG_CLK_SIFIVE is not set
# CONFIG_CLK_INTEL_SOCFPGA is not setCONFIG_CLK_SOPHGO_CV1800=y
# CONFIG_SPRD_COMMON_CLK is not set
# CONFIG_CLK_STARFIVE_JH7100 is not setCONFIG_CLK_STARFIVE_JH7110_PLL=y
# CONFIG_CLK_STARFIVE_JH7110_SYS is not setCONFIG_CLK_SUNXI=y
# CONFIG_CLK_SUNXI_CLOCKS is not setCONFIG_CLK_SUNXI_PRCM_SUN6I=y
# CONFIG_CLK_SUNXI_PRCM_SUN8I is not set
# CONFIG_CLK_SUNXI_PRCM_SUN9I is not setCONFIG_SUNXI_CCU=y
# CONFIG_SUNIV_F1C100S_CCU is not setCONFIG_SUN20I_D1_CCU=yCONFIG_SUN20I_D1_R_CCU=yCONFIG_SUN50I_A64_CCU=y
# CONFIG_SUN50I_A100_CCU is not set
# CONFIG_SUN50I_A100_R_CCU is not setCONFIG_SUN50I_H6_CCU=y
# CONFIG_SUN50I_H616_CCU is not setCONFIG_SUN50I_H6_R_CCU=yCONFIG_SUN4I_A10_CCU=y
# CONFIG_SUN5I_CCU is not setCONFIG_SUN6I_A31_CCU=yCONFIG_SUN6I_RTC_CCU=y
# CONFIG_SUN8I_A23_CCU is not setCONFIG_SUN8I_A33_CCU=yCONFIG_SUN8I_A83T_CCU=yCONFIG_SUN8I_H3_CCU=yCONFIG_SUN8I_V3S_CCU=yCONFIG_SUN8I_DE2_CCU=yCONFIG_SUN8I_R40_CCU=y
# CONFIG_SUN9I_A80_CCU is not set
# CONFIG_SUN8I_R_CCU is not set
# CONFIG_COMMON_CLK_STM32MP is not setCONFIG_COMMON_CLK_TI_ADPLL=yCONFIG_CLK_UNIPHIER=yCONFIG_COMMON_CLK_VISCONTI=yCONFIG_CLK_LGM_CGU=y
# CONFIG_XILINX_VCU is not set
# CONFIG_COMMON_CLK_XLNX_CLKWZRD is not setCONFIG_COMMON_CLK_ZYNQMP=yCONFIG_HWSPINLOCK=yCONFIG_HWSPINLOCK_OMAP=yCONFIG_HWSPINLOCK_QCOM=yCONFIG_HWSPINLOCK_SPRD=yCONFIG_HWSPINLOCK_STM32=yCONFIG_HWSPINLOCK_SUN6I=yCONFIG_HSEM_U8500=y
#
# Clock Source drivers
#CONFIG_TIMER_OF=yCONFIG_TIMER_PROBE=yCONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=yCONFIG_CLKSRC_MMIO=yCONFIG_BCM2835_TIMER=y
# CONFIG_BCM_KONA_TIMER is not setCONFIG_DAVINCI_TIMER=yCONFIG_DIGICOLOR_TIMER=y
# CONFIG_OMAP_DM_TIMER is not set
# CONFIG_DW_APB_TIMER is not set
# CONFIG_FTTMR010_TIMER is not setCONFIG_IXP4XX_TIMER=yCONFIG_MESON6_TIMER=y
# CONFIG_OWL_TIMER is not set
# CONFIG_RDA_TIMER is not set
# CONFIG_SUN4I_TIMER is not set
# CONFIG_SUN5I_HSTIMER is not setCONFIG_TEGRA_TIMER=yCONFIG_VT8500_TIMER=yCONFIG_NPCM7XX_TIMER=yCONFIG_CADENCE_TTC_TIMER=y
# CONFIG_ASM9260_TIMER is not setCONFIG_CLKSRC_DBX500_PRCMU=y
# CONFIG_CLPS711X_TIMER is not setCONFIG_MXS_TIMER=y
# CONFIG_NSPIRE_TIMER is not setCONFIG_INTEGRATOR_AP_TIMER=yCONFIG_CLKSRC_PISTACHIO=y
# CONFIG_CLKSRC_STM32_LP is not setCONFIG_ARMV7M_SYSTICK=y
# CONFIG_ATMEL_PIT is not setCONFIG_ATMEL_ST=y
# CONFIG_CLKSRC_SAMSUNG_PWM is not setCONFIG_FSL_FTM_TIMER=y
# CONFIG_MTK_TIMER is not set
# CONFIG_MTK_CPUX_TIMER is not set
# CONFIG_CLKSRC_JCORE_PIT is not set
# CONFIG_SH_TIMER_CMT is not set
# CONFIG_SH_TIMER_MTU2 is not set
# CONFIG_RENESAS_OSTM is not set
# CONFIG_SH_TIMER_TMU is not setCONFIG_EM_TIMER_STI=yCONFIG_CLKSRC_PXA=yCONFIG_TIMER_IMX_SYS_CTR=yCONFIG_CLKSRC_LOONGSON1_PWM=y
# CONFIG_CLKSRC_ST_LPC is not setCONFIG_GXP_TIMER=y
# CONFIG_MSC313E_TIMER is not setCONFIG_INGENIC_TIMER=yCONFIG_INGENIC_SYSOST=yCONFIG_INGENIC_OST=yCONFIG_GOLDFISH_TIMER=y
# end of Clock Source drivers
CONFIG_MAILBOX=y
# CONFIG_ARM_MHU_V3 is not set
# CONFIG_IMX_MBOX is not set
# CONFIG_PLATFORM_MHU is not setCONFIG_ARMADA_37XX_RWTM_MBOX=yCONFIG_ROCKCHIP_MBOX=yCONFIG_PCC=yCONFIG_ALTERA_MBOX=yCONFIG_MAILBOX_TEST=yCONFIG_POLARFIRE_SOC_MAILBOX=yCONFIG_QCOM_APCS_IPC=yCONFIG_BCM_PDC_MBOX=yCONFIG_STM32_IPCC=yCONFIG_MTK_ADSP_MBOX=yCONFIG_MTK_CMDQ_MBOX=yCONFIG_SUN6I_MSGBOX=y
# CONFIG_SPRD_MBOX is not setCONFIG_QCOM_IPCC=yCONFIG_IOMMU_IOVA=yCONFIG_IOMMU_API=yCONFIG_IOMMUFD_DRIVER=yCONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#CONFIG_IOMMU_IO_PGTABLE=y CONFIG_IOMMU_IO_PGTABLE_LPAE=y
# CONFIG_IOMMU_IO_PGTABLE_LPAE_SELFTEST is not set CONFIG_IOMMU_IO_PGTABLE_ARMV7S=y
# CONFIG_IOMMU_IO_PGTABLE_ARMV7S_SELFTEST is not set CONFIG_IOMMU_IO_PGTABLE_DART=y
# end of Generic IOMMU Pagetable Support
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not set CONFIG_IOMMU_DEFAULT_DMA_LAZY=y
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not set CONFIG_OF_IOMMU=yCONFIG_IOMMU_DMA=yCONFIG_IOMMU_SVA=yCONFIG_IOMMU_IOPF=yCONFIG_AMD_IOMMU=yCONFIG_DMAR_TABLE=yCONFIG_INTEL_IOMMU=y
# CONFIG_INTEL_IOMMU_SVM is not set CONFIG_INTEL_IOMMU_DEFAULT_ON=y CONFIG_INTEL_IOMMU_FLOPPY_WA=y CONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON=y CONFIG_INTEL_IOMMU_PERF_EVENTS=y CONFIG_IOMMUFD=y
# CONFIG_IRQ_REMAP is not set CONFIG_OMAP_IOMMU=y
# CONFIG_OMAP_IOMMU_DEBUG is not set
# CONFIG_ROCKCHIP_IOMMU is not set CONFIG_SUN50I_IOMMU=y
# CONFIG_EXYNOS_IOMMU is not set CONFIG_IPMMU_VMSA=y
# CONFIG_APPLE_DART is not set CONFIG_ARM_SMMU=y
# CONFIG_ARM_SMMU_LEGACY_DT_BINDINGS is not set # CONFIG_ARM_SMMU_DISABLE_BYPASS_BY_DEFAULT is not set CONFIG_MTK_IOMMU=y
# CONFIG_QCOM_IOMMU is not set
# CONFIG_VIRTIO_IOMMU is not set CONFIG_SPRD_IOMMU=y
#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#CONFIG_RPMSG=yCONFIG_RPMSG_CHAR=yCONFIG_RPMSG_CTRL=yCONFIG_RPMSG_NS=yCONFIG_RPMSG_QCOM_GLINK=yCONFIG_RPMSG_QCOM_GLINK_RPM=yCONFIG_RPMSG_VIRTIO=y
# end of Rpmsg drivers
CONFIG_SOUNDWIRE=y
#
# SoundWire Devices
#
#
# SOC (System On Chip) specific Drivers
#
#
# Amlogic SoC drivers
#
# CONFIG_MESON_CANVAS is not setCONFIG_MESON_CLK_MEASURE=y
# CONFIG_MESON_GX_SOCINFO is not set
# CONFIG_MESON_MX_SOCINFO is not set
# end of Amlogic SoC drivers
#
# Apple SoC drivers
#CONFIG_APPLE_SART=y
# end of Apple SoC drivers
#
# ASPEED SoC drivers
#CONFIG_ASPEED_LPC_CTRL=y
# CONFIG_ASPEED_LPC_SNOOP is not setCONFIG_ASPEED_UART_ROUTING=yCONFIG_ASPEED_P2A_CTRL=y
# CONFIG_ASPEED_SOCINFO is not set
# end of ASPEED SoC drivers
CONFIG_AT91_SOC_ID=y
# CONFIG_AT91_SOC_SFR is not set
#
# Broadcom SoC drivers
#
# CONFIG_SOC_BRCMSTB is not set
# end of Broadcom SoC drivers
#
# NXP/Freescale QorIQ SoC drivers
#
# CONFIG_QUICC_ENGINE is not setCONFIG_FSL_GUTS=yCONFIG_FSL_MC_DPIO=yCONFIG_DPAA2_CONSOLE=y
# end of NXP/Freescale QorIQ SoC drivers
#
# fujitsu SoC drivers # # end of fujitsu SoC drivers
#
# Hisilicon SoC drivers
#
# CONFIG_KUNPENG_HCCS is not set
# end of Hisilicon SoC drivers
#
# i.MX SoC drivers
#CONFIG_SOC_IMX8M=yCONFIG_SOC_IMX9=y
# end of i.MX SoC drivers
#
# IXP4xx SoC drivers
#CONFIG_IXP4XX_QMGR=yCONFIG_IXP4XX_NPE=y
# end of IXP4xx SoC drivers
#
# Enable LiteX SoC Builder specific drivers
#CONFIG_LITEX=yCONFIG_LITEX_SOC_CONTROLLER=y
# end of Enable LiteX SoC Builder specific drivers
# CONFIG_LOONGSON2_GUTS is not set
#
# MediaTek SoC drivers
#CONFIG_MTK_CMDQ=y
# CONFIG_MTK_DEVAPC is not setCONFIG_MTK_INFRACFG=y
# CONFIG_MTK_PMIC_WRAP is not setCONFIG_MTK_REGULATOR_COUPLER=y
# CONFIG_MTK_MMSYS is not set
# end of MediaTek SoC drivers
# CONFIG_POLARFIRE_SOC_SYS_CTRL is not setCONFIG_WPCM450_SOC=y
#
# Qualcomm SoC drivers
#
# CONFIG_QCOM_COMMAND_DB is not set
# CONFIG_QCOM_GENI_SE is not setCONFIG_QCOM_GSBI=yCONFIG_QCOM_LLCC=yCONFIG_QCOM_PDR_HELPERS=yCONFIG_QCOM_QMI_HELPERS=yCONFIG_QCOM_RAMP_CTRL=yCONFIG_QCOM_RPM_MASTER_STATS=yCONFIG_QCOM_RPMH=y
# CONFIG_QCOM_SMEM is not set
# CONFIG_QCOM_SMD_RPM is not set
# CONFIG_QCOM_SPM is not set
# CONFIG_QCOM_WCNSS_CTRL is not setCONFIG_QCOM_APR=yCONFIG_QCOM_ICC_BWMON=yCONFIG_QCOM_PBS=y
# end of Qualcomm SoC drivers
CONFIG_SOC_RENESAS=y
# CONFIG_PWC_RZV2M is not setCONFIG_RST_RCAR=y
# CONFIG_ROCKCHIP_GRF is not setCONFIG_ROCKCHIP_IODOMAIN=yCONFIG_SOC_SAMSUNG=y
# CONFIG_EXYNOS_ASV_ARM is not setCONFIG_EXYNOS_CHIPID=yCONFIG_EXYNOS_USI=yCONFIG_EXYNOS_REGULATOR_COUPLER=y
# CONFIG_SOC_TEGRA20_VOLTAGE_COUPLER is not setCONFIG_SOC_TEGRA30_VOLTAGE_COUPLER=y
# CONFIG_SOC_TI is not setCONFIG_UX500_SOC_ID=y
#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers # end of SOC (System On Chip) specific Drivers
#
# PM Domains
#
#
# Amlogic PM Domains
#
# end of Amlogic PM Domains
CONFIG_ARM_SCMI_PERF_DOMAIN=yCONFIG_ARM_SCMI_POWER_DOMAIN=yCONFIG_ARM_SCPI_POWER_DOMAIN=y
#
# Broadcom PM Domains
#
# CONFIG_BCM2835_POWER is not set
# CONFIG_BCM_PMB is not setCONFIG_BCM63XX_POWER=y
# end of Broadcom PM Domains
#
# i.MX PM Domains
#
# end of i.MX PM Domains
#
# MediaTek PM Domains
#CONFIG_MTK_SCPSYS=y
# end of MediaTek PM Domains
#
# Qualcomm PM Domains
#
# end of Qualcomm PM Domains
CONFIG_SYSC_RCAR=yCONFIG_SYSC_RCAR_GEN4=yCONFIG_SYSC_R8A77995=yCONFIG_SYSC_R8A7794=yCONFIG_SYSC_R8A77990=yCONFIG_SYSC_R8A7779=y
# CONFIG_SYSC_R8A7790 is not set
# CONFIG_SYSC_R8A7795 is not setCONFIG_SYSC_R8A7791=y
# CONFIG_SYSC_R8A77965 is not set
# CONFIG_SYSC_R8A77960 is not set
# CONFIG_SYSC_R8A77961 is not set
# CONFIG_SYSC_R8A779F0 is not setCONFIG_SYSC_R8A7792=y
# CONFIG_SYSC_R8A77980 is not set
# CONFIG_SYSC_R8A77970 is not setCONFIG_SYSC_R8A779A0=yCONFIG_SYSC_R8A779G0=y
# CONFIG_SYSC_R8A779H0 is not set
# CONFIG_SYSC_RMOBILE is not set
# CONFIG_SYSC_R8A77470 is not set
# CONFIG_SYSC_R8A7745 is not setCONFIG_SYSC_R8A7742=y
# CONFIG_SYSC_R8A7743 is not setCONFIG_SYSC_R8A774C0=yCONFIG_SYSC_R8A774E1=yCONFIG_SYSC_R8A774A1=yCONFIG_SYSC_R8A774B1=yCONFIG_EXYNOS_PM_DOMAINS=yCONFIG_UX500_PM_DOMAIN=y
# end of PM Domains
CONFIG_PM_DEVFREQ=y
#
# DEVFREQ Governors
#CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=y
# CONFIG_DEVFREQ_GOV_PERFORMANCE is not setCONFIG_DEVFREQ_GOV_POWERSAVE=yCONFIG_DEVFREQ_GOV_USERSPACE=yCONFIG_DEVFREQ_GOV_PASSIVE=y
#
# DEVFREQ Drivers
#CONFIG_ARM_EXYNOS_BUS_DEVFREQ=yCONFIG_ARM_IMX_BUS_DEVFREQ=y
# CONFIG_ARM_TEGRA_DEVFREQ is not setCONFIG_ARM_MEDIATEK_CCI_DEVFREQ=y
# CONFIG_ARM_SUN8I_A33_MBUS_DEVFREQ is not setCONFIG_PM_DEVFREQ_EVENT=y
# CONFIG_DEVFREQ_EVENT_EXYNOS_NOCP is not setCONFIG_DEVFREQ_EVENT_EXYNOS_PPMU=y
# CONFIG_DEVFREQ_EVENT_ROCKCHIP_DFI is not set
# CONFIG_EXTCON is not setCONFIG_MEMORY=y
# CONFIG_ATMEL_EBI is not set
# CONFIG_BRCMSTB_DPFE is not setCONFIG_BRCMSTB_MEMC=y
# CONFIG_BT1_L2_CTL is not set
# CONFIG_TI_AEMIF is not set
# CONFIG_TI_EMIF is not set
# CONFIG_OMAP_GPMC is not setCONFIG_FPGA_DFL_EMIF=yCONFIG_MVEBU_DEVBUS=yCONFIG_FSL_CORENET_CF=y
# CONFIG_FSL_IFC is not set
# CONFIG_JZ4780_NEMC is not setCONFIG_MTK_SMI=yCONFIG_DA8XX_DDRCTL=y
# CONFIG_RENESAS_RPCIF is not setCONFIG_STM32_FMC2_EBI=y
# CONFIG_SAMSUNG_MC is not set
# CONFIG_TEGRA_MC is not setCONFIG_IIO=yCONFIG_IIO_BUFFER=yCONFIG_IIO_BUFFER_CB=yCONFIG_IIO_BUFFER_DMA=yCONFIG_IIO_BUFFER_DMAENGINE=yCONFIG_IIO_BUFFER_HW_CONSUMER=yCONFIG_IIO_KFIFO_BUF=yCONFIG_IIO_TRIGGERED_BUFFER=yCONFIG_IIO_CONFIGFS=yCONFIG_IIO_GTS_HELPER=yCONFIG_IIO_TRIGGER=yCONFIG_IIO_CONSUMERS_PER_TRIGGER=2
# CONFIG_IIO_SW_DEVICE is not set
# CONFIG_IIO_SW_TRIGGER is not setCONFIG_IIO_TRIGGERED_EVENT=yCONFIG_IIO_BACKEND=y
#
# Accelerometers
#CONFIG_ADIS16201=yCONFIG_ADIS16209=yCONFIG_ADXL313=y
# CONFIG_ADXL313_I2C is not setCONFIG_ADXL313_SPI=yCONFIG_ADXL345=yCONFIG_ADXL345_I2C=y
# CONFIG_ADXL345_SPI is not setCONFIG_ADXL355=y
# CONFIG_ADXL355_I2C is not setCONFIG_ADXL355_SPI=yCONFIG_ADXL367=yCONFIG_ADXL367_SPI=yCONFIG_ADXL367_I2C=yCONFIG_ADXL372=y
# CONFIG_ADXL372_SPI is not setCONFIG_ADXL372_I2C=yCONFIG_BMA180=yCONFIG_BMA220=yCONFIG_BMA400=yCONFIG_BMA400_I2C=yCONFIG_BMA400_SPI=yCONFIG_BMC150_ACCEL=yCONFIG_BMC150_ACCEL_I2C=yCONFIG_BMC150_ACCEL_SPI=yCONFIG_BMI088_ACCEL=yCONFIG_BMI088_ACCEL_I2C=yCONFIG_BMI088_ACCEL_SPI=yCONFIG_DA280=yCONFIG_DA311=yCONFIG_DMARD06=y
# CONFIG_DMARD09 is not set
# CONFIG_DMARD10 is not setCONFIG_FXLS8962AF=yCONFIG_FXLS8962AF_I2C=yCONFIG_FXLS8962AF_SPI=yCONFIG_IIO_KX022A=yCONFIG_IIO_KX022A_SPI=yCONFIG_IIO_KX022A_I2C=y
# CONFIG_KXSD9 is not setCONFIG_KXCJK1013=y
# CONFIG_MC3230 is not setCONFIG_MMA7455=yCONFIG_MMA7455_I2C=yCONFIG_MMA7455_SPI=yCONFIG_MMA7660=y
# CONFIG_MMA8452 is not setCONFIG_MMA9551_CORE=yCONFIG_MMA9551=yCONFIG_MMA9553=yCONFIG_MSA311=y
# CONFIG_MXC4005 is not setCONFIG_MXC6255=yCONFIG_SCA3000=y
# CONFIG_SCA3300 is not setCONFIG_STK8312=y
# CONFIG_STK8BA50 is not set
# end of Accelerometers
1,960 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Simon Horman
reviewerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
In reply to David Woodhouse+ Kees Cook, linux-hardening
Quoted 14 lines · David Woodhouse
From: David Woodhouse <[email protected]>
The vmclock "device" provides a shared memory region with precision clock information. By using shared memory, it is safe across Live Migration.
Like the KVM PTP clock, this can convert TSC-based cross timestamps into KVM clock values. Unlike the KVM PTP clock, it does so only when such is actually helpful.
The memory region of the device is also exposed to userspace so it can be read or memory mapped by application which need reliable notification of clock disruptions.
Signed-off-by David Woodhouse <[email protected]>
...
Quoted 1 line
drivers/ptp/ptp_vmclock.c +0
-0
...
Quoted 2 lines
drivers/ptp/ptp_vmclock.c +2
-0+static int vmclock_probe (struct platform_device *pdev) +{
...
drivers/ptp/ptp_vmclock.c line 480
Quoted 4 lines
drivers/ptp/ptp_vmclock.c +4
-0+/* If there is valid clock information, register a PTP clock */ +if (st->cs_id) { + st->ptp_clock_info = ptp_vmclock_info; +strncpy (st->ptp_clock_info.name, st->name,sizeof (st->ptp_clock_info.name));
Hi David,
W=1 allmodconfig builds with gcc-13 flag the following. Reading the documentation of strncpy() in fortify-string.h, I wonder if strscpy() would be more appropriate in this case.
In file included from ./include/linux/string.h:374,
from ./include/linux/bitmap.h:13,
from ./include/linux/cpumask.h:13,
from ./arch/x86/include/asm/paravirt.h:21,
from ./arch/x86/include/asm/cpuid.h:62,
from ./arch/x86/include/asm/processor.h:19,
from ./include/linux/sched.h:13,
from ./include/linux/ratelimit.h:6,
from ./include/linux/dev_printk.h:16,
from ./include/linux/device.h:15,
from drivers/ptp/ptp_vmclock.c:8:
In function 'strncpy',
inlined from 'vmclock_probe' at drivers/ptp/ptp_vmclock.c:480:3:
./include/linux/fortify-string.h:125:33: warning: '__builtin_strncpy' specified bound 32 equals destination size [-Wstringop-truncation]
125 | #define __underlying_strncpy __builtin_strncpy
| ^./include/linux/fortify-string.h:205:16: note: in expansion of macro '__underlying_strncpy'
205 | return __underlying_strncpy(p, q, size);
...
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 4 lines · Simon Horman
W=1 allmodconfig builds with gcc-13 flag the following. Reading the documentation of
strncpy()infortify-string.h, I wonder ifstrscpy()would be more appropriate in this case.
It's never going to matter in practice, as the buffer is 32 bytes, so "vmclock%d" would never get to the end even if was a 64-bit integer.
But as a matter of hygiene and best practice, yes strscpy() would be more appropriate. Fixed in git, thanks.
Re: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 11 lines · David Woodhouse
Quoted 4 lines · Simon Horman
W=1 allmodconfig builds with gcc-13 flag the following. Reading the documentation of
strncpy()infortify-string.h, I wonder ifstrscpy()would be more appropriate in this case.It's never going to matter in practice, as the buffer is 32 bytes, so "vmclock%d" would never get to the end even if was a 64-bit integer.
But as a matter of hygiene and best practice, yes
strscpy()would be more appropriate. Fixed in git, thanks.
Thanks! You can even use the 2-argument version. :)
Signature · 1 line
Kees Cook
David Woodhouse
maintainerRe: [RFC PATCH v2] ptp: Add vDSO-style vmclock support
Quoted 7 lines · Kees Cook
Quoted 6 lines · David Woodhouse
Quoted 4 lines · Simon Horman
W=1 allmodconfig builds with gcc-13 flag the following. Reading the documentation of
strncpy()infortify-string.h, I wonder ifstrscpy()would be more appropriate in this case.
Quoted 7 lines
Quoted 5 lines
It's never going to matter in practice, as the buffer is 32 bytes, so "vmclock%d" would never get to the end even if was a 64-bit integer.
But as a matter of hygiene and best practice, yes
strscpy()would be more appropriate. Fixed in git, thanks.Thanks! You can even use the 2-argument version. :)
2-argument version? ... oh, that's *special*. I don't know whether to be impressed or disturbed. Perhaps a little bit of both.
Done; thanks.
Quoted 42 lines · David Woodhouse
Quoted 15 lines · David Woodhouse
Quoted 8 lines
Quoted 5 lines
+
+ /* Counter frequency, and error margin. Units of (second >> 64) */ + uint64_tcounter_period_frac_sec;AFAIU this might limit the precision in case of high counter frequencies. Could the unit be aligned to the expected frequency band of counters?
This field indicates the period of a single tick, in units of 1>>64 of a second. That's about 5.4e-20 seconds, or 54 zeptoseconds?
Can you walk me through a calculation where you believe that level of precision is insufficient?
Quoted 7 lines
I guess the precision matters if the structure isn't updated for a long period of time, and the delta between the current counter and the snapshot is high? That's a *lot* of 54 zeptosecondses? But you really would need a *lot* of them before you care? And if nobody's been calibrating your counter for that long, surely you have bigger worries?
Am I missing something there?
Hm, that was a bit rushed at the end of the day; let's take a better look...
Let's take a hypothetical example of a 100GHz counter. That's two orders of magnitude more than today's Arm arch counter.
The period of such a counter would be 10 picoseconds.
(Let's ignore the question of how far light actually travels in that time and how *realistic* that example is, for the moment.)
It turns out that at that rate, there *are* a lot of 54 zeptosecondses of precision loss in the day. It could be half a millisecond a day, or 20µs an hour.
That particular example of 10 picoseconds is 184467440.7370955 (seconds>>64) which could be truncated to 184467440 — losing about 4PPB (a third of a millisecond a day; 14µs an hour).
Quoted 8 lines
So yeah, I suppose a 'shift' field could make sense. It's easy enough to consume on the guest side as it doesn't really perturb the 128-bit multiplication very much; especially if we don't let it be negative.
And implementations *can* just set it to zero. It hurts nobody.
Or were you thinking of just using a fixed shift like (seconds>>80) instead?
The 'shift' field should be fine.
David Woodhouse
maintainerQuoted 1 line · Peter Hilber
Should implement .gettimex64 instead.
Thanks. This look sane?
As noted in the code comment, in the *ideal* case we just build all three pre/post/device timestamps from the very same counter read. So sts->pre_ts == sts->post_ts.
In the less ideal case (which will happen on x86 when kvmclock is being used for the system time), we use the time from ktime_get_snapshot() as the pre_ts and take a new snapshot immediately after the get_cycles().
drivers/ptp/ptp_vmclock.c +40 -3
@@ -96,9 +96,11 @@ static inline uint64_t mul_u64_u64_add_u64(uint64_t *res_hi, uint64_t delta, }static int vmclock_get_crosststamp (struct vmclock_state *st, +struct ptp_system_timestamp *sts,struct system_counterval_t *system_counter,struct timespec64 *tspec) { +struct system_time_snapshot systime_snapshot;uint64_t cycle, delta, seq, frac_sec;int ret =0 ;
@@ -119,7 +121,17 @@ static int vmclock_get_crosststamp(struct vmclock_state *st,continue ; } - cycle =get_cycles (); +if (sts) { +ktime_get_snapshot (&systime_snapshot); + +if (systime_snapshot.cs_id == st->cs_id) { + cycle = systime_snapshot.cycles; + }else { + cycle =get_cycles (); +ptp_read_system_postts (sts); + } + }else + cycle =get_cycles (); delta = cycle - st->clk->counter_value;
@@ -139,6 +151,21 @@ static int vmclock_get_crosststamp(struct vmclock_state *st,if (ret)return ret; +/* +* When invoked for gettimex64, fill in the pre/post system times. +* The ideal case is when system time is based on the the same +* counter as st->cs_id, in which case all three pre/post/device +* times are derived from the *same* counter value. If cs_id does +* not match, then the value from ktime_get_snapshot() is used as +* pre_ts, and ptp_read_system_postts() was already called above +* for the post_ts. Those are either side of the get_cycles() call. +*/ +if (sts) { + sts->pre_ts =ktime_to_timespec64 (systime_snapshot.real); +if (systime_snapshot.cs_id == st->cs_id) + sts->post_ts = sts->pre_ts; + } +if (system_counter) { system_counter->cycles = cycle; system_counter->cs_id = st->cs_id;
@@ -155,7 +182,7 @@ static int ptp_vmclock_get_time_fn(ktime_t *device_time,struct timespec64 tspec;int ret; - ret =vmclock_get_crosststamp (st, system_counter, &tspec); + ret =vmclock_get_crosststamp (st,NULL , system_counter, &tspec);if (!ret) *device_time =timespec64_to_ktime (tspec);
@@ -198,7 +225,16 @@ static int ptp_vmclock_gettime(struct ptp_clock_info *ptp, struct timespec64 *ts struct vmclock_state *st = container_of(ptp, struct vmclock_state, ptp_clock_info); -return vmclock_get_crosststamp (st,NULL , ts); +return vmclock_get_crosststamp (st,NULL ,NULL , ts); +} + +static int ptp_vmclock_gettimex (struct ptp_clock_info *ptp,struct timespec64 *ts, +struct ptp_system_timestamp *sts) +{ + struct vmclock_state *st = container_of(ptp, struct vmclock_state, + ptp_clock_info); + +return vmclock_get_crosststamp (st, sts,NULL , ts); } static int ptp_vmclock_enable(struct ptp_clock_info *ptp,
@@ -216,6 +252,7 @@ static const struct ptp_clock_info ptp_vmclock_info = { .adjfine = ptp_vmclock_adjfine, .adjtime = ptp_vmclock_adjtime, .gettime64 = ptp_vmclock_gettime, + .gettimex64 = ptp_vmclock_gettimex, .settime64 = ptp_vmclock_settime, .enable = ptp_vmclock_enable, .getcrosststamp = ptp_vmclock_getcrosststamp,