Handle corrected machine check interrupt storms
Subsystems (3)
cover Handle corrected machine check interrupt storms
Extend the logic of handling Intel's corrected machine check interrupt storms to AMD's threshold interrupts.
First two patches are from Tony which cleans up the existing storm handling for Intel and proposes per CPU per bank storm handling.
Third and fourth patches do some cleanup and refactoring on the CMCI storm handling in order to extend similar workaround for AMD's threshold interrupt storms. These two patches could be merged into Tony's second patch of CMCI storm mitigation.
AMD's storm mitigation for threshold interrupts also relies on per CPU per bank approach similar to Intel. But unlike CMCI storm handling it does not set thresholds to reduce rate of interrupts on a storm. Rather it turns off the interrupt on the current CPU and bank if there is a storm and re-enables back the interrupts when the storm subsides.
It is okay to turn off threshold interrupts on AMD systems as other error severities continue to be handled even if the threshold interrupts are turned off. Uncorrected errors will generate a #MC and deferred errors have a unique separate deferred error interrupt. The final patch adds support for handling threshold interrupt storms on AMD systems.
Smita Koralahalli (3):
x86/mce: Introduce a function pointer mce_handle_storm x86/mce: Move storm handling to core. x86/mce: Handle AMD threshold interrupt storms
Tony Luck (2):
x86/mce: Remove old CMCI storm mitigation code
x86/mce: Add per-bank CMCI storm mitigation
arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++ arch/x86/kernel/cpu/mce/core.c | 129 +++++++++++++++++---- arch/x86/kernel/cpu/mce/intel.c | 179 +++++++---------------------- arch/x86/kernel/cpu/mce/internal.h | 42 +++++-- 4 files changed, 231 insertions(+), 168 deletions(-)
Signature · 1 line
2.17.1
PATCH 1/5 x86/mce: Remove old CMCI storm mitigation code
From: Tony Luck <[email protected]>
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- arch/x86/kernel/cpu/mce/internal.h | 6 -- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1596,13 +1596,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1625,15 +1618,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))machine_check_poll (0 ,this_cpu_ptr (&mce_poll_banks)); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1643,7 +1630,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -1980,7 +1966,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -1993,7 +1978,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2649,8 +2633,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,18 +41,12 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
Signature · 1 line
2.17.1
PATCH 2/5 x86/mce: Add per-bank CMCI storm mitigation
In reply to Smita KoralahalliFrom: Tony Luck <[email protected]>
Add a hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed the Rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (5 in this RFC code for ease of testing, likely move to 15 for compatibility with previous storm detection).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (currently 30, may also change). That resets the threshold in IA32_MCi_CTL2 back to 1, removes the bank from the bitmap for polling, and changes the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
--- arch/x86/kernel/cpu/mce/core.c | 26 +++-- arch/x86/kernel/cpu/mce/intel.c | 146 ++++++++++++++++++++++++++++- arch/x86/kernel/cpu/mce/internal.h | 4 +- 3 files changed, 165 insertions(+), 11 deletions(-)
arch/x86/kernel/cpu/mce/core.c +18 -8
@@ -692,6 +692,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +track_cmci_storm (i, m.status); +/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
@@ -1595,6 +1597,7 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); +static DEFINE_PER_CPU(bool, storm_poll_mode);static void __start_timer (struct timer_list *t,unsigned long interval) {
@@ -1630,22 +1633,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (__this_cpu_read (storm_poll_mode)) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +__this_cpu_write (storm_poll_mode, storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */
arch/x86/kernel/cpu/mce/intel.c +144 -2
190 lines not on this page · raw message
arch/x86/kernel/cpu/mce/internal.h +3 -1
@@ -41,12 +41,14 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL +void track_cmci_storm (int bank,u64 status);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void track_cmci_storm (int bank,u64 status) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
@@ -54,7 +56,7 @@ static inline void intel_clear_lmce(void) { }static inline bool intel_filter_mce (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
Signature · 1 line
2.17.1
RFC PATCH 3/5 x86/mce: Introduce a function pointer mce_handle_storm
In reply to Smita KoralahalliIntroduce a function pointer "mce_handle_storm". This function pointer does the vendor specific storm handling. In Intel it points to a routine to set different thresholds in IA32_MCi_CTL2.
No functional changes.
---
The intention of keeping this patch separate was just to not make any changes in Tony's initial code as it can get confusing. These changes could be merged in Tony's new CMCI storm mitigation patch.
--- arch/x86/kernel/cpu/mce/core.c | 5 +++++ arch/x86/kernel/cpu/mce/intel.c | 12 ++++++++++-- arch/x86/kernel/cpu/mce/internal.h | 3 +++ 3 files changed, 18 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/mce/core.c +5 -0
@@ -1599,6 +1599,10 @@ static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); static DEFINE_PER_CPU(bool, storm_poll_mode); +void mce_handle_storm_default (int bank,bool on) { } + +void (*mce_handle_storm)(int bank,bool on) = mce_handle_storm_default; +static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1988,6 +1992,7 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); + mce_handle_storm = mce_intel_handle_storm;break ;case X86_VENDOR_AMD : {
arch/x86/kernel/cpu/mce/intel.c +10 -2
@@ -159,6 +159,14 @@ static void cmci_set_threshold(int bank, int thresh)raw_spin_unlock_irqrestore (&cmci_discover_lock, flags); } +void mce_intel_handle_storm (int bank,bool on) +{ +if (on) +cmci_set_threshold (bank, cmci_threshold[bank]); +else +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +} +static void cmci_storm_begin (int bank) {__set_bit (bank,this_cpu_ptr (mce_poll_banks));
@@ -218,13 +226,13 @@ void track_cmci_storm(int bank, u64 status)if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 ))return ;pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank, cmci_threshold[bank]); +mce_handle_storm (bank, true);cmci_storm_end (bank); }else {if (hweight64 (history) <STORM_BEGIN_THRESHOLD )return ;pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +mce_handle_storm (bank, false);cmci_storm_begin (bank); } }
arch/x86/kernel/cpu/mce/internal.h +3 -0
@@ -42,6 +42,7 @@ extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL void track_cmci_storm (int bank,u64 status); +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );
@@ -49,6 +50,7 @@ void intel_clear_lmce(void);bool intel_filter_mce (struct mce *m);#else static inline void track_cmci_storm (int bank,u64 status) { } +# define mce_intel_handle_storm mce_handle_storm_defaultstatic inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
@@ -57,6 +59,7 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }#endif void mce_timer_kick (bool storm); +extern void (*mce_handle_storm)(int bank,bool on);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
Signature · 1 line
2.17.1
Luck, Tony
maintainerRE: [RFC PATCH 3/5] x86/mce: Introduce a function pointer mce_handle_storm
Quoted 3 lines
Introduce a function pointer "
mce_handle_storm". This function pointer does the vendor specific storm handling. In Intel it points to a routine to set different thresholds inIA32_MCi_CTL2.
Boris did some cleanups in machine check code to get rid of places where function pointers were used. E.g.
cc466666ab09 x86/mce: Get rid of the ->quirk_no_way_out() indirect call 8121b8f947be x86/mce: Get rid of msr_opscbe1de162d82 x86/mce: Get rid of machine_check_vector 631adc7b0bba x86/mce: Get rid of the mce_severity function pointer
Was that to help with the "noinstr" cleanup? I'm not sure if that would apply here (in which case mce_handle_storm would be a regular function with a switch on "vendor".)
-Tony
RFC PATCH 4/5 x86/mce: Move storm handling to core.
In reply to Smita KoralahalliAMD's storm handling for threshold interrupts is similar to Intel's CMCI storm handling. Hence, make the storm handling code common by moving to core and removing the vendor exclusivity.
On the contrary, setting different thresholds to reduce rate of interrupts in IA32_MCi_CTL2 register is kept Intel intact as the storm handling for AMD slightly differs where in it handles the storms by turning off the interrupts.
No functional changes.
---
This is another patch which can be merged into Tony's per CPU per bank CMCI storm mitigation.
--- arch/x86/kernel/cpu/mce/core.c | 81 +++++++++++++++++++++++ arch/x86/kernel/cpu/mce/intel.c | 100 +---------------------------- arch/x86/kernel/cpu/mce/internal.h | 25 ++++++++ 3 files changed, 107 insertions(+), 99 deletions(-)
arch/x86/kernel/cpu/mce/core.c +81 -0
@@ -611,6 +611,87 @@ static struct notifier_block mce_default_nb = { .priority = MCE_PRIO_LOWEST, }; +/* +* CMCI storm tracking state +* stormy_bank_count: per-cpu count of MC banks in storm state +* bank_history: bitmask tracking of corrected errors seen in each bank +* bank_time_stamp: last time (in jiffies) that each bank was polled +*/ +DEFINE_PER_CPU (int, stormy_bank_count); +DEFINE_PER_CPU (u64 [MAX_NR_BANKS ], bank_history); +DEFINE_PER_CPU (bool [MAX_NR_BANKS ], bank_storm); +DEFINE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp); + +void cmci_storm_begin (int bank) +{ +__set_bit (bank,this_cpu_ptr (mce_poll_banks)); +this_cpu_write (bank_storm[bank], true); + +/* +* If this is the first bank on this CPU to enter storm mode +* start polling +*/ +if (this_cpu_inc_return (stormy_bank_count) ==1 ) +mce_timer_kick (true); +} + +void cmci_storm_end (int bank) +{ +__clear_bit (bank,this_cpu_ptr (mce_poll_banks)); +this_cpu_write (bank_history[bank],0ull ); +this_cpu_write (bank_storm[bank], false); + +/* If no banks left in storm mode, stop polling */ +if (!this_cpu_dec_return (stormy_bank_count)) +mce_timer_kick (false); +} + +void track_cmci_storm (int bank,u64 status) +{ +unsigned long now = jiffies, delta; +unsigned int shift =1 ; +u64 history; + +/* +* When a bank is in storm mode, the history mask covers about +* one second of elapsed time. Check how long it has been since +* this bank was last polled, and compute a shift value to update +* the history bitmask. When not in storm mode, each consecutive +* poll of the bank is logged in the next history bit, so shift +* is kept at "1". +*/ +if (this_cpu_read (bank_storm[bank])) { + delta = now -this_cpu_read (bank_time_stamp[bank]); + shift = (delta +HZBITS ) /HZBITS ; + } + +/* If has been a long time since the last poll, clear history */ +if (shift >=64 ) + history =0 ; +else + history =this_cpu_read (bank_history[bank]) << shift; +this_cpu_write (bank_time_stamp[bank], now); + +/* History keeps track of corrected errors. VAL=1 && UC=0 */ +if ((status & (MCI_STATUS_VAL |MCI_STATUS_UC )) ==MCI_STATUS_VAL ) + history |=1 ; +this_cpu_write (bank_history[bank], history); + +if (this_cpu_read (bank_storm[bank])) { +if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 )) +return ; +pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); +mce_handle_storm (bank, true); +cmci_storm_end (bank); + }else { +if (hweight64 (history) <STORM_BEGIN_THRESHOLD ) +return ; +pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); +mce_handle_storm (bank, false); +cmci_storm_begin (bank); + } +} +/* * Read ADDR and MISC registers. */
arch/x86/kernel/cpu/mce/intel.c +1 -99
118 lines not on this page · raw message
arch/x86/kernel/cpu/mce/internal.h +25 -0
@@ -60,6 +60,31 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }void mce_timer_kick (bool storm);extern void (*mce_handle_storm)(int bank,bool on); +void cmci_storm_begin (int bank); +void cmci_storm_end (int bank); + +DECLARE_PER_CPU (int, stormy_bank_count); +DECLARE_PER_CPU (u64 [MAX_NR_BANKS ], bank_history); +DECLARE_PER_CPU (bool [MAX_NR_BANKS ], bank_storm); +DECLARE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp); + +/* +* How many errors within the history buffer mark the start of a storm +*/ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over +*/ +#define STORM_END_POLL_THRESHOLD 30 + +/* +* When there is no storm each "bit" in the history represents +* this many jiffies. When there is a storm every poll() takes +* one history bit. +*/ +#define HZBITS (HZ / 64)#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
Signature · 1 line
2.17.1
Luck, Tony
maintainerRe: [RFC PATCH 4/5] x86/mce: Move storm handling to core.
Review
Quoted 12 lines · Smita Koralahalli
(quoted diff) +12
-0+ /* + * When a bank is in storm mode, the history mask covers about + * one second of elapsed time. Check how long it has been since + * this bank was last polled, and compute a shift value to update + * the history bitmask. When not in storm mode, each consecutive + * poll of the bank is logged in the next history bit, so shift + * is kept at "1". + */ + if (this_cpu_read(bank_storm[bank])) { + delta = now - this_cpu_read(bank_time_stamp[bank]); + shift = (delta + HZBITS) / HZBITS; + }
Apologies for the long delay in following up on this.
I tested out your patches on an Intel system, and they "work" in that storms are detected, mitigations applied, and then the storm end is detected and the system returns to regular mode.
But the storm end happens far more quickly than I expected (in just over a second). So I stared again at the code above, and realized it doesn't do what I expected. Not your fault, you just copied from my patches ... which means that my comment didn't help explain what I was trying to do ... and so it wasn't obvious that:
1) the test is backwards (need to adjust when the bank is NOT in storm mode ... in storm mode we poll every second).
2) I can't even remember what I was trying to do with HZBITS, but it seems wrong too. Just need to use HZ.
Patch below to be merged back into the series. This lets things run for just over 30 seconds without finding a logged error while polling in storm mode. Which is what I wanted.
[ 111.486306] mce: CPU48 BANK7 CMCI storm detected [ 111.486394] mce: [Hardware Error]: Machine check events logged [ 111.486401] mce: [Hardware Error]: Machine check events logged [ 142.861874] mce: CPU48 BANK7 CMCI storm subsided
-Tony
---
arch/x86/kernel/cpu/mce/core.c +8 -8
@@ -655,16 +655,16 @@ void track_cmci_storm(int bank, u64 status)u64 history;/* -* When a bank is in storm mode, the history mask covers about -* one second of elapsed time. Check how long it has been since -* this bank was last polled, and compute a shift value to update -* the history bitmask. When not in storm mode, each consecutive -* poll of the bank is logged in the next history bit, so shift -* is kept at "1". +* When a bank is in storm mode it is polled once per second and +* the history mask will record about the last minute of poll results. +* If it is not in storm mode, then the bank is only checked when +* there is a CMCI interrupt. Check how long it has been since +* this bank was last checked, and adjust the amount of "shift" +* to apply to history. */ -if (this_cpu_read (bank_storm[bank])) { +if (!this_cpu_read (bank_storm[bank])) { delta = now -this_cpu_read (bank_time_stamp[bank]); - shift = (delta +HZBITS ) /HZBITS ; + shift = (delta +HZ ) /HZ ; }/* If has been a long time since the last poll, clear history */
arch/x86/kernel/cpu/mce/internal.h +0 -7
@@ -79,13 +79,6 @@ DECLARE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp);*/ #define STORM_END_POLL_THRESHOLD 30 -/* -* When there is no storm each "bit" in the history represents -* this many jiffies. When there is a storm every poll() takes -* one history bit. -*/ -#define HZBITS (HZ / 64) -#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);ssize_t apei_read_mce (struct mce *m,u64 *record_id);
Tony Luck
maintainerv2 cover Handle corrected machine check interrupt storms
Extend the logic of handling Intel's corrected machine check interrupt storms to AMD's threshold interrupts.
First two patches are from Tony which cleans up the existing storm handling for Intel and proposes per CPU per bank storm handling.
Third and fourth patches do some cleanup and refactoring on the CMCI storm handling in order to extend similar workaround for AMD's threshold interrupt storms. These two patches could be merged into Tony's second patch of CMCI storm mitigation.
AMD's storm mitigation for threshold interrupts also relies on per CPU per bank approach similar to Intel. But unlike CMCI storm handling it does not set thresholds to reduce rate of interrupts on a storm. Rather it turns off the interrupt on the current CPU and bank if there is a storm and re-enables back the interrupts when the storm subsides.
It is okay to turn off threshold interrupts on AMD systems as other error severities continue to be handled even if the threshold interrupts are turned off. Uncorrected errors will generate a #MC and deferred errors have a unique separate deferred error interrupt. The final patch adds support for handling threshold interrupt storms on AMD systems.
Changes since v1:
1) Fix shift computation when keeping track of bank history. Shift should be "1" when a storm is in progress (because polling once per second). When a storm is not in progress shift should be based on number of seconds since the bank was last checked.
2) Changed Smita's code in part 0003 to avoid use of a function pointer (since the kernel is avoiding indirect branch points that might be trainable for various Spectre-like issues).
Smita Koralahalli (2):
x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms x86/mce: Handle AMD threshold interrupt storms
x86/mce: Move storm handling to core.
Tony Luck (3):
x86/mce: Remove old CMCI storm mitigation code
x86/mce: Add per-bank CMCI storm mitigation
arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++ arch/x86/kernel/cpu/mce/core.c | 139 +++++++++++++++++----- arch/x86/kernel/cpu/mce/intel.c | 179 +++++++---------------------- arch/x86/kernel/cpu/mce/internal.h | 33 ++++-- 4 files changed, 230 insertions(+), 170 deletions(-)
Signature · 1 line
2.35.3
Tony Luck
maintainerPATCH v2 1/5 x86/mce: Remove old CMCI storm mitigation code
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- arch/x86/kernel/cpu/mce/internal.h | 6 -- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1598,13 +1598,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1627,15 +1620,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))machine_check_poll (0 ,this_cpu_ptr (&mce_poll_banks)); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1645,7 +1632,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -1982,7 +1968,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -1995,7 +1980,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2651,8 +2635,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,18 +41,12 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
Signature · 1 line
2.35.3
Tony Luck
maintainerPATCH v2 2/5 x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckAdd a hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed the Rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (5 in this RFC code for ease of testing, likely move to 15 for compatibility with previous storm detection).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (currently 30, may also change). That resets the threshold in IA32_MCi_CTL2 back to 1, removes the bank from the bitmap for polling, and changes the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
--- arch/x86/kernel/cpu/mce/core.c | 26 ++++-- arch/x86/kernel/cpu/mce/intel.c | 139 ++++++++++++++++++++++++++++- arch/x86/kernel/cpu/mce/internal.h | 4 +- 3 files changed, 158 insertions(+), 11 deletions(-)
arch/x86/kernel/cpu/mce/core.c +18 -8
@@ -694,6 +694,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +track_cmci_storm (i, m.status); +/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
@@ -1597,6 +1599,7 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); +static DEFINE_PER_CPU(bool, storm_poll_mode);static void __start_timer (struct timer_list *t,unsigned long interval) {
@@ -1632,22 +1635,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (__this_cpu_read (storm_poll_mode)) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +__this_cpu_write (storm_poll_mode, storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */
arch/x86/kernel/cpu/mce/intel.c +137 -2
183 lines not on this page · raw message
arch/x86/kernel/cpu/mce/internal.h +3 -1
@@ -40,6 +40,8 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled; +void track_cmci_storm (int bank,u64 status); +#ifdef CONFIG_X86_MCE_INTEL void cmci_disable_bank (int bank);void intel_init_cmci (void );
@@ -54,7 +56,7 @@ static inline void intel_clear_lmce(void) { }static inline bool intel_filter_mce (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
Signature · 1 line
2.35.3
Tony Luck
maintainerPATCH v2 3/5 x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
Intel and AMD need to take different actions when a storm begins or ends. Prepare for the storm code moving from intel.c into core.c by adding a function that checks CPU vendor to pick the right action.
No functional changes.
[Tony: Changed from function pointer to regular function]
--- arch/x86/kernel/cpu/mce/core.c | 9 +++++++++ arch/x86/kernel/cpu/mce/intel.c | 12 ++++++++++-- arch/x86/kernel/cpu/mce/internal.h | 3 +++ 3 files changed, 22 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/mce/core.c +9 -0
@@ -1985,6 +1985,15 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)intel_clear_lmce (); } +void mce_handle_storm (int bank,bool on) +{ +switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; + } +} +static void __mcheck_cpu_init_vendor (struct cpuinfo_x86 *c) {switch (c->x86_vendor) {
arch/x86/kernel/cpu/mce/intel.c +10 -2
@@ -152,6 +152,14 @@ static void cmci_set_threshold(int bank, int thresh)raw_spin_unlock_irqrestore (&cmci_discover_lock, flags); } +void mce_intel_handle_storm (int bank,bool on) +{ +if (on) +cmci_set_threshold (bank, cmci_threshold[bank]); +else +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +} +static void cmci_storm_begin (int bank) {__set_bit (bank,this_cpu_ptr (mce_poll_banks));
@@ -211,13 +219,13 @@ void track_cmci_storm(int bank, u64 status)if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 ))return ;pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank, cmci_threshold[bank]); +mce_handle_storm (bank, true);cmci_storm_end (bank); }else {if (hweight64 (history) <STORM_BEGIN_THRESHOLD )return ;pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +mce_handle_storm (bank, false);cmci_storm_begin (bank); } }
arch/x86/kernel/cpu/mce/internal.h +3 -0
@@ -43,12 +43,14 @@ extern mce_banks_t mce_banks_ce_disabled;void track_cmci_storm (int bank,u64 status);#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
@@ -57,6 +59,7 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }#endif void mce_timer_kick (bool storm); +void mce_handle_storm (int bank,bool on);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
Signature · 1 line
2.35.3
Tony Luck
maintainerPATCH v2 4/5 x86/mce: Move storm handling to core.
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
AMD's storm handling for threshold interrupts is similar to Intel's CMCI storm handling. Hence, make the storm handling code common by moving to core and removing the vendor exclusivity.
On the contrary, setting different thresholds to reduce rate of interrupts in IA32_MCi_CTL2 register is kept Intel intact as the storm handling for AMD slightly differs where in it handles the storms by turning off the interrupts.
No functional changes.
[Tony: Same as Smita's original, plus changes rolled in from prior patches]
--- arch/x86/kernel/cpu/mce/core.c | 81 ++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/intel.c | 93 +----------------------------- arch/x86/kernel/cpu/mce/internal.h | 18 ++++++ 3 files changed, 100 insertions(+), 92 deletions(-)
arch/x86/kernel/cpu/mce/core.c +81 -0
@@ -613,6 +613,87 @@ static struct notifier_block mce_default_nb = { .priority = MCE_PRIO_LOWEST, }; +/* +* CMCI storm tracking state +* stormy_bank_count: per-cpu count of MC banks in storm state +* bank_history: bitmask tracking of corrected errors seen in each bank +* bank_time_stamp: last time (in jiffies) that each bank was polled +*/ +DEFINE_PER_CPU (int, stormy_bank_count); +DEFINE_PER_CPU (u64 [MAX_NR_BANKS ], bank_history); +DEFINE_PER_CPU (bool [MAX_NR_BANKS ], bank_storm); +DEFINE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp); + +void cmci_storm_begin (int bank) +{ +__set_bit (bank,this_cpu_ptr (mce_poll_banks)); +this_cpu_write (bank_storm[bank], true); + +/* +* If this is the first bank on this CPU to enter storm mode +* start polling +*/ +if (this_cpu_inc_return (stormy_bank_count) ==1 ) +mce_timer_kick (true); +} + +void cmci_storm_end (int bank) +{ +__clear_bit (bank,this_cpu_ptr (mce_poll_banks)); +this_cpu_write (bank_history[bank],0ull ); +this_cpu_write (bank_storm[bank], false); + +/* If no banks left in storm mode, stop polling */ +if (!this_cpu_dec_return (stormy_bank_count)) +mce_timer_kick (false); +} + +void track_cmci_storm (int bank,u64 status) +{ +unsigned long now = jiffies, delta; +unsigned int shift =1 ; +u64 history; + +/* +* When a bank is in storm mode it is polled once per second and +* the history mask will record about the last minute of poll results. +* If it is not in storm mode, then the bank is only checked when +* there is a CMCI interrupt. Check how long it has been since +* this bank was last checked, and adjust the amount of "shift" +* to apply to history. +*/ +if (!this_cpu_read (bank_storm[bank])) { + delta = now -this_cpu_read (bank_time_stamp[bank]); + shift = (delta +HZ ) /HZ ; + } + +/* If has been a long time since the last poll, clear history */ +if (shift >=64 ) + history =0 ; +else + history =this_cpu_read (bank_history[bank]) << shift; +this_cpu_write (bank_time_stamp[bank], now); + +/* History keeps track of corrected errors. VAL=1 && UC=0 */ +if ((status & (MCI_STATUS_VAL |MCI_STATUS_UC )) ==MCI_STATUS_VAL ) + history |=1 ; +this_cpu_write (bank_history[bank], history); + +if (this_cpu_read (bank_storm[bank])) { +if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 )) +return ; +pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); +mce_handle_storm (bank, true); +cmci_storm_end (bank); + }else { +if (hweight64 (history) <STORM_BEGIN_THRESHOLD ) +return ; +pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); +mce_handle_storm (bank, false); +cmci_storm_begin (bank); + } +} +/* * Read ADDR and MISC registers. */
arch/x86/kernel/cpu/mce/intel.c +1 -92
111 lines not on this page · raw message
arch/x86/kernel/cpu/mce/internal.h +18 -0
@@ -60,6 +60,24 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }void mce_timer_kick (bool storm);void mce_handle_storm (int bank,bool on); +void cmci_storm_begin (int bank); +void cmci_storm_end (int bank); + +DECLARE_PER_CPU (int, stormy_bank_count); +DECLARE_PER_CPU (u64 [MAX_NR_BANKS ], bank_history); +DECLARE_PER_CPU (bool [MAX_NR_BANKS ], bank_storm); +DECLARE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp); + +/* +* How many errors within the history buffer mark the start of a storm +*/ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over +*/ +#define STORM_END_POLL_THRESHOLD 30#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
Signature · 1 line
2.35.3
Tony Luck
maintainerPATCH v2 5/5 x86/mce: Handle AMD threshold interrupt storms
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
Extend the logic of handling CMCI storms to AMD threshold interrupts.
Rely on the similar approach as of Intel's CMCI to mitigate storms per CPU and per bank. But, unlike CMCI, do not set thresholds and reduce interrupt rate on a storm. Rather, disable the interrupt on the corresponding CPU and bank. Re-enable back the interrupts if enough consecutive polls of the bank show no corrected errors (30, as programmed by Intel).
Turning off the threshold interrupts would be a better solution on AMD systems as other error severities will still be handled even if the threshold interrupts are disabled.
[Tony: Small tweak because mce_handle_storm() isn't a pointer now]
--- arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/core.c | 3 ++ arch/x86/kernel/cpu/mce/internal.h | 2 ++ 3 files changed, 54 insertions(+)
arch/x86/kernel/cpu/mce/amd.c +49 -0
@@ -466,6 +466,47 @@ static void threshold_restart_bank(void *_tr)wrmsr (tr->b->address, lo, hi); } +static void _reset_block (struct threshold_block *block) +{ +struct thresh_restart tr; + +memset (&tr,0 ,sizeof (tr)); + tr.b = block; +threshold_restart_bank (&tr); +} + +static void toggle_interrupt_reset_block (struct threshold_block *block,bool on) +{ +if (!block) +return ; + + block->interrupt_enable = !!on; +_reset_block (block); +} + +void mce_amd_handle_storm (int bank,bool on) +{ +struct threshold_block *first_block =NULL , *block =NULL , *tmp =NULL ; +struct threshold_bank **bp =this_cpu_read (threshold_banks); +unsigned long flags; + +if (!bp) +return ; + +local_irq_save (flags); + + first_block = bp[bank]->blocks; +if (!first_block) + goto end; + +toggle_interrupt_reset_block (first_block, on); + +list_for_each_entry_safe (block, tmp, &first_block->miscj, miscj) +toggle_interrupt_reset_block (block, on); +end: +local_irq_restore (flags); +} +static void mce_threshold_block_init (struct threshold_block *b,int offset) {struct thresh_restart tr = {
@@ -867,6 +908,7 @@ static void amd_threshold_interrupt(void)struct threshold_block *first_block =NULL , *block =NULL , *tmp =NULL ;struct threshold_bank **bp =this_cpu_read (threshold_banks);unsigned int bank, cpu =smp_processor_id (); +u64 status;/* * Validate that the threshold bank has been initialized already. The
@@ -880,6 +922,13 @@ static void amd_threshold_interrupt(void)if (!(per_cpu (bank_map, cpu) & (1 << bank)))continue ; +rdmsrl (mca_msr_reg (bank,MCA_STATUS ), status); +track_cmci_storm (bank, status); + +/* Return early on an interrupt storm */ +if (this_cpu_read (bank_storm[bank])) +return ; + first_block = bp[bank]->blocks;if (!first_block)continue ;
arch/x86/kernel/cpu/mce/core.c +3 -0
@@ -2072,6 +2072,9 @@ void mce_handle_storm(int bank, bool on)case X86_VENDOR_INTEL :mce_intel_handle_storm (bank, on);break ; +case X86_VENDOR_AMD : +mce_amd_handle_storm (bank, on); +break ; } }
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -206,7 +206,9 @@ extern bool filter_mce(struct mce *m);#ifdef CONFIG_X86_MCE_AMD extern bool amd_filter_mce (struct mce *m); +void mce_amd_handle_storm (int bank,bool on);#else +static inline void mce_amd_handle_storm (int bank,bool on) {}static inline bool amd_filter_mce (struct mce *m) {return false; }#endif
Signature · 1 line
2.35.3
Quoted 43 lines · Tony Luck
Extend the logic of handling Intel's corrected machine check interrupt storms to AMD's threshold interrupts.
First two patches are from Tony which cleans up the existing storm handling for Intel and proposes per CPU per bank storm handling.
Third and fourth patches do some cleanup and refactoring on the CMCI storm handling in order to extend similar workaround for AMD's threshold interrupt storms. These two patches could be merged into Tony's second patch of CMCI storm mitigation.
AMD's storm mitigation for threshold interrupts also relies on per CPU per bank approach similar to Intel. But unlike CMCI storm handling it does not set thresholds to reduce rate of interrupts on a storm. Rather it turns off the interrupt on the current CPU and bank if there is a storm and re-enables back the interrupts when the storm subsides.
It is okay to turn off threshold interrupts on AMD systems as other error severities continue to be handled even if the threshold interrupts are turned off. Uncorrected errors will generate a #MC and deferred errors have a unique separate deferred error interrupt. The final patch adds support for handling threshold interrupt storms on AMD systems.
Changes since v1:
1) Fix shift computation when keeping track of bank history. Shift should be "1" when a storm is in progress (because polling once per second). When a storm is not in progress shift should be based on number of seconds since the bank was last checked.
2) Changed Smita's code in part 0003 to avoid use of a function pointer (since the kernel is avoiding indirect branch points that might be trainable for various Spectre-like issues).
Smita Koralahalli (2):
x86/mce: Introducemce_handle_storm()to deal with begin/end of storms x86/mce: Handle AMD threshold interrupt storms
x86/mce: Move storm handling to core.Tony Luck (3):
x86/mce: Remove old CMCI storm mitigation code
x86/mce: Add per-bank CMCI storm mitigation
Quoted 7 lines
arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++ arch/x86/kernel/cpu/mce/core.c | 139 +++++++++++++++++----- arch/x86/kernel/cpu/mce/intel.c | 179 +++++++---------------------- arch/x86/kernel/cpu/mce/internal.h | 33 ++++-- 4 files changed, 230 insertions(+), 170 deletions(-)--
Hi Tony,
Is there an updated version of this set? I can help review and test. Smita is focusing on other items at the moment.
Thanks!
-Yazen
Tony Luck
maintainerv3 cover Handle corrected machine check interrupt storms
This is the same as v2 (posted June 2022) rebased to v6.1-rc4. I meant to post when I did that, but apparently got distracted.
Pathces 1-4 still apply cleanly to upstream but there's a trivial fixup needed to arch/x86/kernel/cpu/mce/internal.h to make patch 5 apply to v6.3-rc2.
Smita Koralahalli (3):
x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms x86/mce: Move storm handling to core.
x86/mce: Handle AMD threshold interrupt storms
Tony Luck (2):
x86/mce: Remove old CMCI storm mitigation code
x86/mce: Add per-bank CMCI storm mitigation
arch/x86/kernel/cpu/mce/internal.h | 33 ++++-- arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++ arch/x86/kernel/cpu/mce/core.c | 139 +++++++++++++++++----- arch/x86/kernel/cpu/mce/intel.c | 179 +++++++---------------------- 4 files changed, 230 insertions(+), 170 deletions(-)
base-commit: f0c4d9fc9cc9462659728d168387191387e903cc
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v3 1/5 x86/mce: Remove old CMCI storm mitigation code
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/internal.h | 6 -- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,18 +41,12 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1598,13 +1598,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1627,15 +1620,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))machine_check_poll (0 ,this_cpu_ptr (&mce_poll_banks)); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1645,7 +1632,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -1982,7 +1968,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -1995,7 +1980,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2651,8 +2635,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v3 2/5 x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckAdd a hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed the Rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (5 in this RFC code for ease of testing, likely move to 15 for compatibility with previous storm detection).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (currently 30, may also change). That resets the threshold in IA32_MCi_CTL2 back to 1, removes the bank from the bitmap for polling, and changes the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
--- arch/x86/kernel/cpu/mce/internal.h | 4 +- arch/x86/kernel/cpu/mce/core.c | 26 ++++-- arch/x86/kernel/cpu/mce/intel.c | 139 ++++++++++++++++++++++++++++- 3 files changed, 158 insertions(+), 11 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +3 -1
@@ -40,6 +40,8 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled; +void track_cmci_storm (int bank,u64 status); +#ifdef CONFIG_X86_MCE_INTEL void cmci_disable_bank (int bank);void intel_init_cmci (void );
@@ -54,7 +56,7 @@ static inline void intel_clear_lmce(void) { }static inline bool intel_filter_mce (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +18 -8
@@ -694,6 +694,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +track_cmci_storm (i, m.status); +/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
@@ -1597,6 +1599,7 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); +static DEFINE_PER_CPU(bool, storm_poll_mode);static void __start_timer (struct timer_list *t,unsigned long interval) {
@@ -1632,22 +1635,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (__this_cpu_read (storm_poll_mode)) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +__this_cpu_write (storm_poll_mode, storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */
arch/x86/kernel/cpu/mce/intel.c +137 -2
183 lines not on this page · raw message
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v3 3/5 x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
Intel and AMD need to take different actions when a storm begins or ends. Prepare for the storm code moving from intel.c into core.c by adding a function that checks CPU vendor to pick the right action.
No functional changes.
[Tony: Changed from function pointer to regular function]
--- arch/x86/kernel/cpu/mce/internal.h | 3 +++ arch/x86/kernel/cpu/mce/core.c | 9 +++++++++ arch/x86/kernel/cpu/mce/intel.c | 12 ++++++++++-- 3 files changed, 22 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +3 -0
@@ -43,12 +43,14 @@ extern mce_banks_t mce_banks_ce_disabled;void track_cmci_storm (int bank,u64 status);#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
@@ -57,6 +59,7 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }#endif void mce_timer_kick (bool storm); +void mce_handle_storm (int bank,bool on);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +9 -0
@@ -1985,6 +1985,15 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)intel_clear_lmce (); } +void mce_handle_storm (int bank,bool on) +{ +switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; + } +} +static void __mcheck_cpu_init_vendor (struct cpuinfo_x86 *c) {switch (c->x86_vendor) {
arch/x86/kernel/cpu/mce/intel.c +10 -2
@@ -152,6 +152,14 @@ static void cmci_set_threshold(int bank, int thresh)raw_spin_unlock_irqrestore (&cmci_discover_lock, flags); } +void mce_intel_handle_storm (int bank,bool on) +{ +if (on) +cmci_set_threshold (bank, cmci_threshold[bank]); +else +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +} +static void cmci_storm_begin (int bank) {__set_bit (bank,this_cpu_ptr (mce_poll_banks));
@@ -211,13 +219,13 @@ void track_cmci_storm(int bank, u64 status)if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 ))return ;pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank, cmci_threshold[bank]); +mce_handle_storm (bank, true);cmci_storm_end (bank); }else {if (hweight64 (history) <STORM_BEGIN_THRESHOLD )return ;pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +mce_handle_storm (bank, false);cmci_storm_begin (bank); } }
Signature · 1 line
2.39.2
Re: [PATCH v3 3/5] x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms
Quoted 70 lines · Tony Luck
From: Smita Koralahalli <[email protected]>
Intel and AMD need to take different actions when a storm begins or ends. Prepare for the storm code moving from
intel.cintocore.cby adding a function that checks CPU vendor to pick the right action.No functional changes.
[Tony: Changed from function pointer to regular function]
Signed-off-by Smita Koralahalli <[email protected]>Signed-off-by Tony Luck <[email protected]>--- arch/x86/kernel/cpu/mce/internal.h | 3 +++ arch/x86/kernel/cpu/mce/core.c | 9 +++++++++ arch/x86/kernel/cpu/mce/intel.c | 12 ++++++++++-- 3 files changed, 22 insertions(+), 2 deletions(-)arch/x86/kernel/cpu/mce/internal.h +3
-0@@ -43,12 +43,14 @@ extern mce_banks_t mce_banks_ce_disabled;void track_cmci_storm (int bank,u64 status);#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }@@ -57,6 +59,7 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }#endif void mce_timer_kick (bool storm); +void mce_handle_storm (int bank,bool on);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);arch/x86/kernel/cpu/mce/core.c +9
-0@@ -1985,6 +1985,15 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)intel_clear_lmce (); } +void mce_handle_storm (int bank,bool on) +{ +switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; + } +} +static void __mcheck_cpu_init_vendor (struct cpuinfo_x86 *c) {switch (c->x86_vendor) {arch/x86/kernel/cpu/mce/intel.c +0
-0
arch/x86/kernel/cpu/mce/intel.c static void cmci_set_threshold(int bank, int thresh) · line 160
Quoted 9 lines
arch/x86/kernel/cpu/mce/intel.c +6
-0@@ -152,6 +152,14 @@ static void cmci_set_threshold(int bank, int thresh)raw_spin_unlock_irqrestore (&cmci_discover_lock, flags); } +void mce_intel_handle_storm (int bank,bool on) +{ +if (on) +cmci_set_threshold (bank, cmci_threshold[bank]); +else +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD );
I think these conditions are reversed. When storm handling is 'on' we should use CMCI_STORM_THRESHOLD, and when off use the saved bank threshold.
arch/x86/kernel/cpu/mce/intel.c void track_cmci_storm(int bank, u64 status) · line 222
Quoted 11 lines
arch/x86/kernel/cpu/mce/intel.c +3
-1+} +static void cmci_storm_begin (int bank) {__set_bit (bank,this_cpu_ptr (mce_poll_banks));@@ -211,13 +219,13 @@ void track_cmci_storm(int bank, u64 status)if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 ))return ;pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank, cmci_threshold[bank]); +mce_handle_storm (bank, true);
Should be 'false' when the storm subsides.
arch/x86/kernel/cpu/mce/intel.c void track_cmci_storm(int bank, u64 status) · line 228
Quoted 7 lines
arch/x86/kernel/cpu/mce/intel.c +1
-1cmci_storm_end (bank); }else {if (hweight64 (history) <STORM_BEGIN_THRESHOLD )return ;pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +mce_handle_storm (bank, false);
Should be 'true' when the storm starts.
arch/x86/kernel/cpu/mce/intel.c void track_cmci_storm(int bank, u64 status)
Quoted 4 lines
arch/x86/kernel/cpu/mce/intel.c +0
-1cmci_storm_begin (bank); } } --
Thanks,
Yazen
Tony Luck
maintainerRe: [PATCH v3 3/5] x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms
Quoted 25 lines · Yazen Ghannam
Review
Quoted 6 lines · Tony Luck
(quoted diff) +6
-0+void mce_intel_handle_storm(int bank, bool on) +{ + if (on) + cmci_set_threshold(bank, cmci_threshold[bank]); + else + cmci_set_threshold(bank, CMCI_STORM_THRESHOLD);I think these conditions are reversed. When storm handling is 'on' we should use
CMCI_STORM_THRESHOLD, and when off use the saved bank threshold.Review void track_cmci_storm(int bank, u64 status) · line 222
Quoted 11 lines
(quoted diff) +3
-1+} + static void cmci_storm_begin(int bank) { __set_bit(bank, this_cpu_ptr(mce_poll_banks));@@ -211,13 +219,13 @@ void track_cmci_storm(int bank, u64 status) if (history & GENMASK_ULL(STORM_END_POLL_THRESHOLD - 1, 0)) return; pr_notice("CPU%d BANK%d CMCI storm subsided\n", smp_processor_id(), bank); - cmci_set_threshold(bank, cmci_threshold[bank]); + mce_handle_storm(bank, true);Should be 'false' when the storm subsides.
Quoted 13 lines
Review void track_cmci_storm(int bank, u64 status) · line 228
Quoted 7 lines
(quoted diff) +1
-1cmci_storm_end(bank); } else { if (hweight64(history) < STORM_BEGIN_THRESHOLD) return; pr_notice("CPU%d BANK%d CMCI storm detected\n", smp_processor_id(), bank); - cmci_set_threshold(bank, CMCI_STORM_THRESHOLD); + mce_handle_storm(bank, false);Should be 'true' when the storm starts.
Quoted 3 lines
(quoted diff) +0
-0cmci_storm_begin(bank); } }
There's a saying that two wrongs do not make a right (but three lefts do).
My code was working, but only because the second mistake cancelled out the first.
Changing them both as you suggest (diff below) and the code still works, and makes sense too!
Thanks
-Tony
arch/x86/kernel/cpu/mce/core.c +2 -2
@@ -677,13 +677,13 @@ void track_cmci_storm(int bank, u64 status)if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 ))return ;pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); -mce_handle_storm (bank, true); +mce_handle_storm (bank, false);cmci_storm_end (bank); }else {if (hweight64 (history) <STORM_BEGIN_THRESHOLD )return ;pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); -mce_handle_storm (bank, false); +mce_handle_storm (bank, true);cmci_storm_begin (bank); } }
arch/x86/kernel/cpu/mce/intel.c +2 -2
@@ -134,9 +134,9 @@ static void cmci_set_threshold(int bank, int thresh)void mce_intel_handle_storm (int bank,bool on) {if (on) -cmci_set_threshold (bank, cmci_threshold[bank]); -else cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +else +cmci_set_threshold (bank, cmci_threshold[bank]); }/*
Tony Luck
maintainerPATCH v3 4/5 x86/mce: Move storm handling to core.
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
AMD's storm handling for threshold interrupts is similar to Intel's CMCI storm handling. Hence, make the storm handling code common by moving to core and removing the vendor exclusivity.
On the contrary, setting different thresholds to reduce rate of interrupts in IA32_MCi_CTL2 register is kept Intel intact as the storm handling for AMD slightly differs where in it handles the storms by turning off the interrupts.
No functional changes.
[Tony: Same as Smita's original, plus changes rolled in from prior patches]
--- arch/x86/kernel/cpu/mce/internal.h | 18 ++++++ arch/x86/kernel/cpu/mce/core.c | 81 ++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/intel.c | 93 +----------------------------- 3 files changed, 100 insertions(+), 92 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +18 -0
@@ -60,6 +60,24 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }void mce_timer_kick (bool storm);void mce_handle_storm (int bank,bool on); +void cmci_storm_begin (int bank); +void cmci_storm_end (int bank); + +DECLARE_PER_CPU (int, stormy_bank_count); +DECLARE_PER_CPU (u64 [MAX_NR_BANKS ], bank_history); +DECLARE_PER_CPU (bool [MAX_NR_BANKS ], bank_storm); +DECLARE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp); + +/* +* How many errors within the history buffer mark the start of a storm +*/ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over +*/ +#define STORM_END_POLL_THRESHOLD 30#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +81 -0
87 lines not on this page · raw message
arch/x86/kernel/cpu/mce/intel.c +1 -92
111 lines not on this page · raw message
Signature · 1 line
2.39.2
Re: [PATCH v3 4/5] x86/mce: Move storm handling to core.
Quoted 11 lines · Tony Luck
From: Smita Koralahalli <[email protected]>
AMD's storm handling for threshold interrupts is similar to Intel's CMCI storm handling. Hence, make the storm handling code common by moving to core and removing the vendor exclusivity.
On the contrary, setting different thresholds to reduce rate of interrupts in
IA32_MCi_CTL2register is kept Intel intact as the storm handling for AMD slightly differs where in it handles the storms by turning off the interrupts.
Quoted 7 lines
No functional changes.
[Tony: Same as Smita's original, plus changes rolled in from prior patches]
Signed-off-by Smita Koralahalli <[email protected]>Signed-off-by Tony Luck <[email protected]>---
Can this patch and the previous two be squashed together?
Like so?
Patch 1: Remove old code.
Patch 2: Add new common and Intel-specific code.
Patch 3: Add AMD-specific code.
Thanks,
Yazen
Luck, Tony
maintainerRE: [PATCH v3 4/5] x86/mce: Move storm handling to core.
Quoted 6 lines
Can this patch and the previous two be squashed together?
Like so?
Patch 1: Remove old code.
Patch 2: Add new common and Intel-specific code.
Patch 3: Add AMD-specific code.
Yazen,
Those three patches could be merged ... but they already seem big:
0002: 3 files changed, 158 insertions(+), 11 deletions(-) 0003: 3 files changed, 22 insertions(+), 2 deletions(-) 0004: 3 files changed, 100 insertions(+), 92 deletions(-)
Lumping them together wouldn't be the sum of those but would be worse (IMHO)
-Tony
Luck, Tony
maintainerRE: [PATCH v3 4/5] x86/mce: Move storm handling to core.
Yazen,
I folded the fixes for the issues you pointed to in patch 3/5 into the series and rebased to v6.3-rc3
Resulting tree pushed here:
git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.git try-storm-on6-3
Builds, boots, and passes my storm tests here.
How is testing going on the AMD side of this series?
-Tony
Re: [PATCH v3 4/5] x86/mce: Move storm handling to core.
Quoted 4 lines · Tony
Yazen,
I folded the fixes for the issues you pointed to in patch 3/5 into the series and rebased to v6.3-rc3
Quoted 8 lines
Resulting tree pushed here:
git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.gittry-storm-on6-3Builds, boots, and passes my storm tests here.
How is testing going on the AMD side of this series?
Thanks Tony. I'll try to test by the middle of next week. Sorry for the delay, I just got back from work travel.
I think the code looks good though.
Thanks,
Yazen
Re: [PATCH v3 4/5] x86/mce: Move storm handling to core.
In reply to Luck, TonyQuoted 4 lines · Tony
Yazen,
I folded the fixes for the issues you pointed to in patch 3/5 into the series and rebased to v6.3-rc3
Quoted 8 lines
Resulting tree pushed here:
git://git.kernel.org/pub/scm/linux/kernel/git/aegl/linux.gittry-storm-on6-3Builds, boots, and passes my storm tests here.
How is testing going on the AMD side of this series?
Hi Tony,
Builds, boots, and passes my tests here too.
Thanks!
-Yazen
Luck, Tony
maintainerRE: [PATCH v3 4/5] x86/mce: Move storm handling to core.
Quoted 6 lines
Hi Tony,
Builds, boots, and passes my tests here too.
Reviewed-by Yazen Ghannam <[email protected]>Tested-by Yazen Ghannam <[email protected]>
Yazen,
Thanks. I'll add your tags and post a v4 to the mailing list for Boris to review.
-Tony
Tony Luck
maintainerv4 cover Handle corrected machine check interrupt storms
In reply to Yazen GhannamLinux CMCI storm mitigation is a big hammer that just disables the CMCI interrupt globally and switches to polling all banks.
There are two problems with this:
1) It really is a big hammer. It means that errors reported in other banks from different functional units are all subject to the same polling delay before being processed.
2) Intel systems signal some uncorrected errors using CMCI (e.g. memory controller patrol scrub on Icelake Xeon and newer). Delaying processing these error reports negates some of the benefit of the patrol scrubber providing early notice of errors before they are consumed and cause a machine check.
This series throws away the old storm implementation and replaces it with one that keeps track of the weather on each separate machine check bank. When a storm is detected from a bank. On Intel the storm is mitigated by setting a very high threshold for corrected errors to signal CMCI. This threshold does not affect signaling CMCI for uncorrected errors.
AMD's storm mitigation for threshold interrupts also relies on per CPU per bank approach similar to Intel. But unlike CMCI storm handling it does not set thresholds to reduce rate of interrupts on a storm. Rather it turns off the interrupt on the current CPU and bank if there is a storm and re-enables back the interrupts when the storm subsides.
It is okay to turn off threshold interrupts on AMD systems as other error severities continue to be handled even if the threshold interrupts are turned off. Uncorrected errors will generate a #MC and deferred errors have a unique separate deferred error interrupt. The final patch adds support for handling threshold interrupt storms on AMD systems.
Changes since last version:
Yazen:
Reported inverted tests in two places that cancelled each other out so the code worked. But the logic was backwards. Provided Tested-by and Reviewed-by tags
Smita Koralahalli (3):
x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms x86/mce: Move storm handling to core.
x86/mce: Handle AMD threshold interrupt storms
Tony Luck (2):
x86/mce: Remove old CMCI storm mitigation code
x86/mce: Add per-bank CMCI storm mitigation
arch/x86/kernel/cpu/mce/internal.h | 33 ++++-- arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++ arch/x86/kernel/cpu/mce/core.c | 139 +++++++++++++++++----- arch/x86/kernel/cpu/mce/intel.c | 179 +++++++---------------------- 4 files changed, 230 insertions(+), 170 deletions(-)
base-commit: 7e364e56293bb98cae1b55fd835f5991c4e96e7d
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v4 1/5 x86/mce: Remove old CMCI storm mitigation code
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/internal.h | 6 -- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,18 +41,12 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1588,13 +1588,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1617,15 +1610,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))machine_check_poll (0 ,this_cpu_ptr (&mce_poll_banks)); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1635,7 +1622,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -1972,7 +1958,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -1985,7 +1970,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2642,8 +2626,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v4 2/5 x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckAdd a hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed the Rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (5 in this RFC code for ease of testing, likely move to 15 for compatibility with previous storm detection).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (currently 30, may also change). That resets the threshold in IA32_MCi_CTL2 back to 1, removes the bank from the bitmap for polling, and changes the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
--- arch/x86/kernel/cpu/mce/internal.h | 4 +- arch/x86/kernel/cpu/mce/core.c | 26 ++++-- arch/x86/kernel/cpu/mce/intel.c | 139 ++++++++++++++++++++++++++++- 3 files changed, 158 insertions(+), 11 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +3 -1
@@ -40,6 +40,8 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled; +void track_cmci_storm (int bank,u64 status); +#ifdef CONFIG_X86_MCE_INTEL void cmci_disable_bank (int bank);void intel_init_cmci (void );
@@ -54,7 +56,7 @@ static inline void intel_clear_lmce(void) { }static inline bool intel_filter_mce (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +18 -8
@@ -680,6 +680,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +track_cmci_storm (i, m.status); +/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
@@ -1587,6 +1589,7 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); +static DEFINE_PER_CPU(bool, storm_poll_mode);static void __start_timer (struct timer_list *t,unsigned long interval) {
@@ -1622,22 +1625,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (__this_cpu_read (storm_poll_mode)) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +__this_cpu_write (storm_poll_mode, storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */
arch/x86/kernel/cpu/mce/intel.c +137 -2
183 lines not on this page · raw message
Signature · 1 line
2.39.2
Borislav Petkov
maintainerRe: [PATCH v4 2/5] x86/mce: Add per-bank CMCI storm mitigation
Quoted 31 lines · Tony Luck
Add a hook into
machine_check_poll()to keep track of per-CPU, per-bank corrected error logs.Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed the Rate of interrupts is reduced by setting a large threshold value for this bank in
IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (5 in this RFC code for ease of testing, likely move to 15 for compatibility with previous storm detection).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (currently 30, may also change). That resets the threshold in
IA32_MCi_CTL2back to 1, removes the bank from the bitmap for polling, and changes the polling rate back to the default.If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
Quoted 8 lines
Signed-off-by Tony Luck <[email protected]>Reviewed-by Yazen Ghannam <[email protected]>Tested-by Yazen Ghannam <[email protected]>--- arch/x86/kernel/cpu/mce/internal.h | 4 +- arch/x86/kernel/cpu/mce/core.c | 26 ++++-- arch/x86/kernel/cpu/mce/intel.c | 139 ++++++++++++++++++++++++++++- 3 files changed, 158 insertions(+), 11 deletions(-)
ld: vmlinux.o: in function `machine_check_poll':/home/boris/kernel/2nd/linux/arch/x86/kernel/cpu/mce/core.c:683: undefined reference to `track_cmci_storm' make[1]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 1
make: *** [Makefile:1249: vmlinux] Error 2
make: *** Waiting for unfinished jobs....
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteRe: [PATCH v4 2/5] x86/mce: Add per-bank CMCI storm mitigation
Quoted 41 lines · Borislav Petkov
Quoted 31 lines · Tony Luck
Add a hook into
machine_check_poll()to keep track of per-CPU, per-bank corrected error logs.Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed the Rate of interrupts is reduced by setting a large threshold value for this bank in
IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (5 in this RFC code for ease of testing, likely move to 15 for compatibility with previous storm detection).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (currently 30, may also change). That resets the threshold in
IA32_MCi_CTL2back to 1, removes the bank from the bitmap for polling, and changes the polling rate back to the default.If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
Quoted 8 lines
Signed-off-by Tony Luck <[email protected]>Reviewed-by Yazen Ghannam <[email protected]>Tested-by Yazen Ghannam <[email protected]>--- arch/x86/kernel/cpu/mce/internal.h | 4 +- arch/x86/kernel/cpu/mce/core.c | 26 ++++-- arch/x86/kernel/cpu/mce/intel.c | 139 ++++++++++++++++++++++++++++- 3 files changed, 158 insertions(+), 11 deletions(-)
Quoted 6 lines
ld: vmlinux.o: in function `machine_check_poll':
/home/boris/kernel/2nd/linux/arch/x86/kernel/cpu/mce/core.c:683: undefined reference to `track_cmci_storm' make[1]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 1
make: *** [Makefile:1249: vmlinux] Error 2
make: *** Waiting for unfinished jobs....
Ah, this is with CONFIG_MCE_INTEL=n and everything =y. Is there an automated way to test every config, not just random, combination in a subsystem?
I'll try to add something like this to my flow. It seems allnoconfig, defconfig, etc. aren't enough. And it's too easy to overlook during code review.
Thanks,
Yazen
Luck, Tony
maintainerRE: [PATCH v4 2/5] x86/mce: Add per-bank CMCI storm mitigation
Quoted 7 lines
Quoted 6 lines
ld: vmlinux.o: in function `machine_check_poll':
/home/boris/kernel/2nd/linux/arch/x86/kernel/cpu/mce/core.c:683: undefined reference to `track_cmci_storm' make[1]: *** [scripts/Makefile.vmlinux:35: vmlinux] Error 1
make: *** [Makefile:1249: vmlinux] Error 2
make: *** Waiting for unfinished jobs....
Quoted 5 lines
Ah, this is with
CONFIG_MCE_INTEL=nand everything =y. Is there an automated way to test every config, not just random, combination in a subsystem?I'll try to add something like this to my flow. It seems allnoconfig, defconfig, etc. aren't enough. And it's too easy to overlook during code review.
I'm a bit surprised that lkp didn't complain. It used to do a zillion builds with combinations of CONFIG options that were relevant to the patch series.
I'll spin a v5 with an inline stub function to fix this.
Boris: Have you seen anything else that needs fixing?
-Tony
Borislav Petkov
maintainerRe: [PATCH v4 2/5] x86/mce: Add per-bank CMCI storm mitigation
Quoted 1 line · Tony
Boris: Have you seen anything else that needs fixing?
Not yet. I stopped looking at the build failure.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteTony Luck
maintainerPATCH v4 3/5 x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
Intel and AMD need to take different actions when a storm begins or ends. Prepare for the storm code moving from intel.c into core.c by adding a function that checks CPU vendor to pick the right action.
No functional changes.
[Tony: Changed from function pointer to regular function]
--- arch/x86/kernel/cpu/mce/internal.h | 3 +++ arch/x86/kernel/cpu/mce/core.c | 9 +++++++++ arch/x86/kernel/cpu/mce/intel.c | 12 ++++++++++-- 3 files changed, 22 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +3 -0
@@ -43,12 +43,14 @@ extern mce_banks_t mce_banks_ce_disabled;void track_cmci_storm (int bank,u64 status);#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
@@ -57,6 +59,7 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }#endif void mce_timer_kick (bool storm); +void mce_handle_storm (int bank,bool on);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +9 -0
@@ -1975,6 +1975,15 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)intel_clear_lmce (); } +void mce_handle_storm (int bank,bool on) +{ +switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; + } +} +static void __mcheck_cpu_init_vendor (struct cpuinfo_x86 *c) {switch (c->x86_vendor) {
arch/x86/kernel/cpu/mce/intel.c +10 -2
@@ -152,6 +152,14 @@ static void cmci_set_threshold(int bank, int thresh)raw_spin_unlock_irqrestore (&cmci_discover_lock, flags); } +void mce_intel_handle_storm (int bank,bool on) +{ +if (on) +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +else +cmci_set_threshold (bank, cmci_threshold[bank]); +} +static void cmci_storm_begin (int bank) {__set_bit (bank,this_cpu_ptr (mce_poll_banks));
@@ -211,13 +219,13 @@ void track_cmci_storm(int bank, u64 status)if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 ))return ;pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank, cmci_threshold[bank]); +mce_handle_storm (bank, false);cmci_storm_end (bank); }else {if (hweight64 (history) <STORM_BEGIN_THRESHOLD )return ;pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +mce_handle_storm (bank, true);cmci_storm_begin (bank); } }
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v4 4/5 x86/mce: Move storm handling to core.
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
AMD's storm handling for threshold interrupts is similar to Intel's CMCI storm handling. Hence, make the storm handling code common by moving to core and removing the vendor exclusivity.
On the contrary, setting different thresholds to reduce rate of interrupts in IA32_MCi_CTL2 register is kept Intel intact as the storm handling for AMD slightly differs where in it handles the storms by turning off the interrupts.
No functional changes.
[Tony: Same as Smita's original, plus changes rolled in from prior patches]
--- arch/x86/kernel/cpu/mce/internal.h | 18 ++++++ arch/x86/kernel/cpu/mce/core.c | 81 ++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/intel.c | 93 +----------------------------- 3 files changed, 100 insertions(+), 92 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +18 -0
@@ -60,6 +60,24 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }void mce_timer_kick (bool storm);void mce_handle_storm (int bank,bool on); +void cmci_storm_begin (int bank); +void cmci_storm_end (int bank); + +DECLARE_PER_CPU (int, stormy_bank_count); +DECLARE_PER_CPU (u64 [MAX_NR_BANKS ], bank_history); +DECLARE_PER_CPU (bool [MAX_NR_BANKS ], bank_storm); +DECLARE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp); + +/* +* How many errors within the history buffer mark the start of a storm +*/ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over +*/ +#define STORM_END_POLL_THRESHOLD 30#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +81 -0
87 lines not on this page · raw message
arch/x86/kernel/cpu/mce/intel.c +1 -92
111 lines not on this page · raw message
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v4 5/5 x86/mce: Handle AMD threshold interrupt storms
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
Extend the logic of handling CMCI storms to AMD threshold interrupts.
Rely on the similar approach as of Intel's CMCI to mitigate storms per CPU and per bank. But, unlike CMCI, do not set thresholds and reduce interrupt rate on a storm. Rather, disable the interrupt on the corresponding CPU and bank. Re-enable back the interrupts if enough consecutive polls of the bank show no corrected errors (30, as programmed by Intel).
Turning off the threshold interrupts would be a better solution on AMD systems as other error severities will still be handled even if the threshold interrupts are disabled.
[Tony: Small tweak because mce_handle_storm() isn't a pointer now]
--- arch/x86/kernel/cpu/mce/internal.h | 2 ++ arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/core.c | 3 ++ 3 files changed, 54 insertions(+)
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -224,6 +224,7 @@ extern bool filter_mce(struct mce *m);#ifdef CONFIG_X86_MCE_AMD extern bool amd_filter_mce (struct mce *m); +void mce_amd_handle_storm (int bank,bool on);/* * If MCA_CONFIG[McaLsbInStatusSupported] is set, extract ErrAddr in bits
@@ -251,6 +252,7 @@ static __always_inline void smca_extract_err_addr(struct mce *m)#else static inline bool amd_filter_mce (struct mce *m) {return false; } +static inline void mce_amd_handle_storm (int bank,bool on) {}static inline void smca_extract_err_addr (struct mce *m) { }#endif
arch/x86/kernel/cpu/mce/amd.c +49 -0
67 lines not on this page · raw message
arch/x86/kernel/cpu/mce/core.c +3 -0
@@ -2062,6 +2062,9 @@ void mce_handle_storm(int bank, bool on)case X86_VENDOR_INTEL :mce_intel_handle_storm (bank, on);break ; +case X86_VENDOR_AMD : +mce_amd_handle_storm (bank, on); +break ; } }
Signature · 1 line
2.39.2
Tony Luck
maintainerv5 cover Handle corrected machine check interrupt storms
In reply to Tony LuckLinux CMCI storm mitigation is a big hammer that just disables the CMCI interrupt globally and switches to polling all banks.
There are two problems with this:
1) It really is a big hammer. It means that errors reported in other banks from different functional units are all subject to the same polling delay before being processed.
2) Intel systems signal some uncorrected errors using CMCI (e.g. memory controller patrol scrub on Icelake Xeon and newer). Delaying processing these error reports negates some of the benefit of the patrol scrubber providing early notice of errors before they are consumed and cause a machine check.
This series throws away the old storm implementation and replaces it with one that keeps track of the weather on each separate machine check bank. When a storm is detected from a bank. On Intel the storm is mitigated by setting a very high threshold for corrected errors to signal CMCI. This threshold does not affect signaling CMCI for uncorrected errors.
AMD's storm mitigation for threshold interrupts also relies on per CPU per bank approach similar to Intel. But unlike CMCI storm handling it does not set thresholds to reduce rate of interrupts on a storm. Rather it turns off the interrupt on the current CPU and bank if there is a storm and re-enables back the interrupts when the storm subsides.
It is okay to turn off threshold interrupts on AMD systems as other error severities continue to be handled even if the threshold interrupts are turned off. Uncorrected errors will generate a #MC and deferred errors have a unique separate deferred error interrupt. The final patch adds support for handling threshold interrupt storms on AMD systems.
Changes since last version:
Boris: Build failure on part 2 with CONFIG_MCE_INTEL=n
Fixed by adding necessary stub function for track_cmci_storm()
Smita Koralahalli (3):
x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms x86/mce: Move storm handling to core.
x86/mce: Handle AMD threshold interrupt storms
Tony Luck (2):
x86/mce: Remove old CMCI storm mitigation code
x86/mce: Add per-bank CMCI storm mitigation
arch/x86/kernel/cpu/mce/internal.h | 33 ++++-- arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++ arch/x86/kernel/cpu/mce/core.c | 139 +++++++++++++++++----- arch/x86/kernel/cpu/mce/intel.c | 179 +++++++---------------------- 4 files changed, 230 insertions(+), 170 deletions(-)
base-commit: 09a9639e56c01c7a00d6c0ca63f4c7c41abe075d
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v5 1/5 x86/mce: Remove old CMCI storm mitigation code
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/internal.h | 6 -- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,18 +41,12 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1588,13 +1588,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1617,15 +1610,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))machine_check_poll (0 ,this_cpu_ptr (&mce_poll_banks)); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1635,7 +1622,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -1972,7 +1958,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -1985,7 +1970,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2642,8 +2626,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v5 2/5 x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckAdd an Intel specific hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs (with a stub for the CONFIG_MCE_INTEL=n case).
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed the Rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (5 in this RFC code for ease of testing, likely move to 15 for compatibility with previous storm detection).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (currently 30, may also change). That resets the threshold in IA32_MCi_CTL2 back to 1, removes the bank from the bitmap for polling, and changes the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
--- arch/x86/kernel/cpu/mce/internal.h | 4 +- arch/x86/kernel/cpu/mce/core.c | 26 ++++-- arch/x86/kernel/cpu/mce/intel.c | 139 ++++++++++++++++++++++++++++- 3 files changed, 158 insertions(+), 11 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +3 -1
@@ -46,15 +46,17 @@ void intel_init_cmci(void);void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m); +void track_cmci_storm (int bank,u64 status);#else static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }static inline void intel_clear_lmce (void ) { }static inline bool intel_filter_mce (struct mce *m) {return false; } +static inline void track_cmci_storm (int bank,u64 status) { }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +18 -8
@@ -680,6 +680,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +track_cmci_storm (i, m.status); +/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
@@ -1587,6 +1589,7 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); +static DEFINE_PER_CPU(bool, storm_poll_mode);static void __start_timer (struct timer_list *t,unsigned long interval) {
@@ -1622,22 +1625,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (__this_cpu_read (storm_poll_mode)) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +__this_cpu_write (storm_poll_mode, storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */
arch/x86/kernel/cpu/mce/intel.c +137 -2
183 lines not on this page · raw message
Signature · 1 line
2.39.2
Borislav Petkov
maintainerRe: [PATCH v5 2/5] x86/mce: Add per-bank CMCI storm mitigation
arch/x86/kernel/cpu/mce/core.c static unsigned long check_interval = INITIAL_CHECK_INTERVAL; · line 1592
Quoted 5 lines · Tony Luck
arch/x86/kernel/cpu/mce/core.c +1
-0@@ -1587,6 +1589,7 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); +static DEFINE_PER_CPU(bool, storm_poll_mode);
See comment below about putting all those storm-related vars in a struct.
Also, there's another bool - bank_storm - which looks like it does the same.
Quoted 27 lines
arch/x86/kernel/cpu/mce/core.c +10
-5static void __start_timer (struct timer_list *t,unsigned long interval) {@@ -1622,22 +1625,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (__this_cpu_read (storm_poll_mode)) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval);
arch/x86/kernel/cpu/mce/core.c static void mce_timer_fn(struct timer_list *t) · line 1650
Quoted 10 lines
arch/x86/kernel/cpu/mce/core.c +5
-3-__start_timer (t, interval); +__this_cpu_write (storm_poll_mode, storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ );
This looks very familiar to what mce_timer_fn() above does. Add a helper.
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 53
Quoted 13 lines
arch/x86/kernel/cpu/mce/core.c +0
-0/* Must not be called in IRQ context where del_timer_sync() can deadlock */ arch/x86/kernel/cpu/mce/intel.c +4
-0@@ -47,8 +47,40 @@ static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned);*/ static DEFINE_RAW_SPINLOCK (cmci_discover_lock); +/* +* CMCI storm tracking state +* stormy_bank_count: per-cpu count of MC banks in storm state +* bank_history: bitmask tracking of corrected errors seen in each bank
bank_storm: determines whether the bank is in storm mode
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 60
Quoted 7 lines
arch/x86/kernel/cpu/mce/intel.c +7
-0+* bank_time_stamp: last time (in jiffies) that each bank was polled +* cmci_threshold: MCi_CTL2 threshold for each bank when there is no storm +*/ +static DEFINE_PER_CPU(int, stormy_bank_count); +static DEFINE_PER_CPU(u64 [MAX_NR_BANKS], bank_history); +static DEFINE_PER_CPU(bool [MAX_NR_BANKS], bank_storm); +static DEFINE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp);
All those are begging to be a
struct mca_storm_desc {
....
};
or so, so that they don't "dangle" randomly all over the place and one doesn't know what they belong to.
Every time you then do storm management, you get the percpu pointer and do
storm_desc->bank_history[bank] ... storm_desc->bank_count ...
and so on.
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 61
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+static int cmci_threshold[MAX_NR_BANKS ];
Why do we have to save per-bank thresholds instead of writing a default non-storm value into all? Why are they each special?
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 63
Quoted 2 lines
arch/x86/kernel/cpu/mce/intel.c +2
-0+ +/* Linux non-storm CMCI threshold (may be overridden by BIOS */
Missing ")".
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 71
Quoted 8 lines
arch/x86/kernel/cpu/mce/intel.c +6
-0#define CMCI_THRESHOLD 1 +/* +* High threshold to limit CMCI rate during storms. Max supported is +* 0x7FFF. Use this slightly smaller value so it has a distinctive +* signature when some asks "Why am I not seeing all corrected errors?" +*/ +#define CMCI_STORM_THRESHOLD 32749
Why if you can simply clear CMCI_EN and disable CMCI for this bank while the storm goes on?
And reenable it when it subsides?
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 179
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+void track_cmci_storm (int bank,u64 status)
cmci_track_storm
Quoted 13 lines
arch/x86/kernel/cpu/mce/intel.c +13
-0+{ +unsigned long now = jiffies, delta; +unsigned int shift =1 ; +u64 history; + +/* +* When a bank is in storm mode it is polled once per second and +* the history mask will record about the last minute of poll results. +* If it is not in storm mode, then the bank is only checked when +* there is a CMCI interrupt. Check how long it has been since +* this bank was last checked, and adjust the amount of "shift" +* to apply to history. +*/
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 202
Quoted 10 lines
arch/x86/kernel/cpu/mce/intel.c +10
-0+if (!this_cpu_read (bank_storm[bank])) { + delta = now -this_cpu_read (bank_time_stamp[bank]); + shift = (delta +HZ ) /HZ ; + } + +/* If has been a long time since the last poll, clear history */ +if (shift >=64 ) + history =0 ; +else + history =this_cpu_read (bank_history[bank]) << shift;
<---- newline here.
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 207
Quoted 5 lines
arch/x86/kernel/cpu/mce/intel.c +5
-0+this_cpu_write (bank_time_stamp[bank], now); + +/* History keeps track of corrected errors. VAL=1 && UC=0 */ +if ((status & (MCI_STATUS_VAL |MCI_STATUS_UC )) ==MCI_STATUS_VAL ) + history |=1 ;
Ditto.
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 210
Quoted 3 lines
arch/x86/kernel/cpu/mce/intel.c +3
-0+this_cpu_write (bank_history[bank], history); + +if (this_cpu_read (bank_storm[bank])) {
You just read bank_storm and now you're reading it again. Just do a struct pls.
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 211
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 ))
"- 1" because you start from 0? So define the STORM_END_POLL_THRESHOLD thing above as (30 - 1) and explain why.
arch/x86/kernel/cpu/mce/intel.c
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+return ;
<---- newline here.
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 217
Quoted 5 lines
arch/x86/kernel/cpu/mce/intel.c +5
-0+pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); +cmci_set_threshold (bank, cmci_threshold[bank]); +cmci_storm_end (bank); + }else { +if (hweight64 (history) <STORM_BEGIN_THRESHOLD )
How am I to understand this? Is that the "5 in this RFC code for ease of testing" thing from the commit message?
arch/x86/kernel/cpu/mce/intel.c
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+return ;
<---- newline here.
Quoted 10 lines
arch/x86/kernel/cpu/mce/intel.c +6
-0+pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +cmci_storm_begin (bank); + } +} +/* * The interrupt handler. This is called on every event. * Just call the poller directly to log any events.
arch/x86/kernel/cpu/mce/intel.c static void cmci_discover(int banks) · line 269
Quoted 4 lines
arch/x86/kernel/cpu/mce/intel.c +1
-0@@ -147,6 +266,9 @@ static void cmci_discover(int banks)continue ; } +if ((val &MCI_CTL2_CMCI_THRESHOLD_MASK ) ==CMCI_STORM_THRESHOLD )
This is silly: you have at least two per-cpu bools which record which banks are in storm mode. Why don't you query them?
arch/x86/kernel/cpu/mce/intel.c static void cmci_discover(int banks) · line 284
Quoted 11 lines
arch/x86/kernel/cpu/mce/intel.c +3
-1+ goto storm; +if (!mca_cfg.bios_cmci_threshold) { val &= ~MCI_CTL2_CMCI_THRESHOLD_MASK ; val |=CMCI_THRESHOLD ;@@ -159,7 +281,7 @@ static void cmci_discover(int banks) bios_zero_thresh =1 ; val |=CMCI_THRESHOLD ; } - +storm:
That piece from here on wants to be a separate helper - that function is becoming huge and unwieldy, doing a bunch of things.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteTony Luck
maintainerRe: [PATCH v5 2/5] x86/mce: Add per-bank CMCI storm mitigation
Quoted 8 lines · Borislav Petkov
arch/x86/kernel/cpu/mce/core.c static unsigned long check_interval = INITIAL_CHECK_INTERVAL; · line 1592
Quoted 5 lines · Tony Luck
arch/x86/kernel/cpu/mce/core.c +1
-0@@ -1587,6 +1589,7 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); +static DEFINE_PER_CPU(bool, storm_poll_mode);See comment below about putting all those storm-related vars in a struct.
Done. Looks much better without the forest ot this_cpu*() operators. Thanks.
Quoted 2 lines
Also, there's another bool -
bank_storm- which looks like it does the same.
storm_poll_mode is a regular per-cpu variable that indicates a CPU is in poll mode because one or more of the banks it owns has gone over the storm threshold.
bank_storm - is a per-cpu per-bank indicator that a particular bank on a particular CPU is in storm mode.
Quoted 32 lines
Quoted 32 lines
arch/x86/kernel/cpu/mce/core.c +11
-6static void __start_timer (struct timer_list *t,unsigned long interval) {@@ -1622,22 +1625,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (__this_cpu_read (storm_poll_mode)) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +__this_cpu_write (storm_poll_mode, storm);
Quoted 9 lines
arch/x86/kernel/cpu/mce/core.c static void mce_timer_fn(struct timer_list *t) · line 1650
Quoted 6 lines
arch/x86/kernel/cpu/mce/core.c +4
-2-if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ );This looks very familiar to what
mce_timer_fn()above does. Add a helper.
Looking at the final versions of these functions with patches applied, I'm not seeing the similarities.
Quoted 9 lines
Quoted 9 lines
arch/x86/kernel/cpu/mce/core.c +0
-0/* Must not be called in IRQ context where del_timer_sync() can deadlock */ arch/x86/kernel/cpu/mce/intel.c +0
-0@@ -47,8 +47,40 @@ static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned);*/ static DEFINE_RAW_SPINLOCK (cmci_discover_lock);
Quoted 6 lines
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 53
Quoted 4 lines
arch/x86/kernel/cpu/mce/intel.c +4
-0+/* +* CMCI storm tracking state +* stormy_bank_count: per-cpu count of MC banks in storm state +* bank_history: bitmask tracking of corrected errors seen in each bank
bank_storm: determines whether the bank is in storm mode
Good catch. Added.
Quoted 20 lines
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 60
Quoted 8 lines
arch/x86/kernel/cpu/mce/intel.c +7
-0+* bank_time_stamp: last time (in jiffies) that each bank was polled +* cmci_threshold: MCi_CTL2 threshold for each bank when there is no storm +*/ +static DEFINE_PER_CPU(int, stormy_bank_count); +static DEFINE_PER_CPU(u64 [MAX_NR_BANKS], bank_history); +static DEFINE_PER_CPU(bool [MAX_NR_BANKS], bank_storm); +static DEFINE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp);All those are begging to be a
struct
mca_storm_desc{....};
or so, so that they don't "dangle" randomly all over the place and one doesn't know what they belong to.
Quoted 8 lines
Every time you then do storm management, you get the percpu pointer and do
storm_desc->bank_history[bank] ... storm_desc->bank_count ...and so on.
Yup. Done.
Quoted 4 lines
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 61
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+static int cmci_threshold[MAX_NR_BANKS ];Why do we have to save per-bank thresholds instead of writing a default non-storm value into all? Why are they each special?
Because we have an option to use thresholds set by BIOS.
Quoted 4 lines
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 63
Quoted 2 lines
arch/x86/kernel/cpu/mce/intel.c +2
-0+ +/* Linux non-storm CMCI threshold (may be overridden by BIOS */ Missing ")".
Fixed.
Quoted 12 lines
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 71
Quoted 8 lines
arch/x86/kernel/cpu/mce/intel.c +6
-0#define CMCI_THRESHOLD 1 +/* +* High threshold to limit CMCI rate during storms. Max supported is +* 0x7FFF. Use this slightly smaller value so it has a distinctive +* signature when some asks "Why am I not seeing all corrected errors?" +*/ +#define CMCI_STORM_THRESHOLD 32749Why if you can simply clear
CMCI_ENand disable CMCI for this bank while the storm goes on?
Quoted 1 line
And reenable it when it subsides?
Because Intel reports both corrected and uncorrected errors in the same bank and signals both with CMCI (that first "C" stands for "Corrected", so this is now a misleading name). I want Linux to get notification of uncorrected errors in a timely fashion, so CMCI has to stay enabled.
AMD doesn't have this problem, Smita's patch disables CMCI as you suggest.
Quoted 4 lines
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 179
Quoted 2 lines
arch/x86/kernel/cpu/mce/intel.c +1
-0+void track_cmci_storm (int bank,u64 status)
cmci_track_storm
Updated.
Quoted 17 lines
Quoted 17 lines
arch/x86/kernel/cpu/mce/intel.c +17
-0+{ +unsigned long now = jiffies, delta; +unsigned int shift =1 ; +u64 history; + +/* +* When a bank is in storm mode it is polled once per second and +* the history mask will record about the last minute of poll results. +* If it is not in storm mode, then the bank is only checked when +* there is a CMCI interrupt. Check how long it has been since +* this bank was last checked, and adjust the amount of "shift" +* to apply to history. +*/ +if (!this_cpu_read (bank_storm[bank])) { + delta = now -this_cpu_read (bank_time_stamp[bank]); + shift = (delta +HZ ) /HZ ; + }
Quoted 8 lines
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 202
Quoted 6 lines
arch/x86/kernel/cpu/mce/intel.c +6
-0+ +/* If has been a long time since the last poll, clear history */ +if (shift >=64 ) + history =0 ; +else + history =this_cpu_read (bank_history[bank]) << shift;<---- newline here.
Added
Quoted 7 lines
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 207
Quoted 5 lines
arch/x86/kernel/cpu/mce/intel.c +5
-0+this_cpu_write (bank_time_stamp[bank], now); + +/* History keeps track of corrected errors. VAL=1 && UC=0 */ +if ((status & (MCI_STATUS_VAL |MCI_STATUS_UC )) ==MCI_STATUS_VAL ) + history |=1 ;Ditto.
Ditto.
Quoted 11 lines
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 210
Quoted 3 lines
arch/x86/kernel/cpu/mce/intel.c +3
-0+this_cpu_write (bank_history[bank], history); + +if (this_cpu_read (bank_storm[bank])) {You just read
bank_stormand now you're reading it again. Just do a struct pls.arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 211
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 ))"- 1" because you start from 0? So define the
STORM_END_POLL_THRESHOLDthing above as (30 - 1) and explain why.
Because the low bit in a bitmap is named 0. I want to check if any of the low 30 bits are set, so I need a bitmask with bits {29..0}
Quoted 3 lines
arch/x86/kernel/cpu/mce/intel.c
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+return ;<---- newline here.
Added.
Quoted 8 lines
arch/x86/kernel/cpu/mce/intel.c static bool lmce_supported(void) · line 217
Quoted 5 lines
arch/x86/kernel/cpu/mce/intel.c +5
-0+pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); +cmci_set_threshold (bank, cmci_threshold[bank]); +cmci_storm_end (bank); + }else { +if (hweight64 (history) <STORM_BEGIN_THRESHOLD )How am I to understand this? Is that the "5 in this RFC code for ease of testing" thing from the commit message?
Yes. I've fixed up the commit message to remove the "ease of testing". 5 seems (to me) to be a reasonable value. But it's #define so easy to change if anyone has data to support a better choice.
Quoted 3 lines
arch/x86/kernel/cpu/mce/intel.c
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+return ;<---- newline here.
Added.
Quoted 13 lines
Quoted 13 lines
arch/x86/kernel/cpu/mce/intel.c +6
-0+pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +cmci_storm_begin (bank); + } +} +/* * The interrupt handler. This is called on every event. * Just call the poller directly to log any events. @@ -147,6 +266,9 @@ static void cmci_discover(int banks)continue ; }
Quoted 4 lines
arch/x86/kernel/cpu/mce/intel.c static void cmci_discover(int banks) · line 269
Quoted 1 line
arch/x86/kernel/cpu/mce/intel.c +1
-0+if ((val &MCI_CTL2_CMCI_THRESHOLD_MASK ) ==CMCI_STORM_THRESHOLD )This is silly: you have at least two per-cpu bools which record which banks are in storm mode. Why don't you query them?
This is the case where a CPU is taken offline while a storm is in progress for one of its banks. So the bool would tell us the storm was in progress if we knew which CPU was the previous owner of this bank. But there's no way to know that. Which banks are shared by which CPUs isn't enumerated anywhere. So the old CPU went offline with a storm active, the new CPU picking up ownership of this bank must carry on managing the storm.
Quoted 6 lines
Quoted 6 lines
arch/x86/kernel/cpu/mce/intel.c +2
-0+ goto storm; +if (!mca_cfg.bios_cmci_threshold) { val &= ~MCI_CTL2_CMCI_THRESHOLD_MASK ; val |=CMCI_THRESHOLD ;@@ -159,7 +281,7 @@ static void cmci_discover(int banks)
Quoted 8 lines
arch/x86/kernel/cpu/mce/intel.c static void cmci_discover(int banks) · line 284
Quoted 5 lines
arch/x86/kernel/cpu/mce/intel.c +1
-1bios_zero_thresh =1 ; val |=CMCI_THRESHOLD ; } - +storm:That piece from here on wants to be a separate helper - that function is becoming huge and unwieldy, doing a bunch of things.
Agreed. I pulled out three helpers. The result looks (IMHO) far more readable.
Quoted 2 lines
Thx.
Thanks for the detailed review. Will post new version later today.
-Tony
Tony Luck
maintainerPATCH v5 3/5 x86/mce: Introduce mce_handle_storm() to deal with begin/end of storms
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
Intel and AMD need to take different actions when a storm begins or ends. Prepare for the storm code moving from intel.c into core.c by adding a function that checks CPU vendor to pick the right action.
No functional changes.
[Tony: Changed from function pointer to regular function]
--- arch/x86/kernel/cpu/mce/internal.h | 3 +++ arch/x86/kernel/cpu/mce/core.c | 9 +++++++++ arch/x86/kernel/cpu/mce/intel.c | 12 ++++++++++-- 3 files changed, 22 insertions(+), 2 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +3 -0
@@ -41,6 +41,7 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );
@@ -48,6 +49,7 @@ void intel_clear_lmce(void);bool intel_filter_mce (struct mce *m);void track_cmci_storm (int bank,u64 status);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
@@ -57,6 +59,7 @@ static inline void track_cmci_storm(int bank, u64 status) { }#endif void mce_timer_kick (bool storm); +void mce_handle_storm (int bank,bool on);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +9 -0
@@ -1975,6 +1975,15 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)intel_clear_lmce (); } +void mce_handle_storm (int bank,bool on) +{ +switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; + } +} +static void __mcheck_cpu_init_vendor (struct cpuinfo_x86 *c) {switch (c->x86_vendor) {
arch/x86/kernel/cpu/mce/intel.c +10 -2
@@ -152,6 +152,14 @@ static void cmci_set_threshold(int bank, int thresh)raw_spin_unlock_irqrestore (&cmci_discover_lock, flags); } +void mce_intel_handle_storm (int bank,bool on) +{ +if (on) +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +else +cmci_set_threshold (bank, cmci_threshold[bank]); +} +static void cmci_storm_begin (int bank) {__set_bit (bank,this_cpu_ptr (mce_poll_banks));
@@ -211,13 +219,13 @@ void track_cmci_storm(int bank, u64 status)if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD -1 ,0 ))return ;pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank, cmci_threshold[bank]); +mce_handle_storm (bank, false);cmci_storm_end (bank); }else {if (hweight64 (history) <STORM_BEGIN_THRESHOLD )return ;pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); -cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +mce_handle_storm (bank, true);cmci_storm_begin (bank); } }
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v5 4/5 x86/mce: Move storm handling to core.
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
AMD's storm handling for threshold interrupts is similar to Intel's CMCI storm handling. Hence, make the storm handling code common by moving to core and removing the vendor exclusivity.
On the contrary, setting different thresholds to reduce rate of interrupts in IA32_MCi_CTL2 register is kept Intel intact as the storm handling for AMD slightly differs where in it handles the storms by turning off the interrupts.
No functional changes.
[Tony: Same as Smita's original, plus changes rolled in from prior patches]
--- arch/x86/kernel/cpu/mce/internal.h | 20 ++++++- arch/x86/kernel/cpu/mce/core.c | 81 ++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/intel.c | 93 +----------------------------- 3 files changed, 100 insertions(+), 94 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +18 -2
@@ -47,7 +47,6 @@ void intel_init_cmci(void);void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m); -void track_cmci_storm (int bank,u64 status);#else static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }
@@ -55,11 +54,28 @@ static inline void intel_init_cmci(void) { }static inline void intel_init_lmce (void ) { }static inline void intel_clear_lmce (void ) { }static inline bool intel_filter_mce (struct mce *m) {return false; } -static inline void track_cmci_storm (int bank,u64 status) { }#endif void mce_timer_kick (bool storm);void mce_handle_storm (int bank,bool on); +void cmci_storm_begin (int bank); +void cmci_storm_end (int bank); + +DECLARE_PER_CPU (int, stormy_bank_count); +DECLARE_PER_CPU (u64 [MAX_NR_BANKS ], bank_history); +DECLARE_PER_CPU (bool [MAX_NR_BANKS ], bank_storm); +DECLARE_PER_CPU(unsigned long [MAX_NR_BANKS], bank_time_stamp); + +/* +* How many errors within the history buffer mark the start of a storm +*/ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over +*/ +#define STORM_END_POLL_THRESHOLD 30#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +81 -0
87 lines not on this page · raw message
arch/x86/kernel/cpu/mce/intel.c +1 -92
111 lines not on this page · raw message
Signature · 1 line
2.39.2
Tony Luck
maintainerPATCH v5 5/5 x86/mce: Handle AMD threshold interrupt storms
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
Extend the logic of handling CMCI storms to AMD threshold interrupts.
Rely on the similar approach as of Intel's CMCI to mitigate storms per CPU and per bank. But, unlike CMCI, do not set thresholds and reduce interrupt rate on a storm. Rather, disable the interrupt on the corresponding CPU and bank. Re-enable back the interrupts if enough consecutive polls of the bank show no corrected errors (30, as programmed by Intel).
Turning off the threshold interrupts would be a better solution on AMD systems as other error severities will still be handled even if the threshold interrupts are disabled.
[Tony: Small tweak because mce_handle_storm() isn't a pointer now]
--- arch/x86/kernel/cpu/mce/internal.h | 4 +++ arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/core.c | 3 ++ 3 files changed, 56 insertions(+)
arch/x86/kernel/cpu/mce/internal.h +4 -0
@@ -40,6 +40,8 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled; +void track_cmci_storm (int bank,u64 status); +#ifdef CONFIG_X86_MCE_INTEL void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);
@@ -222,6 +224,7 @@ extern bool filter_mce(struct mce *m);#ifdef CONFIG_X86_MCE_AMD extern bool amd_filter_mce (struct mce *m); +void mce_amd_handle_storm (int bank,bool on);/* * If MCA_CONFIG[McaLsbInStatusSupported] is set, extract ErrAddr in bits
@@ -249,6 +252,7 @@ static __always_inline void smca_extract_err_addr(struct mce *m)#else static inline bool amd_filter_mce (struct mce *m) {return false; } +static inline void mce_amd_handle_storm (int bank,bool on) {}static inline void smca_extract_err_addr (struct mce *m) { }#endif
arch/x86/kernel/cpu/mce/amd.c +49 -0
67 lines not on this page · raw message
arch/x86/kernel/cpu/mce/core.c +3 -0
@@ -2062,6 +2062,9 @@ void mce_handle_storm(int bank, bool on)case X86_VENDOR_INTEL :mce_intel_handle_storm (bank, on);break ; +case X86_VENDOR_AMD : +mce_amd_handle_storm (bank, on); +break ; } }
Signature · 1 line
2.39.2
Tony Luck
maintainerv6 cover Handle corrected machine check interrupt storms
In reply to Tony LuckLinux CMCI storm mitigation is a big hammer that just disables the CMCI interrupt globally and switches to polling all banks.
There are two problems with this:
1) It really is a big hammer. It means that errors reported in other banks from different functional units are all subject to the same polling delay before being processed.
2) Intel systems signal some uncorrected errors using CMCI (e.g. memory controller patrol scrub on Icelake Xeon and newer). Delaying processing these error reports negates some of the benefit of the patrol scrubber providing early notice of errors before they are consumed and cause a machine check.
This series throws away the old storm implementation and replaces it with one that keeps track of the weather on each separate machine check bank. When a storm is detected from a bank. On Intel the storm is mitigated by setting a very high threshold for corrected errors to signal CMCI. This threshold does not affect signaling CMCI for uncorrected errors.
AMD's storm mitigation for threshold interrupts also relies on per CPU per bank approach similar to Intel. But unlike CMCI storm handling it does not set thresholds to reduce rate of interrupts on a storm. Rather it turns off the interrupt on the current CPU and bank if there is a storm and re-enables back the interrupts when the storm subsides.
It is okay to turn off threshold interrupts on AMD systems as other error severities continue to be handled even if the threshold interrupts are turned off. Uncorrected errors will generate a #MC and deferred errors have a unique separate deferred error interrupt. The final patch adds support for handling threshold interrupt storms on AMD systems.
Changes since last version:
1) Broke series into different steps. Previous series was based on the sequence of development:
a) Remove old storm code
b) Add Intel specific storm mitigation
c) Small refactor by to allow for support for multiple vendors
d) Move all the generic parts from intel.c to core.c
e) Add support for AMD
but this resulted in a lot of code being added in step 'b' and then moved in step 'd'. Preserving this history in Linux GIT commits doesn't seem overly useful. So I squashed parts 'b' through 'e' together and then split them into a more rationale set:
a) Same as before, removes old storm code.
b) Add generic code for storm handling
c) Add AMD vendor specific code
d) Add Intel vendor specific code.
2) Boris suggested that all the storm tracking variables should be bundled into a "storm_desc" structure, then declare a "storm" pointer initialized using this_cpu_ptr() then replace the forest of this_cpu_*() code with operation on "storm->field".
3) The Intel cmci_discover() function is far too large, with many separate things going on in the inner loop. Per Boris suggestion refactored with some helper functions.
4) Numerous other small cleanups, additional comments to explain what is happening in areas where it wasn't obvious.
Smita Koralahalli (1):
x86/mce: Handle AMD threshold interrupt storms
Tony Luck (3):
x86/mce: Remove old CMCI storm mitigation code x86/mce: Add per-bank CMCI storm mitigation x86/mce: Handle Intel threshold interrupt storms
arch/x86/kernel/cpu/mce/internal.h | 43 +++- arch/x86/kernel/cpu/mce/amd.c | 49 +++++ arch/x86/kernel/cpu/mce/core.c | 135 +++++++++--- arch/x86/kernel/cpu/mce/intel.c | 333 +++++++++++++---------------- 4 files changed, 337 insertions(+), 223 deletions(-)
base-commit: 858fd168a95c5b9669aac8db6c14a9aeab446375
Signature · 1 line
2.40.1
Tony Luck
maintainerPATCH v6 1/4 x86/mce: Remove old CMCI storm mitigation code
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/internal.h | 6 -- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,18 +41,12 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1588,13 +1588,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1617,15 +1610,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))machine_check_poll (0 ,this_cpu_ptr (&mce_poll_banks)); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1635,7 +1622,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -1972,7 +1958,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -1985,7 +1970,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2642,8 +2626,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
Signature · 1 line
2.40.1
Tony Luck
maintainerPATCH v6 2/4 x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckThis is the core functionality to track CMCI storms at the machine check bank granularity. Subsequent patches will add the vendor specific hooks to supply input to the storm detection and take actions on the start/end of a storm.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed a CPU vendor specific action is taken to reduce or stop CMCI from the bank that is the source of the storm. The bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second. During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (defined as 5 in this series, could be tuned later if there is data to suggest a better value).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (defined as 30, may also change). That calls the CPU vendor specific function to revert to normal operational mode, and changes the polling rate back to the default.
--- arch/x86/kernel/cpu/mce/internal.h | 33 ++++++++- arch/x86/kernel/cpu/mce/core.c | 109 ++++++++++++++++++++++++++--- 2 files changed, 133 insertions(+), 9 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +32 -1
@@ -40,6 +40,8 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled; +void track_cmci_storm (int bank,u64 status); +#ifdef CONFIG_X86_MCE_INTEL void cmci_disable_bank (int bank);void intel_init_cmci (void );
@@ -54,7 +56,36 @@ static inline void intel_clear_lmce(void) { }static inline bool intel_filter_mce (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm); +void mce_handle_storm (int bank,bool on); +void cmci_storm_begin (int bank); +void cmci_storm_end (int bank); + +/** +* struct mca_storm_desc - CMCI storm tracking data +* @stormy_bank_count: count of MC banks in storm state +* @bank_history: bitmask tracking of corrected errors seen in each bank +* @bank_storm: determines whether the bank is in storm mode +* @bank_time_stamp: last time (in jiffies) that each bank was polled +*/ +struct mca_storm_desc { +int stormy_bank_count; +u64 bank_history[MAX_NR_BANKS ]; +bool bank_storm[MAX_NR_BANKS ]; +unsigned long bank_time_stamp[MAX_NR_BANKS ]; +}; +DECLARE_PER_CPU(struct mca_storm_desc, storm_desc); + +/* +* How many errors within the history buffer mark the start of a storm +*/ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over +*/ +#define STORM_END_POLL_THRESHOLD 30#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +101 -8
147 lines not on this page · raw message
Signature · 1 line
2.40.1
Borislav Petkov
maintainerRe: [PATCH v6 2/4] x86/mce: Add per-bank CMCI storm mitigation
arch/x86/kernel/cpu/mce/internal.h static inline void intel_clear_lmce(void) { } · line 64
Quoted 7 lines · Tony Luck
arch/x86/kernel/cpu/mce/internal.h +6
-1-void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm); +void mce_handle_storm (int bank,bool on); +void cmci_storm_begin (int bank); +void cmci_storm_end (int bank); + +/**
Yeah, let's not add kernel-doc comments about structs in internal.h which are no one's business outside of MCA.
arch/x86/kernel/cpu/mce/internal.h static inline void intel_clear_lmce(void) { } · line 77
Quoted 13 lines
+ * struct
mca_storm_desc- CMCI storm tracking data
+ * @stormy_bank_count: count of MC banks in storm state
+ * @bank_history: bitmask tracking of corrected errors seen in each bank
+ * @bank_storm: determines whether the bank is in storm mode
+ * @bank_time_stamp: last time (in jiffies) that each bank was polled
+ */arch/x86/kernel/cpu/mce/internal.h +7
-0+struct mca_storm_desc { +int stormy_bank_count; +u64 bank_history[MAX_NR_BANKS ]; +bool bank_storm[MAX_NR_BANKS ]; +unsigned long bank_time_stamp[MAX_NR_BANKS ]; +}; +DECLARE_PER_CPU(struct mca_storm_desc, storm_desc);
Would that make the members organization even better:
struct storm_bank {
u64 history;
u64 timestamp;
bool storm;
};struct mca_storm_desc {
struct storm_bank banks[MAX_NR_BANKS];
unsigned int bank_count;
};?
From the previous mail:
Quoted 3 lines
storm_poll_modeis a regular per-cpu variable that indicates a CPU is in poll mode because one or more of the banks it owns has gone over the storm threshold.
It is still a per-CPU var which can be part of the storm descriptor, no?
Quoted 2 lines
bank_storm- is a per-cpu per-bank indicator that a particular bank on a particular CPU is in storm mode.
Ok, so the above can be extended to:
struct mca_storm_desc {
struct storm_bank banks[MAX_NR_BANKS];
unsigned int bank_count;
bool poll_mode;
};?
arch/x86/kernel/cpu/mce/internal.h static inline void intel_clear_lmce(void) { } · line 88
Quoted 5 lines
arch/x86/kernel/cpu/mce/internal.h +5
-0+/* +* How many polls of machine check bank without an error before declaring +* the storm is over +*/ +#define STORM_END_POLL_THRESHOLD 30
So what's stopping you from doing
/*
* How many polls of machine check bank without an error before declaring
* the storm is over. Since it is tracked in the struct
* storm_bank.history member as a bitmask, the mask is 30 bits [0 ... 29] */
#define STORM_END_POLL_THRESHOLD 29
?
And you've also explained it in text too so that it is perfectly clear what the intent is.
Quoted 14 lines
#ifdef
CONFIG_ACPI_APEI
intapei_write_mce(struct mce *m);arch/x86/kernel/cpu/mce/core.c +4
-0@@ -607,6 +607,83 @@ static struct notifier_block mce_default_nb = { .priority = MCE_PRIO_LOWEST, }; +DEFINE_PER_CPU(struct mca_storm_desc, storm_desc); + +void cmci_storm_begin (int bank) +{
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 623
Quoted 10 lines
arch/x86/kernel/cpu/mce/core.c +10
-0+struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); + +__set_bit (bank,this_cpu_ptr (mce_poll_banks)); + storm->bank_storm[bank] = true; + +/* +* If this is the first bank on this CPU to enter storm mode +* start polling +*/ +if (++storm->stormy_bank_count ==1 )
if (++storm->stormy_bank_count)
Quoted 7 lines
arch/x86/kernel/cpu/mce/core.c +7
-0+mce_timer_kick (true); +} + +void cmci_storm_end (int bank) +{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); +
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 640
Quoted 10 lines
arch/x86/kernel/cpu/mce/core.c +10
-0+__clear_bit (bank,this_cpu_ptr (mce_poll_banks)); + storm->bank_history[bank] =0ull ; + storm->bank_storm[bank] = false; + +/* If no banks left in storm mode, stop polling */ +if (!this_cpu_dec_return (storm_desc.stormy_bank_count)) +mce_timer_kick (false); +} + +void track_cmci_storm (int bank,u64 status)
This is still not called cmci_track_storm() ;-\
And looking at the AMD side of things, there's a track_cmci_storm() in amd_threshold_interrupt() which doesn't make any sense whatsoever.
Or at least this was my initial reaction because why would the AMD side call a "CMCI" specific function. So they're prefixed with "cmci_" but they don't really have anything to do with the Intel CMCI feature - it is a storm handling code.
Which means, since those are used by both, the confusing "cmci" should not be in the names.
And which also means, those should be static and private to mce/core.c. But I'll see what functionality the rest of the patches need and how it all should be split/exported properly.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteLuck, Tony
maintainerRE: [PATCH v6 2/4] x86/mce: Add per-bank CMCI storm mitigation
Thanks for the review.
Quoted 6 lines
Which means, since those are used by both, the confusing "cmci" should not be in the names.
And which also means, those should be static and private to
mce/core.c. But I'll see what functionality the rest of the patches need and how it all should be split/exported properly.
I'll wait for you to finish this analysis before I spin up v7 of the series.
-Tony
Borislav Petkov
maintainerRe: [PATCH v6 2/4] x86/mce: Add per-bank CMCI storm mitigation
Quoted 1 line · Tony
I'll wait for you to finish this analysis before I spin up v7 of the series.
You can go ahead and do the Intel side only:
https://lore.kernel.org/r/[email protected], at the end.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteTony Luck
maintainerPATCH v6 3/4 x86/mce: Handle AMD threshold interrupt storms
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
Add hook into core storm handling code for AMD threshold interrupts.
Disable the interrupt on the corresponding CPU and bank. Re-enable back the interrupts if enough consecutive polls of the bank show no corrected errors.
Turning off the threshold interrupts is the best solution on AMD systems as other error severities will still be handled even if the threshold interrupts are disabled.
[Tony: Updated places where storm tracking variables moved into a structure]
--- arch/x86/kernel/cpu/mce/internal.h | 2 ++ arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/core.c | 3 ++ 3 files changed, 54 insertions(+)
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -232,6 +232,7 @@ extern bool filter_mce(struct mce *m);#ifdef CONFIG_X86_MCE_AMD extern bool amd_filter_mce (struct mce *m); +void mce_amd_handle_storm (int bank,bool on);/* * If MCA_CONFIG[McaLsbInStatusSupported] is set, extract ErrAddr in bits
@@ -259,6 +260,7 @@ static __always_inline void smca_extract_err_addr(struct mce *m)#else static inline bool amd_filter_mce (struct mce *m) {return false; } +static inline void mce_amd_handle_storm (int bank,bool on) {}static inline void smca_extract_err_addr (struct mce *m) { }#endif
arch/x86/kernel/cpu/mce/amd.c +49 -0
67 lines not on this page · raw message
arch/x86/kernel/cpu/mce/core.c +3 -0
@@ -2055,6 +2055,9 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)void mce_handle_storm (int bank,bool on) {switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_AMD : +mce_amd_handle_storm (bank, on); +break ; } }
Signature · 1 line
2.40.1
Borislav Petkov
maintainerRe: [PATCH v6 3/4] x86/mce: Handle AMD threshold interrupt storms
Quoted 31 lines · Tony Luck
arch/x86/kernel/cpu/mce/amd.c +30
-0+static void _reset_block (struct threshold_block *block) +{ +struct thresh_restart tr; + +memset (&tr,0 ,sizeof (tr)); + tr.b = block; +threshold_restart_bank (&tr); +} + +static void toggle_interrupt_reset_block (struct threshold_block *block,bool on) +{ +if (!block) +return ; + + block->interrupt_enable = !!on; +_reset_block (block); +} + +void mce_amd_handle_storm (int bank,bool on) +{ +struct threshold_block *first_block =NULL , *block =NULL , *tmp =NULL ; +struct threshold_bank **bp =this_cpu_read (threshold_banks); +unsigned long flags; + +if (!bp) +return ; + +local_irq_save (flags); + + first_block = bp[bank]->blocks;
arch/x86/kernel/cpu/mce/amd.c static void threshold_restart_bank(void *_tr) · line 510
Quoted 10 lines
arch/x86/kernel/cpu/mce/amd.c +10
-0+if (!first_block) + goto end; + +toggle_interrupt_reset_block (first_block, on); + +list_for_each_entry_safe (block, tmp, &first_block->miscj, miscj) +toggle_interrupt_reset_block (block, on); +end: +local_irq_restore (flags); +}
There's already other code which does this threshold block control. Pls refactor and unify it instead of adding almost redundant similar functions.
Quoted 12 lines
static void
mce_threshold_block_init(struct threshold_block *b, int offset){arch/x86/kernel/cpu/mce/amd.c +1
-0struct thresh_restart tr = {@@ -868,6 +909,7 @@ static void amd_threshold_interrupt(void)struct threshold_block *first_block =NULL , *block =NULL , *tmp =NULL ;struct threshold_bank **bp =this_cpu_read (threshold_banks);unsigned int bank, cpu =smp_processor_id (); +u64 status;/* * Validate that the threshold bank has been initialized already. The
arch/x86/kernel/cpu/mce/amd.c static void amd_threshold_interrupt(void) · line 927
Quoted 5 lines
arch/x86/kernel/cpu/mce/amd.c +2
-0@@ -881,6 +923,13 @@ static void amd_threshold_interrupt(void)if (!(per_cpu (bank_map, cpu) &BIT_ULL (bank)))continue ; +rdmsrl (mca_msr_reg (bank,MCA_STATUS ), status); +track_cmci_storm (bank, status);
So this is called from interrupt context.
There's another track_cmci_storm() from machine_check_poll() which can happen in process context.
And there's no sync (locking) between the two. Not good.
Why are even two calls needed on AMD?
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteRe: [PATCH v6 3/4] x86/mce: Handle AMD threshold interrupt storms
Quoted 37 lines · Borislav Petkov
Quoted 36 lines · Tony Luck
arch/x86/kernel/cpu/mce/amd.c +35
-0+static void _reset_block (struct threshold_block *block) +{ +struct thresh_restart tr; + +memset (&tr,0 ,sizeof (tr)); + tr.b = block; +threshold_restart_bank (&tr); +} + +static void toggle_interrupt_reset_block (struct threshold_block *block,bool on) +{ +if (!block) +return ; + + block->interrupt_enable = !!on; +_reset_block (block); +} + +void mce_amd_handle_storm (int bank,bool on) +{ +struct threshold_block *first_block =NULL , *block =NULL , *tmp =NULL ; +struct threshold_bank **bp =this_cpu_read (threshold_banks); +unsigned long flags; + +if (!bp) +return ; + +local_irq_save (flags); + + first_block = bp[bank]->blocks; +if (!first_block) + goto end; + +toggle_interrupt_reset_block (first_block, on); +
Quoted 9 lines
arch/x86/kernel/cpu/mce/amd.c static void threshold_restart_bank(void *_tr) · line 510
Quoted 5 lines
arch/x86/kernel/cpu/mce/amd.c +5
-0+list_for_each_entry_safe (block, tmp, &first_block->miscj, miscj) +toggle_interrupt_reset_block (block, on); +end: +local_irq_restore (flags); +}There's already other code which does this threshold block control. Pls refactor and unify it instead of adding almost redundant similar functions.
Okay, will do.
Quoted 20 lines
Quoted 12 lines
static void mce_threshold_block_init(struct threshold_block *b, int offset) { struct thresh_restart tr = {arch/x86/kernel/cpu/mce/amd.c +1
-0@@ -868,6 +909,7 @@ static void amd_threshold_interrupt(void)struct threshold_block *first_block =NULL , *block =NULL , *tmp =NULL ;struct threshold_bank **bp =this_cpu_read (threshold_banks);unsigned int bank, cpu =smp_processor_id (); +u64 status;/* * Validate that the threshold bank has been initialized already. The arch/x86/kernel/cpu/mce/amd.c static void amd_threshold_interrupt(void) · line 927
Quoted 5 lines
arch/x86/kernel/cpu/mce/amd.c +2
-0@@ -881,6 +923,13 @@ static void amd_threshold_interrupt(void)if (!(per_cpu (bank_map, cpu) &BIT_ULL (bank)))continue ; +rdmsrl (mca_msr_reg (bank,MCA_STATUS ), status); +track_cmci_storm (bank, status);So this is called from interrupt context.
Quoted 7 lines
There's another
track_cmci_storm()frommachine_check_poll()which can happen in process context.And there's no sync (locking) between the two. Not good.
Why are even two calls needed on AMD?
I think because the AMD interrupt handlers don't call machine_check_poll(). This is a good opportunity to unify the AMD thresholding and deferred error interrupt handlers with machine_check_poll().
Tony,
Please leave out this AMD patch for now. I'll work on refactoring it.
Thanks,
Yazen
Tony Luck
maintainerPATCH v6 4/4 x86/mce: Handle Intel threshold interrupt storms
In reply to Tony LuckAdd an Intel specific hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs (with a stub for the CONFIG_MCE_INTEL=n case).
When a storm is observed the Rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
When a storm ends reset the
threshold in IA32_MCi_CTL2 back to 1, removes the bank from the bitmap for polling, and changes the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
The cmci_discover() function was already very large. These changes pushed it well over the top. Refactor with three helper functions to braing it back under control.
--- arch/x86/kernel/cpu/mce/internal.h | 2 + arch/x86/kernel/cpu/mce/core.c | 3 + arch/x86/kernel/cpu/mce/intel.c | 202 +++++++++++++++++++++-------- 3 files changed, 156 insertions(+), 51 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -43,12 +43,14 @@ extern mce_banks_t mce_banks_ce_disabled;void track_cmci_storm (int bank,u64 status);#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +3 -0
@@ -2055,6 +2055,9 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)void mce_handle_storm (int bank,bool on) {switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ;case X86_VENDOR_AMD :mce_amd_handle_storm (bank, on);break ;
arch/x86/kernel/cpu/mce/intel.c +151 -51
243 lines not on this page · raw message
Signature · 1 line
2.40.1
Tony Luck
maintainerv7 cover Handle corrected machine check interrupt storms
In reply to Tony LuckLinux CMCI storm mitigation is a big hammer that just disables the CMCI interrupt globally and switches to polling all banks.
There are two problems with this:
1) It really is a big hammer. It means that errors reported in other banks from different functional units are all subject to the same polling delay before being processed.
2) Intel systems signal some uncorrected errors using CMCI (e.g. memory controller patrol scrub on Icelake Xeon and newer). Delaying processing these error reports negates some of the benefit of the patrol scrubber providing early notice of errors before they are consumed and cause a machine check.
This series throws away the old storm implementation and replaces it with one that keeps track of the weather on each separate machine check bank. When a storm is detected from a bank. On Intel the storm is mitigated by setting a very high threshold for corrected errors to signal CMCI. This threshold does not affect signaling CMCI for uncorrected errors.
Changes since last version:
0) Rebased to v6.5-rc2
1) Yazen & Boris - dropped AMD patch pending integration of AMD machine check bank scanning with the core machine_check_poll() function.
2) Boris - rename track_cmci_storm() as track_storm() in prep for the day when AMD joins in - they don't call the interrupt "CMCI". This function is now "static" and local to core.c.
3) Boris - Define new "struct storm_bank" for all the storm tracking arrays.
4) Move the storm_poll_mode per-CPU tracker into the storm_desc structure.
5) Define STORM_END_POLL_THRESHOLD as "29" instead of "30" with comment that it is used as high end of a bitmask that counts from zero. Drop the " - 1" where it is used.
6) Don't user kernel-doc format comments in mce/internal.h.
Suggested change NOT taken:
Review
Quoted 4 lines
(quoted diff) +4
-0+ * If this is the first bank on this CPU to enter storm mode + * start polling + */ + if (++storm->stormy_bank_count == 1)
if (++storm->stormy_bank_count)
Quoted 1 line
+
mce_timer_kick(true);
As the comment above this code says, only want to "kick" the timer when first bank on a core goes into storm mode. If another bank also goes into storm while the first storm is active, then no need to "start polling" that's already happening for the first storm.
Tony Luck (3):
x86/mce: Remove old CMCI storm mitigation code x86/mce: Add per-bank CMCI storm mitigation x86/mce: Handle Intel threshold interrupt storms
arch/x86/kernel/cpu/mce/internal.h | 49 ++++- arch/x86/kernel/cpu/mce/core.c | 131 +++++++++--- arch/x86/kernel/cpu/mce/intel.c | 333 +++++++++++++---------------- 3 files changed, 290 insertions(+), 223 deletions(-)
base-commit: fdf0eaf11452d72945af31804e2a1048ee1b574c
Signature · 1 line
2.40.1
Tony Luck
maintainerPATCH v7 1/3 x86/mce: Remove old CMCI storm mitigation code
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/internal.h | 6 -- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,18 +41,12 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1588,13 +1588,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1617,15 +1610,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))machine_check_poll (0 ,this_cpu_ptr (&mce_poll_banks)); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1635,7 +1622,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -1972,7 +1958,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -1985,7 +1970,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2642,8 +2626,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
Signature · 1 line
2.40.1
Tony Luck
maintainerPATCH v7 2/3 x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckThis is the core functionality to track CMCI storms at the machine check bank granularity. Subsequent patches will add the vendor specific hooks to supply input to the storm detection and take actions on the start/end of a storm.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed a CPU vendor specific action is taken to reduce or stop CMCI from the bank that is the source of the storm. The bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second. During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (defined as 5 in this series, could be tuned later if there is data to suggest a better value).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (defined as 30, may also change). That calls the CPU vendor specific function to revert to normal operational mode, and changes the polling rate back to the default.
--- arch/x86/kernel/cpu/mce/internal.h | 41 ++++++++++- arch/x86/kernel/cpu/mce/core.c | 108 ++++++++++++++++++++++++++--- 2 files changed, 140 insertions(+), 9 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +40 -1
@@ -54,7 +54,46 @@ static inline void intel_clear_lmce(void) { }static inline bool intel_filter_mce (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm); +void mce_handle_storm (int bank,bool on); +void cmci_storm_begin (int bank); +void cmci_storm_end (int bank); + +/* +* history: bitmask tracking whether errors were seen or not seen in +* the most recent polls of a bank. +* timestamp: last time (in jiffies) that the bank was polled +* storm: Is this bank in storm mode? +*/ +struct storm_bank { +u64 history; +u64 timestamp; +bool storm; +}; + +/* +* banks: per-cpu, per-bank details +* stormy_bank_count: count of MC banks in storm state +* poll_mode: CPU is in poll mode +*/ +struct mca_storm_desc { +struct storm_bank banks[MAX_NR_BANKS ]; +int stormy_bank_count; +bool poll_mode; +}; +DECLARE_PER_CPU(struct mca_storm_desc, storm_desc); + +/* +* How many errors within the history buffer mark the start of a storm +*/ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over. Since it is tracked by the bitmaks in the history +* field of struct storm_bank the mask is 30 bits [0 ... 29] +*/ +#define STORM_END_POLL_THRESHOLD 29#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +100 -8
140 lines not on this page · raw message
Signature · 1 line
2.40.1
Re: [PATCH v7 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 40 lines · Tony Luck
This is the core functionality to track CMCI storms at the machine check bank granularity. Subsequent patches will add the vendor specific hooks to supply input to the storm detection and take actions on the start/end of a storm.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed a CPU vendor specific action is taken to reduce or stop CMCI from the bank that is the source of the storm. The bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second. During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (defined as 5 in this series, could be tuned later if there is data to suggest a better value).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (defined as 30, may also change). That calls the CPU vendor specific function to revert to normal operational mode, and changes the polling rate back to the default.
Signed-off-by Tony Luck <[email protected]>--- arch/x86/kernel/cpu/mce/internal.h | 41 ++++++++++- arch/x86/kernel/cpu/mce/core.c | 108 ++++++++++++++++++++++++++--- 2 files changed, 140 insertions(+), 9 deletions(-)arch/x86/kernel/cpu/mce/internal.h +0
-0
arch/x86/kernel/cpu/mce/internal.h static inline void intel_clear_lmce(void) { } · line 60
Quoted 8 lines
arch/x86/kernel/cpu/mce/internal.h +4
-1@@ -54,7 +54,46 @@ static inline void intel_clear_lmce(void) { }static inline bool intel_filter_mce (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm); +void mce_handle_storm (int bank,bool on); +void cmci_storm_begin (int bank); +void cmci_storm_end (int bank);
We usually use "unsigned int" for bank numbers. Can we also do so for these functions?
Quoted 11 lines
arch/x86/kernel/cpu/mce/internal.h +11
-0+ +/* +* history: bitmask tracking whether errors were seen or not seen in +* the most recent polls of a bank. +* timestamp: last time (in jiffies) that the bank was polled +* storm: Is this bank in storm mode? +*/ +struct storm_bank { +u64 history; +u64 timestamp; +bool storm;
arch/x86/kernel/cpu/mce/internal.h static inline void intel_clear_lmce(void) { } · line 81
Quoted 10 lines
arch/x86/kernel/cpu/mce/internal.h +10
-0+}; + +/* +* banks: per-cpu, per-bank details +* stormy_bank_count: count of MC banks in storm state +* poll_mode: CPU is in poll mode +*/ +struct mca_storm_desc { +struct storm_bank banks[MAX_NR_BANKS ]; +int stormy_bank_count;
Can we use unsigned values for stormy_bank_count? I'm not clear on the restrictions for the inc/dec functions.
The maximum possible MCA bank count is 255, i.e. MCG_CAP[Count] = 0xFF. So stormy_bank_count can be a u8, I think.
arch/x86/kernel/cpu/mce/internal.h static inline void intel_clear_lmce(void) { } · line 88
Quoted 7 lines
arch/x86/kernel/cpu/mce/internal.h +7
-0+bool poll_mode; +}; +DECLARE_PER_CPU(struct mca_storm_desc, storm_desc); + +/* +* How many errors within the history buffer mark the start of a storm +*/
This should use single-line style comments.
arch/x86/kernel/cpu/mce/internal.h static inline void intel_clear_lmce(void) { } · line 94
Quoted 6 lines
arch/x86/kernel/cpu/mce/internal.h +6
-0+#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over. Since it is tracked by the bitmaks in the history +* field of struct storm_bank the mask is 30 bits [0 ... 29]
Should have a (.) at the end of this sentence, and also the one above.
Quoted 10 lines
arch/x86/kernel/cpu/mce/internal.h +2
-0+*/ +#define STORM_END_POLL_THRESHOLD 29#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);arch/x86/kernel/cpu/mce/core.c +0
-0
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 616
Quoted 10 lines
arch/x86/kernel/cpu/mce/core.c +7
-0@@ -607,6 +607,83 @@ static struct notifier_block mce_default_nb = { .priority = MCE_PRIO_LOWEST, }; +DEFINE_PER_CPU(struct mca_storm_desc, storm_desc); + +void cmci_storm_begin (int bank) +{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); + +__set_bit (bank,this_cpu_ptr (mce_poll_banks));
This assumes that mce_poll_banks does not include banks with correctable interrupts. This is true for Intel, but not for AMD.
I'll include a change for AMD to match the Intel behavior. I don't think there's a good reason for the difference. Also, it may be good to save a few cycles by disabling polling when interrupts are enabled.
There will be an action for me to make sure AMD users are aware of this.
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 621
Quoted 5 lines
arch/x86/kernel/cpu/mce/core.c +5
-0+ storm->banks[bank].storm = true; + +/* +* If this is the first bank on this CPU to enter storm mode +* start polling
Need (.) here.
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 632
Quoted 11 lines
arch/x86/kernel/cpu/mce/core.c +11
-0+*/ +if (++storm->stormy_bank_count ==1 ) +mce_timer_kick (true); +} + +void cmci_storm_end (int bank) +{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); + +__clear_bit (bank,this_cpu_ptr (mce_poll_banks)); + storm->banks[bank].history =0ull ;
Why is the "ull" needed?
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 635
Quoted 3 lines
arch/x86/kernel/cpu/mce/core.c +3
-0+ storm->banks[bank].storm = false; + +/* If no banks left in storm mode, stop polling */
Need (.) here.
Quoted 15 lines
arch/x86/kernel/cpu/mce/core.c +15
-0+if (!this_cpu_dec_return (storm_desc.stormy_bank_count)) +mce_timer_kick (false); +} + +static void track_storm (int bank,u64 status) +{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); +unsigned long now = jiffies, delta; +unsigned int shift =1 ; +u64 history; + +/* +* When a bank is in storm mode it is polled once per second and +* the history mask will record about the last minute of poll results. +* If it is not in storm mode, then the bank is only checked when
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 660
Quoted 10 lines
arch/x86/kernel/cpu/mce/core.c +10
-0+* there is a CMCI interrupt. Check how long it has been since +* this bank was last checked, and adjust the amount of "shift" +* to apply to history. +*/ +if (!storm->banks[bank].storm) { + delta = now - storm->banks[bank].timestamp; + shift = (delta +HZ ) /HZ ; + } + +/* If has been a long time since the last poll, clear history */
"If it has..." and need (.) here.
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 662
Quoted 2 lines
arch/x86/kernel/cpu/mce/core.c +2
-0+if (shift >=64 ) + history =0 ;
Can this be initialized to '0' up top, then set "if (shift < 64)"?
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 664
Quoted 2 lines
arch/x86/kernel/cpu/mce/core.c +2
-0+else + history = storm->banks[bank].history << shift;
Newline here, please.
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 668
Quoted 4 lines
arch/x86/kernel/cpu/mce/core.c +4
-0+ storm->banks[bank].timestamp = now; + +/* History keeps track of corrected errors. VAL=1 && UC=0 */ +if ((status & (MCI_STATUS_VAL |MCI_STATUS_UC )) ==MCI_STATUS_VAL )
This should be a call to mce_is_correctable(). The VALID bit check isn't included, but this can be handled by moving the track_storm() call. Please see below.
...Actually, I wrote this and the comment in the polling function, but then realized that may not work as intended.
We want the per-bank history to 'tick' every time we enter the polling function, not just for "valid" errors, correct? You mention this in the commit message, but it didn't click for me until later... :P
arch/x86/kernel/cpu/mce/core.c static struct notifier_block mce_default_nb = { · line 669
Quoted 1 line
arch/x86/kernel/cpu/mce/core.c +1
-0+ history |=1 ;
Newline here, please.
Quoted 21 lines
arch/x86/kernel/cpu/mce/core.c +17
-0+ storm->banks[bank].history = history; + +if (storm->banks[bank].storm) { +if (history &GENMASK_ULL (STORM_END_POLL_THRESHOLD ,0 )) +return ; +pr_notice ("CPU%d BANK%d CMCI storm subsided\n" ,smp_processor_id (), bank); +mce_handle_storm (bank, false); +cmci_storm_end (bank); + }else { +if (hweight64 (history) <STORM_BEGIN_THRESHOLD ) +return ; +pr_notice ("CPU%d BANK%d CMCI storm detected\n" ,smp_processor_id (), bank); +mce_handle_storm (bank, true); +cmci_storm_begin (bank); + } +} +/* * Read ADDR and MISC registers. */
arch/x86/kernel/cpu/mce/core.c bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b) · line 760
Quoted 4 lines
arch/x86/kernel/cpu/mce/core.c +1
-0@@ -680,6 +757,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +track_storm (i, m.status);
This can go after the VALID bit check below.
Also, the "status" parameter can be dropped if the correctable check is done here...
arch/x86/kernel/cpu/mce/core.c bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b) · line 764
Quoted 4 lines
arch/x86/kernel/cpu/mce/core.c +1
-0+/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
...like this.
if (mce_is_correctable(&m)) track_storm(i);
...please disregard this comment, if my realization above was correct about the "history tick". If so, then I think it'd be better to pass struct mce to track_storm(), because it'll have both the bank number and status register. And it can then be passed to mce_is_correctable().
Quoted 41 lines
arch/x86/kernel/cpu/mce/core.c +15
-8@@ -1622,22 +1701,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (__this_cpu_read (storm_desc.poll_mode)) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +__this_cpu_write (storm_desc.poll_mode, storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */ @@ -1965,6 +2051,12 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)intel_clear_lmce (); }
arch/x86/kernel/cpu/mce/core.c static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c) · line 2062
Quoted 10 lines
arch/x86/kernel/cpu/mce/core.c +6
-0+void mce_handle_storm (int bank,bool on) +{ +switch (boot_cpu_data.x86_vendor) { + } +} +static void __mcheck_cpu_init_vendor (struct cpuinfo_x86 *c) {switch (c->x86_vendor) {
Thanks,
Yazen
Re: [PATCH v7 2/3] x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckQuoted 29 lines · Tony Luck
This is the core functionality to track CMCI storms at the machine check bank granularity. Subsequent patches will add the vendor specific hooks to supply input to the storm detection and take actions on the start/end of a storm.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed a CPU vendor specific action is taken to reduce or stop CMCI from the bank that is the source of the storm. The bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second. During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (defined as 5 in this series, could be tuned later if there is data to suggest a better value).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (defined as 30, may also change). That calls the CPU vendor specific function to revert to normal operational mode, and changes the polling rate back to the default.
Quoted 6 lines
Signed-off-by Tony Luck <[email protected]>--- arch/x86/kernel/cpu/mce/internal.h | 41 ++++++++++- arch/x86/kernel/cpu/mce/core.c | 108 ++++++++++++++++++++++++++--- 2 files changed, 140 insertions(+), 9 deletions(-)
I was just thinking, could we put all this code in threshold.c? That is the place for common thresholding support. And the CMCI storm handling seems like it'd be part of that.
Thanks,
Yazen
Luck, Tony
maintainerRE: [PATCH v7 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 3 lines
I was just thinking, could we put all this code in
threshold.c? That is the place for common thresholding support. And the CMCI storm handling seems like it'd be part of that.
Yazen,
I'll take a look at doing that. It might need to drop a handful of "static" declarations of things in core.c to allow access from another file. But it should just be a few. This code only hooks into a few spots.
-Tony
P.S. Thanks also for the detailed reviews you posted yesterday. I'm still digesting those.
Tony Luck
maintainerPATCH v7 3/3 x86/mce: Handle Intel threshold interrupt storms
In reply to Tony LuckAdd an Intel specific hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs (with a stub for the CONFIG_MCE_INTEL=n case).
When a storm is observed the Rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
When a storm ends reset the
threshold in IA32_MCi_CTL2 back to 1, removes the bank from the bitmap for polling, and changes the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
The cmci_discover() function was already very large. These changes pushed it well over the top. Refactor with three helper functions to braing it back under control.
--- arch/x86/kernel/cpu/mce/internal.h | 2 + arch/x86/kernel/cpu/mce/core.c | 3 + arch/x86/kernel/cpu/mce/intel.c | 202 +++++++++++++++++++++-------- 3 files changed, 156 insertions(+), 51 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -41,12 +41,14 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +3 -0
@@ -2054,6 +2054,9 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)void mce_handle_storm (int bank,bool on) {switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; } }
arch/x86/kernel/cpu/mce/intel.c +151 -51
243 lines not on this page · raw message
Signature · 1 line
2.40.1
Re: [PATCH v7 3/3] x86/mce: Handle Intel threshold interrupt storms
Quoted 5 lines · Tony Luck
Add an Intel specific hook into
machine_check_poll()to keep track of per-CPU, per-bank corrected error logs (with a stub for theCONFIG_MCE_INTEL=ncase).When a storm is observed the Rate of interrupts is reduced by setting
Rate -> rate
Quoted 5 lines
a large threshold value for this bank in
IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.When a storm ends reset the
Spurious newline?
Quoted 1 line
threshold in
IA32_MCi_CTL2back to 1, removes the bank from the bitmap
removes -> remove
Quoted 1 line
for polling, and changes the polling rate back to the default.
changes -> change
Quoted 8 lines
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
The
cmci_discover()function was already very large. These changes pushed it well over the top. Refactor with three helper functions to braing it back under control.
braing -> bring
Quoted 46 lines
Signed-off-by Tony Luck <[email protected]>--- arch/x86/kernel/cpu/mce/internal.h | 2 + arch/x86/kernel/cpu/mce/core.c | 3 + arch/x86/kernel/cpu/mce/intel.c | 202 +++++++++++++++++++++-------- 3 files changed, 156 insertions(+), 51 deletions(-)arch/x86/kernel/cpu/mce/internal.h +2
-0@@ -41,12 +41,14 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }arch/x86/kernel/cpu/mce/core.c +3
-0@@ -2054,6 +2054,9 @@ static void mce_zhaoxin_feature_clear(struct cpuinfo_x86 *c)void mce_handle_storm (int bank,bool on) {switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; } }arch/x86/kernel/cpu/mce/intel.c +0
-0
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 51
Quoted 5 lines
arch/x86/kernel/cpu/mce/intel.c +1
-0@@ -47,8 +47,27 @@ static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned);*/ static DEFINE_RAW_SPINLOCK (cmci_discover_lock); +/* Linux non-storm CMCI threshold (may be overridden by BIOS) */ #define CMCI_THRESHOLD 1
Just curious, but why use '1' for the default? We have a lot of code to hide corrected errors. So why not just use the maximum limit? This would effectively hide the corrected errors. And if not the maximum, maybe some other intermediate value?
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 57
Quoted 6 lines
arch/x86/kernel/cpu/mce/intel.c +5
-0+/* +* MCi_CTL2 threshold for each bank when there is no storm. +* Default value for each bank may have been set by BIOS. +*/ +static int cmci_threshold[MAX_NR_BANKS ];
Can this be a 'u16', since the max threshold for Intel is 0x7FFF?
arch/x86/kernel/cpu/mce/intel.c static DEFINE_PER_CPU(mce_banks_t, mce_banks_owned); · line 62
Quoted 5 lines
arch/x86/kernel/cpu/mce/intel.c +5
-0+ +/* +* High threshold to limit CMCI rate during storms. Max supported is +* 0x7FFF. Use this slightly smaller value so it has a distinctive +* signature when some asks "Why am I not seeing all corrected errors?"
Maybe this answers my question above.
Quoted 80 lines
arch/x86/kernel/cpu/mce/intel.c +66
-0+* A high threshold is used instead of just disabling CMCI for a +* bank because both corrected and uncorrected errors may be logged +* in the same bank and signalled with CMCI. The threshold only applies +* to corrected errors, so keeping CMCI enabled means that uncorrected +* errors will still be processed in a timely fashion. +*/ +#define CMCI_STORM_THRESHOLD 32749 +static int cmci_supported (int *banks) {u64 cap;@@ -103,6 +122,31 @@ static bool lmce_supported(void)return tmp &FEAT_CTL_LMCE_ENABLED ; } +/* +* Set a new CMCI threshold value. Preserve the state of the +* MCI_CTL2_CMCI_EN bit in case this happens during a +* cmci_rediscover() operation. +*/ +static void cmci_set_threshold (int bank,int thresh) +{ +unsigned long flags; +u64 val; + +raw_spin_lock_irqsave (&cmci_discover_lock, flags); +rdmsrl (MSR_IA32_MCx_CTL2 (bank), val); + val &= ~MCI_CTL2_CMCI_THRESHOLD_MASK ; +wrmsrl (MSR_IA32_MCx_CTL2 (bank), val | thresh); +raw_spin_unlock_irqrestore (&cmci_discover_lock, flags); +} + +void mce_intel_handle_storm (int bank,bool on) +{ +if (on) +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +else +cmci_set_threshold (bank, cmci_threshold[bank]); +} +/* * The interrupt handler. This is called on every event. * Just call the poller directly to log any events. @@ -114,72 +158,126 @@ static void intel_threshold_interrupt(void)machine_check_poll (MCP_TIMESTAMP ,this_cpu_ptr (&mce_banks_owned)); } +/* +* Check all the reasons why current CPU cannot claim +* ownership of a bank. +* 1: CPU already owns this bank +* 2: BIOS owns this bank +* 3: Some other CPU owns this bank +*/ +static bool cmci_skip_bank (int bank,u64 *val) +{ +unsigned long *owned = (void *)this_cpu_ptr (&mce_banks_owned); + +if (test_bit (bank, owned)) +return true; + +/* Skip banks in firmware first mode */ +if (test_bit (bank, mce_banks_ce_disabled)) +return true; + +rdmsrl (MSR_IA32_MCx_CTL2 (bank), *val); + +/* Already owned by someone else? */ +if (*val &MCI_CTL2_CMCI_EN ) { +clear_bit (bank, owned); +__clear_bit (bank,this_cpu_ptr (mce_poll_banks)); +return true; + } + +return false; +} + +/* +* Decide which CMCI interrupt threshold to use: +* 1: If this bank is in storm mode from whichever CPU was
arch/x86/kernel/cpu/mce/intel.c static void intel_threshold_interrupt(void) · line 203
Quoted 10 lines
arch/x86/kernel/cpu/mce/intel.c +10
-0+* the previous owner, stay in storm mode. +* 2: If ignoring any threshold set by BIOS, set Linux default +* 3: Try to honor BIOS threshold (unless buggy BIOS set it at zero). +*/ +static u64 cmci_pick_threshold (u64 val,int *bios_zero_thresh) +{ +if ((val &MCI_CTL2_CMCI_THRESHOLD_MASK ) ==CMCI_STORM_THRESHOLD ) +return val; + +if (!mca_cfg.bios_cmci_threshold) {
Are there many users of this option? Maybe this is something we should also include in the AMD threshold code. But I don't think anyone has asked me about it yet.
Quoted 19 lines
arch/x86/kernel/cpu/mce/intel.c +19
-0+ val &= ~MCI_CTL2_CMCI_THRESHOLD_MASK ; + val |=CMCI_THRESHOLD ; + }else if (!(val &MCI_CTL2_CMCI_THRESHOLD_MASK )) { +/* +* If bios_cmci_threshold boot option was specified +* but the threshold is zero, we'll try to initialize +* it to 1. +*/ + *bios_zero_thresh =1 ; + val |=CMCI_THRESHOLD ; + } + +return val; +} + +/* +* Try to claim ownership of a bank. +*/ +static void cmci_claim_bank (int bank,u64 val,int bios_zero_thresh,int *bios_wrong_thresh)
arch/x86/kernel/cpu/mce/intel.c static void intel_threshold_interrupt(void) · line 232
Quoted 10 lines
arch/x86/kernel/cpu/mce/intel.c +10
-0+{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); + + val |=MCI_CTL2_CMCI_EN ; +wrmsrl (MSR_IA32_MCx_CTL2 (bank), val); +rdmsrl (MSR_IA32_MCx_CTL2 (bank), val); + +/* Did the enable bit stick? -- the bank supports CMCI */ +if (val &MCI_CTL2_CMCI_EN ) { +set_bit (bank, (void *)this_cpu_ptr (&mce_banks_owned));
Newline here, please.
arch/x86/kernel/cpu/mce/intel.c static void intel_threshold_interrupt(void) · line 240
Quoted 8 lines
arch/x86/kernel/cpu/mce/intel.c +8
-0+if ((val &MCI_CTL2_CMCI_THRESHOLD_MASK ) ==CMCI_STORM_THRESHOLD ) { +pr_notice ("CPU%d BANK%d CMCI inherited storm\n" ,smp_processor_id (), bank); + storm->banks[bank].history = ~0ull ; + storm->banks[bank].timestamp = jiffies; +cmci_storm_begin (bank); + }else { +__clear_bit (bank,this_cpu_ptr (mce_poll_banks)); + }
Newline here, please.
Quoted 5 lines
arch/x86/kernel/cpu/mce/intel.c +5
-0+/* +* We are able to set thresholds for some banks that +* had a threshold of 0. This means the BIOS has not +* set the thresholds properly or does not work with +* this boot option. Note down now and report later.
arch/x86/kernel/cpu/mce/intel.c static void intel_threshold_interrupt(void) · line 255
Quoted 10 lines
arch/x86/kernel/cpu/mce/intel.c +10
-0+*/ +if (mca_cfg.bios_cmci_threshold && bios_zero_thresh && + (val &MCI_CTL2_CMCI_THRESHOLD_MASK )) + *bios_wrong_thresh =1 ; + +/* Save default threshold for each bank */ +if (cmci_threshold[bank] ==0 ) + cmci_threshold[bank] = val &MCI_CTL2_CMCI_THRESHOLD_MASK ; + }else { +WARN_ON (!test_bit (bank,this_cpu_ptr (mce_poll_banks)));
Could you invert the "MCI_CTL2_CMCI_EN" check and WARN/return early? This could save an indentation level.
Quoted 80 lines
arch/x86/kernel/cpu/mce/intel.c +10
-51+ } +} +/* * Enable CMCI (Corrected Machine Check Interrupt) for available MCE banks * on this CPU. Use the algorithm recommended in the SDM to discover shared -* banks. +* banks. Called during initial bootstrap, and also for hotplug CPU operations +* to rediscover/reassign machine check banks. */ static void cmci_discover (int banks) { -unsigned long *owned = (void *)this_cpu_ptr (&mce_banks_owned); -unsigned long flags; -int i;int bios_wrong_thresh =0 ; +unsigned long flags; +int i;raw_spin_lock_irqsave (&cmci_discover_lock, flags);for (i =0 ; i < banks; i++) {u64 val;int bios_zero_thresh =0 ; -if (test_bit (i, owned)) +if (cmci_skip_bank (i, &val))continue ; -/* Skip banks in firmware first mode */ -if (test_bit (i, mce_banks_ce_disabled)) -continue ; - -rdmsrl (MSR_IA32_MCx_CTL2 (i), val); - -/* Already owned by someone else? */ -if (val &MCI_CTL2_CMCI_EN ) { -clear_bit (i, owned); -__clear_bit (i,this_cpu_ptr (mce_poll_banks)); -continue ; - } - -if (!mca_cfg.bios_cmci_threshold) { - val &= ~MCI_CTL2_CMCI_THRESHOLD_MASK ; - val |=CMCI_THRESHOLD ; - }else if (!(val &MCI_CTL2_CMCI_THRESHOLD_MASK )) { -/* -* If bios_cmci_threshold boot option was specified -* but the threshold is zero, we'll try to initialize -* it to 1. -*/ - bios_zero_thresh =1 ; - val |=CMCI_THRESHOLD ; - } - - val |=MCI_CTL2_CMCI_EN ; -wrmsrl (MSR_IA32_MCx_CTL2 (i), val); -rdmsrl (MSR_IA32_MCx_CTL2 (i), val); - -/* Did the enable bit stick? -- the bank supports CMCI */ -if (val &MCI_CTL2_CMCI_EN ) { -set_bit (i, owned); -__clear_bit (i,this_cpu_ptr (mce_poll_banks)); -/* -* We are able to set thresholds for some banks that -* had a threshold of 0. This means the BIOS has not -* set the thresholds properly or does not work with -* this boot option. Note down now and report later. -*/ -if (mca_cfg.bios_cmci_threshold && bios_zero_thresh && - (val &MCI_CTL2_CMCI_THRESHOLD_MASK )) - bios_wrong_thresh =1 ; - }else { -WARN_ON (!test_bit (i,this_cpu_ptr (mce_poll_banks))); - } + val =cmci_pick_threshold (val, &bios_zero_thresh); +cmci_claim_bank (i, val, bios_zero_thresh, &bios_wrong_thresh); }raw_spin_unlock_irqrestore (&cmci_discover_lock, flags);if (mca_cfg.bios_cmci_threshold && bios_wrong_thresh) {
arch/x86/kernel/cpu/mce/intel.c static void __cmci_disable_bank(int bank) · line 318
Quoted 3 lines
arch/x86/kernel/cpu/mce/intel.c +0
-0@@ -218,6 +316,8 @@ static void __cmci_disable_bank(int bank) val &= ~MCI_CTL2_CMCI_EN ;wrmsrl (MSR_IA32_MCx_CTL2 (bank), val);__clear_bit (bank,this_cpu_ptr (mce_banks_owned));
Newline here, please.
arch/x86/kernel/cpu/mce/intel.c static void __cmci_disable_bank(int bank) · line 323
Quoted 5 lines
arch/x86/kernel/cpu/mce/intel.c +2
-0+if ((val &MCI_CTL2_CMCI_THRESHOLD_MASK ) ==CMCI_STORM_THRESHOLD ) +cmci_storm_end (bank); }/*
Thanks,
Yazen
Tony Luck
maintainerv8 cover Handle corrected machine check interrupt storms
In reply to Tony LuckLinux CMCI storm mitigation is a big hammer that just disables the CMCI interrupt globally and switches to polling all banks.
There are two problems with this:
1) It really is a big hammer. It means that errors reported in other banks from different functional units are all subject to the same polling delay before being processed.
2) Intel systems signal some uncorrected errors using CMCI (e.g. memory controller patrol scrub on Icelake Xeon and newer). Delaying processing these error reports negates some of the benefit of the patrol scrubber providing early notice of errors before they are consumed and cause a machine check.
This series throws away the old storm implementation and replaces it with one that keeps track of the weather on each separate machine check bank. When a storm is detected from a bank. On Intel the storm is mitigated by setting a very high threshold for corrected errors to signal CMCI. This threshold does not affect signaling CMCI for uncorrected errors.
---
Changes since v7:
Applied all the suggestions from Yazen's review of v7
Including placing most of the storm tracking code into threshold.c instead of bloating core.c.
Tony Luck (3):
x86/mce: Remove old CMCI storm mitigation code x86/mce: Add per-bank CMCI storm mitigation x86/mce: Handle Intel threshold interrupt storms
arch/x86/kernel/cpu/mce/internal.h | 47 +++- arch/x86/kernel/cpu/mce/core.c | 45 ++-- arch/x86/kernel/cpu/mce/intel.c | 338 ++++++++++++---------------- arch/x86/kernel/cpu/mce/threshold.c | 86 +++++++ 4 files changed, 293 insertions(+), 223 deletions(-)
base-commit: 6465e260f48790807eef06b583b38ca9789b6072
Signature · 1 line
2.41.0
Tony Luck
maintainerPATCH v8 1/3 x86/mce: Remove old CMCI storm mitigation code
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/internal.h | 6 -- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,18 +41,12 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1611,13 +1611,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1647,15 +1640,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))mc_poll_banks (); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1665,7 +1652,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -2005,7 +1991,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -2018,7 +2003,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2675,8 +2659,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
Signature · 1 line
2.41.0
Tony Luck
maintainerPATCH v8 2/3 x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckThis is the core functionality to track CMCI storms at the machine check bank granularity. Subsequent patches will add the vendor specific hooks to supply input to the storm detection and take actions on the start/end of a storm.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed a CPU vendor specific action is taken to reduce or stop CMCI from the bank that is the source of the storm. The bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second. During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (defined as 5 in this series, could be tuned later if there is data to suggest a better value).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (defined as 30, may also change). That calls the CPU vendor specific function to revert to normal operational mode, and changes the polling rate back to the default.
Updated with review comments from Yazen.
---
Note that the storm begin/end warnings are now printed using printk_deferred(KERN_NOTICE ...) instead of pr_notice. This is my solution for a locking issue when in poll mode because of the "cmci_poll_lock" introduced by:
commit c3629dd7e67d ("x86/mce: Prevent duplicate error records")
Is this the right way to handle this?
arch/x86/kernel/cpu/mce/internal.h | 39 +++++++++++++- arch/x86/kernel/cpu/mce/core.c | 25 ++++++--- arch/x86/kernel/cpu/mce/threshold.c | 83 +++++++++++++++++++++++++++++ 3 files changed, 138 insertions(+), 9 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +38 -1
@@ -54,7 +54,44 @@ static inline void intel_clear_lmce(void) { }static inline bool intel_filter_mce (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm); +void cmci_storm_begin (unsigned int bank); +void cmci_storm_end (unsigned int bank); +void mce_track_storm (struct mce *mce); + +/* +* history: bitmask tracking whether errors were seen or not seen in +* the most recent polls of a bank. +* timestamp: last time (in jiffies) that the bank was polled +* storm: Is this bank in storm mode? +*/ +struct storm_bank { +u64 history; +u64 timestamp; +bool storm; +}; + +/* +* banks: per-cpu, per-bank details +* stormy_bank_count: count of MC banks in storm state +* poll_mode: CPU is in poll mode +*/ +struct mca_storm_desc { +struct storm_bank banks[MAX_NR_BANKS ]; +u8 stormy_bank_count; +bool poll_mode; +}; +DECLARE_PER_CPU(struct mca_storm_desc, storm_desc); + +/* How many errors within the history buffer mark the start of a storm. */ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over. Since it is tracked by the bitmaks in the history +* field of struct storm_bank the mask is 30 bits [0 ... 29]. +*/ +#define STORM_END_POLL_THRESHOLD 29#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +17 -8
@@ -680,6 +680,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +mce_track_storm (&m); +/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
@@ -1652,22 +1654,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (__this_cpu_read (storm_desc.poll_mode)) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +__this_cpu_write (storm_desc.poll_mode, storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */
arch/x86/kernel/cpu/mce/threshold.c +83 -0
86 lines not on this page · raw message
Signature · 1 line
2.41.0
kernel test robot
build botRe: [PATCH v8 2/3] x86/mce: Add per-bank CMCI storm mitigation
kernel test robot noticed the following build errors:
Hi Tony,
kernel test robot noticed the following build errors:
[auto build test ERROR on 6465e260f48790807eef06b583b38ca9789b6072]
url: https://github.com/intel-lab-lkp/linux/commits/Tony-Luck/x86-mce-Remove-old-CMCI-storm-mitigation-code/20230930-044421 base: 6465e260f48790807eef06b583b38ca9789b6072 patch link: https://lore.kernel.org/r/20230929181626.210782-3-tony.luck%40intel.com patch subject: [PATCH v8 2/3] x86/mce: Add per-bank CMCI storm mitigation config: i386-buildonly-randconfig-002-20230930 (https://download.01.org/0day-ci/archive/20230930/[email protected]/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230930/[email protected]/reproduce)
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: arch/x86/kernel/cpu/mce/core.o: in function `mce_timer_fn':
>> core.c:(.text+0x1130): undefined reference to `storm_desc' ld: arch/x86/kernel/cpu/mce/core.o: in function `machine_check_poll': >> core.c:(.text+0x1634): undefined reference to `mce_track_storm'
ld: arch/x86/kernel/cpu/mce/core.o: in function `mce_timer_kick':
core.c:(.text+0x1919): undefined reference to `storm_desc'
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
Tony Luck
maintainerPATCH v8 3/3 x86/mce: Handle Intel threshold interrupt storms
In reply to Tony LuckAdd an Intel specific hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs (with a stub for the CONFIG_MCE_INTEL=n case).
When a storm is observed the rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
When a storm ends reset the threshold in IA32_MCi_CTL2 back to 1, remove the bank from the bitmap for polling, and change the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
The cmci_discover() function was already very large. These changes pushed it well over the top. Refactor with three helper functions to bring it back under control.
Updated with review comments from Yazen.
--- arch/x86/kernel/cpu/mce/internal.h | 2 + arch/x86/kernel/cpu/mce/intel.c | 207 +++++++++++++++++++++------- arch/x86/kernel/cpu/mce/threshold.c | 3 + 3 files changed, 161 insertions(+), 51 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -41,12 +41,14 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/intel.c +156 -51
248 lines not on this page · raw message
arch/x86/kernel/cpu/mce/threshold.c +3 -0
@@ -35,6 +35,9 @@ DEFINE_PER_CPU(struct mca_storm_desc, storm_desc);static void mce_handle_storm (unsigned int bank,bool on) {switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; } }
Signature · 1 line
2.41.0
Luck, Tony
maintainerQuoted 2 lines
Including placing most of the storm tracking code into
threshold.cinstead of bloatingcore.c.
The lkp test robot complains on a randconfig build with:
# CONFIG_X86_MCE_INTEL is not set
# CONFIG_X86_MCE_AMD is not set
about some undefined symbols.
Quoted 2 lines
Quoted 2 lines
core.c:(.text+0x1130): undefined reference to
storm_desc' core.c:(.text+0x1634): undefined reference tomce_track_storm'
Simple fix would be to move definition of storm_desc into core.c and provide a stub:
static inline void mce_track_storm(struct mce *mce) { }
for the case where neither INTEL nor AMD is configured.
in internal.h
-Tony
Tony Luck
maintainerv9 cover Handle corrected machine check interrupt storms
In reply to Tony LuckLinux CMCI storm mitigation is a big hammer that just disables the CMCI interrupt globally and switches to polling all banks.
There are two problems with this:
1) It really is a big hammer. It means that errors reported in other banks from different functional units are all subject to the same polling delay before being processed.
2) Intel systems signal some uncorrected errors using CMCI (e.g. memory controller patrol scrub on Icelake Xeon and newer). Delaying processing these error reports negates some of the benefit of the patrol scrubber providing early notice of errors before they are consumed and cause a machine check.
This series throws away the old storm implementation and replaces it with one that keeps track of the weather on each separate machine check bank. When a storm is detected from a bank. On Intel the storm is mitigated by setting a very high threshold for corrected errors to signal CMCI. This threshold does not affect signaling CMCI for uncorrected errors.
---
Changes since v8:
Fixed issue reported by lkp with randconfig build with neither CONFIG_X86_MCE_INTEL not CONFIG_X86_MCE_AMD set by making a cleaner division between the storm tracking code in threshold.c with the restof the code using more function accessors that can be stubbed out.
Tony Luck (3):
x86/mce: Remove old CMCI storm mitigation code x86/mce: Add per-bank CMCI storm mitigation x86/mce: Handle Intel threshold interrupt storms
arch/x86/kernel/cpu/mce/internal.h | 48 ++++- arch/x86/kernel/cpu/mce/core.c | 45 ++--- arch/x86/kernel/cpu/mce/intel.c | 303 ++++++++++++---------------- arch/x86/kernel/cpu/mce/threshold.c | 115 +++++++++++ 4 files changed, 304 insertions(+), 207 deletions(-)
base-commit: 6465e260f48790807eef06b583b38ca9789b6072
Signature · 1 line
2.41.0
Tony Luck
maintainerPATCH v9 1/3 x86/mce: Remove old CMCI storm mitigation code
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/internal.h | 6 -- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,18 +41,12 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1611,13 +1611,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1647,15 +1640,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))mc_poll_banks (); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1665,7 +1652,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -2005,7 +1991,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -2018,7 +2003,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2675,8 +2659,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
Signature · 1 line
2.41.0
Tony Luck
maintainerPATCH v9 2/3 x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckThis is the core functionality to track CMCI storms at the machine check bank granularity. Subsequent patches will add the vendor specific hooks to supply input to the storm detection and take actions on the start/end of a storm.
Maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed a CPU vendor specific action is taken to reduce or stop CMCI from the bank that is the source of the storm. The bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second. During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (defined as 5 in this series, could be tuned later if there is data to suggest a better value).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (defined as 30, may also change). That calls the CPU vendor specific function to revert to normal operational mode, and changes the polling rate back to the default.
---
v8: Updated with review comments from Yazen.
Link: https://lore.kernel.org/r/[email protected] v9: Fix lkp randconfig build issue when neither INTEL nor AMD configured --- arch/x86/kernel/cpu/mce/internal.h | 40 +++++++++- arch/x86/kernel/cpu/mce/core.c | 25 +++++-- arch/x86/kernel/cpu/mce/threshold.c | 112 ++++++++++++++++++++++++++++ 3 files changed, 168 insertions(+), 9 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +39 -1
@@ -54,7 +54,45 @@ static inline void intel_clear_lmce(void) { }static inline bool intel_filter_mce (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm); + +#ifdef CONFIG_X86_MCE_THRESHOLD +void cmci_storm_begin (unsigned int bank); +void cmci_storm_end (unsigned int bank); +void mce_track_storm (struct mce *mce); +void mce_inherit_storm (unsigned int bank); +bool mce_is_storm (void ); +void mce_set_storm (bool storm); +#else +static inline void cmci_storm_begin (unsigned int bank) {} +static inline void cmci_storm_end (unsigned int bank) {} +static inline void mce_track_storm (struct mce *mce) {} +static inline void mce_inherit_storm (unsigned int bank) {} +static inline bool mce_is_storm (void ) {return false; } +static inline void mce_set_storm (bool storm) {} +#endif + +/* +* history: bitmask tracking whether errors were seen or not seen in +* the most recent polls of a bank. +* timestamp: last time (in jiffies) that the bank was polled +* storm: Is this bank in storm mode? +*/ +struct storm_bank { +u64 history; +u64 timestamp; +bool storm; +}; + +/* How many errors within the history buffer mark the start of a storm. */ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over. Since it is tracked by the bitmaks in the history +* field of struct storm_bank the mask is 30 bits [0 ... 29]. +*/ +#define STORM_END_POLL_THRESHOLD 29#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +17 -8
@@ -680,6 +680,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +mce_track_storm (&m); +/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
@@ -1652,22 +1654,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (mce_is_storm ()) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +mce_set_storm (storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */
arch/x86/kernel/cpu/mce/threshold.c +112 -0
115 lines not on this page · raw message
Signature · 1 line
2.41.0
kernel test robot
build botRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
kernel test robot noticed a -8.8% regression of stress-ng.clock.ops_per_sec on:
Hello,
kernel test robot noticed a -8.8% regression of stress-ng.clock.ops_per_sec on:
commit: 26bff7b04b829cccc6a97726d6398391a62e34ef ("[PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation")
url: https://github.com/intel-lab-lkp/linux/commits/Tony-Luck/x86-mce-Remove-old-CMCI-storm-mitigation-code/20231005-024047
patch link: https://lore.kernel.org/all/[email protected]/
patch subject: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
testcase: stress-ng
test machine: 64 threads 2 sockets Intel(R) Xeon(R) Gold 6346 CPU @ 3.10GHz (Ice Lake) with 256G memory parameters:
nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: clock cpufreq_governor: performance
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-lkp/[email protected]
Details are as below:
-------------------------------------------------------------------------------------------------->
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20231011/[email protected]
=========================================================================================
class/compiler/cpufreq_governor/disk/fs/kconfig/nr_threads/rootfs/tbox_group/test/testcase/testtime:
os/gcc-12/performance/1HDD/ext4/x86_64-rhel-8.3/10%/debian-11.1-x86_64-20220510.cgz/lkp-icl-2sp7/clock/stress-ng/60s
commit:
cbb2ef4fc1 ("x86/mce: Remove old CMCI storm mitigation code") 26bff7b04b ("x86/mce: Add per-bank CMCI storm mitigation")
cbb2ef4fc1f946b3 26bff7b04b829cccc6a97726d63
---------------- ---------------------------
%stddev %change %stddev
\ | \
118898 ± 7% -18.5% 96883 ± 8% meminfo.Mapped
2971 ± 7% +18.3% 3513 ± 9% perf-c2c.HITM.local
0.01 -20.0% 0.00 perf-sched.wait_time.avg.ms.do_nanosleep.hrtimer_nanosleep.common_nsleep_timens.__x64_sys_clock_nanosleep
3865971 ± 4% -23.2% 2970833 ± 2% turbostat.C1
1.48 ± 6% -0.3 1.22 ± 4% turbostat.C1%
292422 -9.4% 264956 vmstat.system.cs
219398 -7.4% 203113 vmstat.system.in
4715828 -8.8% 4301560 stress-ng.clock.ops
78597 -8.8% 71692 stress-ng.clock.ops_per_sec
305.30 +1.7% 310.35 stress-ng.time.system_time
9425269 -8.8% 8596889 stress-ng.time.voluntary_context_switches
157229 ± 2% -5.1% 149224 proc-vmstat.nr_active_anon
904759 -1.7% 889679 proc-vmstat.nr_file_pages
123722 ± 2% -6.1% 116162 ± 2% proc-vmstat.nr_inactive_anon
29778 ± 7% -18.5% 24260 ± 8% proc-vmstat.nr_mapped
194663 -7.8% 179535 proc-vmstat.nr_shmem
157229 ± 2% -5.1% 149224 proc-vmstat.nr_zone_active_anon
123722 ± 2% -6.1% 116162 ± 2% proc-vmstat.nr_zone_inactive_anon
844968 -5.5% 798662 proc-vmstat.numa_hit
778755 -5.9% 732457 ± 2% proc-vmstat.numa_local
259547 -5.7% 244756 proc-vmstat.pgactivate
1060836 -7.1% 986009 ± 2% proc-vmstat.pgalloc_normal
755630 ± 2% -7.0% 702996 ± 4% proc-vmstat.pgfree
2.70 -17.4% 2.23 perf-stat.i.MPKI
1.428e+09 -5.8% 1.345e+09 perf-stat.i.branch-instructions
0.99 +0.1 1.09 ± 2% perf-stat.i.branch-miss-rate%
35.43 -7.4 28.07 perf-stat.i.cache-miss-rate%
19762268 -22.2% 15365818 perf-stat.i.cache-misses
55484296 -1.5% 54670651 perf-stat.i.cache-references
305445 -8.7% 278849 perf-stat.i.context-switches
2.88 +6.9% 3.08 perf-stat.i.cpi
400.01 ± 3% -6.5% 373.89 ± 3% perf-stat.i.cpu-migrations
1090 +27.2% 1387 perf-stat.i.cycles-between-cache-misses
1.989e+09 -6.6% 1.857e+09 perf-stat.i.dTLB-loads
1.153e+09 -7.6% 1.066e+09 perf-stat.i.dTLB-stores
7.703e+09 -6.3% 7.221e+09 perf-stat.i.instructions
0.38 -5.8% 0.36 perf-stat.i.ipc
1124 -6.3% 1053 perf-stat.i.metric.K/sec
71.46 -6.6% 66.71 perf-stat.i.metric.M/sec
3530238 ± 3% +48.1% 5229217 ± 3% perf-stat.i.node-load-misses
90.35 -5.3 85.09 perf-stat.i.node-store-miss-rate%
14871425 ± 2% -40.5% 8846683 perf-stat.i.node-store-misses
1393999 ± 2% +10.0% 1533309 perf-stat.i.node-stores
2.57 -17.0% 2.13 perf-stat.overall.MPKI
1.03 ± 2% +0.1 1.14 ± 3% perf-stat.overall.branch-miss-rate%
35.62 -7.5 28.11 perf-stat.overall.cache-miss-rate%
2.73 +6.4% 2.90 perf-stat.overall.cpi
1063 +28.2% 1363 perf-stat.overall.cycles-between-cache-misses
0.37 -6.0% 0.34 perf-stat.overall.ipc
91.42 -6.2 85.23 perf-stat.overall.node-store-miss-rate%
1.405e+09 -5.8% 1.323e+09 perf-stat.ps.branch-instructions
19444141 -22.2% 15118353 perf-stat.ps.cache-misses
54591369 -1.5% 53789356 perf-stat.ps.cache-references
300511 -8.7% 274335 perf-stat.ps.context-switches
393.53 ± 3% -6.5% 367.80 ± 3% perf-stat.ps.cpu-migrations
1.957e+09 -6.6% 1.827e+09 perf-stat.ps.dTLB-loads
1.135e+09 -7.6% 1.049e+09 perf-stat.ps.dTLB-stores
7.58e+09 -6.3% 7.105e+09 perf-stat.ps.instructions
3473672 ± 3% +48.1% 5144934 ± 3% perf-stat.ps.node-load-misses
14630992 ± 2% -40.5% 8703485 perf-stat.ps.node-store-misses
1371912 ± 2% +10.0% 1508626 perf-stat.ps.node-stores
4.721e+11 -5.7% 4.45e+11 perf-stat.total.instructions
13.27 -1.8 11.46 ± 2% perf-profile.calltrace.cycles-pp.ktime_get_update_offsets_now.clock_was_set.timekeeping_inject_offset.do_adjtimex.__do_sys_clock_adjtime
7.00 ± 3% -1.3 5.74 ± 2% perf-profile.calltrace.cycles-pp.syscall
5.50 ± 2% -1.2 4.26 ± 6% perf-profile.calltrace.cycles-pp.entry_SYSCALL_64_after_hwframe.syscall
5.25 ± 2% -1.2 4.02 ± 6% perf-profile.calltrace.cycles-pp.do_syscall_64.entry_SYSCALL_64_after_hwframe.syscall
4.27 ± 2% -1.1 3.13 ± 9% perf-profile.calltrace.cycles-pp.__x64_sys_clock_gettime.do_syscall_64.entry_SYSCALL_64_after_hwframe.syscall
14.93 -1.1 13.82 ± 2% perf-profile.calltrace.cycles-pp.cpuidle_idle_call.do_idle.cpu_startup_entry.start_secondary.secondary_startup_64_no_verify
17.13 -1.1 16.06 ± 2% perf-profile.calltrace.cycles-pp.secondary_startup_64_no_verify
14.04 -1.0 13.00 ± 2% perf-profile.calltrace.cycles-pp.cpuidle_enter_state.cpuidle_enter.cpuidle_idle_call.do_idle.cpu_startup_entry
14.22 -1.0 13.18 ± 2% perf-profile.calltrace.cycles-pp.cpuidle_enter.cpuidle_idle_call.do_idle.cpu_startup_entry.start_secondary
16.74 -1.0 15.77 ± 2% perf-profile.calltrace.cycles-pp.do_idle.cpu_startup_entry.start_secondary.secondary_startup_64_no_verify
16.78 -1.0 15.80 ± 2% perf-profile.calltrace.cycles-pp.start_secondary.secondary_startup_64_no_verify
16.77 -1.0 15.80 ± 2% perf-profile.calltrace.cycles-pp.cpu_startup_entry.start_secondary.secondary_startup_64_no_verify
3.29 ± 7% -0.8 2.51 ± 13% perf-profile.calltrace.cycles-pp.__hrtimer_run_queues.hrtimer_interrupt.__sysvec_apic_timer_interrupt.sysvec_apic_timer_interrupt.asm_sysvec_apic_timer_interrupt
2.50 ± 7% -0.6 1.94 ± 6% perf-profile.calltrace.cycles-pp.intel_idle_irq.cpuidle_enter_state.cpuidle_enter.cpuidle_idle_call.do_idle
0.68 ± 3% -0.4 0.26 ±100% perf-profile.calltrace.cycles-pp.native_queued_spin_lock_slowpath._raw_spin_lock_irqsave.timekeeping_inject_offset.do_adjtimex.__do_sys_clock_adjtime
2.09 -0.4 1.67 ± 2% perf-profile.calltrace.cycles-pp.timekeeping_update.timekeeping_inject_offset.do_adjtimex.__do_sys_clock_adjtime.do_syscall_64
4.87 -0.4 4.49 ± 4% perf-profile.calltrace.cycles-pp.asm_sysvec_apic_timer_interrupt.cpuidle_enter_state.cpuidle_enter.cpuidle_idle_call.do_idle
4.70 -0.4 4.31 ± 4% perf-profile.calltrace.cycles-pp.sysvec_apic_timer_interrupt.asm_sysvec_apic_timer_interrupt.cpuidle_enter_state.cpuidle_enter.cpuidle_idle_call
1.99 ± 7% -0.4 1.62 ± 6% perf-profile.calltrace.cycles-pp.asm_sysvec_apic_timer_interrupt.intel_idle_irq.cpuidle_enter_state.cpuidle_enter.cpuidle_idle_call
1.78 ± 7% -0.3 1.44 ± 6% perf-profile.calltrace.cycles-pp.sysvec_apic_timer_interrupt.asm_sysvec_apic_timer_interrupt.intel_idle_irq.cpuidle_enter_state.cpuidle_enter
1.40 ± 8% -0.3 1.08 ± 6% perf-profile.calltrace.cycles-pp.__sysvec_apic_timer_interrupt.sysvec_apic_timer_interrupt.asm_sysvec_apic_timer_interrupt.intel_idle_irq.cpuidle_enter_state
1.40 ± 8% -0.3 1.08 ± 6% perf-profile.calltrace.cycles-pp.hrtimer_interrupt.__sysvec_apic_timer_interrupt.sysvec_apic_timer_interrupt.asm_sysvec_apic_timer_interrupt.intel_idle_irq
0.56 ± 4% -0.3 0.26 ±100% perf-profile.calltrace.cycles-pp.entry_SYSCALL_64_after_hwframe.__close
3.07 ± 3% -0.3 2.80 ± 5% perf-profile.calltrace.cycles-pp.hrtimer_interrupt.__sysvec_apic_timer_interrupt.sysvec_apic_timer_interrupt.asm_sysvec_apic_timer_interrupt.cpuidle_enter_state
3.08 ± 3% -0.3 2.81 ± 5% perf-profile.calltrace.cycles-pp.__sysvec_apic_timer_interrupt.sysvec_apic_timer_interrupt.asm_sysvec_apic_timer_interrupt.cpuidle_enter_state.cpuidle_enter
1.74 ± 6% -0.2 1.51 ± 6% perf-profile.calltrace.cycles-pp.timer_settime
2.12 ± 2% -0.2 1.90 ± 5% perf-profile.calltrace.cycles-pp.add_device_randomness.do_adjtimex.__do_sys_clock_adjtime.do_syscall_64.entry_SYSCALL_64_after_hwframe
0.95 -0.2 0.73 ± 4% perf-profile.calltrace.cycles-pp._raw_spin_lock_irqsave.timekeeping_inject_offset.do_adjtimex.__do_sys_clock_adjtime.do_syscall_64
1.58 ± 6% -0.2 1.36 ± 7% perf-profile.calltrace.cycles-pp.do_syscall_64.entry_SYSCALL_64_after_hwframe.timer_settime
0.71 ± 7% -0.2 0.50 ± 45% perf-profile.calltrace.cycles-pp.posix_get_monotonic_raw.__x64_sys_clock_gettime.do_syscall_64.entry_SYSCALL_64_after_hwframe.syscall
1.60 ± 6% -0.2 1.39 ± 6% perf-profile.calltrace.cycles-pp.entry_SYSCALL_64_after_hwframe.timer_settime
1.55 ± 7% -0.2 1.33 ± 6% perf-profile.calltrace.cycles-pp.__x64_sys_timer_settime.do_syscall_64.entry_SYSCALL_64_after_hwframe.timer_settime
0.70 ± 7% -0.2 0.49 ± 46% perf-profile.calltrace.cycles-pp.ktime_get_raw_ts64.posix_get_monotonic_raw.__x64_sys_clock_gettime.do_syscall_64.entry_SYSCALL_64_after_hwframe
1.34 ± 8% -0.2 1.14 ± 7% perf-profile.calltrace.cycles-pp.do_timer_settime.__x64_sys_timer_settime.do_syscall_64.entry_SYSCALL_64_after_hwframe.timer_settime
2.84 -0.2 2.64 ± 4% perf-profile.calltrace.cycles-pp.entry_SYSCALL_64_after_hwframe.clock_nanosleep
2.79 ± 2% -0.2 2.61 ± 4% perf-profile.calltrace.cycles-pp.do_syscall_64.entry_SYSCALL_64_after_hwframe.clock_nanosleep
2.30 -0.2 2.12 perf-profile.calltrace.cycles-pp.open64
2.24 -0.2 2.07 perf-profile.calltrace.cycles-pp.do_syscall_64.entry_SYSCALL_64_after_hwframe.open64
2.25 -0.2 2.08 perf-profile.calltrace.cycles-pp.entry_SYSCALL_64_after_hwframe.open64
2.23 -0.2 2.06 perf-profile.calltrace.cycles-pp.__x64_sys_openat.do_syscall_64.entry_SYSCALL_64_after_hwframe.open64
2.22 -0.2 2.06 perf-profile.calltrace.cycles-pp.do_sys_openat2.__x64_sys_openat.do_syscall_64.entry_SYSCALL_64_after_hwframe.open64
1.36 ± 4% -0.2 1.20 ± 18% perf-profile.calltrace.cycles-pp.__entry_text_start.syscall
1.79 ± 4% -0.2 1.63 ± 6% perf-profile.calltrace.cycles-pp.tick_sched_timer.__hrtimer_run_queues.hrtimer_interrupt.__sysvec_apic_timer_interrupt.sysvec_apic_timer_interrupt
2.70 ± 2% -0.2 2.54 ± 4% perf-profile.calltrace.cycles-pp.__x64_sys_clock_nanosleep.do_syscall_64.entry_SYSCALL_64_after_hwframe.clock_nanosleep
1.12 ± 3% -0.1 0.97 ± 6% perf-profile.calltrace.cycles-pp.blake2s_update.add_device_randomness.do_adjtimex.__do_sys_clock_adjtime.do_syscall_64
0.60 ± 4% -0.1 0.46 ± 44% perf-profile.calltrace.cycles-pp.__close
2.02 ± 2% -0.1 1.88 perf-profile.calltrace.cycles-pp.do_filp_open.do_sys_openat2.__x64_sys_openat.do_syscall_64.entry_SYSCALL_64_after_hwframe
2.00 ± 2% -0.1 1.86 perf-profile.calltrace.cycles-pp.path_openat.do_filp_open.do_sys_openat2.__x64_sys_openat.do_syscall_64
0.95 ± 3% -0.1 0.82 ± 6% perf-profile.calltrace.cycles-pp.blake2s_compress.blake2s_update.add_device_randomness.do_adjtimex.__do_sys_clock_adjtime
1.26 ± 2% -0.1 1.13 ± 3% perf-profile.calltrace.cycles-pp.do_open.path_openat.do_filp_open.do_sys_openat2.__x64_sys_openat
1.07 ± 3% -0.1 0.98 ± 5% perf-profile.calltrace.cycles-pp.hrtimer_nanosleep.common_nsleep_timens.__x64_sys_clock_nanosleep.do_syscall_64.entry_SYSCALL_64_after_hwframe
1.08 ± 3% -0.1 0.99 ± 5% perf-profile.calltrace.cycles-pp.common_nsleep_timens.__x64_sys_clock_nanosleep.do_syscall_64.entry_SYSCALL_64_after_hwframe.clock_nanosleep
0.86 ± 2% -0.1 0.78 ± 6% perf-profile.calltrace.cycles-pp.hrtimer_start_range_ns.do_nanosleep.hrtimer_nanosleep.common_nsleep.__x64_sys_clock_nanosleep
1.01 ± 3% -0.1 0.93 ± 6% perf-profile.calltrace.cycles-pp.do_nanosleep.hrtimer_nanosleep.common_nsleep_timens.__x64_sys_clock_nanosleep.do_syscall_64
0.96 -0.1 0.88 ± 2% perf-profile.calltrace.cycles-pp.read_tsc.ktime_get_update_offsets_now.clock_was_set.timekeeping_inject_offset.do_adjtimex
0.69 ± 4% -0.1 0.62 ± 3% perf-profile.calltrace.cycles-pp.chrdev_open.do_dentry_open.do_open.path_openat.do_filp_open
0.98 ± 4% -0.1 0.91 perf-profile.calltrace.cycles-pp.__sysvec_apic_timer_interrupt.sysvec_apic_timer_interrupt.asm_sysvec_apic_timer_interrupt.poll_idle.cpuidle_enter_state
0.86 ± 4% -0.1 0.80 ± 3% perf-profile.calltrace.cycles-pp.do_dentry_open.do_open.path_openat.do_filp_open.do_sys_openat2
0.96 ± 3% +0.1 1.09 ± 5% perf-profile.calltrace.cycles-pp.tick_nohz_idle_enter.do_idle.cpu_startup_entry.start_secondary.secondary_startup_64_no_verify
0.87 ± 6% +0.1 1.00 ± 5% perf-profile.calltrace.cycles-pp.posix_timer_unhash_and_free.__x64_sys_timer_delete.do_syscall_64.entry_SYSCALL_64_after_hwframe.timer_delete
6.08 ± 2% +0.4 6.44 ± 2% perf-profile.calltrace.cycles-pp.igb_ptp_gettimex_82580.pc_clock_gettime.__x64_sys_clock_gettime.do_syscall_64.entry_SYSCALL_64_after_hwframe
6.27 ± 2% +0.4 6.66 ± 2% perf-profile.calltrace.cycles-pp.pc_clock_gettime.__x64_sys_clock_gettime.do_syscall_64.entry_SYSCALL_64_after_hwframe.clock_gettime
6.39 ± 2% +0.4 6.78 ± 2% perf-profile.calltrace.cycles-pp.clock_gettime
6.32 ± 2% +0.4 6.72 ± 2% perf-profile.calltrace.cycles-pp.entry_SYSCALL_64_after_hwframe.clock_gettime
6.32 ± 2% +0.4 6.71 ± 2% perf-profile.calltrace.cycles-pp.do_syscall_64.entry_SYSCALL_64_after_hwframe.clock_gettime
6.30 ± 2% +0.4 6.70 ± 2% perf-profile.calltrace.cycles-pp.__x64_sys_clock_gettime.do_syscall_64.entry_SYSCALL_64_after_hwframe.clock_gettime
0.08 ±223% +0.5 0.55 ± 5% perf-profile.calltrace.cycles-pp.asm_sysvec_apic_timer_interrupt.tick_nohz_idle_enter.do_idle.cpu_startup_entry.start_secondary
2.58 ± 7% +0.5 3.13 ± 2% perf-profile.calltrace.cycles-pp._raw_spin_lock_irqsave.igb_ptp_gettimex_82580.pc_clock_gettime.__x64_sys_clock_gettime.do_syscall_64
2.30 ± 7% +0.6 2.89 ± 2% perf-profile.calltrace.cycles-pp.native_queued_spin_lock_slowpath._raw_spin_lock_irqsave.igb_ptp_gettimex_82580.pc_clock_gettime.__x64_sys_clock_gettime
53.43 +2.9 56.32 perf-profile.calltrace.cycles-pp.clock_adjtime
53.05 +2.9 55.98 perf-profile.calltrace.cycles-pp.entry_SYSCALL_64_after_hwframe.clock_adjtime
52.98 +2.9 55.92 perf-profile.calltrace.cycles-pp.do_syscall_64.entry_SYSCALL_64_after_hwframe.clock_adjtime
52.81 +2.9 55.75 perf-profile.calltrace.cycles-pp.__do_sys_clock_adjtime.do_syscall_64.entry_SYSCALL_64_after_hwframe.clock_adjtime
51.37 +3.1 54.49 perf-profile.calltrace.cycles-pp.do_adjtimex.__do_sys_clock_adjtime.do_syscall_64.entry_SYSCALL_64_after_hwframe.clock_adjtime
47.33 +3.4 50.75 perf-profile.calltrace.cycles-pp.timekeeping_inject_offset.do_adjtimex.__do_sys_clock_adjtime.do_syscall_64.entry_SYSCALL_64_after_hwframe
43.22 +4.3 47.50 perf-profile.calltrace.cycles-pp.clock_was_set.timekeeping_inject_offset.do_adjtimex.__do_sys_clock_adjtime.do_syscall_64
4.17 ± 13% +4.7 8.85 ± 4% perf-profile.calltrace.cycles-pp.native_queued_spin_lock_slowpath._raw_spin_lock_irqsave.clock_was_set.timekeeping_inject_offset.do_adjtimex
21.83 +5.8 27.67 perf-profile.calltrace.cycles-pp._raw_spin_lock_irqsave.clock_was_set.timekeeping_inject_offset.do_adjtimex.__do_sys_clock_adjtime
14.07 -1.8 12.26 ± 2% perf-profile.children.cycles-pp.ktime_get_update_offsets_now
7.34 -1.4 5.98 ± 4% perf-profile.children.cycles-pp.syscall
15.24 -1.2 14.06 ± 2% perf-profile.children.cycles-pp.cpuidle_idle_call
14.48 -1.1 13.37 ± 2% perf-profile.children.cycles-pp.cpuidle_enter_state
14.51 -1.1 13.40 ± 2% perf-profile.children.cycles-pp.cpuidle_enter
17.11 -1.1 16.04 ± 2% perf-profile.children.cycles-pp.do_idle
17.13 -1.1 16.06 ± 2% perf-profile.children.cycles-pp.secondary_startup_64_no_verify
17.13 -1.1 16.06 ± 2% perf-profile.children.cycles-pp.cpu_startup_entry
16.78 -1.0 15.80 ± 2% perf-profile.children.cycles-pp.start_secondary
10.61 ± 2% -0.7 9.86 ± 3% perf-profile.children.cycles-pp.__x64_sys_clock_gettime
9.62 -0.7 8.90 ± 3% perf-profile.children.cycles-pp.asm_sysvec_apic_timer_interrupt
8.93 -0.7 8.26 ± 3% perf-profile.children.cycles-pp.sysvec_apic_timer_interrupt
2.76 ± 6% -0.6 2.14 ± 6% perf-profile.children.cycles-pp.intel_idle_irq
6.40 -0.6 5.81 ± 3% perf-profile.children.cycles-pp.hrtimer_interrupt
6.41 -0.6 5.83 ± 3% perf-profile.children.cycles-pp.__sysvec_apic_timer_interrupt
4.11 ± 2% -0.5 3.60 ± 4% perf-profile.children.cycles-pp.__hrtimer_run_queues
1.09 ± 4% -0.5 0.62 ± 8% perf-profile.children.cycles-pp.ktime_get_real_ts64
0.88 ± 6% -0.4 0.45 ± 14% perf-profile.children.cycles-pp.posix_get_realtime_timespec
2.09 -0.4 1.67 ± 2% perf-profile.children.cycles-pp.timekeeping_update
2.12 ± 2% -0.2 1.90 ± 5% perf-profile.children.cycles-pp.add_device_randomness
1.78 ± 6% -0.2 1.56 ± 5% perf-profile.children.cycles-pp.timer_settime
1.55 ± 7% -0.2 1.34 ± 6% perf-profile.children.cycles-pp.__x64_sys_timer_settime
1.35 ± 8% -0.2 1.14 ± 7% perf-profile.children.cycles-pp.do_timer_settime
1.19 ± 3% -0.2 0.99 ± 5% perf-profile.children.cycles-pp.try_to_wake_up
1.19 ± 3% -0.2 0.99 ± 4% perf-profile.children.cycles-pp.hrtimer_wakeup
0.77 ± 4% -0.2 0.58 ± 8% perf-profile.children.cycles-pp.ktime_get_with_offset
0.52 ± 7% -0.2 0.33 ± 17% perf-profile.children.cycles-pp.posix_get_monotonic_timespec
0.51 ± 6% -0.2 0.32 ± 19% perf-profile.children.cycles-pp.ktime_get_ts64
2.25 -0.2 2.08 perf-profile.children.cycles-pp.do_sys_openat2
2.31 -0.2 2.14 perf-profile.children.cycles-pp.open64
2.26 -0.2 2.08 perf-profile.children.cycles-pp.__x64_sys_openat
2.10 ± 3% -0.2 1.92 ± 5% perf-profile.children.cycles-pp.tick_sched_timer
2.71 ± 2% -0.2 2.54 ± 4% perf-profile.children.cycles-pp.__x64_sys_clock_nanosleep
2.55 -0.2 2.39 ± 4% perf-profile.children.cycles-pp.hrtimer_nanosleep
2.45 ± 2% -0.2 2.30 ± 5% perf-profile.children.cycles-pp.do_nanosleep
1.12 ± 3% -0.1 0.98 ± 6% perf-profile.children.cycles-pp.blake2s_update
0.36 ± 6% -0.1 0.21 ± 17% perf-profile.children.cycles-pp.smp_call_function_many_cond
0.39 ± 3% -0.1 0.24 ± 4% perf-profile.children.cycles-pp.update_vsyscall
0.72 ± 7% -0.1 0.57 ± 13% perf-profile.children.cycles-pp.posix_get_monotonic_raw
0.53 -0.1 0.38 ± 8% perf-profile.children.cycles-pp.posix_get_tai_timespec
0.70 ± 7% -0.1 0.56 ± 14% perf-profile.children.cycles-pp.ktime_get_raw_ts64
2.03 ± 2% -0.1 1.89 perf-profile.children.cycles-pp.path_openat
2.04 ± 2% -0.1 1.91 perf-profile.children.cycles-pp.do_filp_open
0.95 ± 3% -0.1 0.82 ± 6% perf-profile.children.cycles-pp.blake2s_compress
1.50 ± 2% -0.1 1.37 ± 2% perf-profile.children.cycles-pp.read_tsc
1.26 ± 3% -0.1 1.14 ± 3% perf-profile.children.cycles-pp.do_open
1.38 ± 2% -0.1 1.26 ± 6% perf-profile.children.cycles-pp.hrtimer_start_range_ns
0.54 ± 4% -0.1 0.43 ± 3% perf-profile.children.cycles-pp.ttwu_do_activate
0.26 ± 8% -0.1 0.16 ± 21% perf-profile.children.cycles-pp.ktime_get_coarse_real_ts64
0.25 ± 6% -0.1 0.14 ± 21% perf-profile.children.cycles-pp.posix_get_realtime_coarse
1.47 ± 2% -0.1 1.37 ± 3% perf-profile.children.cycles-pp.__entry_text_start
1.09 ± 3% -0.1 0.99 ± 5% perf-profile.children.cycles-pp.common_nsleep_timens
0.56 ± 3% -0.1 0.46 ± 7% perf-profile.children.cycles-pp.update_fast_timekeeper
1.53 ± 3% -0.1 1.44 ± 3% perf-profile.children.cycles-pp.tick_sched_handle
1.14 ± 2% -0.1 1.05 ± 2% perf-profile.children.cycles-pp._copy_to_user
0.51 ± 2% -0.1 0.43 ± 4% perf-profile.children.cycles-pp.timekeeping_forward_now
0.16 ± 7% -0.1 0.08 ± 18% perf-profile.children.cycles-pp.__flush_smp_call_function_queue
0.32 ± 3% -0.1 0.25 ± 7% perf-profile.children.cycles-pp.enqueue_entity
0.69 ± 4% -0.1 0.62 ± 4% perf-profile.children.cycles-pp.chrdev_open
0.36 ± 3% -0.1 0.29 ± 7% perf-profile.children.cycles-pp.activate_task
0.15 ± 9% -0.1 0.08 ± 23% perf-profile.children.cycles-pp.asm_sysvec_call_function_single
0.34 ± 4% -0.1 0.28 ± 7% perf-profile.children.cycles-pp.enqueue_task_fair
0.30 ± 7% -0.1 0.24 ± 6% perf-profile.children.cycles-pp.capable
0.54 ± 4% -0.1 0.48 ± 3% perf-profile.children.cycles-pp.syscall_exit_to_user_mode
0.40 ± 7% -0.1 0.34 ± 11% perf-profile.children.cycles-pp.timerfd_clock_was_set
0.62 ± 4% -0.1 0.56 ± 4% perf-profile.children.cycles-pp.__close
0.57 ± 4% -0.1 0.51 ± 6% perf-profile.children.cycles-pp.menu_select
0.54 ± 3% -0.1 0.48 ± 4% perf-profile.children.cycles-pp.__x64_sys_close
0.31 ± 9% -0.1 0.25 ± 5% perf-profile.children.cycles-pp.lockref_get_not_dead
0.28 ± 5% -0.1 0.22 ± 6% perf-profile.children.cycles-pp.apparmor_capable
0.14 ± 16% -0.1 0.08 ± 27% perf-profile.children.cycles-pp.ktime_mono_to_any
0.13 ± 8% -0.1 0.07 ± 20% perf-profile.children.cycles-pp.sysvec_call_function_single
0.32 ± 8% -0.1 0.26 ± 5% perf-profile.children.cycles-pp.__legitimize_path
0.30 ± 5% -0.1 0.24 ± 5% perf-profile.children.cycles-pp.security_capable
0.08 ± 17% -0.1 0.02 ± 99% perf-profile.children.cycles-pp.security_file_free
0.52 ± 5% -0.1 0.47 ± 4% perf-profile.children.cycles-pp.alloc_empty_file
0.11 ± 6% -0.1 0.06 ± 21% perf-profile.children.cycles-pp.__sysvec_call_function_single
0.45 ± 4% -0.1 0.40 ± 6% perf-profile.children.cycles-pp.__fput
0.40 ± 5% -0.1 0.35 ± 4% perf-profile.children.cycles-pp.init_file
0.31 ± 5% -0.1 0.26 ± 6% perf-profile.children.cycles-pp.notifier_call_chain
0.69 ± 3% -0.0 0.64 ± 2% perf-profile.children.cycles-pp.kmem_cache_alloc
0.18 ± 9% -0.0 0.14 ± 8% perf-profile.children.cycles-pp.kobject_get
0.18 ± 9% -0.0 0.13 ± 14% perf-profile.children.cycles-pp.check_preempt_curr
0.23 ± 6% -0.0 0.19 ± 8% perf-profile.children.cycles-pp._raw_spin_lock_irq
0.15 ± 11% -0.0 0.11 ± 14% perf-profile.children.cycles-pp.resched_curr
0.29 ± 5% -0.0 0.25 ± 5% perf-profile.children.cycles-pp._raw_spin_unlock_irqrestore
0.60 ± 3% -0.0 0.56 ± 2% perf-profile.children.cycles-pp.lapic_next_deadline
0.22 ± 5% -0.0 0.19 ± 8% perf-profile.children.cycles-pp.security_file_alloc
0.18 ± 6% -0.0 0.15 ± 12% perf-profile.children.cycles-pp.smpboot_thread_fn
0.11 ± 8% -0.0 0.08 ± 5% perf-profile.children.cycles-pp.run_ksoftirqd
0.26 ± 5% -0.0 0.23 ± 4% perf-profile.children.cycles-pp.syscall_return_via_sysret
0.14 ± 9% -0.0 0.11 ± 9% perf-profile.children.cycles-pp.getname_flags
0.24 ± 3% -0.0 0.22 ± 4% perf-profile.children.cycles-pp.exit_to_user_mode_prepare
0.10 ± 6% +0.0 0.12 ± 6% perf-profile.children.cycles-pp.posix_clock_poll
0.12 ± 6% +0.0 0.14 ± 4% perf-profile.children.cycles-pp.do_poll
0.27 ± 5% +0.0 0.29 ± 3% perf-profile.children.cycles-pp.down_read
0.15 ± 9% +0.0 0.18 ± 7% perf-profile.children.cycles-pp.up_read
0.12 ± 6% +0.0 0.15 ± 6% perf-profile.children.cycles-pp.link_path_walk
0.18 ± 5% +0.0 0.22 ± 7% perf-profile.children.cycles-pp.__switch_to
0.21 ± 4% +0.1 0.26 ± 13% perf-profile.children.cycles-pp.finish_task_switch
0.00 +0.1 0.08 ± 21% perf-profile.children.cycles-pp.step_into
0.87 ± 6% +0.1 1.00 ± 5% perf-profile.children.cycles-pp.posix_timer_unhash_and_free
6.08 ± 2% +0.4 6.45 ± 2% perf-profile.children.cycles-pp.igb_ptp_gettimex_82580
6.27 ± 2% +0.4 6.66 ± 2% perf-profile.children.cycles-pp.pc_clock_gettime
6.39 ± 2% +0.4 6.78 ± 2% perf-profile.children.cycles-pp.clock_gettime
77.76 +1.4 79.16 perf-profile.children.cycles-pp.entry_SYSCALL_64_after_hwframe
77.38 +1.4 78.81 perf-profile.children.cycles-pp.do_syscall_64
53.58 +2.9 56.46 perf-profile.children.cycles-pp.clock_adjtime
52.83 +2.9 55.78 perf-profile.children.cycles-pp.__do_sys_clock_adjtime
51.38 +3.1 54.50 perf-profile.children.cycles-pp.do_adjtimex
47.34 +3.4 50.76 perf-profile.children.cycles-pp.timekeeping_inject_offset
43.40 +4.3 47.66 perf-profile.children.cycles-pp.clock_was_set
9.11 ± 8% +5.2 14.27 ± 2% perf-profile.children.cycles-pp.native_queued_spin_lock_slowpath
29.22 +6.0 35.19 perf-profile.children.cycles-pp._raw_spin_lock_irqsave
13.04 -1.7 11.30 ± 2% perf-profile.self.cycles-pp.ktime_get_update_offsets_now
1.03 ± 5% -0.5 0.57 ± 8% perf-profile.self.cycles-pp.ktime_get_real_ts64
4.24 ± 4% -0.3 3.92 ± 5% perf-profile.self.cycles-pp.ktime_get
0.81 ± 4% -0.2 0.58 ± 7% perf-profile.self.cycles-pp.intel_idle_irq
0.70 ± 5% -0.2 0.51 ± 9% perf-profile.self.cycles-pp.ktime_get_with_offset
0.47 ± 7% -0.2 0.29 ± 21% perf-profile.self.cycles-pp.ktime_get_ts64
0.39 ± 3% -0.1 0.24 ± 4% perf-profile.self.cycles-pp.update_vsyscall
0.66 ± 8% -0.1 0.52 ± 15% perf-profile.self.cycles-pp.ktime_get_raw_ts64
0.74 ± 3% -0.1 0.61 ± 4% perf-profile.self.cycles-pp.__do_sys_clock_adjtime
0.31 ± 7% -0.1 0.18 ± 16% perf-profile.self.cycles-pp.smp_call_function_many_cond
0.95 ± 3% -0.1 0.82 ± 5% perf-profile.self.cycles-pp.blake2s_compress
0.80 ± 2% -0.1 0.68 ± 3% perf-profile.self.cycles-pp.timekeeping_update
1.43 ± 2% -0.1 1.32 ± 2% perf-profile.self.cycles-pp.read_tsc
0.26 ± 7% -0.1 0.15 ± 22% perf-profile.self.cycles-pp.ktime_get_coarse_real_ts64
0.98 ± 4% -0.1 0.87 ± 5% perf-profile.self.cycles-pp.poll_idle
0.56 ± 3% -0.1 0.46 ± 7% perf-profile.self.cycles-pp.update_fast_timekeeper
0.32 ± 5% -0.1 0.23 ± 5% perf-profile.self.cycles-pp.timekeeping_inject_offset
1.12 ± 2% -0.1 1.03 ± 2% perf-profile.self.cycles-pp._copy_to_user
0.50 ± 2% -0.1 0.41 ± 5% perf-profile.self.cycles-pp.timekeeping_forward_now
0.51 ± 7% -0.1 0.45 ± 3% perf-profile.self.cycles-pp.hrtimer_interrupt
0.30 ± 8% -0.1 0.24 ± 3% perf-profile.self.cycles-pp.lockref_get_not_dead
0.10 ± 9% -0.1 0.04 ± 45% perf-profile.self.cycles-pp.enqueue_entity
0.13 ± 18% -0.1 0.08 ± 25% perf-profile.self.cycles-pp.ktime_mono_to_any
0.27 ± 6% -0.1 0.21 ± 5% perf-profile.self.cycles-pp.apparmor_capable
0.16 ± 8% -0.1 0.10 ± 21% perf-profile.self.cycles-pp.hrtimer_start_range_ns
0.18 ± 9% -0.0 0.14 ± 8% perf-profile.self.cycles-pp.kobject_get
0.15 ± 11% -0.0 0.11 ± 14% perf-profile.self.cycles-pp.resched_curr
0.59 ± 2% -0.0 0.56 ± 2% perf-profile.self.cycles-pp.lapic_next_deadline
0.41 ± 4% -0.0 0.38 ± 3% perf-profile.self.cycles-pp.entry_SYSCALL_64_after_hwframe
0.33 ± 3% -0.0 0.30 ± 5% perf-profile.self.cycles-pp.do_syscall_64
0.20 ± 7% -0.0 0.17 ± 5% perf-profile.self.cycles-pp.syscall_exit_to_user_mode
0.26 ± 5% -0.0 0.23 ± 4% perf-profile.self.cycles-pp.syscall_return_via_sysret
0.19 ± 3% -0.0 0.16 ± 8% perf-profile.self.cycles-pp.apparmor_file_alloc_security
0.10 ± 4% -0.0 0.08 ± 8% perf-profile.self.cycles-pp.update_curr
0.14 ± 11% +0.0 0.18 ± 7% perf-profile.self.cycles-pp.up_read
0.17 ± 5% +0.0 0.21 ± 6% perf-profile.self.cycles-pp.__switch_to
0.01 ±223% +0.1 0.08 ± 8% perf-profile.self.cycles-pp.dequeue_task_fair
20.56 +0.9 21.48 perf-profile.self.cycles-pp._raw_spin_lock_irqsave
9.08 ± 8% +5.2 14.24 ± 2% perf-profile.self.cycles-pp.native_queued_spin_lock_slowpathDisclaimer:
Results have been estimated based on internal Intel analysis and are provided for informational purposes only. Any difference in system hardware or software design or configuration may affect actual performance.
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
#
# Automatically generated file; DO NOT EDIT.
# Linux/x86_64 6.6.0-rc3 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="gcc-12 (Debian 12.2.0-14) 12.2.0" CONFIG_CC_IS_GCC=yCONFIG_GCC_VERSION=120200CONFIG_CLANG_VERSION=0CONFIG_AS_IS_GNU=yCONFIG_AS_VERSION=24000CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=24000CONFIG_LLD_VERSION=0CONFIG_CC_CAN_LINK=yCONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_TOOLS_SUPPORT_RELR=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=125CONFIG_IRQ_WORK=yCONFIG_BUILDTIME_TABLE_SORT=y CONFIG_THREAD_INFO_IN_TASK=y
#
# General setup
#CONFIG_INIT_ENV_ARG_LIMIT=32
# CONFIG_COMPILE_TEST is not set
# CONFIG_WERROR is not setCONFIG_LOCALVERSION=""CONFIG_LOCALVERSION_AUTO=yCONFIG_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=yCONFIG_SYSVIPC_SYSCTL=yCONFIG_SYSVIPC_COMPAT=yCONFIG_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=y
# CONFIG_WATCH_QUEUE is not setCONFIG_CROSS_MEMORY_ATTACH=y
# 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_EFFECTIVE_AFF_MASK=yCONFIG_GENERIC_PENDING_IRQ=yCONFIG_GENERIC_IRQ_MIGRATION=yCONFIG_GENERIC_IRQ_INJECTION=yCONFIG_HARDIRQS_SW_RESEND=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_DOMAIN_HIERARCHY=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=y
# CONFIG_GENERIC_IRQ_DEBUGFS is not set
# 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_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 set
# CONFIG_NO_HZ_IDLE is not setCONFIG_NO_HZ_FULL=yCONFIG_CONTEXT_TRACKING_USER=y
# CONFIG_CONTEXT_TRACKING_USER_FORCE is not setCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=yCONFIG_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=yCONFIG_BPF_JIT=yCONFIG_BPF_JIT_ALWAYS_ON=yCONFIG_BPF_JIT_DEFAULT_ON=yCONFIG_BPF_UNPRIV_DEFAULT_OFF=y
# CONFIG_BPF_PRELOAD is not set
# CONFIG_BPF_LSM is not set
# end of BPF subsystem
CONFIG_PREEMPT_VOLUNTARY_BUILD=y
# CONFIG_PREEMPT_NONE is not setCONFIG_PREEMPT_VOLUNTARY=y
# CONFIG_PREEMPT is not set
# CONFIG_PREEMPT_DYNAMIC is not set
# CONFIG_SCHED_CORE is not set
#
# CPU/Task time and stats accounting
#CONFIG_VIRT_CPU_ACCOUNTING=yCONFIG_VIRT_CPU_ACCOUNTING_GEN=yCONFIG_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_SCHED_AVG_IRQ=yCONFIG_BSD_PROCESS_ACCT=yCONFIG_BSD_PROCESS_ACCT_V3=yCONFIG_TASKSTATS=yCONFIG_TASK_DELAY_ACCT=yCONFIG_TASK_XACCT=yCONFIG_TASK_IO_ACCOUNTING=y
# CONFIG_PSI is not set
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=y
# CONFIG_RCU_EXPERT is not setCONFIG_TREE_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_TASKS_RUDE_RCU=yCONFIG_TASKS_TRACE_RCU=yCONFIG_RCU_STALL_COMMON=yCONFIG_RCU_NEED_SEGCBLIST=yCONFIG_RCU_NOCB_CPU=y
# CONFIG_RCU_NOCB_CPU_DEFAULT_ALL is not set
# CONFIG_RCU_LAZY is not set
# end of RCU Subsystem
CONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=y
# CONFIG_IKHEADERS is not setCONFIG_LOG_BUF_SHIFT=20CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
# CONFIG_PRINTK_INDEX is not setCONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#
# CONFIG_UCLAMP_TASK is not set
# 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=5" CONFIG_GCC11_NO_ARRAY_BOUNDS=y CONFIG_CC_NO_ARRAY_BOUNDS=y CONFIG_ARCH_SUPPORTS_INT128=y CONFIG_NUMA_BALANCING=y CONFIG_NUMA_BALANCING_DEFAULT_ENABLED=y CONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=y
# CONFIG_CGROUP_FAVOR_DYNMODS is not set CONFIG_MEMCG=yCONFIG_MEMCG_KMEM=yCONFIG_BLK_CGROUP=yCONFIG_CGROUP_WRITEBACK=yCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=y
# CONFIG_RT_GROUP_SCHED is not set CONFIG_SCHED_MM_CID=yCONFIG_CGROUP_PIDS=yCONFIG_CGROUP_RDMA=yCONFIG_CGROUP_FREEZER=yCONFIG_CGROUP_HUGETLB=yCONFIG_CPUSETS=yCONFIG_PROC_PID_CPUSET=yCONFIG_CGROUP_DEVICE=yCONFIG_CGROUP_CPUACCT=yCONFIG_CGROUP_PERF=yCONFIG_CGROUP_BPF=y
# CONFIG_CGROUP_MISC is not set
# CONFIG_CGROUP_DEBUG is not set CONFIG_SOCK_CGROUP_DATA=yCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_TIME_NS=yCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_NET_NS=y
# CONFIG_CHECKPOINT_RESTORE is not set CONFIG_SCHED_AUTOGROUP=yCONFIG_RELAY=yCONFIG_BLK_DEV_INITRD=y CONFIG_INITRAMFS_SOURCE=""CONFIG_RD_GZIP=yCONFIG_RD_BZIP2=yCONFIG_RD_LZMA=yCONFIG_RD_XZ=yCONFIG_RD_LZO=yCONFIG_RD_LZ4=yCONFIG_RD_ZSTD=y
# CONFIG_BOOT_CONFIG 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=yCONFIG_EXPERT=yCONFIG_UID16=yCONFIG_MULTIUSER=yCONFIG_SGETMASK_SYSCALL=yCONFIG_SYSFS_SYSCALL=yCONFIG_FHANDLE=yCONFIG_POSIX_TIMERS=yCONFIG_PRINTK=yCONFIG_BUG=yCONFIG_ELF_CORE=yCONFIG_PCSPKR_PLATFORM=yCONFIG_BASE_FULL=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_KALLSYMS=y
# CONFIG_KALLSYMS_SELFTEST is not set CONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_ABSOLUTE_PERCPU=y CONFIG_KALLSYMS_BASE_RELATIVE=y CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y CONFIG_KCMP=yCONFIG_RSEQ=yCONFIG_CACHESTAT_SYSCALL=y
# CONFIG_DEBUG_RSEQ is not set CONFIG_HAVE_PERF_EVENTS=y CONFIG_GUEST_PERF_EVENTS=y
# CONFIG_PC104 is not set
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=y
# CONFIG_DEBUG_PERF_USE_VMALLOC is not set
# end of Kernel Performance Events And Counters
CONFIG_SYSTEM_DATA_VERIFICATION=yCONFIG_PROFILING=yCONFIG_TRACEPOINTS=y
#
# Kexec and crash features
#CONFIG_CRASH_CORE=yCONFIG_KEXEC_CORE=yCONFIG_KEXEC=yCONFIG_KEXEC_FILE=y
# CONFIG_KEXEC_SIG is not setCONFIG_KEXEC_JUMP=yCONFIG_CRASH_DUMP=yCONFIG_CRASH_HOTPLUG=yCONFIG_CRASH_MAX_MEMORY_RANGES=8192
# 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_X86_64_SMP=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_PGTABLE_LEVELS=5CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#CONFIG_SMP=yCONFIG_X86_X2APIC=yCONFIG_X86_MPPARSE=y
# CONFIG_GOLDFISH is not set
# CONFIG_X86_CPU_RESCTRL is not setCONFIG_X86_EXTENDED_PLATFORM=y
# CONFIG_X86_NUMACHIP is not set
# CONFIG_X86_VSMP is not setCONFIG_X86_UV=y
# CONFIG_X86_GOLDFISH is not set
# CONFIG_X86_INTEL_MID is not setCONFIG_X86_INTEL_LPSS=y
# CONFIG_X86_AMD_PLATFORM_DEVICE is not setCONFIG_IOSF_MBI=y
# CONFIG_IOSF_MBI_DEBUG is not setCONFIG_X86_SUPPORTS_MEMORY_FAILURE=y
# CONFIG_SCHED_OMIT_FRAME_POINTER is not setCONFIG_HYPERVISOR_GUEST=yCONFIG_PARAVIRT=y
# CONFIG_PARAVIRT_DEBUG is not setCONFIG_PARAVIRT_SPINLOCKS=yCONFIG_X86_HV_CALLBACK_VECTOR=y
# CONFIG_XEN is not setCONFIG_KVM_GUEST=yCONFIG_ARCH_CPUIDLE_HALTPOLL=y
# CONFIG_PVH is not setCONFIG_PARAVIRT_TIME_ACCOUNTING=yCONFIG_PARAVIRT_CLOCK=y
# CONFIG_JAILHOUSE_GUEST is not set
# CONFIG_ACRN_GUEST is not set
# CONFIG_INTEL_TDX_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_CMPXCHG64=yCONFIG_X86_CMOV=yCONFIG_X86_MINIMUM_CPU_FAMILY=64CONFIG_X86_DEBUGCTLMSR=yCONFIG_IA32_FEAT_CTL=yCONFIG_X86_VMX_FEATURE_NAMES=yCONFIG_PROCESSOR_SELECT=yCONFIG_CPU_SUP_INTEL=y
# CONFIG_CPU_SUP_AMD is not set
# CONFIG_CPU_SUP_HYGON is not set
# CONFIG_CPU_SUP_CENTAUR is not set
# CONFIG_CPU_SUP_ZHAOXIN is not setCONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=yCONFIG_DMI=yCONFIG_BOOT_VESA_SUPPORT=yCONFIG_MAXSMP=yCONFIG_NR_CPUS_RANGE_BEGIN=8192CONFIG_NR_CPUS_RANGE_END=8192CONFIG_NR_CPUS_DEFAULT=8192CONFIG_NR_CPUS=8192CONFIG_SCHED_CLUSTER=yCONFIG_SCHED_SMT=yCONFIG_SCHED_MC=yCONFIG_SCHED_MC_PRIO=yCONFIG_X86_LOCAL_APIC=yCONFIG_X86_IO_APIC=yCONFIG_X86_REROUTE_FOR_BROKEN_BOOT_IRQS=yCONFIG_X86_MCE=yCONFIG_X86_MCELOG_LEGACY=yCONFIG_X86_MCE_INTEL=yCONFIG_X86_MCE_THRESHOLD=yCONFIG_X86_MCE_INJECT=m
#
# Performance monitoring
#CONFIG_PERF_EVENTS_INTEL_UNCORE=mCONFIG_PERF_EVENTS_INTEL_RAPL=mCONFIG_PERF_EVENTS_INTEL_CSTATE=m
# end of Performance monitoring
CONFIG_X86_16BIT=yCONFIG_X86_ESPFIX64=y CONFIG_X86_VSYSCALL_EMULATION=y CONFIG_X86_IOPL_IOPERM=yCONFIG_MICROCODE=y CONFIG_MICROCODE_LATE_LOADING=yCONFIG_X86_MSR=yCONFIG_X86_CPUID=yCONFIG_X86_5LEVEL=yCONFIG_X86_DIRECT_GBPAGES=y
# CONFIG_X86_CPA_STATISTICS is not set CONFIG_NUMA=y
# CONFIG_AMD_NUMA is not set CONFIG_X86_64_ACPI_NUMA=yCONFIG_NUMA_EMU=yCONFIG_NODES_SHIFT=10 CONFIG_ARCH_SPARSEMEM_ENABLE=y CONFIG_ARCH_SPARSEMEM_DEFAULT=y
# CONFIG_ARCH_MEMORY_PROBE is not set CONFIG_ARCH_PROC_KCORE_TEXT=y CONFIG_ILLEGAL_POINTER_VALUE=0xdead000000000000 CONFIG_X86_PMEM_LEGACY_DEVICE=y CONFIG_X86_PMEM_LEGACY=m CONFIG_X86_CHECK_BIOS_CORRUPTION=y
# CONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK is not set CONFIG_MTRR=yCONFIG_MTRR_SANITIZER=y CONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=1 CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1 CONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=yCONFIG_X86_UMIP=yCONFIG_CC_HAS_IBT=yCONFIG_X86_CET=yCONFIG_X86_KERNEL_IBT=y CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS=y CONFIG_X86_INTEL_TSX_MODE_OFF=y
# CONFIG_X86_INTEL_TSX_MODE_ON is not set
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not set
# CONFIG_X86_SGX is not set
# CONFIG_X86_USER_SHADOW_STACK is not set CONFIG_EFI=yCONFIG_EFI_STUB=yCONFIG_EFI_HANDOVER_PROTOCOL=y CONFIG_EFI_MIXED=y
# CONFIG_EFI_FAKE_MEMMAP is not set CONFIG_EFI_RUNTIME_MAP=y
# CONFIG_HZ_100 is not set
# CONFIG_HZ_250 is not set
# CONFIG_HZ_300 is not setCONFIG_HZ_1000=yCONFIG_HZ=1000CONFIG_SCHED_HRTICK=y CONFIG_ARCH_SUPPORTS_KEXEC=y CONFIG_ARCH_SUPPORTS_KEXEC_FILE=y CONFIG_ARCH_SELECTS_KEXEC_FILE=y CONFIG_ARCH_SUPPORTS_KEXEC_PURGATORY=y CONFIG_ARCH_SUPPORTS_KEXEC_SIG=y CONFIG_ARCH_SUPPORTS_KEXEC_SIG_FORCE=y CONFIG_ARCH_SUPPORTS_KEXEC_BZIMAGE_VERIFY_SIG=y CONFIG_ARCH_SUPPORTS_KEXEC_JUMP=y CONFIG_ARCH_SUPPORTS_CRASH_DUMP=y CONFIG_ARCH_SUPPORTS_CRASH_HOTPLUG=y CONFIG_PHYSICAL_START=0x1000000 CONFIG_RELOCATABLE=yCONFIG_RANDOMIZE_BASE=yCONFIG_X86_NEED_RELOCS=y CONFIG_PHYSICAL_ALIGN=0x200000 CONFIG_DYNAMIC_MEMORY_LAYOUT=y CONFIG_RANDOMIZE_MEMORY=y CONFIG_RANDOMIZE_MEMORY_PHYSICAL_PADDING=0xa
# CONFIG_ADDRESS_MASKING is not set CONFIG_HOTPLUG_CPU=y
# CONFIG_COMPAT_VDSO is not set CONFIG_LEGACY_VSYSCALL_XONLY=y
# CONFIG_LEGACY_VSYSCALL_NONE is not set
# CONFIG_CMDLINE_BOOL is not set CONFIG_MODIFY_LDT_SYSCALL=y
# CONFIG_STRICT_SIGALTSTACK_SIZE is not set CONFIG_HAVE_LIVEPATCH=yCONFIG_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=16CONFIG_CALL_PADDING=yCONFIG_HAVE_CALL_THUNKS=yCONFIG_CALL_THUNKS=yCONFIG_PREFIX_SYMBOLS=yCONFIG_SPECULATION_MITIGATIONS=yCONFIG_PAGE_TABLE_ISOLATION=yCONFIG_RETPOLINE=yCONFIG_RETHUNK=yCONFIG_CALL_DEPTH_TRACKING=y
# CONFIG_CALL_THUNKS_DEBUG is not setCONFIG_CPU_IBRS_ENTRY=y
# CONFIG_SLS is not set
# CONFIG_GDS_FORCE_MITIGATION is not setCONFIG_ARCH_HAS_ADD_PAGES=y
#
# Power management and ACPI options
#CONFIG_ARCH_HIBERNATION_HEADER=yCONFIG_SUSPEND=yCONFIG_SUSPEND_FREEZER=y
# CONFIG_SUSPEND_SKIP_SYNC is not setCONFIG_HIBERNATE_CALLBACKS=yCONFIG_HIBERNATION=yCONFIG_HIBERNATION_SNAPSHOT_DEV=yCONFIG_PM_STD_PARTITION=""CONFIG_PM_SLEEP=yCONFIG_PM_SLEEP_SMP=y
# CONFIG_PM_AUTOSLEEP is not set
# CONFIG_PM_USERSPACE_AUTOSLEEP is not set
# CONFIG_PM_WAKELOCKS is not setCONFIG_PM=y
# CONFIG_PM_DEBUG is not setCONFIG_PM_CLK=y
# CONFIG_WQ_POWER_EFFICIENT_DEFAULT is not set
# CONFIG_ENERGY_MODEL 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=y
# CONFIG_ACPI_DEBUGGER is not setCONFIG_ACPI_SPCR_TABLE=y
# CONFIG_ACPI_FPDT is not setCONFIG_ACPI_LPIT=yCONFIG_ACPI_SLEEP=yCONFIG_ACPI_REV_OVERRIDE_POSSIBLE=yCONFIG_ACPI_EC_DEBUGFS=mCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_VIDEO=mCONFIG_ACPI_FAN=yCONFIG_ACPI_TAD=mCONFIG_ACPI_DOCK=yCONFIG_ACPI_CPU_FREQ_PSS=yCONFIG_ACPI_PROCESSOR_CSTATE=yCONFIG_ACPI_PROCESSOR_IDLE=yCONFIG_ACPI_CPPC_LIB=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_IPMI=mCONFIG_ACPI_HOTPLUG_CPU=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=mCONFIG_ACPI_THERMAL=yCONFIG_ACPI_PLATFORM_PROFILE=mCONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=yCONFIG_ACPI_TABLE_UPGRADE=y
# CONFIG_ACPI_DEBUG is not setCONFIG_ACPI_PCI_SLOT=yCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_HOTPLUG_MEMORY=yCONFIG_ACPI_HOTPLUG_IOAPIC=yCONFIG_ACPI_SBS=mCONFIG_ACPI_HED=y
# CONFIG_ACPI_CUSTOM_METHOD is not setCONFIG_ACPI_BGRT=y
# CONFIG_ACPI_REDUCED_HARDWARE_ONLY is not setCONFIG_ACPI_NFIT=m
# CONFIG_NFIT_SECURITY_DEBUG is not setCONFIG_ACPI_NUMA=yCONFIG_ACPI_HMAT=yCONFIG_HAVE_ACPI_APEI=yCONFIG_HAVE_ACPI_APEI_NMI=yCONFIG_ACPI_APEI=yCONFIG_ACPI_APEI_GHES=yCONFIG_ACPI_APEI_PCIEAER=yCONFIG_ACPI_APEI_MEMORY_FAILURE=yCONFIG_ACPI_APEI_EINJ=m
# CONFIG_ACPI_APEI_ERST_DEBUG is not set
# CONFIG_ACPI_DPTF is not setCONFIG_ACPI_WATCHDOG=yCONFIG_ACPI_EXTLOG=mCONFIG_ACPI_ADXL=y
# 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 setCONFIG_ACPI_PRMT=yCONFIG_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_SCHEDUTIL is not set CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y
#
# CPU frequency scaling drivers
#CONFIG_X86_INTEL_PSTATE=y
# CONFIG_X86_PCC_CPUFREQ is not set
# CONFIG_X86_AMD_PSTATE is not set
# CONFIG_X86_AMD_PSTATE_UT is not setCONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_X86_POWERNOW_K8 is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not setCONFIG_X86_P4_CLOCKMOD=m
#
# shared options # CONFIG_X86_SPEEDSTEP_LIB=m # 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 setCONFIG_CPU_IDLE_GOV_HALTPOLL=yCONFIG_HALTPOLL_CPUIDLE=y
# 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=y
# CONFIG_PCI_CNB20LE_QUIRK is not set
# CONFIG_ISA_BUS is not setCONFIG_ISA_DMA_API=y
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_IA32_EMULATION=y
# CONFIG_X86_X32_ABI is not setCONFIG_COMPAT_32=yCONFIG_COMPAT=yCONFIG_COMPAT_FOR_U64_ALIGNMENT=y
# end of Binary Emulations
CONFIG_HAVE_KVM=yCONFIG_HAVE_KVM_PFNCACHE=yCONFIG_HAVE_KVM_IRQCHIP=yCONFIG_HAVE_KVM_IRQFD=yCONFIG_HAVE_KVM_IRQ_ROUTING=yCONFIG_HAVE_KVM_DIRTY_RING=yCONFIG_HAVE_KVM_DIRTY_RING_TSO=yCONFIG_HAVE_KVM_DIRTY_RING_ACQ_REL=yCONFIG_HAVE_KVM_EVENTFD=yCONFIG_KVM_MMIO=yCONFIG_KVM_ASYNC_PF=yCONFIG_HAVE_KVM_MSI=yCONFIG_HAVE_KVM_CPU_RELAX_INTERCEPT=yCONFIG_KVM_VFIO=yCONFIG_KVM_GENERIC_DIRTYLOG_READ_PROTECT=yCONFIG_KVM_COMPAT=yCONFIG_HAVE_KVM_IRQ_BYPASS=yCONFIG_HAVE_KVM_NO_POLL=yCONFIG_KVM_XFER_TO_GUEST_WORK=yCONFIG_HAVE_KVM_PM_NOTIFIER=yCONFIG_KVM_GENERIC_HARDWARE_ENABLING=yCONFIG_VIRTUALIZATION=yCONFIG_KVM=m
# CONFIG_KVM_WERROR is not setCONFIG_KVM_INTEL=mCONFIG_KVM_SMM=y
# CONFIG_KVM_XEN is not set
# CONFIG_KVM_PROVE_MMU is not setCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=yCONFIG_AS_GFNI=yCONFIG_AS_WRUSS=y
#
# General architecture-dependent options
#CONFIG_HOTPLUG_SMT=y CONFIG_HOTPLUG_CORE_SYNC=y CONFIG_HOTPLUG_CORE_SYNC_DEAD=y CONFIG_HOTPLUG_CORE_SYNC_FULL=y CONFIG_HOTPLUG_SPLIT_STARTUP=y CONFIG_HOTPLUG_PARALLEL=y CONFIG_GENERIC_ENTRY=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=y
# CONFIG_STATIC_KEYS_SELFTEST is not set
# CONFIG_STATIC_CALL_SELFTEST is not set CONFIG_OPTPROBES=y CONFIG_KPROBES_ON_FTRACE=yCONFIG_UPROBES=y CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=y CONFIG_ARCH_USE_BUILTIN_BSWAP=y CONFIG_KRETPROBES=y CONFIG_KRETPROBE_ON_RETHOOK=y CONFIG_USER_RETURN_NOTIFIER=y CONFIG_HAVE_IOREMAP_PROT=y CONFIG_HAVE_KPROBES=y CONFIG_HAVE_KRETPROBES=y CONFIG_HAVE_OPTPROBES=y CONFIG_HAVE_KPROBES_ON_FTRACE=y CONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=y CONFIG_HAVE_FUNCTION_ERROR_INJECTION=y CONFIG_HAVE_NMI=y CONFIG_TRACE_IRQFLAGS_SUPPORT=y CONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=y CONFIG_HAVE_ARCH_TRACEHOOK=y CONFIG_HAVE_DMA_CONTIGUOUS=y CONFIG_GENERIC_SMP_IDLE_THREAD=y CONFIG_ARCH_HAS_FORTIFY_SOURCE=y CONFIG_ARCH_HAS_SET_MEMORY=y CONFIG_ARCH_HAS_SET_DIRECT_MAP=y CONFIG_ARCH_HAS_CPU_FINALIZE_INIT=y CONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=y CONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=y CONFIG_ARCH_WANTS_NO_INSTR=y CONFIG_HAVE_ASM_MODVERSIONS=y CONFIG_HAVE_REGS_AND_STACK_ACCESS_API=y CONFIG_HAVE_RSEQ=yCONFIG_HAVE_RUST=y CONFIG_HAVE_FUNCTION_ARG_ACCESS_API=y CONFIG_HAVE_HW_BREAKPOINT=y CONFIG_HAVE_MIXED_BREAKPOINTS_REGS=y CONFIG_HAVE_USER_RETURN_NOTIFIER=y CONFIG_HAVE_PERF_EVENTS_NMI=y CONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=y CONFIG_HAVE_PERF_REGS=y CONFIG_HAVE_PERF_USER_STACK_DUMP=y CONFIG_HAVE_ARCH_JUMP_LABEL=y CONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=y CONFIG_MMU_GATHER_TABLE_FREE=y CONFIG_MMU_GATHER_RCU_TABLE_FREE=y CONFIG_MMU_GATHER_MERGE_VMAS=y CONFIG_MMU_LAZY_TLB_REFCOUNT=y CONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=y CONFIG_ARCH_HAS_NMI_SAFE_THIS_CPU_OPS=y CONFIG_HAVE_ALIGNED_STRUCT_PAGE=y CONFIG_HAVE_CMPXCHG_LOCAL=y CONFIG_HAVE_CMPXCHG_DOUBLE=y CONFIG_ARCH_WANT_COMPAT_IPC_PARSE_VERSION=y CONFIG_ARCH_WANT_OLD_COMPAT_IPC=y CONFIG_HAVE_ARCH_SECCOMP=y CONFIG_HAVE_ARCH_SECCOMP_FILTER=y CONFIG_SECCOMP=yCONFIG_SECCOMP_FILTER=y
# CONFIG_SECCOMP_CACHE_DEBUG is not set CONFIG_HAVE_ARCH_STACKLEAK=y CONFIG_HAVE_STACKPROTECTOR=y CONFIG_STACKPROTECTOR=y CONFIG_STACKPROTECTOR_STRONG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG=y CONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=y CONFIG_LTO_NONE=y CONFIG_ARCH_SUPPORTS_CFI_CLANG=y CONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=y CONFIG_HAVE_CONTEXT_TRACKING_USER=y CONFIG_HAVE_CONTEXT_TRACKING_USER_OFFSTACK=y CONFIG_HAVE_VIRT_CPU_ACCOUNTING_GEN=y CONFIG_HAVE_IRQ_TIME_ACCOUNTING=y CONFIG_HAVE_MOVE_PUD=y CONFIG_HAVE_MOVE_PMD=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=y CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD=y CONFIG_HAVE_ARCH_HUGE_VMAP=y CONFIG_HAVE_ARCH_HUGE_VMALLOC=y CONFIG_ARCH_WANT_HUGE_PMD_SHARE=y CONFIG_ARCH_WANT_PMD_MKWRITE=y CONFIG_HAVE_ARCH_SOFT_DIRTY=y CONFIG_HAVE_MOD_ARCH_SPECIFIC=y CONFIG_MODULES_USE_ELF_RELA=y CONFIG_HAVE_IRQ_EXIT_ON_IRQ_STACK=y CONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=y CONFIG_SOFTIRQ_ON_OWN_STACK=y CONFIG_ARCH_HAS_ELF_RANDOMIZE=y CONFIG_HAVE_ARCH_MMAP_RND_BITS=y CONFIG_HAVE_EXIT_THREAD=y CONFIG_ARCH_MMAP_RND_BITS=28 CONFIG_HAVE_ARCH_MMAP_RND_COMPAT_BITS=y CONFIG_ARCH_MMAP_RND_COMPAT_BITS=8 CONFIG_HAVE_ARCH_COMPAT_MMAP_BASES=y CONFIG_PAGE_SIZE_LESS_THAN_64KB=y CONFIG_PAGE_SIZE_LESS_THAN_256KB=y CONFIG_HAVE_OBJTOOL=y CONFIG_HAVE_JUMP_LABEL_HACK=y CONFIG_HAVE_NOINSTR_HACK=y CONFIG_HAVE_NOINSTR_VALIDATION=y CONFIG_HAVE_UACCESS_VALIDATION=y CONFIG_HAVE_STACK_VALIDATION=y CONFIG_HAVE_RELIABLE_STACKTRACE=y CONFIG_OLD_SIGSUSPEND3=y CONFIG_COMPAT_OLD_SIGACTION=y CONFIG_COMPAT_32BIT_TIME=y CONFIG_HAVE_ARCH_VMAP_STACK=y CONFIG_VMAP_STACK=y CONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=y CONFIG_RANDOMIZE_KSTACK_OFFSET=y
# CONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT is not set CONFIG_ARCH_HAS_STRICT_KERNEL_RWX=y CONFIG_STRICT_KERNEL_RWX=y CONFIG_ARCH_HAS_STRICT_MODULE_RWX=y CONFIG_STRICT_MODULE_RWX=y CONFIG_HAVE_ARCH_PREL32_RELOCATIONS=y CONFIG_ARCH_USE_MEMREMAP_PROT=y
# CONFIG_LOCK_EVENT_COUNTS is not set CONFIG_ARCH_HAS_MEM_ENCRYPT=y CONFIG_HAVE_STATIC_CALL=y CONFIG_HAVE_STATIC_CALL_INLINE=y CONFIG_HAVE_PREEMPT_DYNAMIC=y CONFIG_HAVE_PREEMPT_DYNAMIC_CALL=y CONFIG_ARCH_WANT_LD_ORPHAN_WARN=y CONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=y CONFIG_ARCH_SUPPORTS_PAGE_TABLE_CHECK=y CONFIG_ARCH_HAS_ELFCORE_COMPAT=y CONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=y CONFIG_DYNAMIC_SIGFRAME=y CONFIG_ARCH_HAS_NONLEAF_PMD_YOUNG=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_GCC_PLUGINS=y
# CONFIG_GCC_PLUGIN_LATENT_ENTROPY is not setCONFIG_FUNCTION_ALIGNMENT_4B=yCONFIG_FUNCTION_ALIGNMENT_16B=yCONFIG_FUNCTION_ALIGNMENT=16
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULE_SIG_FORMAT=yCONFIG_MODULES=y
# CONFIG_MODULE_DEBUG is not set CONFIG_MODULE_FORCE_LOAD=yCONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
# CONFIG_MODULE_UNLOAD_TAINT_TRACKING is not set # CONFIG_MODVERSIONS is not set
# CONFIG_MODULE_SRCVERSION_ALL is not set CONFIG_MODULE_SIG=y
# CONFIG_MODULE_SIG_FORCE is not set CONFIG_MODULE_SIG_ALL=y
# CONFIG_MODULE_SIG_SHA1 is not set
# CONFIG_MODULE_SIG_SHA224 is not set CONFIG_MODULE_SIG_SHA256=y
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not set CONFIG_MODULE_SIG_HASH="sha256" CONFIG_MODULE_COMPRESS_NONE=y
# CONFIG_MODULE_COMPRESS_GZIP is not set
# CONFIG_MODULE_COMPRESS_XZ is not set
# CONFIG_MODULE_COMPRESS_ZSTD is not set
# CONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS is not set CONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not set CONFIG_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLOCK_LEGACY_AUTOLOAD=y CONFIG_BLK_CGROUP_RWSTAT=y CONFIG_BLK_CGROUP_PUNT_BIO=y CONFIG_BLK_DEV_BSG_COMMON=yCONFIG_BLK_ICQ=yCONFIG_BLK_DEV_BSGLIB=y CONFIG_BLK_DEV_INTEGRITY=y CONFIG_BLK_DEV_INTEGRITY_T10=m
# CONFIG_BLK_DEV_ZONED is not set CONFIG_BLK_DEV_THROTTLING=y
# CONFIG_BLK_DEV_THROTTLING_LOW is not set CONFIG_BLK_WBT=yCONFIG_BLK_WBT_MQ=y
# CONFIG_BLK_CGROUP_IOLATENCY is not set
# CONFIG_BLK_CGROUP_IOCOST is not set
# CONFIG_BLK_CGROUP_IOPRIO is not set CONFIG_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=yCONFIG_BLK_PM=yCONFIG_BLOCK_HOLDER_DEPRECATED=yCONFIG_BLK_MQ_STACKING=y
#
# IO Schedulers
#CONFIG_MQ_IOSCHED_DEADLINE=yCONFIG_MQ_IOSCHED_KYBER=yCONFIG_IOSCHED_BFQ=yCONFIG_BFQ_GROUP_IOSCHED=y
# CONFIG_BFQ_CGROUP_DEBUG is not set
# end of IO Schedulers
CONFIG_PREEMPT_NOTIFIERS=yCONFIG_PADATA=yCONFIG_ASN1=yCONFIG_INLINE_SPIN_UNLOCK_IRQ=yCONFIG_INLINE_READ_UNLOCK=yCONFIG_INLINE_READ_UNLOCK_IRQ=yCONFIG_INLINE_WRITE_UNLOCK=yCONFIG_INLINE_WRITE_UNLOCK_IRQ=yCONFIG_ARCH_SUPPORTS_ATOMIC_RMW=yCONFIG_MUTEX_SPIN_ON_OWNER=yCONFIG_RWSEM_SPIN_ON_OWNER=yCONFIG_LOCK_SPIN_ON_OWNER=yCONFIG_ARCH_USE_QUEUED_SPINLOCKS=yCONFIG_QUEUED_SPINLOCKS=yCONFIG_ARCH_USE_QUEUED_RWLOCKS=yCONFIG_QUEUED_RWLOCKS=yCONFIG_ARCH_HAS_NON_OVERLAPPING_ADDRESS_SPACE=yCONFIG_ARCH_HAS_SYNC_CORE_BEFORE_USERMODE=yCONFIG_ARCH_HAS_SYSCALL_WRAPPER=yCONFIG_FREEZER=y
#
# Executable file formats
#CONFIG_BINFMT_ELF=yCONFIG_COMPAT_BINFMT_ELF=yCONFIG_ELFCORE=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_BINFMT_SCRIPT=yCONFIG_BINFMT_MISC=mCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#CONFIG_ZPOOL=yCONFIG_SWAP=yCONFIG_ZSWAP=y
# CONFIG_ZSWAP_DEFAULT_ON is not set
# CONFIG_ZSWAP_EXCLUSIVE_LOADS_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=y
# CONFIG_ZSWAP_ZPOOL_DEFAULT_Z3FOLD is not set # CONFIG_ZSWAP_ZPOOL_DEFAULT_ZSMALLOC is not set CONFIG_ZSWAP_ZPOOL_DEFAULT="zbud" CONFIG_ZBUD=y
# CONFIG_Z3FOLD is not setCONFIG_ZSMALLOC=yCONFIG_ZSMALLOC_STAT=y CONFIG_ZSMALLOC_CHAIN_SIZE=8
#
# SLAB allocator options
#
# CONFIG_SLAB_DEPRECATED is not setCONFIG_SLUB=y
# CONFIG_SLUB_TINY is not setCONFIG_SLAB_MERGE_DEFAULT=yCONFIG_SLAB_FREELIST_RANDOM=y
# CONFIG_SLAB_FREELIST_HARDENED is not set
# CONFIG_SLUB_STATS is not setCONFIG_SLUB_CPU_PARTIAL=y
# CONFIG_RANDOM_KMALLOC_CACHES is not set
# end of SLAB allocator options
CONFIG_SHUFFLE_PAGE_ALLOCATOR=y
# CONFIG_COMPAT_BRK is not setCONFIG_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_FAST_GUP=yCONFIG_NUMA_KEEP_MEMINFO=yCONFIG_MEMORY_ISOLATION=yCONFIG_EXCLUSIVE_SYSTEM_RAM=yCONFIG_HAVE_BOOTMEM_INFO_NODE=yCONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=yCONFIG_ARCH_ENABLE_MEMORY_HOTREMOVE=yCONFIG_MEMORY_HOTPLUG=y
# CONFIG_MEMORY_HOTPLUG_DEFAULT_ONLINE is not setCONFIG_MEMORY_HOTREMOVE=yCONFIG_MHP_MEMMAP_ON_MEMORY=yCONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=yCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_ARCH_ENABLE_SPLIT_PMD_PTLOCK=yCONFIG_MEMORY_BALLOON=yCONFIG_BALLOON_COMPACTION=yCONFIG_COMPACTION=yCONFIG_COMPACT_UNEVICTABLE_DEFAULT=1CONFIG_PAGE_REPORTING=yCONFIG_MIGRATION=yCONFIG_DEVICE_MIGRATION=yCONFIG_ARCH_ENABLE_HUGEPAGE_MIGRATION=yCONFIG_ARCH_ENABLE_THP_MIGRATION=yCONFIG_CONTIG_ALLOC=yCONFIG_PHYS_ADDR_T_64BIT=yCONFIG_MMU_NOTIFIER=yCONFIG_KSM=yCONFIG_DEFAULT_MMAP_MIN_ADDR=4096CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=yCONFIG_MEMORY_FAILURE=yCONFIG_HWPOISON_INJECT=mCONFIG_ARCH_WANT_GENERAL_HUGETLB=yCONFIG_ARCH_WANTS_THP_SWAP=yCONFIG_TRANSPARENT_HUGEPAGE=yCONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not setCONFIG_THP_SWAP=y
# CONFIG_READ_ONLY_THP_FOR_FS is not setCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=yCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=yCONFIG_USE_PERCPU_NUMA_NODE_ID=yCONFIG_HAVE_SETUP_PER_CPU_AREA=y
# CONFIG_CMA is not setCONFIG_GENERIC_EARLY_IOREMAP=yCONFIG_DEFERRED_STRUCT_PAGE_INIT=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_ARCH_HAS_ZONE_DMA_SET=yCONFIG_ZONE_DMA=yCONFIG_ZONE_DMA32=yCONFIG_ZONE_DEVICE=yCONFIG_GET_FREE_REGION=yCONFIG_DEVICE_PRIVATE=yCONFIG_VMAP_PFN=yCONFIG_ARCH_USES_HIGH_VMA_FLAGS=yCONFIG_ARCH_HAS_PKEYS=yCONFIG_VM_EVENT_COUNTERS=y
# CONFIG_PERCPU_STATS is not set
# CONFIG_GUP_TEST is not set
# CONFIG_DMAPOOL_TEST is not setCONFIG_ARCH_HAS_PTE_SPECIAL=yCONFIG_MEMFD_CREATE=yCONFIG_SECRETMEM=y
# CONFIG_ANON_VMA_NAME is not setCONFIG_USERFAULTFD=yCONFIG_HAVE_ARCH_USERFAULTFD_WP=yCONFIG_HAVE_ARCH_USERFAULTFD_MINOR=yCONFIG_PTE_MARKER_UFFD_WP=y
# CONFIG_LRU_GEN is not setCONFIG_ARCH_SUPPORTS_PER_VMA_LOCK=yCONFIG_PER_VMA_LOCK=yCONFIG_LOCK_MM_AND_FIND_VMA=y
#
# Data Access Monitoring
#
# CONFIG_DAMON is not set
# end of Data Access Monitoring # end of Memory Management options
CONFIG_NET=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_NET_XGRESS=yCONFIG_SKB_EXTENSIONS=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_DIAG=mCONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_AF_UNIX_OOB=yCONFIG_UNIX_DIAG=mCONFIG_TLS=mCONFIG_TLS_DEVICE=y
# CONFIG_TLS_TOE is not setCONFIG_XFRM=yCONFIG_XFRM_OFFLOAD=yCONFIG_XFRM_ALGO=yCONFIG_XFRM_USER=y
# CONFIG_XFRM_USER_COMPAT is not set
# CONFIG_XFRM_INTERFACE is not setCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=yCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_AH=mCONFIG_XFRM_ESP=mCONFIG_XFRM_IPCOMP=m
# CONFIG_NET_KEY is not setCONFIG_XDP_SOCKETS=y
# CONFIG_XDP_SOCKETS_DIAG is not setCONFIG_NET_HANDSHAKE=yCONFIG_INET=yCONFIG_IP_MULTICAST=yCONFIG_IP_ADVANCED_ROUTER=yCONFIG_IP_FIB_TRIE_STATS=yCONFIG_IP_MULTIPLE_TABLES=yCONFIG_IP_ROUTE_MULTIPATH=yCONFIG_IP_ROUTE_VERBOSE=yCONFIG_IP_ROUTE_CLASSID=yCONFIG_IP_PNP=yCONFIG_IP_PNP_DHCP=y
# CONFIG_IP_PNP_BOOTP is not set
# CONFIG_IP_PNP_RARP is not setCONFIG_NET_IPIP=mCONFIG_NET_IPGRE_DEMUX=mCONFIG_NET_IP_TUNNEL=mCONFIG_NET_IPGRE=mCONFIG_NET_IPGRE_BROADCAST=yCONFIG_IP_MROUTE_COMMON=yCONFIG_IP_MROUTE=yCONFIG_IP_MROUTE_MULTIPLE_TABLES=yCONFIG_IP_PIMSM_V1=yCONFIG_IP_PIMSM_V2=yCONFIG_SYN_COOKIES=yCONFIG_NET_IPVTI=mCONFIG_NET_UDP_TUNNEL=m
# CONFIG_NET_FOU is not set
# CONFIG_NET_FOU_IP_TUNNELS is not setCONFIG_INET_AH=mCONFIG_INET_ESP=mCONFIG_INET_ESP_OFFLOAD=m
# CONFIG_INET_ESPINTCP is not setCONFIG_INET_IPCOMP=mCONFIG_INET_TABLE_PERTURB_ORDER=16CONFIG_INET_XFRM_TUNNEL=mCONFIG_INET_TUNNEL=mCONFIG_INET_DIAG=mCONFIG_INET_TCP_DIAG=mCONFIG_INET_UDP_DIAG=mCONFIG_INET_RAW_DIAG=m
# CONFIG_INET_DIAG_DESTROY is not setCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=mCONFIG_TCP_CONG_CUBIC=yCONFIG_TCP_CONG_WESTWOOD=mCONFIG_TCP_CONG_HTCP=mCONFIG_TCP_CONG_HSTCP=mCONFIG_TCP_CONG_HYBLA=mCONFIG_TCP_CONG_VEGAS=mCONFIG_TCP_CONG_NV=mCONFIG_TCP_CONG_SCALABLE=mCONFIG_TCP_CONG_LP=mCONFIG_TCP_CONG_VENO=mCONFIG_TCP_CONG_YEAH=mCONFIG_TCP_CONG_ILLINOIS=mCONFIG_TCP_CONG_DCTCP=m
# CONFIG_TCP_CONG_CDG is not setCONFIG_TCP_CONG_BBR=mCONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_RENO is not setCONFIG_DEFAULT_TCP_CONG="cubic"CONFIG_TCP_MD5SIG=yCONFIG_IPV6=yCONFIG_IPV6_ROUTER_PREF=yCONFIG_IPV6_ROUTE_INFO=yCONFIG_IPV6_OPTIMISTIC_DAD=yCONFIG_INET6_AH=mCONFIG_INET6_ESP=mCONFIG_INET6_ESP_OFFLOAD=m
# CONFIG_INET6_ESPINTCP is not setCONFIG_INET6_IPCOMP=mCONFIG_IPV6_MIP6=m
# CONFIG_IPV6_ILA is not setCONFIG_INET6_XFRM_TUNNEL=mCONFIG_INET6_TUNNEL=mCONFIG_IPV6_VTI=mCONFIG_IPV6_SIT=mCONFIG_IPV6_SIT_6RD=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=mCONFIG_IPV6_GRE=mCONFIG_IPV6_MULTIPLE_TABLES=y
# CONFIG_IPV6_SUBTREES is not setCONFIG_IPV6_MROUTE=yCONFIG_IPV6_MROUTE_MULTIPLE_TABLES=yCONFIG_IPV6_PIMSM_V2=y
# CONFIG_IPV6_SEG6_LWTUNNEL is not set
# CONFIG_IPV6_SEG6_HMAC is not set
# CONFIG_IPV6_RPL_LWTUNNEL is not set
# CONFIG_IPV6_IOAM6_LWTUNNEL is not setCONFIG_NETLABEL=y
# CONFIG_MPTCP is not setCONFIG_NETWORK_SECMARK=yCONFIG_NET_PTP_CLASSIFY=yCONFIG_NETWORK_PHY_TIMESTAMPING=yCONFIG_NETFILTER=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=m
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_INGRESS=yCONFIG_NETFILTER_EGRESS=yCONFIG_NETFILTER_SKIP_EGRESS=yCONFIG_NETFILTER_NETLINK=mCONFIG_NETFILTER_FAMILY_BRIDGE=yCONFIG_NETFILTER_FAMILY_ARP=yCONFIG_NETFILTER_BPF_LINK=y
# CONFIG_NETFILTER_NETLINK_HOOK is not set
# CONFIG_NETFILTER_NETLINK_ACCT is not setCONFIG_NETFILTER_NETLINK_QUEUE=mCONFIG_NETFILTER_NETLINK_LOG=mCONFIG_NETFILTER_NETLINK_OSF=mCONFIG_NF_CONNTRACK=mCONFIG_NF_LOG_SYSLOG=mCONFIG_NETFILTER_CONNCOUNT=mCONFIG_NF_CONNTRACK_MARK=yCONFIG_NF_CONNTRACK_SECMARK=yCONFIG_NF_CONNTRACK_ZONES=yCONFIG_NF_CONNTRACK_PROCFS=yCONFIG_NF_CONNTRACK_EVENTS=yCONFIG_NF_CONNTRACK_TIMEOUT=yCONFIG_NF_CONNTRACK_TIMESTAMP=yCONFIG_NF_CONNTRACK_LABELS=yCONFIG_NF_CONNTRACK_OVS=yCONFIG_NF_CT_PROTO_DCCP=yCONFIG_NF_CT_PROTO_GRE=yCONFIG_NF_CT_PROTO_SCTP=yCONFIG_NF_CT_PROTO_UDPLITE=yCONFIG_NF_CONNTRACK_AMANDA=mCONFIG_NF_CONNTRACK_FTP=mCONFIG_NF_CONNTRACK_H323=mCONFIG_NF_CONNTRACK_IRC=mCONFIG_NF_CONNTRACK_BROADCAST=mCONFIG_NF_CONNTRACK_NETBIOS_NS=mCONFIG_NF_CONNTRACK_SNMP=mCONFIG_NF_CONNTRACK_PPTP=mCONFIG_NF_CONNTRACK_SANE=mCONFIG_NF_CONNTRACK_SIP=mCONFIG_NF_CONNTRACK_TFTP=mCONFIG_NF_CT_NETLINK=mCONFIG_NF_CT_NETLINK_TIMEOUT=mCONFIG_NF_CT_NETLINK_HELPER=mCONFIG_NETFILTER_NETLINK_GLUE_CT=yCONFIG_NF_NAT=mCONFIG_NF_NAT_AMANDA=mCONFIG_NF_NAT_FTP=mCONFIG_NF_NAT_IRC=mCONFIG_NF_NAT_SIP=mCONFIG_NF_NAT_TFTP=mCONFIG_NF_NAT_REDIRECT=yCONFIG_NF_NAT_MASQUERADE=yCONFIG_NF_NAT_OVS=yCONFIG_NETFILTER_SYNPROXY=mCONFIG_NF_TABLES=mCONFIG_NF_TABLES_INET=yCONFIG_NF_TABLES_NETDEV=yCONFIG_NFT_NUMGEN=mCONFIG_NFT_CT=mCONFIG_NFT_CONNLIMIT=mCONFIG_NFT_LOG=mCONFIG_NFT_LIMIT=mCONFIG_NFT_MASQ=mCONFIG_NFT_REDIR=mCONFIG_NFT_NAT=m
# CONFIG_NFT_TUNNEL is not setCONFIG_NFT_QUEUE=mCONFIG_NFT_QUOTA=mCONFIG_NFT_REJECT=mCONFIG_NFT_REJECT_INET=mCONFIG_NFT_COMPAT=mCONFIG_NFT_HASH=mCONFIG_NFT_FIB=mCONFIG_NFT_FIB_INET=m
# CONFIG_NFT_XFRM is not setCONFIG_NFT_SOCKET=m
# CONFIG_NFT_OSF is not set
# CONFIG_NFT_TPROXY is not set
# CONFIG_NFT_SYNPROXY is not setCONFIG_NF_DUP_NETDEV=mCONFIG_NFT_DUP_NETDEV=mCONFIG_NFT_FWD_NETDEV=mCONFIG_NFT_FIB_NETDEV=m
# CONFIG_NFT_REJECT_NETDEV is not set
# CONFIG_NF_FLOW_TABLE is not setCONFIG_NETFILTER_XTABLES=y
# CONFIG_NETFILTER_XTABLES_COMPAT is not set
#
# Xtables combined modules
#CONFIG_NETFILTER_XT_MARK=mCONFIG_NETFILTER_XT_CONNMARK=m
#
# Xtables targets
#CONFIG_NETFILTER_XT_TARGET_AUDIT=mCONFIG_NETFILTER_XT_TARGET_CHECKSUM=mCONFIG_NETFILTER_XT_TARGET_CLASSIFY=mCONFIG_NETFILTER_XT_TARGET_CONNMARK=mCONFIG_NETFILTER_XT_TARGET_CONNSECMARK=mCONFIG_NETFILTER_XT_TARGET_CT=mCONFIG_NETFILTER_XT_TARGET_DSCP=mCONFIG_NETFILTER_XT_TARGET_HL=mCONFIG_NETFILTER_XT_TARGET_HMARK=mCONFIG_NETFILTER_XT_TARGET_IDLETIMER=m
# CONFIG_NETFILTER_XT_TARGET_LED is not setCONFIG_NETFILTER_XT_TARGET_LOG=mCONFIG_NETFILTER_XT_TARGET_MARK=mCONFIG_NETFILTER_XT_NAT=mCONFIG_NETFILTER_XT_TARGET_NETMAP=mCONFIG_NETFILTER_XT_TARGET_NFLOG=mCONFIG_NETFILTER_XT_TARGET_NFQUEUE=mCONFIG_NETFILTER_XT_TARGET_NOTRACK=mCONFIG_NETFILTER_XT_TARGET_RATEEST=mCONFIG_NETFILTER_XT_TARGET_REDIRECT=mCONFIG_NETFILTER_XT_TARGET_MASQUERADE=mCONFIG_NETFILTER_XT_TARGET_TEE=mCONFIG_NETFILTER_XT_TARGET_TPROXY=mCONFIG_NETFILTER_XT_TARGET_TRACE=mCONFIG_NETFILTER_XT_TARGET_SECMARK=mCONFIG_NETFILTER_XT_TARGET_TCPMSS=mCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m
#
# Xtables matches
#CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=mCONFIG_NETFILTER_XT_MATCH_BPF=mCONFIG_NETFILTER_XT_MATCH_CGROUP=mCONFIG_NETFILTER_XT_MATCH_CLUSTER=mCONFIG_NETFILTER_XT_MATCH_COMMENT=mCONFIG_NETFILTER_XT_MATCH_CONNBYTES=mCONFIG_NETFILTER_XT_MATCH_CONNLABEL=mCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=mCONFIG_NETFILTER_XT_MATCH_CONNMARK=mCONFIG_NETFILTER_XT_MATCH_CONNTRACK=mCONFIG_NETFILTER_XT_MATCH_CPU=mCONFIG_NETFILTER_XT_MATCH_DCCP=mCONFIG_NETFILTER_XT_MATCH_DEVGROUP=mCONFIG_NETFILTER_XT_MATCH_DSCP=mCONFIG_NETFILTER_XT_MATCH_ECN=mCONFIG_NETFILTER_XT_MATCH_ESP=mCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=mCONFIG_NETFILTER_XT_MATCH_HELPER=mCONFIG_NETFILTER_XT_MATCH_HL=m
# CONFIG_NETFILTER_XT_MATCH_IPCOMP is not setCONFIG_NETFILTER_XT_MATCH_IPRANGE=mCONFIG_NETFILTER_XT_MATCH_IPVS=m
# CONFIG_NETFILTER_XT_MATCH_L2TP is not setCONFIG_NETFILTER_XT_MATCH_LENGTH=mCONFIG_NETFILTER_XT_MATCH_LIMIT=mCONFIG_NETFILTER_XT_MATCH_MAC=mCONFIG_NETFILTER_XT_MATCH_MARK=mCONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
# CONFIG_NETFILTER_XT_MATCH_NFACCT is not setCONFIG_NETFILTER_XT_MATCH_OSF=mCONFIG_NETFILTER_XT_MATCH_OWNER=mCONFIG_NETFILTER_XT_MATCH_POLICY=mCONFIG_NETFILTER_XT_MATCH_PHYSDEV=mCONFIG_NETFILTER_XT_MATCH_PKTTYPE=mCONFIG_NETFILTER_XT_MATCH_QUOTA=mCONFIG_NETFILTER_XT_MATCH_RATEEST=mCONFIG_NETFILTER_XT_MATCH_REALM=mCONFIG_NETFILTER_XT_MATCH_RECENT=mCONFIG_NETFILTER_XT_MATCH_SCTP=mCONFIG_NETFILTER_XT_MATCH_SOCKET=mCONFIG_NETFILTER_XT_MATCH_STATE=mCONFIG_NETFILTER_XT_MATCH_STATISTIC=mCONFIG_NETFILTER_XT_MATCH_STRING=mCONFIG_NETFILTER_XT_MATCH_TCPMSS=m
# CONFIG_NETFILTER_XT_MATCH_TIME is not set
# CONFIG_NETFILTER_XT_MATCH_U32 is not set
# end of Core Netfilter Configuration
# CONFIG_IP_SET is not setCONFIG_IP_VS=mCONFIG_IP_VS_IPV6=y
# CONFIG_IP_VS_DEBUG is not setCONFIG_IP_VS_TAB_BITS=12
#
# IPVS transport protocol load balancing support
#CONFIG_IP_VS_PROTO_TCP=yCONFIG_IP_VS_PROTO_UDP=yCONFIG_IP_VS_PROTO_AH_ESP=yCONFIG_IP_VS_PROTO_ESP=yCONFIG_IP_VS_PROTO_AH=yCONFIG_IP_VS_PROTO_SCTP=y
#
# IPVS scheduler
#CONFIG_IP_VS_RR=mCONFIG_IP_VS_WRR=mCONFIG_IP_VS_LC=mCONFIG_IP_VS_WLC=mCONFIG_IP_VS_FO=mCONFIG_IP_VS_OVF=mCONFIG_IP_VS_LBLC=mCONFIG_IP_VS_LBLCR=mCONFIG_IP_VS_DH=mCONFIG_IP_VS_SH=m
# CONFIG_IP_VS_MH is not setCONFIG_IP_VS_SED=mCONFIG_IP_VS_NQ=m
# CONFIG_IP_VS_TWOS is not set
#
# IPVS SH scheduler
#CONFIG_IP_VS_SH_TAB_BITS=8
#
# IPVS MH scheduler
#CONFIG_IP_VS_MH_TAB_INDEX=12
#
# IPVS application helper
#CONFIG_IP_VS_FTP=mCONFIG_IP_VS_NFCT=yCONFIG_IP_VS_PE_SIP=m
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=mCONFIG_NF_SOCKET_IPV4=mCONFIG_NF_TPROXY_IPV4=mCONFIG_NF_TABLES_IPV4=yCONFIG_NFT_REJECT_IPV4=mCONFIG_NFT_DUP_IPV4=mCONFIG_NFT_FIB_IPV4=mCONFIG_NF_TABLES_ARP=yCONFIG_NF_DUP_IPV4=mCONFIG_NF_LOG_ARP=mCONFIG_NF_LOG_IPV4=mCONFIG_NF_REJECT_IPV4=mCONFIG_NF_NAT_SNMP_BASIC=mCONFIG_NF_NAT_PPTP=mCONFIG_NF_NAT_H323=mCONFIG_IP_NF_IPTABLES=mCONFIG_IP_NF_MATCH_AH=mCONFIG_IP_NF_MATCH_ECN=mCONFIG_IP_NF_MATCH_RPFILTER=mCONFIG_IP_NF_MATCH_TTL=mCONFIG_IP_NF_FILTER=mCONFIG_IP_NF_TARGET_REJECT=mCONFIG_IP_NF_TARGET_SYNPROXY=mCONFIG_IP_NF_NAT=mCONFIG_IP_NF_TARGET_MASQUERADE=mCONFIG_IP_NF_TARGET_NETMAP=mCONFIG_IP_NF_TARGET_REDIRECT=mCONFIG_IP_NF_MANGLE=mCONFIG_IP_NF_TARGET_ECN=mCONFIG_IP_NF_TARGET_TTL=mCONFIG_IP_NF_RAW=mCONFIG_IP_NF_SECURITY=mCONFIG_IP_NF_ARPTABLES=mCONFIG_IP_NF_ARPFILTER=mCONFIG_IP_NF_ARP_MANGLE=m
# end of IP: Netfilter Configuration
#
# IPv6: Netfilter Configuration
#CONFIG_NF_SOCKET_IPV6=mCONFIG_NF_TPROXY_IPV6=mCONFIG_NF_TABLES_IPV6=yCONFIG_NFT_REJECT_IPV6=mCONFIG_NFT_DUP_IPV6=mCONFIG_NFT_FIB_IPV6=mCONFIG_NF_DUP_IPV6=mCONFIG_NF_REJECT_IPV6=mCONFIG_NF_LOG_IPV6=mCONFIG_IP6_NF_IPTABLES=mCONFIG_IP6_NF_MATCH_AH=mCONFIG_IP6_NF_MATCH_EUI64=mCONFIG_IP6_NF_MATCH_FRAG=mCONFIG_IP6_NF_MATCH_OPTS=mCONFIG_IP6_NF_MATCH_HL=mCONFIG_IP6_NF_MATCH_IPV6HEADER=mCONFIG_IP6_NF_MATCH_MH=mCONFIG_IP6_NF_MATCH_RPFILTER=mCONFIG_IP6_NF_MATCH_RT=m
# CONFIG_IP6_NF_MATCH_SRH is not set
# CONFIG_IP6_NF_TARGET_HL is not setCONFIG_IP6_NF_FILTER=mCONFIG_IP6_NF_TARGET_REJECT=mCONFIG_IP6_NF_TARGET_SYNPROXY=mCONFIG_IP6_NF_MANGLE=mCONFIG_IP6_NF_RAW=mCONFIG_IP6_NF_SECURITY=mCONFIG_IP6_NF_NAT=mCONFIG_IP6_NF_TARGET_MASQUERADE=mCONFIG_IP6_NF_TARGET_NPT=m
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=mCONFIG_NF_TABLES_BRIDGE=m
# CONFIG_NFT_BRIDGE_META is not setCONFIG_NFT_BRIDGE_REJECT=m
# CONFIG_NF_CONNTRACK_BRIDGE is not setCONFIG_BRIDGE_NF_EBTABLES=mCONFIG_BRIDGE_EBT_BROUTE=mCONFIG_BRIDGE_EBT_T_FILTER=mCONFIG_BRIDGE_EBT_T_NAT=mCONFIG_BRIDGE_EBT_802_3=mCONFIG_BRIDGE_EBT_AMONG=mCONFIG_BRIDGE_EBT_ARP=mCONFIG_BRIDGE_EBT_IP=mCONFIG_BRIDGE_EBT_IP6=mCONFIG_BRIDGE_EBT_LIMIT=mCONFIG_BRIDGE_EBT_MARK=mCONFIG_BRIDGE_EBT_PKTTYPE=mCONFIG_BRIDGE_EBT_STP=mCONFIG_BRIDGE_EBT_VLAN=mCONFIG_BRIDGE_EBT_ARPREPLY=mCONFIG_BRIDGE_EBT_DNAT=mCONFIG_BRIDGE_EBT_MARK_T=mCONFIG_BRIDGE_EBT_REDIRECT=mCONFIG_BRIDGE_EBT_SNAT=mCONFIG_BRIDGE_EBT_LOG=mCONFIG_BRIDGE_EBT_NFLOG=m
# CONFIG_BPFILTER is not setCONFIG_IP_DCCP=yCONFIG_INET_DCCP_DIAG=m
#
# DCCP CCIDs Configuration
#
# CONFIG_IP_DCCP_CCID2_DEBUG is not setCONFIG_IP_DCCP_CCID3=y
# CONFIG_IP_DCCP_CCID3_DEBUG is not setCONFIG_IP_DCCP_TFRC_LIB=y
# end of DCCP CCIDs Configuration
#
# DCCP Kernel Hacking
#
# CONFIG_IP_DCCP_DEBUG is not set
# end of DCCP Kernel Hacking
CONFIG_IP_SCTP=m
# CONFIG_SCTP_DBG_OBJCNT is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5 is not setCONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not setCONFIG_SCTP_COOKIE_HMAC_MD5=yCONFIG_SCTP_COOKIE_HMAC_SHA1=yCONFIG_INET_SCTP_DIAG=m
# CONFIG_RDS is not set
# CONFIG_TIPC is not set
# CONFIG_ATM is not set
# CONFIG_L2TP is not setCONFIG_STP=mCONFIG_GARP=mCONFIG_MRP=mCONFIG_BRIDGE=mCONFIG_BRIDGE_IGMP_SNOOPING=yCONFIG_BRIDGE_VLAN_FILTERING=y
# CONFIG_BRIDGE_MRP is not set
# CONFIG_BRIDGE_CFM is not set
# CONFIG_NET_DSA is not setCONFIG_VLAN_8021Q=mCONFIG_VLAN_8021Q_GVRP=yCONFIG_VLAN_8021Q_MVRP=yCONFIG_LLC=m
# CONFIG_LLC2 is not set
# CONFIG_ATALK is not set
# CONFIG_X25 is not set
# CONFIG_LAPB is not set
# CONFIG_PHONET is not set
# CONFIG_6LOWPAN is not set
# CONFIG_IEEE802154 is not setCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_HTB=mCONFIG_NET_SCH_HFSC=mCONFIG_NET_SCH_PRIO=mCONFIG_NET_SCH_MULTIQ=mCONFIG_NET_SCH_RED=mCONFIG_NET_SCH_SFB=mCONFIG_NET_SCH_SFQ=mCONFIG_NET_SCH_TEQL=mCONFIG_NET_SCH_TBF=m
# CONFIG_NET_SCH_CBS is not set
# CONFIG_NET_SCH_ETF is not setCONFIG_NET_SCH_MQPRIO_LIB=m
# CONFIG_NET_SCH_TAPRIO is not setCONFIG_NET_SCH_GRED=mCONFIG_NET_SCH_NETEM=mCONFIG_NET_SCH_DRR=mCONFIG_NET_SCH_MQPRIO=m
# CONFIG_NET_SCH_SKBPRIO is not setCONFIG_NET_SCH_CHOKE=mCONFIG_NET_SCH_QFQ=mCONFIG_NET_SCH_CODEL=mCONFIG_NET_SCH_FQ_CODEL=y
# CONFIG_NET_SCH_CAKE is not setCONFIG_NET_SCH_FQ=mCONFIG_NET_SCH_HHF=mCONFIG_NET_SCH_PIE=m
# CONFIG_NET_SCH_FQ_PIE is not setCONFIG_NET_SCH_INGRESS=mCONFIG_NET_SCH_PLUG=m
# CONFIG_NET_SCH_ETS is not setCONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not set
# CONFIG_DEFAULT_CODEL is not setCONFIG_DEFAULT_FQ_CODEL=y
# CONFIG_DEFAULT_SFQ is not set
# CONFIG_DEFAULT_PFIFO_FAST is not setCONFIG_DEFAULT_NET_SCH="fq_codel"
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=mCONFIG_NET_CLS_ROUTE4=mCONFIG_NET_CLS_FW=mCONFIG_NET_CLS_U32=mCONFIG_CLS_U32_PERF=yCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_FLOW=mCONFIG_NET_CLS_CGROUP=yCONFIG_NET_CLS_BPF=mCONFIG_NET_CLS_FLOWER=mCONFIG_NET_CLS_MATCHALL=mCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=mCONFIG_NET_EMATCH_NBYTE=mCONFIG_NET_EMATCH_U32=mCONFIG_NET_EMATCH_META=mCONFIG_NET_EMATCH_TEXT=m
# CONFIG_NET_EMATCH_CANID is not set
# CONFIG_NET_EMATCH_IPT is not setCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=mCONFIG_NET_ACT_GACT=mCONFIG_GACT_PROB=yCONFIG_NET_ACT_MIRRED=mCONFIG_NET_ACT_SAMPLE=m
# CONFIG_NET_ACT_IPT is not setCONFIG_NET_ACT_NAT=mCONFIG_NET_ACT_PEDIT=mCONFIG_NET_ACT_SIMP=mCONFIG_NET_ACT_SKBEDIT=mCONFIG_NET_ACT_CSUM=m
# CONFIG_NET_ACT_MPLS is not setCONFIG_NET_ACT_VLAN=mCONFIG_NET_ACT_BPF=m
# CONFIG_NET_ACT_CONNMARK is not set
# CONFIG_NET_ACT_CTINFO is not setCONFIG_NET_ACT_SKBMOD=m
# CONFIG_NET_ACT_IFE is not setCONFIG_NET_ACT_TUNNEL_KEY=m
# CONFIG_NET_ACT_GATE is not set
# CONFIG_NET_TC_SKB_EXT is not setCONFIG_NET_SCH_FIFO=yCONFIG_DCB=yCONFIG_DNS_RESOLVER=m
# CONFIG_BATMAN_ADV is not setCONFIG_OPENVSWITCH=mCONFIG_OPENVSWITCH_GRE=mCONFIG_VSOCKETS=mCONFIG_VSOCKETS_DIAG=mCONFIG_VSOCKETS_LOOPBACK=mCONFIG_VIRTIO_VSOCKETS=mCONFIG_VIRTIO_VSOCKETS_COMMON=mCONFIG_HYPERV_VSOCKETS=mCONFIG_NETLINK_DIAG=mCONFIG_MPLS=yCONFIG_NET_MPLS_GSO=yCONFIG_MPLS_ROUTING=mCONFIG_MPLS_IPTUNNEL=mCONFIG_NET_NSH=y
# CONFIG_HSR is not setCONFIG_NET_SWITCHDEV=yCONFIG_NET_L3_MASTER_DEV=y
# CONFIG_QRTR is not set
# CONFIG_NET_NCSI is not setCONFIG_PCPU_DEV_REFCNT=yCONFIG_MAX_SKB_FRAGS=17CONFIG_RPS=yCONFIG_RFS_ACCEL=yCONFIG_SOCK_RX_QUEUE_MAPPING=yCONFIG_XPS=yCONFIG_CGROUP_NET_PRIO=yCONFIG_CGROUP_NET_CLASSID=yCONFIG_NET_RX_BUSY_POLL=yCONFIG_BQL=yCONFIG_BPF_STREAM_PARSER=yCONFIG_NET_FLOW_LIMIT=y
#
# Network testing
#CONFIG_NET_PKTGEN=mCONFIG_NET_DROP_MONITOR=y
# end of Network testing # end of Networking options
# CONFIG_HAMRADIO is not setCONFIG_CAN=mCONFIG_CAN_RAW=mCONFIG_CAN_BCM=mCONFIG_CAN_GW=m
# CONFIG_CAN_J1939 is not set
# CONFIG_CAN_ISOTP is not set
# CONFIG_BT is not set
# CONFIG_AF_RXRPC is not set
# CONFIG_AF_KCM is not setCONFIG_STREAM_PARSER=y
# CONFIG_MCTP is not setCONFIG_FIB_RULES=yCONFIG_WIRELESS=yCONFIG_CFG80211=m
# CONFIG_NL80211_TESTMODE is not set
# CONFIG_CFG80211_DEVELOPER_WARNINGS is not set
# CONFIG_CFG80211_CERTIFICATION_ONUS is not setCONFIG_CFG80211_REQUIRE_SIGNED_REGDB=yCONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=yCONFIG_CFG80211_DEFAULT_PS=y
# CONFIG_CFG80211_DEBUGFS is not setCONFIG_CFG80211_CRDA_SUPPORT=y
# CONFIG_CFG80211_WEXT is not setCONFIG_MAC80211=mCONFIG_MAC80211_HAS_RC=yCONFIG_MAC80211_RC_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT="minstrel_ht"
# CONFIG_MAC80211_MESH is not setCONFIG_MAC80211_LEDS=yCONFIG_MAC80211_DEBUGFS=y
# CONFIG_MAC80211_MESSAGE_TRACING is not set
# CONFIG_MAC80211_DEBUG_MENU is not setCONFIG_MAC80211_STA_HASH_MAX_SIZE=0CONFIG_RFKILL=mCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=y
# CONFIG_RFKILL_GPIO is not setCONFIG_NET_9P=yCONFIG_NET_9P_FD=yCONFIG_NET_9P_VIRTIO=y
# CONFIG_NET_9P_DEBUG is not set
# CONFIG_CAIF is not setCONFIG_CEPH_LIB=m
# CONFIG_CEPH_LIB_PRETTYDEBUG is not setCONFIG_CEPH_LIB_USE_DNS_RESOLVER=y
# CONFIG_NFC is not setCONFIG_PSAMPLE=m
# CONFIG_NET_IFE is not setCONFIG_LWTUNNEL=yCONFIG_LWTUNNEL_BPF=yCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=yCONFIG_SOCK_VALIDATE_XMIT=yCONFIG_NET_SELFTESTS=yCONFIG_NET_SOCK_MSG=yCONFIG_PAGE_POOL=y
# CONFIG_PAGE_POOL_STATS is not setCONFIG_FAILOVER=mCONFIG_ETHTOOL_NETLINK=y
#
# Device Drivers
#CONFIG_HAVE_EISA=y
# CONFIG_EISA is not setCONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=yCONFIG_HOTPLUG_PCI_PCIE=yCONFIG_PCIEAER=yCONFIG_PCIEAER_INJECT=mCONFIG_PCIE_ECRC=yCONFIG_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_PME=yCONFIG_PCIE_DPC=y
# CONFIG_PCIE_PTM is not set
# CONFIG_PCIE_EDR is not setCONFIG_PCI_MSI=yCONFIG_PCI_QUIRKS=y
# CONFIG_PCI_DEBUG is not set
# CONFIG_PCI_REALLOC_ENABLE_AUTO is not setCONFIG_PCI_STUB=yCONFIG_PCI_PF_STUB=mCONFIG_PCI_ATS=yCONFIG_PCI_LOCKLESS_CONFIG=yCONFIG_PCI_IOV=yCONFIG_PCI_PRI=yCONFIG_PCI_PASID=y
# CONFIG_PCI_P2PDMA is not setCONFIG_PCI_LABEL=yCONFIG_PCI_HYPERV=m
# CONFIG_PCIE_BUS_TUNE_OFF is not setCONFIG_PCIE_BUS_DEFAULT=y
# CONFIG_PCIE_BUS_SAFE is not set
# CONFIG_PCIE_BUS_PERFORMANCE is not set
# CONFIG_PCIE_BUS_PEER2PEER is not setCONFIG_VGA_ARB=yCONFIG_VGA_ARB_MAX_GPUS=64CONFIG_HOTPLUG_PCI=yCONFIG_HOTPLUG_PCI_ACPI=yCONFIG_HOTPLUG_PCI_ACPI_IBM=m
# CONFIG_HOTPLUG_PCI_CPCI is not setCONFIG_HOTPLUG_PCI_SHPC=y
#
# PCI controller drivers
#CONFIG_VMD=yCONFIG_PCI_HYPERV_INTERFACE=m
#
# Cadence-based PCIe controllers
#
# end of Cadence-based PCIe controllers
#
# DesignWare-based PCIe controllers
#
# CONFIG_PCI_MESON is not set
# CONFIG_PCIE_DW_PLAT_HOST is not set
# end of DesignWare-based PCIe controllers
#
# Mobiveil-based PCIe controllers
#
# end of Mobiveil-based PCIe controllers # end of PCI controller drivers
#
# PCI Endpoint
#
# CONFIG_PCI_ENDPOINT is not set
# end of PCI Endpoint
#
# PCI switch controller drivers
#
# CONFIG_PCI_SW_SWITCHTEC is not set
# end of PCI switch controller drivers
# CONFIG_CXL_BUS is not set
# CONFIG_PCCARD is not set
# CONFIG_RAPIDIO is not set
#
# Generic Driver Options
#CONFIG_AUXILIARY_BUS=y
# CONFIG_UEVENT_HELPER is not setCONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=y
# CONFIG_DEVTMPFS_SAFE is not setCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=y CONFIG_FW_LOADER_DEBUG=y 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_CACHE=y
# CONFIG_FW_UPLOAD is not set
# end of Firmware loader
CONFIG_ALLOW_DEV_COREDUMP=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not setCONFIG_HMEM_REPORTING=y
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not setCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=yCONFIG_REGMAP=yCONFIG_REGMAP_I2C=mCONFIG_REGMAP_SPI=mCONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set
# CONFIG_FW_DEVLINK_SYNC_STATE_TIMEOUT is not set
# end of Generic Driver Options
#
# Bus devices
#
# CONFIG_MHI_BUS is not set
# CONFIG_MHI_BUS_EP is not set
# end of Bus devices
#
# Cache Drivers
#
# end of Cache Drivers
CONFIG_CONNECTOR=yCONFIG_PROC_EVENTS=y
#
# Firmware Drivers
#
#
# ARM System Control and Management Interface Protocol #
# end of ARM System Control and Management Interface Protocol
CONFIG_EDD=m
# CONFIG_EDD_OFF is not setCONFIG_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_SYSFB=y
# CONFIG_SYSFB_SIMPLEFB is not set
# CONFIG_GOOGLE_FIRMWARE is not set
#
# EFI (Extensible Firmware Interface) Support
#CONFIG_EFI_ESRT=yCONFIG_EFI_VARS_PSTORE=yCONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE=yCONFIG_EFI_SOFT_RESERVE=yCONFIG_EFI_DXE_MEM_ATTRIBUTES=yCONFIG_EFI_RUNTIME_WRAPPERS=y
# CONFIG_EFI_BOOTLOADER_CONTROL is not set
# CONFIG_EFI_CAPSULE_LOADER is not set
# CONFIG_EFI_TEST is not set
# CONFIG_APPLE_PROPERTIES is not set
# CONFIG_RESET_ATTACK_MITIGATION is not set
# CONFIG_EFI_RCI2_TABLE is not set
# CONFIG_EFI_DISABLE_PCI_DMA is not setCONFIG_EFI_EARLYCON=yCONFIG_EFI_CUSTOM_SSDT_OVERLAYS=y
# CONFIG_EFI_DISABLE_RUNTIME is not set
# CONFIG_EFI_COCO_SECRET is not set
# end of EFI (Extensible Firmware Interface) Support
CONFIG_UEFI_CPER=yCONFIG_UEFI_CPER_X86=y
#
# Tegra firmware driver
#
# end of Tegra firmware driver # end of Firmware Drivers
# CONFIG_GNSS is not set
# CONFIG_MTD is not set
# CONFIG_OF is not setCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=mCONFIG_PARPORT_PC=mCONFIG_PARPORT_SERIAL=m
# CONFIG_PARPORT_PC_FIFO is not set
# CONFIG_PARPORT_PC_SUPERIO is not setCONFIG_PARPORT_1284=yCONFIG_PNP=y
# CONFIG_PNP_DEBUG_MESSAGES is not set
#
# Protocols
#CONFIG_PNPACPI=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_NULL_BLK=m
# CONFIG_BLK_DEV_FD is not setCONFIG_CDROM=m
# CONFIG_BLK_DEV_PCIESSD_MTIP32XX is not set
# CONFIG_ZRAM is not setCONFIG_BLK_DEV_LOOP=mCONFIG_BLK_DEV_LOOP_MIN_COUNT=0
# CONFIG_BLK_DEV_DRBD is not setCONFIG_BLK_DEV_NBD=mCONFIG_BLK_DEV_RAM=mCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=16384CONFIG_CDROM_PKTCDVD=mCONFIG_CDROM_PKTCDVD_BUFFERS=8
# CONFIG_CDROM_PKTCDVD_WCACHE is not set
# CONFIG_ATA_OVER_ETH is not setCONFIG_VIRTIO_BLK=mCONFIG_BLK_DEV_RBD=m
# CONFIG_BLK_DEV_UBLK is not set
#
# NVME Support
#CONFIG_NVME_CORE=mCONFIG_BLK_DEV_NVME=mCONFIG_NVME_MULTIPATH=y
# CONFIG_NVME_VERBOSE_ERRORS is not set
# CONFIG_NVME_HWMON is not set
# CONFIG_NVME_FC is not set
# CONFIG_NVME_TCP is not set
# CONFIG_NVME_AUTH is not set
# CONFIG_NVME_TARGET is not set
# end of NVME Support
#
# Misc devices
#
# CONFIG_AD525X_DPOT is not set
# CONFIG_DUMMY_IRQ is not set
# CONFIG_IBM_ASM is not set
# CONFIG_PHANTOM is not setCONFIG_TIFM_CORE=mCONFIG_TIFM_7XX1=m
# CONFIG_ICS932S401 is not setCONFIG_ENCLOSURE_SERVICES=m
# CONFIG_SGI_XP is not setCONFIG_HP_ILO=m
# CONFIG_SGI_GRU is not setCONFIG_APDS9802ALS=mCONFIG_ISL29003=mCONFIG_ISL29020=mCONFIG_SENSORS_TSL2550=mCONFIG_SENSORS_BH1770=mCONFIG_SENSORS_APDS990X=m
# CONFIG_HMC6352 is not set
# CONFIG_DS1682 is not set
# CONFIG_LATTICE_ECP3_CONFIG is not set
# CONFIG_SRAM is not set
# CONFIG_DW_XDATA_PCIE is not set
# CONFIG_PCI_ENDPOINT_TEST is not set
# CONFIG_XILINX_SDFEC is not set
# CONFIG_C2PORT is not set
#
# EEPROM support
#
# CONFIG_EEPROM_AT24 is not set
# CONFIG_EEPROM_AT25 is not setCONFIG_EEPROM_LEGACY=mCONFIG_EEPROM_MAX6875=mCONFIG_EEPROM_93CX6=m
# CONFIG_EEPROM_93XX46 is not set
# CONFIG_EEPROM_IDT_89HPESX is not set
# CONFIG_EEPROM_EE1004 is not set
# end of EEPROM support
# CONFIG_CB710_CORE is not set
#
# Texas Instruments shared transport line discipline #
# CONFIG_TI_ST is not set
# end of Texas Instruments shared transport line discipline
# CONFIG_SENSORS_LIS3_I2C is not set
# CONFIG_ALTERA_STAPL is not setCONFIG_INTEL_MEI=mCONFIG_INTEL_MEI_ME=m
# CONFIG_INTEL_MEI_TXE is not set
# CONFIG_INTEL_MEI_GSC is not set
# CONFIG_INTEL_MEI_HDCP is not set
# CONFIG_INTEL_MEI_PXP is not set
# CONFIG_INTEL_MEI_GSC_PROXY is not set
# CONFIG_VMWARE_VMCI is not set
# CONFIG_GENWQE is not set
# CONFIG_ECHO is not set
# CONFIG_BCM_VK is not set
# CONFIG_MISC_ALCOR_PCI is not set
# CONFIG_MISC_RTSX_PCI is not set
# CONFIG_MISC_RTSX_USB is not set
# CONFIG_UACCE is not setCONFIG_PVPANIC=y
# CONFIG_PVPANIC_MMIO is not set
# CONFIG_PVPANIC_PCI is not set
# CONFIG_GP_PCI1XXXX is not set
# end of Misc devices
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=mCONFIG_SCSI_COMMON=yCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=mCONFIG_CHR_DEV_ST=mCONFIG_BLK_DEV_SR=mCONFIG_CHR_DEV_SG=mCONFIG_BLK_DEV_BSG=yCONFIG_CHR_DEV_SCH=mCONFIG_SCSI_ENCLOSURE=mCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=mCONFIG_SCSI_FC_ATTRS=mCONFIG_SCSI_ISCSI_ATTRS=mCONFIG_SCSI_SAS_ATTRS=mCONFIG_SCSI_SAS_LIBSAS=mCONFIG_SCSI_SAS_ATA=yCONFIG_SCSI_SAS_HOST_SMP=yCONFIG_SCSI_SRP_ATTRS=m
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_ISCSI_BOOT_SYSFS is not set
# CONFIG_SCSI_CXGB3_ISCSI is not set
# CONFIG_SCSI_CXGB4_ISCSI is not set
# CONFIG_SCSI_BNX2_ISCSI is not set
# CONFIG_BE2ISCSI is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_HPSA is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_3W_SAS is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC79XX is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_MVUMI is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_SCSI_ESAS2R is not setCONFIG_MEGARAID_NEWGEN=yCONFIG_MEGARAID_MM=mCONFIG_MEGARAID_MAILBOX=mCONFIG_MEGARAID_LEGACY=mCONFIG_MEGARAID_SAS=mCONFIG_SCSI_MPT3SAS=mCONFIG_SCSI_MPT2SAS_MAX_SGE=128CONFIG_SCSI_MPT3SAS_MAX_SGE=128
# CONFIG_SCSI_MPT2SAS is not set
# CONFIG_SCSI_MPI3MR is not set
# CONFIG_SCSI_SMARTPQI is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_MYRB is not set
# CONFIG_SCSI_MYRS is not set
# CONFIG_VMWARE_PVSCSI is not setCONFIG_HYPERV_STORAGE=m
# CONFIG_LIBFC is not set
# CONFIG_SCSI_SNIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_FDOMAIN_PCI is not setCONFIG_SCSI_ISCI=m
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_PPA is not set
# CONFIG_SCSI_IMM is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_AM53C974 is not set
# CONFIG_SCSI_WD719X is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_PMCRAID is not set
# CONFIG_SCSI_PM8001 is not set
# CONFIG_SCSI_BFA_FC is not set
# CONFIG_SCSI_VIRTIO is not set
# CONFIG_SCSI_CHELSIO_FCOE is not setCONFIG_SCSI_DH=yCONFIG_SCSI_DH_RDAC=yCONFIG_SCSI_DH_HP_SW=yCONFIG_SCSI_DH_EMC=yCONFIG_SCSI_DH_ALUA=y
# end of SCSI device support
CONFIG_ATA=mCONFIG_SATA_HOST=yCONFIG_PATA_TIMINGS=yCONFIG_ATA_VERBOSE_ERROR=yCONFIG_ATA_FORCE=yCONFIG_ATA_ACPI=y
# CONFIG_SATA_ZPODD is not setCONFIG_SATA_PMP=y
#
# Controllers with non-SFF native interface
#CONFIG_SATA_AHCI=mCONFIG_SATA_MOBILE_LPM_POLICY=0CONFIG_SATA_AHCI_PLATFORM=m
# CONFIG_AHCI_DWC is not set
# CONFIG_SATA_INIC162X is not set
# CONFIG_SATA_ACARD_AHCI is not set
# CONFIG_SATA_SIL24 is not setCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_SX4 is not setCONFIG_ATA_BMDMA=y
#
# SATA SFF controllers with BMDMA
#CONFIG_ATA_PIIX=m
# CONFIG_SATA_DWC is not set
# CONFIG_SATA_MV is not set
# CONFIG_SATA_NV is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_SVW is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
#
# PATA SFF controllers with BMDMA
#
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
# CONFIG_PATA_ATIIXP is not set
# CONFIG_PATA_ATP867X is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT8213 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_JMICRON is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RDC is not set
# CONFIG_PATA_SCH is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_TOSHIBA is not set
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
#
# PIO-only SFF controllers
#
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_RZ1000 is not set
# CONFIG_PATA_PARPORT is not set
#
# Generic fallback / legacy drivers
#
# CONFIG_PATA_ACPI is not set CONFIG_ATA_GENERIC=m
# CONFIG_PATA_LEGACY is not set CONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=y CONFIG_MD_BITMAP_FILE=yCONFIG_MD_LINEAR=mCONFIG_MD_RAID0=mCONFIG_MD_RAID1=mCONFIG_MD_RAID10=mCONFIG_MD_RAID456=m
# CONFIG_MD_MULTIPATH is not set CONFIG_MD_FAULTY=m
# CONFIG_BCACHE is not set CONFIG_BLK_DEV_DM_BUILTIN=y CONFIG_BLK_DEV_DM=m
# CONFIG_DM_DEBUG is not set CONFIG_DM_BUFIO=m
# CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING is not set CONFIG_DM_BIO_PRISON=m CONFIG_DM_PERSISTENT_DATA=m
# CONFIG_DM_UNSTRIPED is not set CONFIG_DM_CRYPT=mCONFIG_DM_SNAPSHOT=m CONFIG_DM_THIN_PROVISIONING=m CONFIG_DM_CACHE=mCONFIG_DM_CACHE_SMQ=m CONFIG_DM_WRITECACHE=m
# CONFIG_DM_EBS is not setCONFIG_DM_ERA=m
# CONFIG_DM_CLONE is not set CONFIG_DM_MIRROR=m CONFIG_DM_LOG_USERSPACE=mCONFIG_DM_RAID=mCONFIG_DM_ZERO=mCONFIG_DM_MULTIPATH=m CONFIG_DM_MULTIPATH_QL=m CONFIG_DM_MULTIPATH_ST=m
# CONFIG_DM_MULTIPATH_HST is not set
# CONFIG_DM_MULTIPATH_IOA is not set CONFIG_DM_DELAY=m
# CONFIG_DM_DUST is not set CONFIG_DM_UEVENT=yCONFIG_DM_FLAKEY=mCONFIG_DM_VERITY=m
# CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG is not set # CONFIG_DM_VERITY_FEC is not set CONFIG_DM_SWITCH=mCONFIG_DM_LOG_WRITES=m CONFIG_DM_INTEGRITY=mCONFIG_DM_AUDIT=y
# CONFIG_TARGET_CORE is not set
# CONFIG_FUSION is not set
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=mCONFIG_FIREWIRE_OHCI=mCONFIG_FIREWIRE_SBP2=mCONFIG_FIREWIRE_NET=m
# CONFIG_FIREWIRE_NOSY is not set
# end of IEEE 1394 (FireWire) support
CONFIG_MACINTOSH_DRIVERS=yCONFIG_MAC_EMUMOUSEBTN=yCONFIG_NETDEVICES=yCONFIG_MII=yCONFIG_NET_CORE=y
# CONFIG_BONDING is not set
# CONFIG_DUMMY is not set
# CONFIG_WIREGUARD is not set
# CONFIG_EQUALIZER is not set
# CONFIG_NET_FC is not set
# CONFIG_IFB is not set
# CONFIG_NET_TEAM is not set
# CONFIG_MACVLAN is not set
# CONFIG_IPVLAN is not set
# CONFIG_VXLAN is not set
# CONFIG_GENEVE is not set
# CONFIG_BAREUDP is not set
# CONFIG_GTP is not set
# CONFIG_AMT is not set
# CONFIG_MACSEC is not setCONFIG_NETCONSOLE=mCONFIG_NETCONSOLE_DYNAMIC=y
# CONFIG_NETCONSOLE_EXTENDED_LOG is not setCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_TUN=m
# CONFIG_TUN_VNET_CROSS_LE is not set
# CONFIG_VETH is not setCONFIG_VIRTIO_NET=m
# CONFIG_NLMON is not set
# CONFIG_NET_VRF is not set
# CONFIG_VSOCKMON is not set
# CONFIG_ARCNET is not setCONFIG_ETHERNET=y
# CONFIG_NET_VENDOR_3COM is not setCONFIG_NET_VENDOR_ADAPTEC=y
# CONFIG_ADAPTEC_STARFIRE is not setCONFIG_NET_VENDOR_AGERE=y
# CONFIG_ET131X is not setCONFIG_NET_VENDOR_ALACRITECH=y
# CONFIG_SLICOSS is not setCONFIG_NET_VENDOR_ALTEON=y
# CONFIG_ACENIC is not set
# CONFIG_ALTERA_TSE is not setCONFIG_NET_VENDOR_AMAZON=y
# CONFIG_ENA_ETHERNET is not set
# CONFIG_NET_VENDOR_AMD is not setCONFIG_NET_VENDOR_AQUANTIA=y
# CONFIG_AQTION is not setCONFIG_NET_VENDOR_ARC=yCONFIG_NET_VENDOR_ASIX=y
# CONFIG_SPI_AX88796C is not setCONFIG_NET_VENDOR_ATHEROS=y
# CONFIG_ATL2 is not set
# CONFIG_ATL1 is not set
# CONFIG_ATL1E is not set
# CONFIG_ATL1C is not set
# CONFIG_ALX is not set
# CONFIG_CX_ECAT is not setCONFIG_NET_VENDOR_BROADCOM=y
# CONFIG_B44 is not set
# CONFIG_BCMGENET is not set
# CONFIG_BNX2 is not set
# CONFIG_CNIC is not set
# CONFIG_TIGON3 is not set
# CONFIG_BNX2X is not set
# CONFIG_SYSTEMPORT is not set
# CONFIG_BNXT is not setCONFIG_NET_VENDOR_CADENCE=y
# CONFIG_MACB is not setCONFIG_NET_VENDOR_CAVIUM=y
# CONFIG_THUNDER_NIC_PF is not set
# CONFIG_THUNDER_NIC_VF is not set
# CONFIG_THUNDER_NIC_BGX is not set
# CONFIG_THUNDER_NIC_RGX is not setCONFIG_CAVIUM_PTP=y
# CONFIG_LIQUIDIO is not set
# CONFIG_LIQUIDIO_VF is not setCONFIG_NET_VENDOR_CHELSIO=y
# CONFIG_CHELSIO_T1 is not set
# CONFIG_CHELSIO_T3 is not set
# CONFIG_CHELSIO_T4 is not set
# CONFIG_CHELSIO_T4VF is not setCONFIG_NET_VENDOR_CISCO=y
# CONFIG_ENIC is not setCONFIG_NET_VENDOR_CORTINA=yCONFIG_NET_VENDOR_DAVICOM=y
# CONFIG_DM9051 is not set
# CONFIG_DNET is not setCONFIG_NET_VENDOR_DEC=y
# CONFIG_NET_TULIP is not setCONFIG_NET_VENDOR_DLINK=y
# CONFIG_DL2K is not set
# CONFIG_SUNDANCE is not setCONFIG_NET_VENDOR_EMULEX=y
# CONFIG_BE2NET is not setCONFIG_NET_VENDOR_ENGLEDER=y
# CONFIG_TSNEP is not setCONFIG_NET_VENDOR_EZCHIP=yCONFIG_NET_VENDOR_FUNGIBLE=y
# CONFIG_FUN_ETH is not setCONFIG_NET_VENDOR_GOOGLE=y
# CONFIG_GVE is not setCONFIG_NET_VENDOR_HUAWEI=y
# CONFIG_HINIC is not setCONFIG_NET_VENDOR_I825XX=yCONFIG_NET_VENDOR_INTEL=y
# CONFIG_E100 is not setCONFIG_E1000=yCONFIG_E1000E=yCONFIG_E1000E_HWTS=yCONFIG_IGB=yCONFIG_IGB_HWMON=y
# CONFIG_IGBVF is not set
# CONFIG_IXGBE is not set
# CONFIG_IXGBEVF is not setCONFIG_I40E=y
# CONFIG_I40E_DCB is not set
# CONFIG_I40EVF is not set
# CONFIG_ICE is not set
# CONFIG_FM10K is not setCONFIG_IGC=y
# CONFIG_JME is not setCONFIG_NET_VENDOR_ADI=y
# CONFIG_ADIN1110 is not setCONFIG_NET_VENDOR_LITEX=yCONFIG_NET_VENDOR_MARVELL=y
# CONFIG_MVMDIO is not set
# CONFIG_SKGE is not set
# CONFIG_SKY2 is not set
# CONFIG_OCTEON_EP is not set
# CONFIG_PRESTERA is not setCONFIG_NET_VENDOR_MELLANOX=y
# CONFIG_MLX4_EN is not set
# CONFIG_MLX5_CORE is not set
# CONFIG_MLXSW_CORE is not set
# CONFIG_MLXFW is not setCONFIG_NET_VENDOR_MICREL=y
# CONFIG_KS8842 is not set
# CONFIG_KS8851 is not set
# CONFIG_KS8851_MLL is not set
# CONFIG_KSZ884X_PCI is not setCONFIG_NET_VENDOR_MICROCHIP=y
# CONFIG_ENC28J60 is not set
# CONFIG_ENCX24J600 is not set
# CONFIG_LAN743X is not set
# CONFIG_VCAP is not setCONFIG_NET_VENDOR_MICROSEMI=yCONFIG_NET_VENDOR_MICROSOFT=y
# CONFIG_MICROSOFT_MANA is not setCONFIG_NET_VENDOR_MYRI=y
# CONFIG_MYRI10GE is not set
# CONFIG_FEALNX is not setCONFIG_NET_VENDOR_NI=y
# CONFIG_NI_XGE_MANAGEMENT_ENET is not setCONFIG_NET_VENDOR_NATSEMI=y
# CONFIG_NATSEMI is not set
# CONFIG_NS83820 is not setCONFIG_NET_VENDOR_NETERION=y
# CONFIG_S2IO is not setCONFIG_NET_VENDOR_NETRONOME=y
# CONFIG_NFP is not setCONFIG_NET_VENDOR_8390=y
# CONFIG_NE2K_PCI is not setCONFIG_NET_VENDOR_NVIDIA=y
# CONFIG_FORCEDETH is not setCONFIG_NET_VENDOR_OKI=y
# CONFIG_ETHOC is not setCONFIG_NET_VENDOR_PACKET_ENGINES=y
# CONFIG_HAMACHI is not set
# CONFIG_YELLOWFIN is not setCONFIG_NET_VENDOR_PENSANDO=y
# CONFIG_IONIC is not setCONFIG_NET_VENDOR_QLOGIC=y
# CONFIG_QLA3XXX is not set
# CONFIG_QLCNIC is not set
# CONFIG_NETXEN_NIC is not set
# CONFIG_QED is not setCONFIG_NET_VENDOR_BROCADE=y
# CONFIG_BNA is not setCONFIG_NET_VENDOR_QUALCOMM=y
# CONFIG_QCOM_EMAC is not set
# CONFIG_RMNET is not setCONFIG_NET_VENDOR_RDC=y
# CONFIG_R6040 is not setCONFIG_NET_VENDOR_REALTEK=y
# CONFIG_ATP is not set
# CONFIG_8139CP is not set
# CONFIG_8139TOO is not setCONFIG_R8169=yCONFIG_NET_VENDOR_RENESAS=yCONFIG_NET_VENDOR_ROCKER=y
# CONFIG_ROCKER is not setCONFIG_NET_VENDOR_SAMSUNG=y
# CONFIG_SXGBE_ETH is not setCONFIG_NET_VENDOR_SEEQ=yCONFIG_NET_VENDOR_SILAN=y
# CONFIG_SC92031 is not setCONFIG_NET_VENDOR_SIS=y
# CONFIG_SIS900 is not set
# CONFIG_SIS190 is not setCONFIG_NET_VENDOR_SOLARFLARE=y
# CONFIG_SFC is not set
# CONFIG_SFC_FALCON is not set
# CONFIG_SFC_SIENA is not setCONFIG_NET_VENDOR_SMSC=y
# CONFIG_EPIC100 is not set
# CONFIG_SMSC911X is not set
# CONFIG_SMSC9420 is not setCONFIG_NET_VENDOR_SOCIONEXT=yCONFIG_NET_VENDOR_STMICRO=y
# CONFIG_STMMAC_ETH is not setCONFIG_NET_VENDOR_SUN=y
# CONFIG_HAPPYMEAL is not set
# CONFIG_SUNGEM is not set
# CONFIG_CASSINI is not set
# CONFIG_NIU is not setCONFIG_NET_VENDOR_SYNOPSYS=y
# CONFIG_DWC_XLGMAC is not setCONFIG_NET_VENDOR_TEHUTI=y
# CONFIG_TEHUTI is not setCONFIG_NET_VENDOR_TI=y
# CONFIG_TI_CPSW_PHY_SEL is not set
# CONFIG_TLAN is not setCONFIG_NET_VENDOR_VERTEXCOM=y
# CONFIG_MSE102X is not setCONFIG_NET_VENDOR_VIA=y
# CONFIG_VIA_RHINE is not set
# CONFIG_VIA_VELOCITY is not setCONFIG_NET_VENDOR_WANGXUN=y
# CONFIG_NGBE is not set
# CONFIG_TXGBE is not setCONFIG_NET_VENDOR_WIZNET=y
# CONFIG_WIZNET_W5100 is not set
# CONFIG_WIZNET_W5300 is not setCONFIG_NET_VENDOR_XILINX=y
# CONFIG_XILINX_EMACLITE is not set
# CONFIG_XILINX_AXI_EMAC is not set
# CONFIG_XILINX_LL_TEMAC is not set
# CONFIG_FDDI is not set
# CONFIG_HIPPI is not set
# CONFIG_NET_SB1000 is not setCONFIG_PHYLINK=yCONFIG_PHYLIB=yCONFIG_SWPHY=y
# CONFIG_LED_TRIGGER_PHY is not setCONFIG_FIXED_PHY=y
# CONFIG_SFP is not set
#
# MII PHY device drivers
#
# CONFIG_AMD_PHY is not set
# CONFIG_ADIN_PHY is not set
# CONFIG_ADIN1100_PHY is not set
# CONFIG_AQUANTIA_PHY is not setCONFIG_AX88796B_PHY=y
# CONFIG_BROADCOM_PHY is not set
# CONFIG_BCM54140_PHY is not set
# CONFIG_BCM7XXX_PHY is not set
# CONFIG_BCM84881_PHY is not set
# CONFIG_BCM87XX_PHY is not set
# CONFIG_CICADA_PHY is not set
# CONFIG_CORTINA_PHY is not set
# CONFIG_DAVICOM_PHY is not set
# CONFIG_ICPLUS_PHY is not set
# CONFIG_LXT_PHY is not set
# CONFIG_INTEL_XWAY_PHY is not set
# CONFIG_LSI_ET1011C_PHY is not set
# CONFIG_MARVELL_PHY is not set
# CONFIG_MARVELL_10G_PHY is not set
# CONFIG_MARVELL_88Q2XXX_PHY is not set
# CONFIG_MARVELL_88X2222_PHY is not set
# CONFIG_MAXLINEAR_GPHY is not set
# CONFIG_MEDIATEK_GE_PHY is not set
# CONFIG_MICREL_PHY is not set
# CONFIG_MICROCHIP_T1S_PHY is not set
# CONFIG_MICROCHIP_PHY is not set
# CONFIG_MICROCHIP_T1_PHY is not set
# CONFIG_MICROSEMI_PHY is not set
# CONFIG_MOTORCOMM_PHY is not set
# CONFIG_NATIONAL_PHY is not set
# CONFIG_NXP_CBTX_PHY is not set
# CONFIG_NXP_C45_TJA11XX_PHY is not set
# CONFIG_NXP_TJA11XX_PHY is not set
# CONFIG_NCN26000_PHY is not set
# CONFIG_QSEMI_PHY is not setCONFIG_REALTEK_PHY=y
# CONFIG_RENESAS_PHY is not set
# CONFIG_ROCKCHIP_PHY is not set
# CONFIG_SMSC_PHY is not set
# CONFIG_STE10XP is not set
# CONFIG_TERANETICS_PHY is not set
# CONFIG_DP83822_PHY is not set
# CONFIG_DP83TC811_PHY is not set
# CONFIG_DP83848_PHY is not set
# CONFIG_DP83867_PHY is not set
# CONFIG_DP83869_PHY is not set
# CONFIG_DP83TD510_PHY is not set
# CONFIG_VITESSE_PHY is not set
# CONFIG_XILINX_GMII2RGMII is not set
# CONFIG_MICREL_KS8995MA is not set
# CONFIG_PSE_CONTROLLER is not set
# CONFIG_CAN_DEV is not setCONFIG_MDIO_DEVICE=yCONFIG_MDIO_BUS=yCONFIG_FWNODE_MDIO=yCONFIG_ACPI_MDIO=yCONFIG_MDIO_DEVRES=y
# CONFIG_MDIO_BITBANG is not set
# CONFIG_MDIO_BCM_UNIMAC is not set
# CONFIG_MDIO_MVUSB is not set
# CONFIG_MDIO_THUNDER is not set
#
# MDIO Multiplexers
#
#
# PCS device drivers
#
# end of PCS device drivers
# CONFIG_PLIP is not set
# CONFIG_PPP is not set
# CONFIG_SLIP is not setCONFIG_USB_NET_DRIVERS=y
# CONFIG_USB_CATC is not set
# CONFIG_USB_KAWETH is not set
# CONFIG_USB_PEGASUS is not set
# CONFIG_USB_RTL8150 is not setCONFIG_USB_RTL8152=y
# CONFIG_USB_LAN78XX is not setCONFIG_USB_USBNET=yCONFIG_USB_NET_AX8817X=yCONFIG_USB_NET_AX88179_178A=y
# CONFIG_USB_NET_CDCETHER is not set
# CONFIG_USB_NET_CDC_EEM is not set
# CONFIG_USB_NET_CDC_NCM is not set
# CONFIG_USB_NET_HUAWEI_CDC_NCM is not set
# CONFIG_USB_NET_CDC_MBIM is not set
# CONFIG_USB_NET_DM9601 is not set
# CONFIG_USB_NET_SR9700 is not set
# CONFIG_USB_NET_SR9800 is not set
# CONFIG_USB_NET_SMSC75XX is not set
# CONFIG_USB_NET_SMSC95XX is not set
# CONFIG_USB_NET_GL620A is not set
# CONFIG_USB_NET_NET1080 is not set
# CONFIG_USB_NET_PLUSB is not set
# CONFIG_USB_NET_MCS7830 is not set
# CONFIG_USB_NET_RNDIS_HOST is not set
# CONFIG_USB_NET_CDC_SUBSET is not set
# CONFIG_USB_NET_ZAURUS is not set
# CONFIG_USB_NET_CX82310_ETH is not set
# CONFIG_USB_NET_KALMIA is not set
# CONFIG_USB_NET_QMI_WWAN is not set
# CONFIG_USB_HSO is not set
# CONFIG_USB_NET_INT51X1 is not set
# CONFIG_USB_IPHETH is not set
# CONFIG_USB_SIERRA_NET is not set
# CONFIG_USB_NET_CH9200 is not set
# CONFIG_USB_NET_AQC111 is not set
# CONFIG_WLAN is not set
# CONFIG_WAN is not set
#
# Wireless WAN
#
# CONFIG_WWAN is not set
# end of Wireless WAN
# CONFIG_VMXNET3 is not set
# CONFIG_FUJITSU_ES is not setCONFIG_HYPERV_NET=y
# CONFIG_NETDEVSIM is not setCONFIG_NET_FAILOVER=m
# CONFIG_ISDN is not set
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_LEDS=yCONFIG_INPUT_FF_MEMLESS=mCONFIG_INPUT_SPARSEKMAP=m
# CONFIG_INPUT_MATRIXKMAP is not setCONFIG_INPUT_VIVALDIFMAP=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=y
# CONFIG_INPUT_MOUSEDEV_PSAUX is not setCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=mCONFIG_INPUT_EVDEV=y
# CONFIG_INPUT_EVBUG is not set
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=y
# CONFIG_KEYBOARD_ADP5588 is not set
# CONFIG_KEYBOARD_ADP5589 is not set
# CONFIG_KEYBOARD_APPLESPI is not setCONFIG_KEYBOARD_ATKBD=y
# CONFIG_KEYBOARD_QT1050 is not set
# CONFIG_KEYBOARD_QT1070 is not set
# CONFIG_KEYBOARD_QT2160 is not set
# CONFIG_KEYBOARD_DLINK_DIR685 is not set
# CONFIG_KEYBOARD_LKKBD is not set
# CONFIG_KEYBOARD_GPIO is not set
# CONFIG_KEYBOARD_GPIO_POLLED is not set
# CONFIG_KEYBOARD_TCA6416 is not set
# CONFIG_KEYBOARD_TCA8418 is not set
# CONFIG_KEYBOARD_MATRIX is not set
# CONFIG_KEYBOARD_LM8323 is not set
# CONFIG_KEYBOARD_LM8333 is not set
# CONFIG_KEYBOARD_MAX7359 is not set
# CONFIG_KEYBOARD_MCS is not set
# CONFIG_KEYBOARD_MPR121 is not set
# CONFIG_KEYBOARD_NEWTON is not set
# CONFIG_KEYBOARD_OPENCORES is not set
# CONFIG_KEYBOARD_SAMSUNG is not set
# CONFIG_KEYBOARD_STOWAWAY is not set
# CONFIG_KEYBOARD_SUNKBD is not set
# CONFIG_KEYBOARD_TM2_TOUCHKEY is not set
# CONFIG_KEYBOARD_XTKBD is not set
# CONFIG_KEYBOARD_CYPRESS_SF is not setCONFIG_INPUT_MOUSE=yCONFIG_MOUSE_PS2=yCONFIG_MOUSE_PS2_ALPS=yCONFIG_MOUSE_PS2_BYD=yCONFIG_MOUSE_PS2_LOGIPS2PP=yCONFIG_MOUSE_PS2_SYNAPTICS=yCONFIG_MOUSE_PS2_SYNAPTICS_SMBUS=yCONFIG_MOUSE_PS2_CYPRESS=yCONFIG_MOUSE_PS2_LIFEBOOK=yCONFIG_MOUSE_PS2_TRACKPOINT=yCONFIG_MOUSE_PS2_ELANTECH=yCONFIG_MOUSE_PS2_ELANTECH_SMBUS=yCONFIG_MOUSE_PS2_SENTELIC=y
# CONFIG_MOUSE_PS2_TOUCHKIT is not setCONFIG_MOUSE_PS2_FOCALTECH=yCONFIG_MOUSE_PS2_VMMOUSE=yCONFIG_MOUSE_PS2_SMBUS=yCONFIG_MOUSE_SERIAL=m
# CONFIG_MOUSE_APPLETOUCH is not set
# CONFIG_MOUSE_BCM5974 is not setCONFIG_MOUSE_CYAPA=mCONFIG_MOUSE_ELAN_I2C=mCONFIG_MOUSE_ELAN_I2C_I2C=yCONFIG_MOUSE_ELAN_I2C_SMBUS=yCONFIG_MOUSE_VSXXXAA=m
# CONFIG_MOUSE_GPIO is not setCONFIG_MOUSE_SYNAPTICS_I2C=m
# CONFIG_MOUSE_SYNAPTICS_USB is not set
# CONFIG_INPUT_JOYSTICK is not set
# CONFIG_INPUT_TABLET is not set
# CONFIG_INPUT_TOUCHSCREEN is not set
# CONFIG_INPUT_MISC is not setCONFIG_RMI4_CORE=mCONFIG_RMI4_I2C=mCONFIG_RMI4_SPI=mCONFIG_RMI4_SMB=mCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=mCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=y
# CONFIG_RMI4_F3A is not setCONFIG_RMI4_F55=y
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=y
# CONFIG_SERIO_CT82C710 is not set
# CONFIG_SERIO_PARKBD is not set
# CONFIG_SERIO_PCIPS2 is not setCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=mCONFIG_SERIO_ALTERA_PS2=m
# CONFIG_SERIO_PS2MULT is not setCONFIG_SERIO_ARC_PS2=mCONFIG_HYPERV_KEYBOARD=m
# CONFIG_SERIO_GPIO_PS2 is not set
# CONFIG_USERIO is not set
# CONFIG_GAMEPORT is not set
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_VT_CONSOLE_SLEEP=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=y
# CONFIG_LEGACY_PTYS is not setCONFIG_LEGACY_TIOCSTI=yCONFIG_LDISC_AUTOLOAD=y
#
# 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 is not set CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_DMA=y CONFIG_SERIAL_8250_PCILIB=y CONFIG_SERIAL_8250_PCI=y CONFIG_SERIAL_8250_EXAR=y CONFIG_SERIAL_8250_NR_UARTS=64 CONFIG_SERIAL_8250_RUNTIME_UARTS=4 CONFIG_SERIAL_8250_EXTENDED=y CONFIG_SERIAL_8250_MANY_PORTS=y
# CONFIG_SERIAL_8250_PCI1XXXX is not set CONFIG_SERIAL_8250_SHARE_IRQ=y
# CONFIG_SERIAL_8250_DETECT_IRQ is not set CONFIG_SERIAL_8250_RSA=y CONFIG_SERIAL_8250_DWLIB=y CONFIG_SERIAL_8250_DW=y
# CONFIG_SERIAL_8250_RT288X is not set CONFIG_SERIAL_8250_LPSS=y CONFIG_SERIAL_8250_MID=y CONFIG_SERIAL_8250_PERICOM=y
#
# Non-8250 serial port support
#
# CONFIG_SERIAL_MAX3100 is not set
# CONFIG_SERIAL_MAX310X is not set
# CONFIG_SERIAL_UARTLITE is not setCONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=y
# CONFIG_SERIAL_JSM is not set
# CONFIG_SERIAL_LANTIQ is not set
# CONFIG_SERIAL_SCCNXP is not set
# CONFIG_SERIAL_SC16IS7XX is not set
# CONFIG_SERIAL_ALTERA_JTAGUART is not set
# CONFIG_SERIAL_ALTERA_UART is not setCONFIG_SERIAL_ARC=mCONFIG_SERIAL_ARC_NR_PORTS=1
# CONFIG_SERIAL_RP2 is not set
# CONFIG_SERIAL_FSL_LPUART is not set
# CONFIG_SERIAL_FSL_LINFLEXUART is not set
# CONFIG_SERIAL_SPRD is not set
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=yCONFIG_SERIAL_NONSTANDARD=y
# CONFIG_MOXA_INTELLIO is not set
# CONFIG_MOXA_SMARTIO is not setCONFIG_N_HDLC=mCONFIG_N_GSM=mCONFIG_NOZOMI=m
# CONFIG_NULL_TTY is not setCONFIG_HVC_DRIVER=y
# CONFIG_SERIAL_DEV_BUS is not set
# CONFIG_TTY_PRINTK is not setCONFIG_PRINTER=m
# CONFIG_LP_CONSOLE is not setCONFIG_PPDEV=mCONFIG_VIRTIO_CONSOLE=mCONFIG_IPMI_HANDLER=mCONFIG_IPMI_DMI_DECODE=yCONFIG_IPMI_PLAT_DATA=yCONFIG_IPMI_PANIC_EVENT=yCONFIG_IPMI_PANIC_STRING=yCONFIG_IPMI_DEVICE_INTERFACE=mCONFIG_IPMI_SI=mCONFIG_IPMI_SSIF=mCONFIG_IPMI_WATCHDOG=mCONFIG_IPMI_POWEROFF=mCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_TIMERIOMEM=mCONFIG_HW_RANDOM_INTEL=m
# CONFIG_HW_RANDOM_AMD is not set
# CONFIG_HW_RANDOM_BA431 is not setCONFIG_HW_RANDOM_VIA=mCONFIG_HW_RANDOM_VIRTIO=y
# CONFIG_HW_RANDOM_XIPHERA is not set
# CONFIG_APPLICOM is not set
# CONFIG_MWAVE is not setCONFIG_DEVMEM=yCONFIG_NVRAM=yCONFIG_DEVPORT=yCONFIG_HPET=yCONFIG_HPET_MMAP=y
# CONFIG_HPET_MMAP_DEFAULT is not setCONFIG_HANGCHECK_TIMER=mCONFIG_UV_MMTIMER=mCONFIG_TCG_TPM=yCONFIG_HW_RANDOM_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=y
# CONFIG_TCG_TIS_SPI is not set
# CONFIG_TCG_TIS_I2C is not set
# CONFIG_TCG_TIS_I2C_CR50 is not setCONFIG_TCG_TIS_I2C_ATMEL=mCONFIG_TCG_TIS_I2C_INFINEON=mCONFIG_TCG_TIS_I2C_NUVOTON=mCONFIG_TCG_NSC=mCONFIG_TCG_ATMEL=mCONFIG_TCG_INFINEON=mCONFIG_TCG_CRB=y
# CONFIG_TCG_VTPM_PROXY is not set
# CONFIG_TCG_TIS_ST33ZP24_I2C is not set
# CONFIG_TCG_TIS_ST33ZP24_SPI is not setCONFIG_TELCLOCK=m
# CONFIG_XILLYBUS is not set
# CONFIG_XILLYUSB is not set
# end of Character devices
#
# I2C support
#CONFIG_I2C=yCONFIG_ACPI_I2C_OPREGION=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=mCONFIG_I2C_MUX=m
#
# Multiplexer I2C Chip support
#
# CONFIG_I2C_MUX_GPIO is not set
# CONFIG_I2C_MUX_LTC4306 is not set
# CONFIG_I2C_MUX_PCA9541 is not set
# CONFIG_I2C_MUX_PCA954x is not set
# CONFIG_I2C_MUX_REG is not setCONFIG_I2C_MUX_MLXCPLD=m
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=mCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=m
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#
# CONFIG_I2C_ALI1535 is not set
# CONFIG_I2C_ALI1563 is not set
# CONFIG_I2C_ALI15X3 is not set
# CONFIG_I2C_AMD756 is not set
# CONFIG_I2C_AMD8111 is not set
# CONFIG_I2C_AMD_MP2 is not setCONFIG_I2C_I801=mCONFIG_I2C_ISCH=mCONFIG_I2C_ISMT=mCONFIG_I2C_PIIX4=mCONFIG_I2C_NFORCE2=mCONFIG_I2C_NFORCE2_S4985=m
# CONFIG_I2C_NVIDIA_GPU is not set
# CONFIG_I2C_SIS5595 is not set
# CONFIG_I2C_SIS630 is not setCONFIG_I2C_SIS96X=mCONFIG_I2C_VIA=mCONFIG_I2C_VIAPRO=m
#
# ACPI drivers
#CONFIG_I2C_SCMI=m
#
# I2C system bus drivers (mostly embedded / system-on-chip) #
# CONFIG_I2C_CBUS_GPIO is not set CONFIG_I2C_DESIGNWARE_CORE=m
# CONFIG_I2C_DESIGNWARE_SLAVE is not set CONFIG_I2C_DESIGNWARE_PLATFORM=m CONFIG_I2C_DESIGNWARE_BAYTRAIL=y
# CONFIG_I2C_DESIGNWARE_PCI is not set
# CONFIG_I2C_EMEV2 is not set
# CONFIG_I2C_GPIO is not set
# CONFIG_I2C_OCORES is not set CONFIG_I2C_PCA_PLATFORM=mCONFIG_I2C_SIMTEC=m
# CONFIG_I2C_XILINX is not set
#
# External I2C/SMBus adapter drivers
#
# CONFIG_I2C_DIOLAN_U2C is not set
# CONFIG_I2C_CP2615 is not setCONFIG_I2C_PARPORT=m
# CONFIG_I2C_PCI1XXXX is not set
# CONFIG_I2C_ROBOTFUZZ_OSIF is not set
# CONFIG_I2C_TAOS_EVM is not set
# CONFIG_I2C_TINY_USB is not set
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_MLXCPLD=m
# CONFIG_I2C_VIRTIO is not set
# end of I2C Hardware Bus support
CONFIG_I2C_STUB=m
# CONFIG_I2C_SLAVE is not set
# CONFIG_I2C_DEBUG_CORE is not set
# CONFIG_I2C_DEBUG_ALGO is not set
# CONFIG_I2C_DEBUG_BUS is not set
# end of I2C support
# CONFIG_I3C is not setCONFIG_SPI=y
# CONFIG_SPI_DEBUG is not setCONFIG_SPI_MASTER=y
# CONFIG_SPI_MEM is not set
#
# SPI Master Controller Drivers
#
# CONFIG_SPI_ALTERA is not set
# CONFIG_SPI_AXI_SPI_ENGINE is not set
# CONFIG_SPI_BITBANG is not set
# CONFIG_SPI_BUTTERFLY is not set
# CONFIG_SPI_CADENCE is not set
# CONFIG_SPI_DESIGNWARE is not set
# CONFIG_SPI_GPIO is not set
# CONFIG_SPI_LM70_LLP is not set
# CONFIG_SPI_MICROCHIP_CORE is not set
# CONFIG_SPI_MICROCHIP_CORE_QSPI is not set
# CONFIG_SPI_LANTIQ_SSC is not set
# CONFIG_SPI_OC_TINY is not set
# CONFIG_SPI_PCI1XXXX is not set
# CONFIG_SPI_PXA2XX is not set
# CONFIG_SPI_SC18IS602 is not set
# CONFIG_SPI_SIFIVE is not set
# CONFIG_SPI_MXIC is not set
# CONFIG_SPI_XCOMM is not set
# CONFIG_SPI_XILINX is not set
# 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 is not set
# CONFIG_SPI_LOOPBACK_TEST is not set
# CONFIG_SPI_TLE62X0 is not set
# CONFIG_SPI_SLAVE is not setCONFIG_SPI_DYNAMIC=y
# CONFIG_SPMI is not set
# CONFIG_HSI is not setCONFIG_PPS=y
# CONFIG_PPS_DEBUG is not set
#
# PPS clients support
#
# CONFIG_PPS_CLIENT_KTIMER is not setCONFIG_PPS_CLIENT_LDISC=mCONFIG_PPS_CLIENT_PARPORT=mCONFIG_PPS_CLIENT_GPIO=m
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=yCONFIG_PTP_1588_CLOCK_OPTIONAL=y
# CONFIG_DP83640_PHY is not set
# CONFIG_PTP_1588_CLOCK_INES is not setCONFIG_PTP_1588_CLOCK_KVM=m
# CONFIG_PTP_1588_CLOCK_IDT82P33 is not set
# CONFIG_PTP_1588_CLOCK_IDTCM is not set
# CONFIG_PTP_1588_CLOCK_MOCK is not set
# CONFIG_PTP_1588_CLOCK_VMW is not set
# end of PTP clock support
CONFIG_PINCTRL=y
# CONFIG_DEBUG_PINCTRL is not set
# CONFIG_PINCTRL_AMD is not set
# CONFIG_PINCTRL_CY8C95X0 is not set
# CONFIG_PINCTRL_MCP23S08 is not set
# CONFIG_PINCTRL_SX150X is not set
#
# Intel pinctrl drivers
#
# CONFIG_PINCTRL_BAYTRAIL is not set
# CONFIG_PINCTRL_CHERRYVIEW is not set
# CONFIG_PINCTRL_LYNXPOINT is not set
# CONFIG_PINCTRL_ALDERLAKE is not set
# CONFIG_PINCTRL_BROXTON is not set
# CONFIG_PINCTRL_CANNONLAKE is not set
# CONFIG_PINCTRL_CEDARFORK is not set
# CONFIG_PINCTRL_DENVERTON is not set
# CONFIG_PINCTRL_ELKHARTLAKE is not set
# CONFIG_PINCTRL_EMMITSBURG is not set
# CONFIG_PINCTRL_GEMINILAKE is not set
# CONFIG_PINCTRL_ICELAKE is not set
# CONFIG_PINCTRL_JASPERLAKE is not set
# CONFIG_PINCTRL_LAKEFIELD is not set
# CONFIG_PINCTRL_LEWISBURG is not set
# CONFIG_PINCTRL_METEORLAKE is not set
# CONFIG_PINCTRL_SUNRISEPOINT is not set
# CONFIG_PINCTRL_TIGERLAKE is not set
# end of Intel pinctrl drivers
#
# Renesas pinctrl drivers
#
# end of Renesas pinctrl drivers
CONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_GPIO_ACPI=y
# CONFIG_DEBUG_GPIO is not setCONFIG_GPIO_SYSFS=yCONFIG_GPIO_CDEV=yCONFIG_GPIO_CDEV_V1=y
#
# Memory mapped GPIO drivers
#
# CONFIG_GPIO_AMDPT is not set
# CONFIG_GPIO_DWAPB is not set
# CONFIG_GPIO_EXAR is not set
# CONFIG_GPIO_GENERIC_PLATFORM is not setCONFIG_GPIO_ICH=m
# CONFIG_GPIO_MB86S7X is not set
# CONFIG_GPIO_AMD_FCH is not set
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#
# CONFIG_GPIO_VX855 is not set
# CONFIG_GPIO_F7188X is not set
# CONFIG_GPIO_IT87 is not set
# CONFIG_GPIO_SCH is not set
# CONFIG_GPIO_SCH311X is not set
# CONFIG_GPIO_WINBOND is not set
# CONFIG_GPIO_WS16C48 is not set
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#
# CONFIG_GPIO_FXL6408 is not set
# CONFIG_GPIO_DS4520 is not set
# CONFIG_GPIO_MAX7300 is not set
# CONFIG_GPIO_MAX732X is not set
# CONFIG_GPIO_PCA953X is not set
# CONFIG_GPIO_PCA9570 is not set
# CONFIG_GPIO_PCF857X is not set
# CONFIG_GPIO_TPIC2810 is not set
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#
# CONFIG_GPIO_ELKHARTLAKE is not set
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#
# CONFIG_GPIO_AMD8111 is not set
# CONFIG_GPIO_BT8XX is not set
# CONFIG_GPIO_ML_IOH is not set
# CONFIG_GPIO_PCI_IDIO_16 is not set
# CONFIG_GPIO_PCIE_IDIO_24 is not set
# CONFIG_GPIO_RDC321X is not set
# end of PCI GPIO expanders
#
# SPI GPIO expanders
#
# CONFIG_GPIO_MAX3191X is not set
# CONFIG_GPIO_MAX7301 is not set
# CONFIG_GPIO_MC33880 is not set
# CONFIG_GPIO_PISOSR is not set
# CONFIG_GPIO_XRA1403 is not set
# end of SPI GPIO expanders
#
# USB GPIO expanders
#
# end of USB GPIO expanders
#
# Virtual GPIO drivers
#
# CONFIG_GPIO_AGGREGATOR is not set
# CONFIG_GPIO_LATCH is not set
# CONFIG_GPIO_MOCKUP is not set
# CONFIG_GPIO_VIRTIO is not set
# CONFIG_GPIO_SIM is not set
# end of Virtual GPIO drivers
# CONFIG_W1 is not setCONFIG_POWER_RESET=y
# CONFIG_POWER_RESET_RESTART is not setCONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not setCONFIG_POWER_SUPPLY_HWMON=y
# CONFIG_IP5XXX_POWER is not set
# CONFIG_TEST_POWER is not set
# CONFIG_CHARGER_ADP5061 is not set
# CONFIG_BATTERY_CW2015 is not set
# CONFIG_BATTERY_DS2780 is not set
# CONFIG_BATTERY_DS2781 is not set
# CONFIG_BATTERY_DS2782 is not set
# CONFIG_BATTERY_SAMSUNG_SDI is not set
# CONFIG_BATTERY_SBS is not set
# CONFIG_CHARGER_SBS is not set
# CONFIG_MANAGER_SBS is not set
# CONFIG_BATTERY_BQ27XXX is not set
# CONFIG_BATTERY_MAX17040 is not set
# CONFIG_BATTERY_MAX17042 is not set
# CONFIG_CHARGER_MAX8903 is not set
# CONFIG_CHARGER_LP8727 is not set
# CONFIG_CHARGER_GPIO is not set
# CONFIG_CHARGER_LT3651 is not set
# CONFIG_CHARGER_LTC4162L is not set
# CONFIG_CHARGER_MAX77976 is not set
# CONFIG_CHARGER_BQ2415X is not set
# CONFIG_CHARGER_BQ24257 is not set
# CONFIG_CHARGER_BQ24735 is not set
# CONFIG_CHARGER_BQ2515X is not set
# CONFIG_CHARGER_BQ25890 is not set
# CONFIG_CHARGER_BQ25980 is not set
# CONFIG_CHARGER_BQ256XX is not set
# CONFIG_BATTERY_GAUGE_LTC2941 is not set
# CONFIG_BATTERY_GOLDFISH is not set
# CONFIG_BATTERY_RT5033 is not set
# CONFIG_CHARGER_RT9455 is not set
# CONFIG_CHARGER_BD99954 is not set
# CONFIG_BATTERY_UG3105 is not setCONFIG_HWMON=yCONFIG_HWMON_VID=m
# CONFIG_HWMON_DEBUG_CHIP is not set
#
# Native drivers
#CONFIG_SENSORS_ABITUGURU=mCONFIG_SENSORS_ABITUGURU3=m
# CONFIG_SENSORS_AD7314 is not setCONFIG_SENSORS_AD7414=mCONFIG_SENSORS_AD7418=mCONFIG_SENSORS_ADM1025=mCONFIG_SENSORS_ADM1026=mCONFIG_SENSORS_ADM1029=mCONFIG_SENSORS_ADM1031=m
# CONFIG_SENSORS_ADM1177 is not setCONFIG_SENSORS_ADM9240=mCONFIG_SENSORS_ADT7X10=m
# CONFIG_SENSORS_ADT7310 is not setCONFIG_SENSORS_ADT7410=mCONFIG_SENSORS_ADT7411=mCONFIG_SENSORS_ADT7462=mCONFIG_SENSORS_ADT7470=mCONFIG_SENSORS_ADT7475=m
# CONFIG_SENSORS_AHT10 is not set
# CONFIG_SENSORS_AQUACOMPUTER_D5NEXT is not set
# CONFIG_SENSORS_AS370 is not setCONFIG_SENSORS_ASC7621=m
# CONFIG_SENSORS_AXI_FAN_CONTROL is not setCONFIG_SENSORS_K8TEMP=mCONFIG_SENSORS_APPLESMC=mCONFIG_SENSORS_ASB100=mCONFIG_SENSORS_ATXP1=m
# CONFIG_SENSORS_CORSAIR_CPRO is not set
# CONFIG_SENSORS_CORSAIR_PSU is not set
# CONFIG_SENSORS_DRIVETEMP is not setCONFIG_SENSORS_DS620=mCONFIG_SENSORS_DS1621=m
# CONFIG_SENSORS_DELL_SMM is not setCONFIG_SENSORS_I5K_AMB=mCONFIG_SENSORS_F71805F=mCONFIG_SENSORS_F71882FG=mCONFIG_SENSORS_F75375S=mCONFIG_SENSORS_FSCHMD=m
# CONFIG_SENSORS_FTSTEUTATES is not setCONFIG_SENSORS_GL518SM=mCONFIG_SENSORS_GL520SM=mCONFIG_SENSORS_G760A=m
# CONFIG_SENSORS_G762 is not set
# CONFIG_SENSORS_HIH6130 is not set
# CONFIG_SENSORS_HS3001 is not setCONFIG_SENSORS_IBMAEM=mCONFIG_SENSORS_IBMPEX=mCONFIG_SENSORS_I5500=mCONFIG_SENSORS_CORETEMP=mCONFIG_SENSORS_IT87=mCONFIG_SENSORS_JC42=m
# CONFIG_SENSORS_POWR1220 is not setCONFIG_SENSORS_LINEAGE=m
# CONFIG_SENSORS_LTC2945 is not set
# CONFIG_SENSORS_LTC2947_I2C is not set
# CONFIG_SENSORS_LTC2947_SPI is not set
# CONFIG_SENSORS_LTC2990 is not set
# CONFIG_SENSORS_LTC2992 is not setCONFIG_SENSORS_LTC4151=mCONFIG_SENSORS_LTC4215=m
# CONFIG_SENSORS_LTC4222 is not setCONFIG_SENSORS_LTC4245=m
# CONFIG_SENSORS_LTC4260 is not setCONFIG_SENSORS_LTC4261=m
# CONFIG_SENSORS_MAX1111 is not set
# CONFIG_SENSORS_MAX127 is not setCONFIG_SENSORS_MAX16065=mCONFIG_SENSORS_MAX1619=mCONFIG_SENSORS_MAX1668=mCONFIG_SENSORS_MAX197=m
# CONFIG_SENSORS_MAX31722 is not set
# CONFIG_SENSORS_MAX31730 is not set
# CONFIG_SENSORS_MAX31760 is not set
# CONFIG_MAX31827 is not set
# CONFIG_SENSORS_MAX6620 is not set
# CONFIG_SENSORS_MAX6621 is not setCONFIG_SENSORS_MAX6639=mCONFIG_SENSORS_MAX6650=mCONFIG_SENSORS_MAX6697=m
# CONFIG_SENSORS_MAX31790 is not set
# CONFIG_SENSORS_MC34VR500 is not setCONFIG_SENSORS_MCP3021=m
# CONFIG_SENSORS_TC654 is not set
# CONFIG_SENSORS_TPS23861 is not set
# CONFIG_SENSORS_MR75203 is not set
# CONFIG_SENSORS_ADCXX is not setCONFIG_SENSORS_LM63=m
# CONFIG_SENSORS_LM70 is not setCONFIG_SENSORS_LM73=mCONFIG_SENSORS_LM75=mCONFIG_SENSORS_LM77=mCONFIG_SENSORS_LM78=mCONFIG_SENSORS_LM80=mCONFIG_SENSORS_LM83=mCONFIG_SENSORS_LM85=mCONFIG_SENSORS_LM87=mCONFIG_SENSORS_LM90=mCONFIG_SENSORS_LM92=mCONFIG_SENSORS_LM93=mCONFIG_SENSORS_LM95234=mCONFIG_SENSORS_LM95241=mCONFIG_SENSORS_LM95245=mCONFIG_SENSORS_PC87360=mCONFIG_SENSORS_PC87427=m
# CONFIG_SENSORS_NCT6683 is not setCONFIG_SENSORS_NCT6775_CORE=mCONFIG_SENSORS_NCT6775=m
# CONFIG_SENSORS_NCT6775_I2C is not set
# CONFIG_SENSORS_NCT7802 is not set
# CONFIG_SENSORS_NCT7904 is not set
# CONFIG_SENSORS_NPCM7XX is not set
# CONFIG_SENSORS_NZXT_KRAKEN2 is not set
# CONFIG_SENSORS_NZXT_SMART2 is not set
# CONFIG_SENSORS_OCC_P8_I2C is not set
# CONFIG_SENSORS_OXP is not setCONFIG_SENSORS_PCF8591=m
# CONFIG_PMBUS is not set
# CONFIG_SENSORS_SBTSI is not set
# CONFIG_SENSORS_SBRMI is not setCONFIG_SENSORS_SHT15=mCONFIG_SENSORS_SHT21=m
# CONFIG_SENSORS_SHT3x is not set
# CONFIG_SENSORS_SHT4x is not set
# CONFIG_SENSORS_SHTC1 is not setCONFIG_SENSORS_SIS5595=mCONFIG_SENSORS_DME1737=mCONFIG_SENSORS_EMC1403=m
# CONFIG_SENSORS_EMC2103 is not set
# CONFIG_SENSORS_EMC2305 is not setCONFIG_SENSORS_EMC6W201=mCONFIG_SENSORS_SMSC47M1=mCONFIG_SENSORS_SMSC47M192=mCONFIG_SENSORS_SMSC47B397=mCONFIG_SENSORS_SCH56XX_COMMON=mCONFIG_SENSORS_SCH5627=mCONFIG_SENSORS_SCH5636=m
# CONFIG_SENSORS_STTS751 is not set
# CONFIG_SENSORS_ADC128D818 is not setCONFIG_SENSORS_ADS7828=m
# CONFIG_SENSORS_ADS7871 is not setCONFIG_SENSORS_AMC6821=mCONFIG_SENSORS_INA209=mCONFIG_SENSORS_INA2XX=m
# CONFIG_SENSORS_INA238 is not set
# CONFIG_SENSORS_INA3221 is not set
# CONFIG_SENSORS_TC74 is not setCONFIG_SENSORS_THMC50=mCONFIG_SENSORS_TMP102=m
# CONFIG_SENSORS_TMP103 is not set
# CONFIG_SENSORS_TMP108 is not setCONFIG_SENSORS_TMP401=mCONFIG_SENSORS_TMP421=m
# CONFIG_SENSORS_TMP464 is not set
# CONFIG_SENSORS_TMP513 is not setCONFIG_SENSORS_VIA_CPUTEMP=mCONFIG_SENSORS_VIA686A=mCONFIG_SENSORS_VT1211=mCONFIG_SENSORS_VT8231=m
# CONFIG_SENSORS_W83773G is not setCONFIG_SENSORS_W83781D=mCONFIG_SENSORS_W83791D=mCONFIG_SENSORS_W83792D=mCONFIG_SENSORS_W83793=mCONFIG_SENSORS_W83795=m
# CONFIG_SENSORS_W83795_FANCTRL is not setCONFIG_SENSORS_W83L785TS=mCONFIG_SENSORS_W83L786NG=mCONFIG_SENSORS_W83627HF=mCONFIG_SENSORS_W83627EHF=m
# CONFIG_SENSORS_XGENE is not set
#
# ACPI drivers
#CONFIG_SENSORS_ACPI_POWER=m CONFIG_SENSORS_ATK0110=m
# CONFIG_SENSORS_ASUS_WMI is not set
# CONFIG_SENSORS_ASUS_EC is not set
# CONFIG_SENSORS_HP_WMI is not set CONFIG_THERMAL=y
# CONFIG_THERMAL_NETLINK is not set
# CONFIG_THERMAL_STATISTICS is not set CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 CONFIG_THERMAL_HWMON=y CONFIG_THERMAL_ACPI=y CONFIG_THERMAL_WRITABLE_TRIPS=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=y CONFIG_THERMAL_GOV_STEP_WISE=y CONFIG_THERMAL_GOV_BANG_BANG=y CONFIG_THERMAL_GOV_USER_SPACE=y
# CONFIG_THERMAL_EMULATION is not set
#
# Intel thermal drivers
#CONFIG_INTEL_POWERCLAMP=mCONFIG_X86_THERMAL_VECTOR=yCONFIG_INTEL_TCC=yCONFIG_X86_PKG_TEMP_THERMAL=m
# CONFIG_INTEL_SOC_DTS_THERMAL is not set
#
# ACPI INT340X thermal drivers
#
# CONFIG_INT340X_THERMAL is not set
# end of ACPI INT340X thermal drivers
CONFIG_INTEL_PCH_THERMAL=m
# CONFIG_INTEL_TCC_COOLING is not set
# CONFIG_INTEL_HFI_THERMAL is not set
# end of Intel thermal drivers
CONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=y
# CONFIG_WATCHDOG_NOWAYOUT is not setCONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=yCONFIG_WATCHDOG_OPEN_TIMEOUT=0CONFIG_WATCHDOG_SYSFS=y
# CONFIG_WATCHDOG_HRTIMER_PRETIMEOUT is not set
#
# Watchdog Pretimeout Governors
#
# CONFIG_WATCHDOG_PRETIMEOUT_GOV is not set
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=mCONFIG_WDAT_WDT=m
# CONFIG_XILINX_WATCHDOG is not set
# CONFIG_ZIIRAVE_WATCHDOG is not set
# CONFIG_CADENCE_WATCHDOG is not set
# CONFIG_DW_WATCHDOG is not set
# CONFIG_MAX63XX_WATCHDOG is not set
# CONFIG_ACQUIRE_WDT is not set
# CONFIG_ADVANTECH_WDT is not set
# CONFIG_ADVANTECH_EC_WDT is not setCONFIG_ALIM1535_WDT=mCONFIG_ALIM7101_WDT=m
# CONFIG_EBC_C384_WDT is not set
# CONFIG_EXAR_WDT is not setCONFIG_F71808E_WDT=m
# CONFIG_SP5100_TCO is not setCONFIG_SBC_FITPC2_WATCHDOG=m
# CONFIG_EUROTECH_WDT is not setCONFIG_IB700_WDT=mCONFIG_IBMASR=m
# CONFIG_WAFER_WDT is not setCONFIG_I6300ESB_WDT=yCONFIG_IE6XX_WDT=mCONFIG_ITCO_WDT=yCONFIG_ITCO_VENDOR_SUPPORT=yCONFIG_IT8712F_WDT=mCONFIG_IT87_WDT=mCONFIG_HP_WATCHDOG=mCONFIG_HPWDT_NMI_DECODING=y
# CONFIG_SC1200_WDT is not set
# CONFIG_PC87413_WDT is not setCONFIG_NV_TCO=m
# CONFIG_60XX_WDT is not set
# CONFIG_CPU5_WDT is not setCONFIG_SMSC_SCH311X_WDT=m
# CONFIG_SMSC37B787_WDT is not set
# CONFIG_TQMX86_WDT is not setCONFIG_VIA_WDT=mCONFIG_W83627HF_WDT=mCONFIG_W83877F_WDT=mCONFIG_W83977F_WDT=mCONFIG_MACHZ_WDT=m
# CONFIG_SBC_EPX_C3_WATCHDOG is not setCONFIG_INTEL_MEI_WDT=m
# CONFIG_NI903X_WDT is not set
# CONFIG_NIC7018_WDT is not set
# CONFIG_MEN_A21_WDT is not set
#
# PCI-based Watchdog Cards
#CONFIG_PCIPCWATCHDOG=mCONFIG_WDTPCI=m
#
# USB-based Watchdog Cards
#
# CONFIG_USBPCWATCHDOG is not setCONFIG_SSB_POSSIBLE=y
# CONFIG_SSB is not setCONFIG_BCMA_POSSIBLE=y
# CONFIG_BCMA is not set
#
# Multifunction device drivers
#CONFIG_MFD_CORE=y
# CONFIG_MFD_AS3711 is not set
# CONFIG_MFD_SMPRO is not set
# CONFIG_PMIC_ADP5520 is not set
# CONFIG_MFD_AAT2870_CORE is not set
# CONFIG_MFD_BCM590XX is not set
# CONFIG_MFD_BD9571MWV is not set
# CONFIG_MFD_AXP20X_I2C is not set
# CONFIG_MFD_CS42L43_I2C is not set
# CONFIG_MFD_MADERA is not set
# CONFIG_PMIC_DA903X is not set
# CONFIG_MFD_DA9052_SPI is not set
# CONFIG_MFD_DA9052_I2C is not set
# CONFIG_MFD_DA9055 is not set
# CONFIG_MFD_DA9062 is not set
# CONFIG_MFD_DA9063 is not set
# CONFIG_MFD_DA9150 is not set
# CONFIG_MFD_DLN2 is not set
# CONFIG_MFD_MC13XXX_SPI is not set
# CONFIG_MFD_MC13XXX_I2C is not set
# CONFIG_MFD_MP2629 is not set
# CONFIG_MFD_INTEL_QUARK_I2C_GPIO is not setCONFIG_LPC_ICH=mCONFIG_LPC_SCH=mCONFIG_MFD_INTEL_LPSS=yCONFIG_MFD_INTEL_LPSS_ACPI=yCONFIG_MFD_INTEL_LPSS_PCI=y
# CONFIG_MFD_INTEL_PMC_BXT is not set
# CONFIG_MFD_IQS62X is not set
# CONFIG_MFD_JANZ_CMODIO is not set
# CONFIG_MFD_KEMPLD is not set
# CONFIG_MFD_88PM800 is not set
# CONFIG_MFD_88PM805 is not set
# CONFIG_MFD_88PM860X is not set
# CONFIG_MFD_MAX14577 is not set
# CONFIG_MFD_MAX77541 is not set
# CONFIG_MFD_MAX77693 is not set
# CONFIG_MFD_MAX77843 is not set
# CONFIG_MFD_MAX8907 is not set
# CONFIG_MFD_MAX8925 is not set
# CONFIG_MFD_MAX8997 is not set
# CONFIG_MFD_MAX8998 is not set
# CONFIG_MFD_MT6360 is not set
# CONFIG_MFD_MT6370 is not set
# CONFIG_MFD_MT6397 is not set
# CONFIG_MFD_MENF21BMC is not set
# CONFIG_MFD_OCELOT is not set
# CONFIG_EZX_PCAP is not set
# CONFIG_MFD_VIPERBOARD is not set
# CONFIG_MFD_RETU is not set
# CONFIG_MFD_PCF50633 is not set
# CONFIG_MFD_SY7636A is not set
# CONFIG_MFD_RDC321X is not set
# CONFIG_MFD_RT4831 is not set
# CONFIG_MFD_RT5033 is not set
# CONFIG_MFD_RT5120 is not set
# CONFIG_MFD_RC5T583 is not set
# CONFIG_MFD_SI476X_CORE is not setCONFIG_MFD_SM501=mCONFIG_MFD_SM501_GPIO=y
# CONFIG_MFD_SKY81452 is not set
# CONFIG_MFD_SYSCON is not set
# CONFIG_MFD_TI_AM335X_TSCADC is not set
# CONFIG_MFD_LP3943 is not set
# CONFIG_MFD_LP8788 is not set
# CONFIG_MFD_TI_LMU is not set
# CONFIG_MFD_PALMAS is not set
# CONFIG_TPS6105X is not set
# CONFIG_TPS65010 is not set
# CONFIG_TPS6507X is not set
# CONFIG_MFD_TPS65086 is not set
# CONFIG_MFD_TPS65090 is not set
# CONFIG_MFD_TI_LP873X is not set
# CONFIG_MFD_TPS6586X is not set
# CONFIG_MFD_TPS65910 is not set
# CONFIG_MFD_TPS65912_I2C is not set
# 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 set
# CONFIG_MFD_TQMX86 is not setCONFIG_MFD_VX855=m
# CONFIG_MFD_ARIZONA_I2C is not set
# CONFIG_MFD_ARIZONA_SPI is not set
# CONFIG_MFD_WM8400 is not set
# CONFIG_MFD_WM831X_I2C is not set
# CONFIG_MFD_WM831X_SPI is not set
# CONFIG_MFD_WM8350_I2C is not set
# CONFIG_MFD_WM8994 is not set
# CONFIG_MFD_ATC260X_I2C is not set
# CONFIG_MFD_INTEL_M10_BMC_SPI is not set
# end of Multifunction device drivers
# CONFIG_REGULATOR is not setCONFIG_RC_CORE=mCONFIG_LIRC=yCONFIG_RC_MAP=mCONFIG_RC_DECODERS=yCONFIG_IR_IMON_DECODER=mCONFIG_IR_JVC_DECODER=mCONFIG_IR_MCE_KBD_DECODER=mCONFIG_IR_NEC_DECODER=mCONFIG_IR_RC5_DECODER=mCONFIG_IR_RC6_DECODER=m
# CONFIG_IR_RCMM_DECODER is not setCONFIG_IR_SANYO_DECODER=m
# CONFIG_IR_SHARP_DECODER is not setCONFIG_IR_SONY_DECODER=m
# CONFIG_IR_XMP_DECODER is not setCONFIG_RC_DEVICES=yCONFIG_IR_ENE=mCONFIG_IR_FINTEK=m
# CONFIG_IR_IGORPLUGUSB is not set
# CONFIG_IR_IGUANA is not set
# CONFIG_IR_IMON is not set
# CONFIG_IR_IMON_RAW is not setCONFIG_IR_ITE_CIR=m
# CONFIG_IR_MCEUSB is not setCONFIG_IR_NUVOTON=m
# CONFIG_IR_REDRAT3 is not setCONFIG_IR_SERIAL=mCONFIG_IR_SERIAL_TRANSMITTER=y
# CONFIG_IR_STREAMZAP is not set
# CONFIG_IR_TOY is not set
# CONFIG_IR_TTUSBIR is not setCONFIG_IR_WINBOND_CIR=m
# CONFIG_RC_ATI_REMOTE is not set
# CONFIG_RC_LOOPBACK is not set
# CONFIG_RC_XBOX_DVD is not set
#
# CEC support
#
# CONFIG_MEDIA_CEC_SUPPORT is not set
# end of CEC support
CONFIG_MEDIA_SUPPORT=mCONFIG_MEDIA_SUPPORT_FILTER=yCONFIG_MEDIA_SUBDRV_AUTOSELECT=y
#
# Media device types
#
# CONFIG_MEDIA_CAMERA_SUPPORT is not set
# CONFIG_MEDIA_ANALOG_TV_SUPPORT is not set
# CONFIG_MEDIA_DIGITAL_TV_SUPPORT is not set
# CONFIG_MEDIA_RADIO_SUPPORT is not set
# CONFIG_MEDIA_SDR_SUPPORT is not set
# CONFIG_MEDIA_PLATFORM_SUPPORT is not set
# CONFIG_MEDIA_TEST_SUPPORT is not set
# end of Media device types
#
# Media drivers
#
#
# Drivers filtered as selected at 'Filter media drivers' #
#
# Media drivers
#
# CONFIG_MEDIA_USB_SUPPORT is not set
# CONFIG_MEDIA_PCI_SUPPORT is not set
# end of Media drivers
#
# Media ancillary drivers
#
# end of Media ancillary drivers
#
# Graphics support
#CONFIG_APERTURE_HELPERS=y CONFIG_VIDEO_CMDLINE=y CONFIG_VIDEO_NOMODESET=y
# CONFIG_AUXDISPLAY is not set
# CONFIG_PANEL is not set
# CONFIG_AGP is not setCONFIG_INTEL_GTT=mCONFIG_VGA_SWITCHEROO=yCONFIG_DRM=mCONFIG_DRM_MIPI_DSI=y CONFIG_DRM_KMS_HELPER=m
# CONFIG_DRM_DEBUG_DP_MST_TOPOLOGY_REFS is not set # CONFIG_DRM_DEBUG_MODESET_LOCK is not set CONFIG_DRM_FBDEV_EMULATION=y CONFIG_DRM_FBDEV_OVERALLOC=100
# CONFIG_DRM_FBDEV_LEAK_PHYS_SMEM is not set CONFIG_DRM_LOAD_EDID_FIRMWARE=y CONFIG_DRM_DISPLAY_HELPER=m CONFIG_DRM_DISPLAY_DP_HELPER=y CONFIG_DRM_DISPLAY_HDCP_HELPER=y CONFIG_DRM_DISPLAY_HDMI_HELPER=y CONFIG_DRM_DP_AUX_CHARDEV=y
# CONFIG_DRM_DP_CEC is not set CONFIG_DRM_TTM=mCONFIG_DRM_BUDDY=m CONFIG_DRM_VRAM_HELPER=m CONFIG_DRM_TTM_HELPER=m CONFIG_DRM_GEM_SHMEM_HELPER=m
#
# I2C encoder or helper chips
#
# CONFIG_DRM_I2C_CH7006 is not set
# CONFIG_DRM_I2C_SIL164 is not set
# CONFIG_DRM_I2C_NXP_TDA998X is not set
# CONFIG_DRM_I2C_NXP_TDA9950 is not set
# end of I2C encoder or helper chips
#
# ARM devices
#
# end of ARM devices
# CONFIG_DRM_RADEON is not set
# CONFIG_DRM_AMDGPU is not set
# CONFIG_DRM_NOUVEAU is not setCONFIG_DRM_I915=mCONFIG_DRM_I915_FORCE_PROBE=""CONFIG_DRM_I915_CAPTURE_ERROR=yCONFIG_DRM_I915_COMPRESS_ERROR=yCONFIG_DRM_I915_USERPTR=y
# CONFIG_DRM_I915_GVT_KVMGT is not set
#
# drm/i915 Debugging # # CONFIG_DRM_I915_WERROR is not set # CONFIG_DRM_I915_DEBUG is not set # CONFIG_DRM_I915_DEBUG_MMIO is not set # CONFIG_DRM_I915_SW_FENCE_DEBUG_OBJECTS is not set # CONFIG_DRM_I915_SW_FENCE_CHECK_DAG is not set # CONFIG_DRM_I915_DEBUG_GUC is not set # CONFIG_DRM_I915_SELFTEST is not set # CONFIG_DRM_I915_LOW_LEVEL_TRACEPOINTS is not set # CONFIG_DRM_I915_DEBUG_VBLANK_EVADE is not set # CONFIG_DRM_I915_DEBUG_RUNTIME_PM is not set # end of drm/i915 Debugging
#
# drm/i915 Profile Guided Optimisation # CONFIG_DRM_I915_REQUEST_TIMEOUT=20000 CONFIG_DRM_I915_FENCE_TIMEOUT=10000 CONFIG_DRM_I915_USERFAULT_AUTOSUSPEND=250 CONFIG_DRM_I915_HEARTBEAT_INTERVAL=2500 CONFIG_DRM_I915_PREEMPT_TIMEOUT=640 CONFIG_DRM_I915_PREEMPT_TIMEOUT_COMPUTE=7500 CONFIG_DRM_I915_MAX_REQUEST_BUSYWAIT=8000 CONFIG_DRM_I915_STOP_TIMEOUT=100 CONFIG_DRM_I915_TIMESLICE_DURATION=1 # end of drm/i915 Profile Guided Optimisation
# CONFIG_DRM_VGEM is not set
# CONFIG_DRM_VKMS is not set
# CONFIG_DRM_VMWGFX is not set
# CONFIG_DRM_GMA500 is not set
# CONFIG_DRM_UDL is not setCONFIG_DRM_AST=m
# CONFIG_DRM_MGAG200 is not setCONFIG_DRM_QXL=mCONFIG_DRM_VIRTIO_GPU=mCONFIG_DRM_VIRTIO_GPU_KMS=yCONFIG_DRM_PANEL=y
#
# Display Panels
#
# CONFIG_DRM_PANEL_AUO_A030JTN01 is not set
# CONFIG_DRM_PANEL_ORISETECH_OTA5601A is not set # CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN is not set # CONFIG_DRM_PANEL_WIDECHIPS_WS2401 is not set
# end of Display Panels
CONFIG_DRM_BRIDGE=yCONFIG_DRM_PANEL_BRIDGE=y
#
# Display Interface Bridges
#
# CONFIG_DRM_ANALOGIX_ANX78XX is not set
# end of Display Interface Bridges
# CONFIG_DRM_LOONGSON is not set
# CONFIG_DRM_ETNAVIV is not setCONFIG_DRM_BOCHS=mCONFIG_DRM_CIRRUS_QEMU=m
# CONFIG_DRM_GM12U320 is not set
# CONFIG_DRM_PANEL_MIPI_DBI is not set
# CONFIG_DRM_SIMPLEDRM is not set
# CONFIG_TINYDRM_HX8357D is not set
# CONFIG_TINYDRM_ILI9163 is not set
# CONFIG_TINYDRM_ILI9225 is not set
# CONFIG_TINYDRM_ILI9341 is not set
# CONFIG_TINYDRM_ILI9486 is not set
# CONFIG_TINYDRM_MI0283QT is not set
# CONFIG_TINYDRM_REPAPER is not set
# CONFIG_TINYDRM_ST7586 is not set
# CONFIG_TINYDRM_ST7735R is not set
# CONFIG_DRM_VBOXVIDEO is not set
# CONFIG_DRM_GUD is not set
# CONFIG_DRM_SSD130X is not set
# CONFIG_DRM_HYPERV is not set
# CONFIG_DRM_LEGACY is not setCONFIG_DRM_PANEL_ORIENTATION_QUIRKS=y
#
# Frame buffer Devices
#CONFIG_FB=y
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
# CONFIG_FB_UVESA is not setCONFIG_FB_VESA=yCONFIG_FB_EFI=y
# CONFIG_FB_N411 is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_OPENCORES is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I740 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_VIA is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_CARMINE is not set
# CONFIG_FB_SM501 is not set
# CONFIG_FB_SMSCUFX is not set
# CONFIG_FB_UDL is not set
# CONFIG_FB_IBM_GXT4500 is not set
# CONFIG_FB_VIRTUAL is not set
# CONFIG_FB_METRONOME is not set
# CONFIG_FB_MB862XX is not setCONFIG_FB_HYPERV=m
# CONFIG_FB_SIMPLE is not set
# CONFIG_FB_SSD1307 is not set
# CONFIG_FB_SM712 is not setCONFIG_FB_CORE=yCONFIG_FB_NOTIFY=y
# CONFIG_FIRMWARE_EDID is not setCONFIG_FB_DEVICE=yCONFIG_FB_CFB_FILLRECT=yCONFIG_FB_CFB_COPYAREA=yCONFIG_FB_CFB_IMAGEBLIT=yCONFIG_FB_SYS_FILLRECT=yCONFIG_FB_SYS_COPYAREA=yCONFIG_FB_SYS_IMAGEBLIT=y
# CONFIG_FB_FOREIGN_ENDIAN is not setCONFIG_FB_SYS_FOPS=yCONFIG_FB_DEFERRED_IO=yCONFIG_FB_IOMEM_HELPERS=yCONFIG_FB_SYSMEM_HELPERS=yCONFIG_FB_SYSMEM_HELPERS_DEFERRED=y
# CONFIG_FB_MODE_HELPERS is not setCONFIG_FB_TILEBLITTING=y
# end of Frame buffer Devices
#
# Backlight & LCD device support
#CONFIG_LCD_CLASS_DEVICE=m
# CONFIG_LCD_L4F00242T03 is not set
# CONFIG_LCD_LMS283GF05 is not set
# CONFIG_LCD_LTV350QV is not set
# CONFIG_LCD_ILI922X is not set
# CONFIG_LCD_ILI9320 is not set
# CONFIG_LCD_TDO24M is not set
# CONFIG_LCD_VGG2432A4 is not setCONFIG_LCD_PLATFORM=m
# CONFIG_LCD_AMS369FG06 is not set
# CONFIG_LCD_LMS501KF03 is not set
# CONFIG_LCD_HX8357 is not set
# CONFIG_LCD_OTM3225A is not setCONFIG_BACKLIGHT_CLASS_DEVICE=y
# CONFIG_BACKLIGHT_KTD253 is not set
# CONFIG_BACKLIGHT_KTZ8866 is not set
# CONFIG_BACKLIGHT_PWM is not setCONFIG_BACKLIGHT_APPLE=m
# CONFIG_BACKLIGHT_QCOM_WLED is not set
# CONFIG_BACKLIGHT_SAHARA is not set
# CONFIG_BACKLIGHT_ADP8860 is not set
# CONFIG_BACKLIGHT_ADP8870 is not set
# CONFIG_BACKLIGHT_LM3630A is not set
# CONFIG_BACKLIGHT_LM3639 is not setCONFIG_BACKLIGHT_LP855X=m
# CONFIG_BACKLIGHT_GPIO is not set
# CONFIG_BACKLIGHT_LV5207LP is not set
# CONFIG_BACKLIGHT_BD6107 is not set
# CONFIG_BACKLIGHT_ARCXCNN is not set
# end of Backlight & LCD device support
CONFIG_HDMI=y
#
# Console display driver support
#CONFIG_VGA_CONSOLE=yCONFIG_DUMMY_CONSOLE=y CONFIG_DUMMY_CONSOLE_COLUMNS=80 CONFIG_DUMMY_CONSOLE_ROWS=25 CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_LEGACY_ACCELERATION is not set CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
# CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER is not set
# end of Console display driver support
CONFIG_LOGO=y
# CONFIG_LOGO_LINUX_MONO is not set
# CONFIG_LOGO_LINUX_VGA16 is not setCONFIG_LOGO_LINUX_CLUT224=y
# end of Graphics support
# CONFIG_DRM_ACCEL is not set
# CONFIG_SOUND is not setCONFIG_HID_SUPPORT=yCONFIG_HID=yCONFIG_HID_BATTERY_STRENGTH=yCONFIG_HIDRAW=yCONFIG_UHID=mCONFIG_HID_GENERIC=y
#
# Special HID drivers
#CONFIG_HID_A4TECH=m
# CONFIG_HID_ACCUTOUCH is not setCONFIG_HID_ACRUX=m
# CONFIG_HID_ACRUX_FF is not setCONFIG_HID_APPLE=m
# CONFIG_HID_APPLEIR is not setCONFIG_HID_ASUS=mCONFIG_HID_AUREAL=mCONFIG_HID_BELKIN=m
# CONFIG_HID_BETOP_FF is not set
# CONFIG_HID_BIGBEN_FF is not setCONFIG_HID_CHERRY=m
# CONFIG_HID_CHICONY is not set
# CONFIG_HID_CORSAIR is not set
# CONFIG_HID_COUGAR is not set
# CONFIG_HID_MACALLY is not setCONFIG_HID_CMEDIA=m
# CONFIG_HID_CP2112 is not set
# CONFIG_HID_CREATIVE_SB0540 is not setCONFIG_HID_CYPRESS=mCONFIG_HID_DRAGONRISE=m
# CONFIG_DRAGONRISE_FF is not set
# CONFIG_HID_EMS_FF is not set
# CONFIG_HID_ELAN is not setCONFIG_HID_ELECOM=m
# CONFIG_HID_ELO is not set
# CONFIG_HID_EVISION is not setCONFIG_HID_EZKEY=m
# CONFIG_HID_FT260 is not setCONFIG_HID_GEMBIRD=mCONFIG_HID_GFRM=m
# CONFIG_HID_GLORIOUS is not set
# CONFIG_HID_HOLTEK is not set
# CONFIG_HID_GOOGLE_STADIA_FF is not set
# CONFIG_HID_VIVALDI is not set
# CONFIG_HID_GT683R is not setCONFIG_HID_KEYTOUCH=mCONFIG_HID_KYE=m
# CONFIG_HID_UCLOGIC is not setCONFIG_HID_WALTOP=m
# CONFIG_HID_VIEWSONIC is not set
# CONFIG_HID_VRC2 is not set
# CONFIG_HID_XIAOMI is not setCONFIG_HID_GYRATION=mCONFIG_HID_ICADE=mCONFIG_HID_ITE=mCONFIG_HID_JABRA=mCONFIG_HID_TWINHAN=mCONFIG_HID_KENSINGTON=mCONFIG_HID_LCPOWER=mCONFIG_HID_LED=mCONFIG_HID_LENOVO=m
# CONFIG_HID_LETSKETCH is not setCONFIG_HID_LOGITECH=mCONFIG_HID_LOGITECH_DJ=mCONFIG_HID_LOGITECH_HIDPP=m
# CONFIG_LOGITECH_FF is not set
# CONFIG_LOGIRUMBLEPAD2_FF is not set
# CONFIG_LOGIG940_FF is not set
# CONFIG_LOGIWHEELS_FF is not setCONFIG_HID_MAGICMOUSE=y
# CONFIG_HID_MALTRON is not set
# CONFIG_HID_MAYFLASH is not set
# CONFIG_HID_MEGAWORLD_FF is not set
# CONFIG_HID_REDRAGON is not setCONFIG_HID_MICROSOFT=mCONFIG_HID_MONTEREY=mCONFIG_HID_MULTITOUCH=m
# CONFIG_HID_NINTENDO is not setCONFIG_HID_NTI=m
# CONFIG_HID_NTRIG is not setCONFIG_HID_ORTEK=mCONFIG_HID_PANTHERLORD=m
# CONFIG_PANTHERLORD_FF is not set
# CONFIG_HID_PENMOUNT is not setCONFIG_HID_PETALYNX=mCONFIG_HID_PICOLCD=mCONFIG_HID_PICOLCD_FB=yCONFIG_HID_PICOLCD_BACKLIGHT=yCONFIG_HID_PICOLCD_LCD=yCONFIG_HID_PICOLCD_LEDS=yCONFIG_HID_PICOLCD_CIR=yCONFIG_HID_PLANTRONICS=m
# CONFIG_HID_PXRC is not set
# CONFIG_HID_RAZER is not setCONFIG_HID_PRIMAX=m
# CONFIG_HID_RETRODE is not set
# CONFIG_HID_ROCCAT is not setCONFIG_HID_SAITEK=mCONFIG_HID_SAMSUNG=m
# CONFIG_HID_SEMITEK is not set
# CONFIG_HID_SIGMAMICRO is not set
# CONFIG_HID_SONY is not setCONFIG_HID_SPEEDLINK=m
# CONFIG_HID_STEAM is not setCONFIG_HID_STEELSERIES=mCONFIG_HID_SUNPLUS=mCONFIG_HID_RMI=mCONFIG_HID_GREENASIA=m
# CONFIG_GREENASIA_FF is not setCONFIG_HID_HYPERV_MOUSE=mCONFIG_HID_SMARTJOYPLUS=m
# CONFIG_SMARTJOYPLUS_FF is not setCONFIG_HID_TIVO=mCONFIG_HID_TOPSEED=m
# CONFIG_HID_TOPRE is not setCONFIG_HID_THINGM=mCONFIG_HID_THRUSTMASTER=m
# CONFIG_THRUSTMASTER_FF is not set
# CONFIG_HID_UDRAW_PS3 is not set
# CONFIG_HID_U2FZERO is not set
# CONFIG_HID_WACOM is not setCONFIG_HID_WIIMOTE=mCONFIG_HID_XINMO=mCONFIG_HID_ZEROPLUS=m
# CONFIG_ZEROPLUS_FF is not setCONFIG_HID_ZYDACRON=mCONFIG_HID_SENSOR_HUB=yCONFIG_HID_SENSOR_CUSTOM_SENSOR=mCONFIG_HID_ALPS=m
# CONFIG_HID_MCP2221 is not set
# end of Special HID drivers
#
# HID-BPF support
#
# CONFIG_HID_BPF is not set
# end of HID-BPF support
#
# USB HID support
#CONFIG_USB_HID=y
# CONFIG_HID_PID is not set
# CONFIG_USB_HIDDEV is not set
# end of USB HID support
CONFIG_I2C_HID=m
# CONFIG_I2C_HID_ACPI is not set
# CONFIG_I2C_HID_OF is not set
#
# Intel ISH HID support
#
# CONFIG_INTEL_ISH_HID is not set
# end of Intel ISH HID support
#
# AMD SFH HID Support
#
# CONFIG_AMD_SFH_HID is not set
# end of AMD SFH HID Support
CONFIG_USB_OHCI_LITTLE_ENDIAN=yCONFIG_USB_SUPPORT=yCONFIG_USB_COMMON=y
# CONFIG_USB_LED_TRIG is not set
# CONFIG_USB_ULPI_BUS is not set
# CONFIG_USB_CONN_GPIO is not setCONFIG_USB_ARCH_HAS_HCD=yCONFIG_USB=yCONFIG_USB_PCI=yCONFIG_USB_ANNOUNCE_NEW_DEVICES=y
#
# Miscellaneous USB options
#CONFIG_USB_DEFAULT_PERSIST=y
# CONFIG_USB_FEW_INIT_RETRIES is not set
# CONFIG_USB_DYNAMIC_MINORS is not set
# CONFIG_USB_OTG is not set
# CONFIG_USB_OTG_PRODUCTLIST is not set
# CONFIG_USB_OTG_DISABLE_EXTERNAL_HUB is not setCONFIG_USB_LEDS_TRIGGER_USBPORT=yCONFIG_USB_AUTOSUSPEND_DELAY=2CONFIG_USB_MON=y
#
# USB Host Controller Drivers
#
# CONFIG_USB_C67X00_HCD is not setCONFIG_USB_XHCI_HCD=y
# CONFIG_USB_XHCI_DBGCAP is not setCONFIG_USB_XHCI_PCI=y
# CONFIG_USB_XHCI_PCI_RENESAS is not set
# CONFIG_USB_XHCI_PLATFORM is not setCONFIG_USB_EHCI_HCD=yCONFIG_USB_EHCI_ROOT_HUB_TT=yCONFIG_USB_EHCI_TT_NEWSCHED=yCONFIG_USB_EHCI_PCI=y
# CONFIG_USB_EHCI_FSL is not set
# CONFIG_USB_EHCI_HCD_PLATFORM is not set
# CONFIG_USB_OXU210HP_HCD is not set
# CONFIG_USB_ISP116X_HCD is not set
# CONFIG_USB_MAX3421_HCD is not setCONFIG_USB_OHCI_HCD=yCONFIG_USB_OHCI_HCD_PCI=y
# CONFIG_USB_OHCI_HCD_PLATFORM is not setCONFIG_USB_UHCI_HCD=y
# CONFIG_USB_SL811_HCD is not set
# CONFIG_USB_R8A66597_HCD is not set
# CONFIG_USB_HCD_TEST_MODE is not set
#
# USB Device Class drivers
#
# CONFIG_USB_ACM is not set
# CONFIG_USB_PRINTER is not set
# CONFIG_USB_WDM is not set
# CONFIG_USB_TMC is not set
#
# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may #
#
# also be needed; see USB_STORAGE Help for more info # CONFIG_USB_STORAGE=m # CONFIG_USB_STORAGE_DEBUG is not set # CONFIG_USB_STORAGE_REALTEK is not set # CONFIG_USB_STORAGE_DATAFAB is not set # CONFIG_USB_STORAGE_FREECOM is not set # CONFIG_USB_STORAGE_ISD200 is not set # CONFIG_USB_STORAGE_USBAT is not set # CONFIG_USB_STORAGE_SDDR09 is not set # CONFIG_USB_STORAGE_SDDR55 is not set # CONFIG_USB_STORAGE_JUMPSHOT is not set # CONFIG_USB_STORAGE_ALAUDA is not set # CONFIG_USB_STORAGE_ONETOUCH is not set # CONFIG_USB_STORAGE_KARMA is not set # CONFIG_USB_STORAGE_CYPRESS_ATACB is not set # CONFIG_USB_STORAGE_ENE_UB6250 is not set # CONFIG_USB_UAS is not set
#
# USB Imaging devices
#
# CONFIG_USB_MDC800 is not set
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
#
# USB dual-mode controller drivers
#
# CONFIG_USB_CDNS_SUPPORT is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_DWC2 is not set
# CONFIG_USB_CHIPIDEA is not set
# CONFIG_USB_ISP1760 is not set
#
# USB port drivers
#
# CONFIG_USB_SERIAL is not set
#
# USB Miscellaneous drivers
#
# CONFIG_USB_USS720 is not set
# CONFIG_USB_EMI62 is not set
# CONFIG_USB_EMI26 is not set
# CONFIG_USB_ADUTUX is not set
# CONFIG_USB_SEVSEG is not set
# CONFIG_USB_LEGOTOWER is not set
# CONFIG_USB_LCD is not set
# CONFIG_USB_CYPRESS_CY7C63 is not set
# CONFIG_USB_CYTHERM is not set
# CONFIG_USB_IDMOUSE is not set
# CONFIG_USB_APPLEDISPLAY is not set
# CONFIG_APPLE_MFI_FASTCHARGE is not set
# CONFIG_USB_SISUSBVGA is not set
# CONFIG_USB_LD is not set
# CONFIG_USB_TRANCEVIBRATOR is not set
# CONFIG_USB_IOWARRIOR is not set
# CONFIG_USB_TEST is not set
# CONFIG_USB_EHSET_TEST_FIXTURE is not set
# CONFIG_USB_ISIGHTFW is not set
# CONFIG_USB_YUREX is not set
# CONFIG_USB_EZUSB_FX2 is not set
# CONFIG_USB_HUB_USB251XB is not set
# CONFIG_USB_HSIC_USB3503 is not set
# CONFIG_USB_HSIC_USB4604 is not set
# CONFIG_USB_LINK_LAYER_TEST is not set
# CONFIG_USB_CHAOSKEY is not set
#
# USB Physical Layer drivers
#
# CONFIG_NOP_USB_XCEIV is not set
# CONFIG_USB_GPIO_VBUS is not set
# CONFIG_USB_ISP1301 is not set
# end of USB Physical Layer drivers
# CONFIG_USB_GADGET is not setCONFIG_TYPEC=y
# CONFIG_TYPEC_TCPM is not setCONFIG_TYPEC_UCSI=y
# CONFIG_UCSI_CCG is not setCONFIG_UCSI_ACPI=y
# CONFIG_UCSI_STM32G0 is not set
# CONFIG_TYPEC_TPS6598X is not set
# CONFIG_TYPEC_RT1719 is not set
# CONFIG_TYPEC_STUSB160X is not set
# CONFIG_TYPEC_WUSB3801 is not set
#
# USB Type-C Multiplexer/DeMultiplexer Switch support #
# CONFIG_TYPEC_MUX_FSA4480 is not set
# CONFIG_TYPEC_MUX_GPIO_SBU is not set
# CONFIG_TYPEC_MUX_PI3USB30532 is not set
# CONFIG_TYPEC_MUX_NB7VPQ904M is not set
# end of USB Type-C Multiplexer/DeMultiplexer Switch support
#
# USB Type-C Alternate Mode drivers
#
# CONFIG_TYPEC_DP_ALTMODE is not set
# end of USB Type-C Alternate Mode drivers
# CONFIG_USB_ROLE_SWITCH is not setCONFIG_MMC=mCONFIG_MMC_BLOCK=mCONFIG_MMC_BLOCK_MINORS=8CONFIG_SDIO_UART=m
# CONFIG_MMC_TEST is not set
#
# MMC/SD/SDIO Host Controller Drivers
#
# CONFIG_MMC_DEBUG is not setCONFIG_MMC_SDHCI=mCONFIG_MMC_SDHCI_IO_ACCESSORS=yCONFIG_MMC_SDHCI_PCI=mCONFIG_MMC_RICOH_MMC=yCONFIG_MMC_SDHCI_ACPI=mCONFIG_MMC_SDHCI_PLTFM=m
# CONFIG_MMC_SDHCI_F_SDH30 is not set
# CONFIG_MMC_WBSD is not set
# CONFIG_MMC_TIFM_SD is not set
# CONFIG_MMC_SPI is not set
# CONFIG_MMC_CB710 is not set
# CONFIG_MMC_VIA_SDMMC is not set
# CONFIG_MMC_VUB300 is not set
# CONFIG_MMC_USHC is not set
# CONFIG_MMC_USDHI6ROL0 is not setCONFIG_MMC_CQHCI=m
# CONFIG_MMC_HSQ is not set
# CONFIG_MMC_TOSHIBA_PCI is not set
# CONFIG_MMC_MTK is not set
# CONFIG_MMC_SDHCI_XENON is not set
# CONFIG_SCSI_UFSHCD is not set
# CONFIG_MEMSTICK is not setCONFIG_NEW_LEDS=yCONFIG_LEDS_CLASS=y
# CONFIG_LEDS_CLASS_FLASH is not set
# CONFIG_LEDS_CLASS_MULTICOLOR is not set
# CONFIG_LEDS_BRIGHTNESS_HW_CHANGED is not set
#
# LED drivers
#
# CONFIG_LEDS_APU is not set
# CONFIG_LEDS_AW200XX is not setCONFIG_LEDS_LM3530=m
# CONFIG_LEDS_LM3532 is not set
# CONFIG_LEDS_LM3642 is not set
# CONFIG_LEDS_PCA9532 is not set
# CONFIG_LEDS_GPIO is not setCONFIG_LEDS_LP3944=m
# CONFIG_LEDS_LP3952 is not set
# CONFIG_LEDS_LP50XX is not set
# CONFIG_LEDS_PCA955X is not set
# CONFIG_LEDS_PCA963X is not set
# CONFIG_LEDS_PCA995X is not set
# CONFIG_LEDS_DAC124S085 is not set
# CONFIG_LEDS_PWM is not set
# CONFIG_LEDS_BD2606MVV is not set
# CONFIG_LEDS_BD2802 is not setCONFIG_LEDS_INTEL_SS4200=mCONFIG_LEDS_LT3593=m
# CONFIG_LEDS_TCA6507 is not set
# CONFIG_LEDS_TLC591XX is not set
# CONFIG_LEDS_LM355x is not set
# CONFIG_LEDS_IS31FL319X is not set
#
# LED driver for blink(1) USB RGB LED is under Special HID drivers (HID_THINGM) #CONFIG_LEDS_BLINKM=mCONFIG_LEDS_MLXCPLD=m
# CONFIG_LEDS_MLXREG is not set
# CONFIG_LEDS_USER is not set
# CONFIG_LEDS_NIC78BX is not set
#
# Flash and Torch LED drivers
#
#
# RGB LED drivers
#
#
# LED Triggers
#CONFIG_LEDS_TRIGGERS=yCONFIG_LEDS_TRIGGER_TIMER=mCONFIG_LEDS_TRIGGER_ONESHOT=m
# CONFIG_LEDS_TRIGGER_DISK is not setCONFIG_LEDS_TRIGGER_HEARTBEAT=mCONFIG_LEDS_TRIGGER_BACKLIGHT=m
# CONFIG_LEDS_TRIGGER_CPU is not set
# CONFIG_LEDS_TRIGGER_ACTIVITY is not setCONFIG_LEDS_TRIGGER_DEFAULT_ON=m
#
# iptables trigger is under Netfilter config (LED target) # CONFIG_LEDS_TRIGGER_TRANSIENT=m CONFIG_LEDS_TRIGGER_CAMERA=m # CONFIG_LEDS_TRIGGER_PANIC is not set # CONFIG_LEDS_TRIGGER_NETDEV is not set # CONFIG_LEDS_TRIGGER_PATTERN is not set # CONFIG_LEDS_TRIGGER_AUDIO is not set # CONFIG_LEDS_TRIGGER_TTY is not set
#
# Simple LED drivers
#
# CONFIG_ACCESSIBILITY is not set
# CONFIG_INFINIBAND is not setCONFIG_EDAC_ATOMIC_SCRUB=yCONFIG_EDAC_SUPPORT=yCONFIG_EDAC=yCONFIG_EDAC_LEGACY_SYSFS=y
# CONFIG_EDAC_DEBUG is not setCONFIG_EDAC_GHES=yCONFIG_EDAC_E752X=mCONFIG_EDAC_I82975X=mCONFIG_EDAC_I3000=mCONFIG_EDAC_I3200=mCONFIG_EDAC_IE31200=mCONFIG_EDAC_X38=mCONFIG_EDAC_I5400=mCONFIG_EDAC_I7CORE=mCONFIG_EDAC_I5100=mCONFIG_EDAC_I7300=mCONFIG_EDAC_SBRIDGE=mCONFIG_EDAC_SKX=m
# CONFIG_EDAC_I10NM is not setCONFIG_EDAC_PND2=m
# CONFIG_EDAC_IGEN6 is not setCONFIG_RTC_LIB=yCONFIG_RTC_MC146818_LIB=yCONFIG_RTC_CLASS=yCONFIG_RTC_HCTOSYS=yCONFIG_RTC_HCTOSYS_DEVICE="rtc0"
# 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=yCONFIG_RTC_INTF_DEV=y
# CONFIG_RTC_INTF_DEV_UIE_EMUL is not set
# CONFIG_RTC_DRV_TEST is not set
#
# I2C RTC drivers
#
# CONFIG_RTC_DRV_ABB5ZES3 is not set
# CONFIG_RTC_DRV_ABEOZ9 is not set
# CONFIG_RTC_DRV_ABX80X is not setCONFIG_RTC_DRV_DS1307=m
# CONFIG_RTC_DRV_DS1307_CENTURY is not setCONFIG_RTC_DRV_DS1374=m
# CONFIG_RTC_DRV_DS1374_WDT is not setCONFIG_RTC_DRV_DS1672=mCONFIG_RTC_DRV_MAX6900=mCONFIG_RTC_DRV_RS5C372=mCONFIG_RTC_DRV_ISL1208=mCONFIG_RTC_DRV_ISL12022=mCONFIG_RTC_DRV_X1205=mCONFIG_RTC_DRV_PCF8523=m
# CONFIG_RTC_DRV_PCF85063 is not set
# CONFIG_RTC_DRV_PCF85363 is not setCONFIG_RTC_DRV_PCF8563=mCONFIG_RTC_DRV_PCF8583=mCONFIG_RTC_DRV_M41T80=mCONFIG_RTC_DRV_M41T80_WDT=yCONFIG_RTC_DRV_BQ32K=m
# CONFIG_RTC_DRV_S35390A is not setCONFIG_RTC_DRV_FM3130=m
# CONFIG_RTC_DRV_RX8010 is not setCONFIG_RTC_DRV_RX8581=mCONFIG_RTC_DRV_RX8025=mCONFIG_RTC_DRV_EM3027=m
# CONFIG_RTC_DRV_RV3028 is not set
# CONFIG_RTC_DRV_RV3032 is not set
# CONFIG_RTC_DRV_RV8803 is not set
# CONFIG_RTC_DRV_SD3078 is not set
#
# SPI RTC drivers
#
# CONFIG_RTC_DRV_M41T93 is not set
# CONFIG_RTC_DRV_M41T94 is not set
# CONFIG_RTC_DRV_DS1302 is not set
# CONFIG_RTC_DRV_DS1305 is not set
# CONFIG_RTC_DRV_DS1343 is not set
# CONFIG_RTC_DRV_DS1347 is not set
# CONFIG_RTC_DRV_DS1390 is not set
# CONFIG_RTC_DRV_MAX6916 is not set
# CONFIG_RTC_DRV_R9701 is not setCONFIG_RTC_DRV_RX4581=m
# CONFIG_RTC_DRV_RS5C348 is not set
# CONFIG_RTC_DRV_MAX6902 is not set
# CONFIG_RTC_DRV_PCF2123 is not set
# CONFIG_RTC_DRV_MCP795 is not setCONFIG_RTC_I2C_AND_SPI=y
#
# SPI and I2C RTC drivers
#CONFIG_RTC_DRV_DS3232=mCONFIG_RTC_DRV_DS3232_HWMON=y
# CONFIG_RTC_DRV_PCF2127 is not setCONFIG_RTC_DRV_RV3029C2=m
# CONFIG_RTC_DRV_RV3029_HWMON is not set
# CONFIG_RTC_DRV_RX6110 is not set
#
# Platform RTC drivers
#CONFIG_RTC_DRV_CMOS=yCONFIG_RTC_DRV_DS1286=mCONFIG_RTC_DRV_DS1511=mCONFIG_RTC_DRV_DS1553=m
# CONFIG_RTC_DRV_DS1685_FAMILY is not setCONFIG_RTC_DRV_DS1742=mCONFIG_RTC_DRV_DS2404=mCONFIG_RTC_DRV_STK17TA8=m
# CONFIG_RTC_DRV_M48T86 is not setCONFIG_RTC_DRV_M48T35=mCONFIG_RTC_DRV_M48T59=mCONFIG_RTC_DRV_MSM6242=mCONFIG_RTC_DRV_RP5C01=m
#
# on-CPU RTC drivers
#
# CONFIG_RTC_DRV_FTRTC010 is not set
#
# HID Sensor RTC drivers
#
# CONFIG_RTC_DRV_GOLDFISH is not setCONFIG_DMADEVICES=y
# CONFIG_DMADEVICES_DEBUG is not set
#
# DMA Devices
#CONFIG_DMA_ENGINE=yCONFIG_DMA_VIRTUAL_CHANNELS=yCONFIG_DMA_ACPI=y
# CONFIG_ALTERA_MSGDMA is not setCONFIG_INTEL_IDMA64=m
# CONFIG_INTEL_IDXD is not set
# CONFIG_INTEL_IDXD_COMPAT is not setCONFIG_INTEL_IOATDMA=m
# CONFIG_PLX_DMA is not set
# CONFIG_XILINX_DMA is not set
# CONFIG_XILINX_XDMA is not set
# CONFIG_AMD_PTDMA is not set
# CONFIG_QCOM_HIDMA_MGMT is not set
# CONFIG_QCOM_HIDMA is not setCONFIG_DW_DMAC_CORE=yCONFIG_DW_DMAC=mCONFIG_DW_DMAC_PCI=y
# CONFIG_DW_EDMA is not setCONFIG_HSU_DMA=y
# CONFIG_SF_PDMA is not set
# CONFIG_INTEL_LDMA is not set
#
# DMA Clients
#CONFIG_ASYNC_TX_DMA=yCONFIG_DMATEST=mCONFIG_DMA_ENGINE_RAID=y
#
# DMABUF options
#CONFIG_SYNC_FILE=y
# CONFIG_SW_SYNC is not set
# CONFIG_UDMABUF is not set
# CONFIG_DMABUF_MOVE_NOTIFY is not set
# CONFIG_DMABUF_DEBUG is not set
# CONFIG_DMABUF_SELFTESTS is not set
# CONFIG_DMABUF_HEAPS is not set
# CONFIG_DMABUF_SYSFS_STATS is not set
# end of DMABUF options
CONFIG_DCA=m
# CONFIG_UIO is not setCONFIG_VFIO=mCONFIG_VFIO_GROUP=yCONFIG_VFIO_CONTAINER=yCONFIG_VFIO_IOMMU_TYPE1=mCONFIG_VFIO_NOIOMMU=yCONFIG_VFIO_VIRQFD=y
#
# VFIO support for PCI devices
#CONFIG_VFIO_PCI_CORE=mCONFIG_VFIO_PCI_MMAP=yCONFIG_VFIO_PCI_INTX=yCONFIG_VFIO_PCI=m
# CONFIG_VFIO_PCI_VGA is not set
# CONFIG_VFIO_PCI_IGD is not set
# end of VFIO support for PCI devices
CONFIG_IRQ_BYPASS_MANAGER=m
# CONFIG_VIRT_DRIVERS is not setCONFIG_VIRTIO_ANCHOR=yCONFIG_VIRTIO=yCONFIG_VIRTIO_PCI_LIB=yCONFIG_VIRTIO_PCI_LIB_LEGACY=yCONFIG_VIRTIO_MENU=yCONFIG_VIRTIO_PCI=yCONFIG_VIRTIO_PCI_LEGACY=y
# CONFIG_VIRTIO_PMEM is not setCONFIG_VIRTIO_BALLOON=m
# CONFIG_VIRTIO_MEM is not setCONFIG_VIRTIO_INPUT=m
# CONFIG_VIRTIO_MMIO is not setCONFIG_VIRTIO_DMA_SHARED_BUFFER=m
# CONFIG_VDPA is not setCONFIG_VHOST_IOTLB=mCONFIG_VHOST_TASK=yCONFIG_VHOST=mCONFIG_VHOST_MENU=yCONFIG_VHOST_NET=mCONFIG_VHOST_VSOCK=m
# CONFIG_VHOST_CROSS_ENDIAN_LEGACY is not set
#
# Microsoft Hyper-V guest support
#CONFIG_HYPERV=y
# CONFIG_HYPERV_VTL_MODE is not setCONFIG_HYPERV_TIMER=yCONFIG_HYPERV_UTILS=mCONFIG_HYPERV_BALLOON=m
# end of Microsoft Hyper-V guest support
# CONFIG_GREYBUS is not set
# CONFIG_COMEDI is not set
# CONFIG_STAGING is not set
# CONFIG_CHROME_PLATFORMS is not set
# CONFIG_MELLANOX_PLATFORM is not setCONFIG_SURFACE_PLATFORMS=y
# CONFIG_SURFACE3_WMI is not set
# CONFIG_SURFACE_3_POWER_OPREGION is not set
# CONFIG_SURFACE_GPE is not set
# CONFIG_SURFACE_HOTPLUG is not set
# CONFIG_SURFACE_PRO3_BUTTON is not setCONFIG_X86_PLATFORM_DEVICES=yCONFIG_ACPI_WMI=mCONFIG_WMI_BMOF=m
# CONFIG_HUAWEI_WMI is not set
# CONFIG_UV_SYSFS is not setCONFIG_MXM_WMI=m
# CONFIG_NVIDIA_WMI_EC_BACKLIGHT is not set
# CONFIG_XIAOMI_WMI is not set
# CONFIG_GIGABYTE_WMI is not set
# CONFIG_YOGABOOK is not setCONFIG_ACERHDF=m
# CONFIG_ACER_WIRELESS is not setCONFIG_ACER_WMI=m
# CONFIG_ADV_SWBUTTON is not setCONFIG_APPLE_GMUX=mCONFIG_ASUS_LAPTOP=m
# CONFIG_ASUS_WIRELESS is not set
# CONFIG_ASUS_WMI is not set
# CONFIG_ASUS_TF103C_DOCK is not set
# CONFIG_MERAKI_MX100 is not setCONFIG_EEEPC_LAPTOP=m
# CONFIG_X86_PLATFORM_DRIVERS_DELL is not setCONFIG_AMILO_RFKILL=mCONFIG_FUJITSU_LAPTOP=mCONFIG_FUJITSU_TABLET=m
# CONFIG_GPD_POCKET_FAN is not set
# CONFIG_X86_PLATFORM_DRIVERS_HP is not set
# CONFIG_WIRELESS_HOTKEY is not set
# CONFIG_IBM_RTL is not setCONFIG_IDEAPAD_LAPTOP=m
# CONFIG_LENOVO_YMC is not setCONFIG_SENSORS_HDAPS=m
# CONFIG_THINKPAD_ACPI is not set
# CONFIG_THINKPAD_LMI is not set
# CONFIG_INTEL_ATOMISP2_PM is not set
# CONFIG_INTEL_IFS is not set
# CONFIG_INTEL_SAR_INT1092 is not setCONFIG_INTEL_PMC_CORE=m
#
# Intel Speed Select Technology interface support
#
# CONFIG_INTEL_SPEED_SELECT_INTERFACE is not set
# end of Intel Speed Select Technology interface support
CONFIG_INTEL_WMI=y
# CONFIG_INTEL_WMI_SBL_FW_UPDATE is not setCONFIG_INTEL_WMI_THUNDERBOLT=m
#
# Intel Uncore Frequency Control
#
# CONFIG_INTEL_UNCORE_FREQ_CONTROL is not set
# end of Intel Uncore Frequency Control
CONFIG_INTEL_HID_EVENT=mCONFIG_INTEL_VBTN=m
# CONFIG_INTEL_INT0002_VGPIO is not setCONFIG_INTEL_OAKTRAIL=m
# CONFIG_INTEL_PUNIT_IPC is not setCONFIG_INTEL_RST=m
# CONFIG_INTEL_SMARTCONNECT is not setCONFIG_INTEL_TURBO_MAX_3=y
# CONFIG_INTEL_VSEC is not set
# CONFIG_MSI_EC is not setCONFIG_MSI_LAPTOP=mCONFIG_MSI_WMI=m
# CONFIG_PCENGINES_APU2 is not set
# CONFIG_BARCO_P50_GPIO is not setCONFIG_SAMSUNG_LAPTOP=mCONFIG_SAMSUNG_Q10=mCONFIG_TOSHIBA_BT_RFKILL=m
# CONFIG_TOSHIBA_HAPS is not set
# CONFIG_TOSHIBA_WMI is not setCONFIG_ACPI_CMPC=mCONFIG_COMPAL_LAPTOP=m
# CONFIG_LG_LAPTOP is not setCONFIG_PANASONIC_LAPTOP=mCONFIG_SONY_LAPTOP=mCONFIG_SONYPI_COMPAT=y
# CONFIG_SYSTEM76_ACPI is not setCONFIG_TOPSTAR_LAPTOP=m
# CONFIG_SERIAL_MULTI_INSTANTIATE is not setCONFIG_MLX_PLATFORM=mCONFIG_INTEL_IPS=m
# CONFIG_INTEL_SCU_PCI is not set
# CONFIG_INTEL_SCU_PLATFORM is not set
# CONFIG_SIEMENS_SIMATIC_IPC is not set
# CONFIG_WINMATE_FM07_KEYS is not setCONFIG_P2SB=yCONFIG_HAVE_CLK=yCONFIG_HAVE_CLK_PREPARE=yCONFIG_COMMON_CLK=y
# CONFIG_LMK04832 is not set
# CONFIG_COMMON_CLK_MAX9485 is not set
# CONFIG_COMMON_CLK_SI5341 is not set
# CONFIG_COMMON_CLK_SI5351 is not set
# CONFIG_COMMON_CLK_SI544 is not set
# CONFIG_COMMON_CLK_CDCE706 is not set
# CONFIG_COMMON_CLK_CS2000_CP is not set
# CONFIG_COMMON_CLK_PWM is not set
# CONFIG_XILINX_VCU is not set
# CONFIG_HWSPINLOCK is not set
#
# Clock Source drivers
#CONFIG_CLKEVT_I8253=yCONFIG_I8253_LOCK=yCONFIG_CLKBLD_I8253=y
# end of Clock Source drivers
CONFIG_MAILBOX=yCONFIG_PCC=y
# CONFIG_ALTERA_MBOX is not setCONFIG_IOMMU_IOVA=yCONFIG_IOMMU_API=yCONFIG_IOMMU_SUPPORT=y
#
# Generic IOMMU Pagetable Support
#
# end of Generic IOMMU Pagetable Support
# CONFIG_IOMMU_DEBUGFS is not set
# CONFIG_IOMMU_DEFAULT_DMA_STRICT is not setCONFIG_IOMMU_DEFAULT_DMA_LAZY=y
# CONFIG_IOMMU_DEFAULT_PASSTHROUGH is not setCONFIG_IOMMU_DMA=y
# CONFIG_AMD_IOMMU is not setCONFIG_DMAR_TABLE=yCONFIG_INTEL_IOMMU=y
# CONFIG_INTEL_IOMMU_SVM is not set
# CONFIG_INTEL_IOMMU_DEFAULT_ON is not setCONFIG_INTEL_IOMMU_FLOPPY_WA=yCONFIG_INTEL_IOMMU_SCALABLE_MODE_DEFAULT_ON=yCONFIG_INTEL_IOMMU_PERF_EVENTS=y
# CONFIG_IOMMUFD is not setCONFIG_IRQ_REMAP=yCONFIG_HYPERV_IOMMU=y
# CONFIG_VIRTIO_IOMMU is not set
#
# Remoteproc drivers
#
# CONFIG_REMOTEPROC is not set
# end of Remoteproc drivers
#
# Rpmsg drivers
#
# CONFIG_RPMSG_QCOM_GLINK_RPM is not set
# CONFIG_RPMSG_VIRTIO is not set
# end of Rpmsg drivers
# CONFIG_SOUNDWIRE is not set
#
# SOC (System On Chip) specific Drivers
#
#
# Amlogic SoC drivers
#
# end of Amlogic SoC drivers
#
# Broadcom SoC drivers
#
# end of Broadcom SoC drivers
#
# NXP/Freescale QorIQ SoC drivers
#
# end of NXP/Freescale QorIQ SoC drivers
#
# fujitsu SoC drivers # # end of fujitsu SoC drivers
#
# i.MX SoC drivers
#
# end of i.MX SoC drivers
#
# Enable LiteX SoC Builder specific drivers
#
# end of Enable LiteX SoC Builder specific drivers
# CONFIG_WPCM450_SOC is not set
#
# Qualcomm SoC drivers
#
# end of Qualcomm SoC drivers
# CONFIG_SOC_TI is not set
#
# Xilinx SoC drivers
#
# end of Xilinx SoC drivers # end of SOC (System On Chip) specific Drivers
# CONFIG_PM_DEVFREQ is not set
# CONFIG_EXTCON is not set
# CONFIG_MEMORY is not set
# CONFIG_IIO is not setCONFIG_NTB=m
# CONFIG_NTB_MSI is not set
# CONFIG_NTB_AMD is not set
# CONFIG_NTB_IDT is not set
# CONFIG_NTB_INTEL is not set
# CONFIG_NTB_EPF is not set
# CONFIG_NTB_SWITCHTEC is not set
# CONFIG_NTB_PINGPONG is not set
# CONFIG_NTB_TOOL is not set
# CONFIG_NTB_PERF is not set
# CONFIG_NTB_TRANSPORT is not setCONFIG_PWM=yCONFIG_PWM_SYSFS=y
# CONFIG_PWM_DEBUG is not set
# CONFIG_PWM_CLK is not set
# CONFIG_PWM_DWC is not setCONFIG_PWM_LPSS=mCONFIG_PWM_LPSS_PCI=mCONFIG_PWM_LPSS_PLATFORM=m
# CONFIG_PWM_PCA9685 is not set
#
# IRQ chip support
#
# end of IRQ chip support
# CONFIG_IPACK_BUS is not set
# CONFIG_RESET_CONTROLLER is not set
#
# PHY Subsystem
#
# CONFIG_GENERIC_PHY is not set
# CONFIG_USB_LGM_PHY is not set
# CONFIG_PHY_CAN_TRANSCEIVER is not set
#
# PHY drivers for Broadcom platforms
#
# CONFIG_BCM_KONA_USB2_PHY is not set
# end of PHY drivers for Broadcom platforms
# CONFIG_PHY_PXA_28NM_HSIC is not set
# CONFIG_PHY_PXA_28NM_USB2 is not set
# CONFIG_PHY_RTK_RTD_USB2PHY is not set
# CONFIG_PHY_RTK_RTD_USB3PHY is not set
# CONFIG_PHY_INTEL_LGM_EMMC is not set
# end of PHY Subsystem
CONFIG_POWERCAP=yCONFIG_INTEL_RAPL_CORE=mCONFIG_INTEL_RAPL=mCONFIG_IDLE_INJECT=y
# CONFIG_MCB is not set
#
# Performance monitor support
#
# end of Performance monitor support
CONFIG_RAS=y
# CONFIG_RAS_CEC is not set
# CONFIG_USB4 is not set
#
# Android
#
# CONFIG_ANDROID_BINDER_IPC is not set
# end of Android
CONFIG_LIBNVDIMM=mCONFIG_BLK_DEV_PMEM=mCONFIG_ND_CLAIM=yCONFIG_ND_BTT=mCONFIG_BTT=yCONFIG_ND_PFN=mCONFIG_NVDIMM_PFN=yCONFIG_NVDIMM_DAX=yCONFIG_NVDIMM_KEYS=y
# CONFIG_NVDIMM_SECURITY_TEST is not setCONFIG_DAX=yCONFIG_DEV_DAX=mCONFIG_DEV_DAX_PMEM=mCONFIG_DEV_DAX_HMEM=mCONFIG_DEV_DAX_HMEM_DEVICES=yCONFIG_DEV_DAX_KMEM=mCONFIG_NVMEM=yCONFIG_NVMEM_SYSFS=y
#
# Layout Types
#
# CONFIG_NVMEM_LAYOUT_SL28_VPD is not set
# CONFIG_NVMEM_LAYOUT_ONIE_TLV is not set
# end of Layout Types
# CONFIG_NVMEM_RMEM is not set
#
# HW tracing support
#
# CONFIG_STM is not set
# CONFIG_INTEL_TH is not set
# end of HW tracing support
# CONFIG_FPGA is not set
# CONFIG_SIOX is not set
# CONFIG_SLIMBUS is not set
# CONFIG_INTERCONNECT is not set
# CONFIG_COUNTER is not set
# CONFIG_MOST is not set
# CONFIG_PECI is not set
# CONFIG_HTE is not set
# end of Device Drivers
#
# File systems
#CONFIG_DCACHE_WORD_ACCESS=y
# CONFIG_VALIDATE_FS_PARSER is not set CONFIG_FS_IOMAP=yCONFIG_BUFFER_HEAD=y CONFIG_LEGACY_DIRECT_IO=yCONFIG_EXT2_FS=m
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT3_FS is not setCONFIG_EXT4_FS=yCONFIG_EXT4_FS_POSIX_ACL=y CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not setCONFIG_JBD2=y
# CONFIG_JBD2_DEBUG is not set CONFIG_FS_MBCACHE=y
# CONFIG_REISERFS_FS is not set
# CONFIG_JFS_FS is not setCONFIG_XFS_FS=mCONFIG_XFS_SUPPORT_V4=y CONFIG_XFS_SUPPORT_ASCII_CI=y CONFIG_XFS_QUOTA=yCONFIG_XFS_POSIX_ACL=yCONFIG_XFS_RT=yCONFIG_XFS_DRAIN_INTENTS=y CONFIG_XFS_ONLINE_SCRUB=y
# CONFIG_XFS_ONLINE_SCRUB_STATS is not set
# CONFIG_XFS_ONLINE_REPAIR is not set CONFIG_XFS_WARN=y
# CONFIG_XFS_DEBUG is not set
# CONFIG_GFS2_FS is not setCONFIG_OCFS2_FS=mCONFIG_OCFS2_FS_O2CB=m CONFIG_OCFS2_FS_STATS=y
# CONFIG_OCFS2_DEBUG_MASKLOG is not set
# CONFIG_OCFS2_DEBUG_FS is not set CONFIG_BTRFS_FS=mCONFIG_BTRFS_FS_POSIX_ACL=y
# CONFIG_BTRFS_FS_CHECK_INTEGRITY is not set # CONFIG_BTRFS_FS_RUN_SANITY_TESTS is not set # CONFIG_BTRFS_DEBUG is not set
# CONFIG_BTRFS_ASSERT is not set
# CONFIG_BTRFS_FS_REF_VERIFY is not set
# CONFIG_NILFS2_FS is not set CONFIG_F2FS_FS=mCONFIG_F2FS_STAT_FS=yCONFIG_F2FS_FS_XATTR=y CONFIG_F2FS_FS_POSIX_ACL=y
# CONFIG_F2FS_FS_SECURITY is not set
# CONFIG_F2FS_CHECK_FS is not set
# CONFIG_F2FS_FAULT_INJECTION is not set
# CONFIG_F2FS_FS_COMPRESSION is not set CONFIG_F2FS_IOSTAT=y
# CONFIG_F2FS_UNFAIR_RWSEM is not set CONFIG_FS_DAX=yCONFIG_FS_DAX_PMD=yCONFIG_FS_POSIX_ACL=yCONFIG_EXPORTFS=yCONFIG_EXPORTFS_BLOCK_OPS=y CONFIG_FILE_LOCKING=yCONFIG_FS_ENCRYPTION=y CONFIG_FS_ENCRYPTION_ALGS=y
# CONFIG_FS_VERITY is not set CONFIG_FSNOTIFY=yCONFIG_DNOTIFY=yCONFIG_INOTIFY_USER=yCONFIG_FANOTIFY=y CONFIG_FANOTIFY_ACCESS_PERMISSIONS=y CONFIG_QUOTA=y CONFIG_QUOTA_NETLINK_INTERFACE=y
# CONFIG_QUOTA_DEBUG is not set CONFIG_QUOTA_TREE=y
# CONFIG_QFMT_V1 is not setCONFIG_QFMT_V2=yCONFIG_QUOTACTL=yCONFIG_AUTOFS_FS=yCONFIG_FUSE_FS=mCONFIG_CUSE=m
# CONFIG_VIRTIO_FS is not set CONFIG_OVERLAY_FS=m
# CONFIG_OVERLAY_FS_REDIRECT_DIR is not set
# CONFIG_OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW is not set # CONFIG_OVERLAY_FS_INDEX is not set
# CONFIG_OVERLAY_FS_XINO_AUTO is not set
# CONFIG_OVERLAY_FS_METACOPY is not set
# CONFIG_OVERLAY_FS_DEBUG is not set
#
# Caches
#CONFIG_NETFS_SUPPORT=m
# CONFIG_NETFS_STATS is not set
# CONFIG_FSCACHE is not set
# end of Caches
#
# CD-ROM/DVD Filesystems
#
# CONFIG_ISO9660_FS is not setCONFIG_UDF_FS=m
# end of CD-ROM/DVD Filesystems
#
# DOS/FAT/EXFAT/NT Filesystems
#CONFIG_FAT_FS=mCONFIG_MSDOS_FS=mCONFIG_VFAT_FS=mCONFIG_FAT_DEFAULT_CODEPAGE=437CONFIG_FAT_DEFAULT_IOCHARSET="ascii"
# CONFIG_FAT_DEFAULT_UTF8 is not set
# CONFIG_EXFAT_FS is not set
# CONFIG_NTFS_FS is not set
# CONFIG_NTFS3_FS is not set
# end of DOS/FAT/EXFAT/NT Filesystems
#
# Pseudo filesystems
#CONFIG_PROC_FS=yCONFIG_PROC_KCORE=yCONFIG_PROC_VMCORE=y CONFIG_PROC_VMCORE_DEVICE_DUMP=y CONFIG_PROC_SYSCTL=yCONFIG_PROC_PAGE_MONITOR=yCONFIG_PROC_CHILDREN=y CONFIG_PROC_PID_ARCH_STATUS=yCONFIG_KERNFS=yCONFIG_SYSFS=yCONFIG_TMPFS=yCONFIG_TMPFS_POSIX_ACL=yCONFIG_TMPFS_XATTR=y
# CONFIG_TMPFS_INODE64 is not set
# CONFIG_TMPFS_QUOTA is not setCONFIG_HUGETLBFS=yCONFIG_HUGETLB_PAGE=y CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP=y
# CONFIG_HUGETLB_PAGE_OPTIMIZE_VMEMMAP_DEFAULT_ON is not set CONFIG_ARCH_HAS_GIGANTIC_PAGE=y CONFIG_CONFIGFS_FS=yCONFIG_EFIVAR_FS=y
# end of Pseudo filesystems
CONFIG_MISC_FILESYSTEMS=y
# CONFIG_ORANGEFS_FS is not set
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_ECRYPT_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not setCONFIG_CRAMFS=mCONFIG_CRAMFS_BLOCKDEV=yCONFIG_SQUASHFS=m
# CONFIG_SQUASHFS_FILE_CACHE is not set CONFIG_SQUASHFS_FILE_DIRECT=y CONFIG_SQUASHFS_DECOMP_SINGLE=y
# CONFIG_SQUASHFS_CHOICE_DECOMP_BY_MOUNT is not set CONFIG_SQUASHFS_COMPILE_DECOMP_SINGLE=y
# CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI is not set # CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI_PERCPU is not set CONFIG_SQUASHFS_XATTR=yCONFIG_SQUASHFS_ZLIB=y
# CONFIG_SQUASHFS_LZ4 is not set CONFIG_SQUASHFS_LZO=yCONFIG_SQUASHFS_XZ=y
# CONFIG_SQUASHFS_ZSTD is not set
# CONFIG_SQUASHFS_4K_DEVBLK_SIZE is not set
# CONFIG_SQUASHFS_EMBEDDED is not set CONFIG_SQUASHFS_FRAGMENT_CACHE_SIZE=3
# CONFIG_VXFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_OMFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_QNX6FS_FS is not set
# CONFIG_ROMFS_FS is not setCONFIG_PSTORE=y CONFIG_PSTORE_DEFAULT_KMSG_BYTES=10240 CONFIG_PSTORE_COMPRESS=y
# CONFIG_PSTORE_CONSOLE is not set
# CONFIG_PSTORE_PMSG is not set
# CONFIG_PSTORE_FTRACE is not set CONFIG_PSTORE_RAM=m
# CONFIG_PSTORE_BLK is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
# CONFIG_EROFS_FS is not set CONFIG_NETWORK_FILESYSTEMS=yCONFIG_NFS_FS=y
# CONFIG_NFS_V2 is not setCONFIG_NFS_V3=yCONFIG_NFS_V3_ACL=yCONFIG_NFS_V4=m
# CONFIG_NFS_SWAP is not setCONFIG_NFS_V4_1=yCONFIG_NFS_V4_2=yCONFIG_PNFS_FILE_LAYOUT=mCONFIG_PNFS_BLOCK=m CONFIG_PNFS_FLEXFILE_LAYOUT=m CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="kernel.org" # CONFIG_NFS_V4_1_MIGRATION is not set CONFIG_NFS_V4_SECURITY_LABEL=y CONFIG_ROOT_NFS=y
# CONFIG_NFS_USE_LEGACY_DNS is not set CONFIG_NFS_USE_KERNEL_DNS=y CONFIG_NFS_DISABLE_UDP_SUPPORT=y CONFIG_NFS_V4_2_READ_PLUS=yCONFIG_NFSD=m
# CONFIG_NFSD_V2 is not set CONFIG_NFSD_V3_ACL=yCONFIG_NFSD_V4=yCONFIG_NFSD_PNFS=y
# CONFIG_NFSD_BLOCKLAYOUT is not set CONFIG_NFSD_SCSILAYOUT=y
# CONFIG_NFSD_FLEXFILELAYOUT is not set
# CONFIG_NFSD_V4_2_INTER_SSC is not set CONFIG_NFSD_V4_SECURITY_LABEL=y CONFIG_GRACE_PERIOD=yCONFIG_LOCKD=yCONFIG_LOCKD_V4=yCONFIG_NFS_ACL_SUPPORT=yCONFIG_NFS_COMMON=y CONFIG_NFS_V4_2_SSC_HELPER=yCONFIG_SUNRPC=yCONFIG_SUNRPC_GSS=mCONFIG_SUNRPC_BACKCHANNEL=y CONFIG_RPCSEC_GSS_KRB5=m CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA1=y
# CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_CAMELLIA is not set # CONFIG_RPCSEC_GSS_KRB5_ENCTYPES_AES_SHA2 is not set # CONFIG_SUNRPC_DEBUG is not set
# CONFIG_CEPH_FS is not setCONFIG_CIFS=mCONFIG_CIFS_STATS2=y CONFIG_CIFS_ALLOW_INSECURE_LEGACY=y CONFIG_CIFS_UPCALL=yCONFIG_CIFS_XATTR=yCONFIG_CIFS_POSIX=y
# CONFIG_CIFS_DEBUG is not set CONFIG_CIFS_DFS_UPCALL=y
# CONFIG_CIFS_SWN_UPCALL is not set
# CONFIG_SMB_SERVER is not setCONFIG_SMBFS=m
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
# CONFIG_9P_FS is not setCONFIG_NLS=yCONFIG_NLS_DEFAULT="utf8" CONFIG_NLS_CODEPAGE_437=y CONFIG_NLS_CODEPAGE_737=m CONFIG_NLS_CODEPAGE_775=m CONFIG_NLS_CODEPAGE_850=m CONFIG_NLS_CODEPAGE_852=m CONFIG_NLS_CODEPAGE_855=m CONFIG_NLS_CODEPAGE_857=m CONFIG_NLS_CODEPAGE_860=m CONFIG_NLS_CODEPAGE_861=m CONFIG_NLS_CODEPAGE_862=m CONFIG_NLS_CODEPAGE_863=m CONFIG_NLS_CODEPAGE_864=m CONFIG_NLS_CODEPAGE_865=m CONFIG_NLS_CODEPAGE_866=m CONFIG_NLS_CODEPAGE_869=m CONFIG_NLS_CODEPAGE_936=m CONFIG_NLS_CODEPAGE_950=m CONFIG_NLS_CODEPAGE_932=m CONFIG_NLS_CODEPAGE_949=m CONFIG_NLS_CODEPAGE_874=m CONFIG_NLS_ISO8859_8=m CONFIG_NLS_CODEPAGE_1250=m CONFIG_NLS_CODEPAGE_1251=mCONFIG_NLS_ASCII=yCONFIG_NLS_ISO8859_1=mCONFIG_NLS_ISO8859_2=mCONFIG_NLS_ISO8859_3=mCONFIG_NLS_ISO8859_4=mCONFIG_NLS_ISO8859_5=mCONFIG_NLS_ISO8859_6=mCONFIG_NLS_ISO8859_7=mCONFIG_NLS_ISO8859_9=mCONFIG_NLS_ISO8859_13=mCONFIG_NLS_ISO8859_14=mCONFIG_NLS_ISO8859_15=mCONFIG_NLS_KOI8_R=mCONFIG_NLS_KOI8_U=mCONFIG_NLS_MAC_ROMAN=mCONFIG_NLS_MAC_CELTIC=m CONFIG_NLS_MAC_CENTEURO=m CONFIG_NLS_MAC_CROATIAN=m CONFIG_NLS_MAC_CYRILLIC=m CONFIG_NLS_MAC_GAELIC=mCONFIG_NLS_MAC_GREEK=mCONFIG_NLS_MAC_ICELAND=mCONFIG_NLS_MAC_INUIT=m CONFIG_NLS_MAC_ROMANIAN=m CONFIG_NLS_MAC_TURKISH=mCONFIG_NLS_UTF8=mCONFIG_NLS_UCS2_UTILS=m
# CONFIG_DLM is not set
# CONFIG_UNICODE is not setCONFIG_IO_WQ=y
# end of File systems
#
# Security options
#CONFIG_KEYS=y
# CONFIG_KEYS_REQUEST_CACHE is not setCONFIG_PERSISTENT_KEYRINGS=yCONFIG_TRUSTED_KEYS=yCONFIG_TRUSTED_KEYS_TPM=yCONFIG_ENCRYPTED_KEYS=y
# CONFIG_USER_DECRYPTED_DATA is not set
# CONFIG_KEY_DH_OPERATIONS is not set
# CONFIG_SECURITY_DMESG_RESTRICT is not setCONFIG_SECURITY=yCONFIG_SECURITYFS=yCONFIG_SECURITY_NETWORK=yCONFIG_SECURITY_NETWORK_XFRM=yCONFIG_SECURITY_PATH=yCONFIG_INTEL_TXT=yCONFIG_LSM_MMAP_MIN_ADDR=65535CONFIG_HARDENED_USERCOPY=yCONFIG_FORTIFY_SOURCE=y
# CONFIG_STATIC_USERMODEHELPER is not setCONFIG_SECURITY_SELINUX=yCONFIG_SECURITY_SELINUX_BOOTPARAM=yCONFIG_SECURITY_SELINUX_DEVELOP=yCONFIG_SECURITY_SELINUX_AVC_STATS=y CONFIG_SECURITY_SELINUX_SIDTAB_HASH_BITS=9 CONFIG_SECURITY_SELINUX_SID2STR_CACHE_SIZE=256
# CONFIG_SECURITY_SELINUX_DEBUG is not set
# CONFIG_SECURITY_SMACK is not set
# CONFIG_SECURITY_TOMOYO is not setCONFIG_SECURITY_APPARMOR=y
# CONFIG_SECURITY_APPARMOR_DEBUG is not set CONFIG_SECURITY_APPARMOR_INTROSPECT_POLICY=y CONFIG_SECURITY_APPARMOR_HASH=yCONFIG_SECURITY_APPARMOR_HASH_DEFAULT=y CONFIG_SECURITY_APPARMOR_EXPORT_BINARY=y CONFIG_SECURITY_APPARMOR_PARANOID_LOAD=y
# CONFIG_SECURITY_LOADPIN is not setCONFIG_SECURITY_YAMA=y
# CONFIG_SECURITY_SAFESETID is not set
# CONFIG_SECURITY_LOCKDOWN_LSM is not set
# CONFIG_SECURITY_LANDLOCK is not setCONFIG_INTEGRITY=yCONFIG_INTEGRITY_SIGNATURE=yCONFIG_INTEGRITY_ASYMMETRIC_KEYS=yCONFIG_INTEGRITY_TRUSTED_KEYRING=y
# CONFIG_INTEGRITY_PLATFORM_KEYRING is not setCONFIG_INTEGRITY_AUDIT=y
# CONFIG_IMA is not set
# CONFIG_IMA_SECURE_AND_OR_TRUSTED_BOOT is not set
# CONFIG_EVM is not setCONFIG_DEFAULT_SECURITY_SELINUX=y
# CONFIG_DEFAULT_SECURITY_APPARMOR is not set
# CONFIG_DEFAULT_SECURITY_DAC is not set CONFIG_LSM="landlock,lockdown,yama,loadpin,safesetid,selinux,smack,tomoyo,apparmor,bpf"
#
# Kernel hardening options
#
#
# Memory initialization
#CONFIG_CC_HAS_AUTO_VAR_INIT_PATTERN=yCONFIG_CC_HAS_AUTO_VAR_INIT_ZERO_BARE=yCONFIG_CC_HAS_AUTO_VAR_INIT_ZERO=y
# CONFIG_INIT_STACK_NONE is not set
# CONFIG_INIT_STACK_ALL_PATTERN is not setCONFIG_INIT_STACK_ALL_ZERO=y
# CONFIG_GCC_PLUGIN_STACKLEAK is not set
# CONFIG_INIT_ON_ALLOC_DEFAULT_ON is not set
# CONFIG_INIT_ON_FREE_DEFAULT_ON is not setCONFIG_CC_HAS_ZERO_CALL_USED_REGS=y
# CONFIG_ZERO_CALL_USED_REGS is not set
# end of Memory initialization
#
# Hardening of kernel data structures
#CONFIG_LIST_HARDENED=yCONFIG_BUG_ON_DATA_CORRUPTION=y
# end of Hardening of kernel data structures
CONFIG_RANDSTRUCT_NONE=y
# CONFIG_RANDSTRUCT_FULL is not set
# CONFIG_RANDSTRUCT_PERFORMANCE is not set
# end of Kernel hardening options # end of Security options
CONFIG_XOR_BLOCKS=mCONFIG_ASYNC_CORE=mCONFIG_ASYNC_MEMCPY=mCONFIG_ASYNC_XOR=mCONFIG_ASYNC_PQ=mCONFIG_ASYNC_RAID6_RECOV=mCONFIG_CRYPTO=y
#
# Crypto core or helper
#CONFIG_CRYPTO_ALGAPI=yCONFIG_CRYPTO_ALGAPI2=yCONFIG_CRYPTO_AEAD=yCONFIG_CRYPTO_AEAD2=yCONFIG_CRYPTO_SIG2=yCONFIG_CRYPTO_SKCIPHER=yCONFIG_CRYPTO_SKCIPHER2=yCONFIG_CRYPTO_HASH=yCONFIG_CRYPTO_HASH2=yCONFIG_CRYPTO_RNG=yCONFIG_CRYPTO_RNG2=yCONFIG_CRYPTO_RNG_DEFAULT=yCONFIG_CRYPTO_AKCIPHER2=yCONFIG_CRYPTO_AKCIPHER=yCONFIG_CRYPTO_KPP2=yCONFIG_CRYPTO_KPP=mCONFIG_CRYPTO_ACOMP2=yCONFIG_CRYPTO_MANAGER=yCONFIG_CRYPTO_MANAGER2=yCONFIG_CRYPTO_USER=mCONFIG_CRYPTO_MANAGER_DISABLE_TESTS=yCONFIG_CRYPTO_NULL=yCONFIG_CRYPTO_NULL2=yCONFIG_CRYPTO_PCRYPT=mCONFIG_CRYPTO_CRYPTD=yCONFIG_CRYPTO_AUTHENC=mCONFIG_CRYPTO_TEST=mCONFIG_CRYPTO_SIMD=y
# end of Crypto core or helper
#
# Public-key cryptography
#CONFIG_CRYPTO_RSA=yCONFIG_CRYPTO_DH=m
# CONFIG_CRYPTO_DH_RFC7919_GROUPS is not setCONFIG_CRYPTO_ECC=mCONFIG_CRYPTO_ECDH=m
# CONFIG_CRYPTO_ECDSA is not set
# CONFIG_CRYPTO_ECRDSA is not set
# CONFIG_CRYPTO_SM2 is not set
# CONFIG_CRYPTO_CURVE25519 is not set
# end of Public-key cryptography
#
# Block ciphers
#CONFIG_CRYPTO_AES=y
# CONFIG_CRYPTO_AES_TI is not setCONFIG_CRYPTO_ANUBIS=m
# CONFIG_CRYPTO_ARIA is not setCONFIG_CRYPTO_BLOWFISH=mCONFIG_CRYPTO_BLOWFISH_COMMON=mCONFIG_CRYPTO_CAMELLIA=mCONFIG_CRYPTO_CAST_COMMON=mCONFIG_CRYPTO_CAST5=mCONFIG_CRYPTO_CAST6=mCONFIG_CRYPTO_DES=mCONFIG_CRYPTO_FCRYPT=mCONFIG_CRYPTO_KHAZAD=mCONFIG_CRYPTO_SEED=mCONFIG_CRYPTO_SERPENT=mCONFIG_CRYPTO_SM4=mCONFIG_CRYPTO_SM4_GENERIC=mCONFIG_CRYPTO_TEA=mCONFIG_CRYPTO_TWOFISH=mCONFIG_CRYPTO_TWOFISH_COMMON=m
# end of Block ciphers
#
# Length-preserving ciphers and modes
#
# CONFIG_CRYPTO_ADIANTUM is not setCONFIG_CRYPTO_ARC4=mCONFIG_CRYPTO_CHACHA20=mCONFIG_CRYPTO_CBC=yCONFIG_CRYPTO_CFB=yCONFIG_CRYPTO_CTR=yCONFIG_CRYPTO_CTS=mCONFIG_CRYPTO_ECB=y
# CONFIG_CRYPTO_HCTR2 is not set
# CONFIG_CRYPTO_KEYWRAP is not setCONFIG_CRYPTO_LRW=mCONFIG_CRYPTO_OFB=mCONFIG_CRYPTO_PCBC=mCONFIG_CRYPTO_XTS=m
# end of Length-preserving ciphers and modes
#
# AEAD (authenticated encryption with associated data) ciphers #
# CONFIG_CRYPTO_AEGIS128 is not set
# CONFIG_CRYPTO_CHACHA20POLY1305 is not set CONFIG_CRYPTO_CCM=mCONFIG_CRYPTO_GCM=yCONFIG_CRYPTO_GENIV=yCONFIG_CRYPTO_SEQIV=yCONFIG_CRYPTO_ECHAINIV=mCONFIG_CRYPTO_ESSIV=m
# end of AEAD (authenticated encryption with associated data) ciphers
#
# Hashes, digests, and MACs
#CONFIG_CRYPTO_BLAKE2B=mCONFIG_CRYPTO_CMAC=mCONFIG_CRYPTO_GHASH=yCONFIG_CRYPTO_HMAC=yCONFIG_CRYPTO_MD4=mCONFIG_CRYPTO_MD5=yCONFIG_CRYPTO_MICHAEL_MIC=m
# CONFIG_CRYPTO_POLY1305 is not setCONFIG_CRYPTO_RMD160=mCONFIG_CRYPTO_SHA1=yCONFIG_CRYPTO_SHA256=yCONFIG_CRYPTO_SHA512=yCONFIG_CRYPTO_SHA3=y
# CONFIG_CRYPTO_SM3_GENERIC is not set
# CONFIG_CRYPTO_STREEBOG is not setCONFIG_CRYPTO_VMAC=mCONFIG_CRYPTO_WP512=mCONFIG_CRYPTO_XCBC=mCONFIG_CRYPTO_XXHASH=m
# end of Hashes, digests, and MACs
#
# CRCs (cyclic redundancy checks)
#CONFIG_CRYPTO_CRC32C=yCONFIG_CRYPTO_CRC32=mCONFIG_CRYPTO_CRCT10DIF=yCONFIG_CRYPTO_CRC64_ROCKSOFT=m
# end of CRCs (cyclic redundancy checks)
#
# Compression
#CONFIG_CRYPTO_DEFLATE=yCONFIG_CRYPTO_LZO=y
# CONFIG_CRYPTO_842 is not set
# CONFIG_CRYPTO_LZ4 is not set
# CONFIG_CRYPTO_LZ4HC is not set
# CONFIG_CRYPTO_ZSTD is not set
# end of Compression
#
# Random number generation
#CONFIG_CRYPTO_ANSI_CPRNG=m CONFIG_CRYPTO_DRBG_MENU=y CONFIG_CRYPTO_DRBG_HMAC=y CONFIG_CRYPTO_DRBG_HASH=y CONFIG_CRYPTO_DRBG_CTR=yCONFIG_CRYPTO_DRBG=y CONFIG_CRYPTO_JITTERENTROPY=y
# CONFIG_CRYPTO_JITTERENTROPY_TESTINTERFACE is not set
# end of Random number generation
#
# Userspace interface
#CONFIG_CRYPTO_USER_API=y
# CONFIG_CRYPTO_USER_API_HASH is not setCONFIG_CRYPTO_USER_API_SKCIPHER=yCONFIG_CRYPTO_USER_API_RNG=y
# CONFIG_CRYPTO_USER_API_RNG_CAVP is not setCONFIG_CRYPTO_USER_API_AEAD=yCONFIG_CRYPTO_USER_API_ENABLE_OBSOLETE=y
# CONFIG_CRYPTO_STATS is not set
# end of Userspace interface
CONFIG_CRYPTO_HASH_INFO=y
#
# Accelerated Cryptographic Algorithms for CPU (x86) #
# CONFIG_CRYPTO_CURVE25519_X86 is not set CONFIG_CRYPTO_AES_NI_INTEL=y CONFIG_CRYPTO_BLOWFISH_X86_64=m CONFIG_CRYPTO_CAMELLIA_X86_64=m CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64=m CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64=m CONFIG_CRYPTO_CAST5_AVX_X86_64=m CONFIG_CRYPTO_CAST6_AVX_X86_64=m
# CONFIG_CRYPTO_DES3_EDE_X86_64 is not set CONFIG_CRYPTO_SERPENT_SSE2_X86_64=m CONFIG_CRYPTO_SERPENT_AVX_X86_64=m CONFIG_CRYPTO_SERPENT_AVX2_X86_64=m
# CONFIG_CRYPTO_SM4_AESNI_AVX_X86_64 is not set # CONFIG_CRYPTO_SM4_AESNI_AVX2_X86_64 is not set CONFIG_CRYPTO_TWOFISH_X86_64=m CONFIG_CRYPTO_TWOFISH_X86_64_3WAY=m CONFIG_CRYPTO_TWOFISH_AVX_X86_64=m
# CONFIG_CRYPTO_ARIA_AESNI_AVX_X86_64 is not set # CONFIG_CRYPTO_ARIA_AESNI_AVX2_X86_64 is not set # CONFIG_CRYPTO_ARIA_GFNI_AVX512_X86_64 is not set CONFIG_CRYPTO_CHACHA20_X86_64=m
# CONFIG_CRYPTO_AEGIS128_AESNI_SSE2 is not set # CONFIG_CRYPTO_NHPOLY1305_SSE2 is not set
# CONFIG_CRYPTO_NHPOLY1305_AVX2 is not set
# CONFIG_CRYPTO_BLAKE2S_X86 is not set
# CONFIG_CRYPTO_POLYVAL_CLMUL_NI is not set # CONFIG_CRYPTO_POLY1305_X86_64 is not set CONFIG_CRYPTO_SHA1_SSSE3=y CONFIG_CRYPTO_SHA256_SSSE3=y CONFIG_CRYPTO_SHA512_SSSE3=m
# CONFIG_CRYPTO_SM3_AVX_X86_64 is not set CONFIG_CRYPTO_GHASH_CLMUL_NI_INTEL=m CONFIG_CRYPTO_CRC32C_INTEL=m CONFIG_CRYPTO_CRC32_PCLMUL=m CONFIG_CRYPTO_CRCT10DIF_PCLMUL=m
# end of Accelerated Cryptographic Algorithms for CPU (x86)
# CONFIG_CRYPTO_HW is not setCONFIG_ASYMMETRIC_KEY_TYPE=yCONFIG_ASYMMETRIC_PUBLIC_KEY_SUBTYPE=yCONFIG_X509_CERTIFICATE_PARSER=y
# CONFIG_PKCS8_PRIVATE_KEY_PARSER is not setCONFIG_PKCS7_MESSAGE_PARSER=y
# CONFIG_PKCS7_TEST_KEY is not setCONFIG_SIGNED_PE_FILE_VERIFICATION=y
# CONFIG_FIPS_SIGNATURE_SELFTEST is not set
#
# Certificates for signature checking
#CONFIG_MODULE_SIG_KEY="certs/signing_key.pem"CONFIG_MODULE_SIG_KEY_TYPE_RSA=y
# CONFIG_MODULE_SIG_KEY_TYPE_ECDSA is not setCONFIG_SYSTEM_TRUSTED_KEYRING=yCONFIG_SYSTEM_TRUSTED_KEYS=""
# CONFIG_SYSTEM_EXTRA_CERTIFICATE is not set
# CONFIG_SECONDARY_TRUSTED_KEYRING is not setCONFIG_SYSTEM_BLACKLIST_KEYRING=yCONFIG_SYSTEM_BLACKLIST_HASH_LIST=""
# CONFIG_SYSTEM_REVOCATION_LIST is not set
# CONFIG_SYSTEM_BLACKLIST_AUTH_UPDATE is not set
# end of Certificates for signature checking
CONFIG_BINARY_PRINTF=y
#
# Library routines
#CONFIG_RAID6_PQ=mCONFIG_RAID6_PQ_BENCHMARK=y
# CONFIG_PACKING is not setCONFIG_BITREVERSE=yCONFIG_GENERIC_STRNCPY_FROM_USER=yCONFIG_GENERIC_STRNLEN_USER=yCONFIG_GENERIC_NET_UTILS=yCONFIG_CORDIC=m
# CONFIG_PRIME_NUMBERS is not setCONFIG_RATIONAL=yCONFIG_GENERIC_PCI_IOMAP=yCONFIG_GENERIC_IOMAP=yCONFIG_ARCH_USE_CMPXCHG_LOCKREF=yCONFIG_ARCH_HAS_FAST_MULTIPLIER=yCONFIG_ARCH_USE_SYM_ANNOTATIONS=y
#
# Crypto library routines
#CONFIG_CRYPTO_LIB_UTILS=yCONFIG_CRYPTO_LIB_AES=yCONFIG_CRYPTO_LIB_ARC4=mCONFIG_CRYPTO_LIB_GF128MUL=yCONFIG_CRYPTO_LIB_BLAKE2S_GENERIC=yCONFIG_CRYPTO_ARCH_HAVE_LIB_CHACHA=mCONFIG_CRYPTO_LIB_CHACHA_GENERIC=m
# CONFIG_CRYPTO_LIB_CHACHA is not set
# CONFIG_CRYPTO_LIB_CURVE25519 is not setCONFIG_CRYPTO_LIB_DES=mCONFIG_CRYPTO_LIB_POLY1305_RSIZE=11
# CONFIG_CRYPTO_LIB_POLY1305 is not set
# CONFIG_CRYPTO_LIB_CHACHA20POLY1305 is not setCONFIG_CRYPTO_LIB_SHA1=yCONFIG_CRYPTO_LIB_SHA256=y
# end of Crypto library routines
CONFIG_CRC_CCITT=yCONFIG_CRC16=yCONFIG_CRC_T10DIF=yCONFIG_CRC64_ROCKSOFT=mCONFIG_CRC_ITU_T=mCONFIG_CRC32=y
# CONFIG_CRC32_SELFTEST is not setCONFIG_CRC32_SLICEBY8=y
# CONFIG_CRC32_SLICEBY4 is not set
# CONFIG_CRC32_SARWATE is not set
# CONFIG_CRC32_BIT is not setCONFIG_CRC64=m
# CONFIG_CRC4 is not setCONFIG_CRC7=mCONFIG_LIBCRC32C=mCONFIG_CRC8=mCONFIG_XXHASH=y
# CONFIG_RANDOM32_SELFTEST is not setCONFIG_ZLIB_INFLATE=yCONFIG_ZLIB_DEFLATE=yCONFIG_LZO_COMPRESS=yCONFIG_LZO_DECOMPRESS=yCONFIG_LZ4_DECOMPRESS=yCONFIG_ZSTD_COMMON=yCONFIG_ZSTD_COMPRESS=yCONFIG_ZSTD_DECOMPRESS=yCONFIG_XZ_DEC=yCONFIG_XZ_DEC_X86=yCONFIG_XZ_DEC_POWERPC=yCONFIG_XZ_DEC_IA64=yCONFIG_XZ_DEC_ARM=yCONFIG_XZ_DEC_ARMTHUMB=yCONFIG_XZ_DEC_SPARC=y
# CONFIG_XZ_DEC_MICROLZMA is not setCONFIG_XZ_DEC_BCJ=y
# CONFIG_XZ_DEC_TEST is not setCONFIG_DECOMPRESS_GZIP=yCONFIG_DECOMPRESS_BZIP2=yCONFIG_DECOMPRESS_LZMA=yCONFIG_DECOMPRESS_XZ=yCONFIG_DECOMPRESS_LZO=yCONFIG_DECOMPRESS_LZ4=yCONFIG_DECOMPRESS_ZSTD=yCONFIG_GENERIC_ALLOCATOR=yCONFIG_REED_SOLOMON=mCONFIG_REED_SOLOMON_ENC8=yCONFIG_REED_SOLOMON_DEC8=yCONFIG_TEXTSEARCH=yCONFIG_TEXTSEARCH_KMP=mCONFIG_TEXTSEARCH_BM=mCONFIG_TEXTSEARCH_FSM=mCONFIG_INTERVAL_TREE=yCONFIG_XARRAY_MULTI=yCONFIG_ASSOCIATIVE_ARRAY=yCONFIG_HAS_IOMEM=yCONFIG_HAS_IOPORT=yCONFIG_HAS_IOPORT_MAP=yCONFIG_HAS_DMA=yCONFIG_DMA_OPS=yCONFIG_NEED_SG_DMA_FLAGS=yCONFIG_NEED_SG_DMA_LENGTH=yCONFIG_NEED_DMA_MAP_STATE=yCONFIG_ARCH_DMA_ADDR_T_64BIT=yCONFIG_SWIOTLB=y
# CONFIG_SWIOTLB_DYNAMIC is not set
# CONFIG_DMA_API_DEBUG is not set
# CONFIG_DMA_MAP_BENCHMARK is not setCONFIG_SGL_ALLOC=yCONFIG_CHECK_SIGNATURE=yCONFIG_CPUMASK_OFFSTACK=y
# CONFIG_FORCE_NR_CPUS is not setCONFIG_CPU_RMAP=yCONFIG_DQL=yCONFIG_GLOB=y
# CONFIG_GLOB_SELFTEST is not setCONFIG_NLATTR=yCONFIG_CLZ_TAB=yCONFIG_IRQ_POLL=yCONFIG_MPILIB=yCONFIG_SIGNATURE=yCONFIG_OID_REGISTRY=yCONFIG_UCS2_STRING=yCONFIG_HAVE_GENERIC_VDSO=yCONFIG_GENERIC_GETTIMEOFDAY=yCONFIG_GENERIC_VDSO_TIME_NS=yCONFIG_FONT_SUPPORT=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=yCONFIG_SG_POOL=yCONFIG_ARCH_HAS_PMEM_API=yCONFIG_MEMREGION=yCONFIG_ARCH_HAS_CPU_CACHE_INVALIDATE_MEMREGION=yCONFIG_ARCH_HAS_UACCESS_FLUSHCACHE=yCONFIG_ARCH_HAS_COPY_MC=yCONFIG_ARCH_STACKWALK=yCONFIG_STACKDEPOT=yCONFIG_SBITMAP=y
# end of Library routines
CONFIG_ASN1_ENCODER=y
#
# Kernel hacking
#
#
# printk and dmesg options # CONFIG_PRINTK_TIME=y CONFIG_PRINTK_CALLER=y # CONFIG_STACKTRACE_BUILD_ID is not set CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7 CONFIG_CONSOLE_LOGLEVEL_QUIET=4 CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4 CONFIG_BOOT_PRINTK_DELAY=y CONFIG_DYNAMIC_DEBUG=y CONFIG_DYNAMIC_DEBUG_CORE=y CONFIG_SYMBOLIC_ERRNAME=y CONFIG_DEBUG_BUGVERBOSE=y # end of printk and dmesg options
CONFIG_DEBUG_KERNEL=yCONFIG_DEBUG_MISC=y
#
# Compile-time checks and compiler options
#CONFIG_DEBUG_INFO=y CONFIG_AS_HAS_NON_CONST_LEB128=y
# CONFIG_DEBUG_INFO_NONE is not set
# CONFIG_DEBUG_INFO_DWARF_TOOLCHAIN_DEFAULT is not set CONFIG_DEBUG_INFO_DWARF4=y
# CONFIG_DEBUG_INFO_DWARF5 is not set CONFIG_DEBUG_INFO_REDUCED=y CONFIG_DEBUG_INFO_COMPRESSED_NONE=y
# CONFIG_DEBUG_INFO_COMPRESSED_ZLIB is not set # CONFIG_DEBUG_INFO_SPLIT is not set CONFIG_PAHOLE_HAS_SPLIT_BTF=y CONFIG_PAHOLE_HAS_LANG_EXCLUDE=y
# CONFIG_GDB_SCRIPTS is not set CONFIG_FRAME_WARN=2048 CONFIG_STRIP_ASM_SYMS=y
# CONFIG_READABLE_ASM is not set
# CONFIG_HEADERS_INSTALL is not set CONFIG_DEBUG_SECTION_MISMATCH=y CONFIG_SECTION_MISMATCH_WARN_ONLY=y
# CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B is not set CONFIG_OBJTOOL=y
# CONFIG_VMLINUX_MAP is not set
# CONFIG_DEBUG_FORCE_WEAK_PER_CPU is not set
716 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Luck, Tony
maintainerRE: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 23 lines
kernel test robot noticed a -8.8% regression of stress-ng.clock.ops_per_sec on:
commit:
26bff7b04b829cccc6a97726d6398391a62e34ef("[PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation")
url: https://github.com/intel-lab-lkp/linux/commits/Tony-Luck/x86-mce-Remove-old-CMCI-storm-mitigation-code/20231005-024047
patch link: https://lore.kernel.org/all/[email protected]/
patch subject: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigationtestcase: stress-ng
test machine: 64 threads 2 sockets Intel(R) Xeon(R) Gold 6346 CPU @ 3.10GHz (Ice Lake) with 256G memory parameters:nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: clock cpufreq_governor: performance
Quoted 4 lines
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-lkp/[email protected]
Is the test injecting massive numbers of corrected memory errors? The code in this patch is only executed when handling CMCI interrupts, or polling machine check banks (at most once per second).
I'm guessing this report is just because alignment of some hot path code changed.
-Tony
Re: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 28 lines · Tony
Quoted 23 lines
kernel test robot noticed a -8.8% regression of stress-ng.clock.ops_per_sec on:
commit:
26bff7b04b829cccc6a97726d6398391a62e34ef("[PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation")
url: https://github.com/intel-lab-lkp/linux/commits/Tony-Luck/x86-mce-Remove-old-CMCI-storm-mitigation-code/20231005-024047
patch link: https://lore.kernel.org/all/[email protected]/
patch subject: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigationtestcase: stress-ng
test machine: 64 threads 2 sockets Intel(R) Xeon(R) Gold 6346 CPU @ 3.10GHz (Ice Lake) with 256G memory parameters:nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: clock cpufreq_governor: performanceQuoted 4 lines
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-lkp/[email protected]
Quoted 5 lines
Is the test injecting massive numbers of corrected memory errors? The code in this patch is only executed when handling CMCI interrupts, or polling machine check banks (at most once per second).
I'm guessing this report is just because alignment of some hot path code changed.
IIRC, CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64B was enabled in 0Day's kernel config for quite a while, to force each funtion's start address aligned on 64 bytes. Don't know if this has been changed recently.
Also I noticed the patch introduce a new per-cpu variable 'storm_desc", if the function address is 64B aligned, then per-cpu data alignment may be related.
Thanks,
Feng
Quoted 2 lines
-Tony
Luck, Tony
maintainerRE: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 8 lines
IIRC,
CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64Bwas enabled in 0Day's kernel config for quite a while, to force each funtion's start address aligned on 64 bytes. Don't know if this has been changed recently.Also I noticed the patch introduce a new per-cpu variable '
storm_desc", if the function address is 64B aligned, then per-cpu data alignment may be related.
If adding (removing, changing) per-cpu variables can cause 8% performance changes, then maybe there needs to be some way to insulate the builds from these side effects (as was done with the 64-byte function alignment). I've no ideas on how to achieve that :-(
"storm_desc" is a largish per-cpu variable at 1568 bytes. But that doesn't quite get it into the top 20.
In the config used for my kernel build, it does appear just before a bunch of interrupt related per-cpu variables. Those might be sensitive to alignment?
000000000001ff40 d smca_misc_banks_map000000000001ff48 d bank_map000000000001ff50 d threshold_banks000000000001ff60 d storm_desc
0000000000020580 d tsc_adjust00000000000205c0 d lapic_events00000000000206c0 d vector_cleanup
0000000000020720 D __uv_cpu_info
0000000000020738 d ipi_mask
-Tony
Re: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 5 lines · Tony
Quoted 5 lines
IIRC,
CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64Bwas enabled in 0Day's kernel config for quite a while, to force each funtion's start address aligned on 64 bytes. Don't know if this has been changed recently.
Quoted 8 lines
Quoted 3 lines
Also I noticed the patch introduce a new per-cpu variable '
storm_desc", if the function address is 64B aligned, then per-cpu data alignment may be related.If adding (removing, changing) per-cpu variables can cause 8% performance changes, then maybe there needs to be some way to insulate the builds from these side effects (as was done with the 64-byte function alignment). I've no ideas on how to achieve that :-(
Philip helped to clarify that 0Day kernel build does enable the 64 bytes function address alignment.
Quoted 6 lines
"
storm_desc" is a largish per-cpu variable at 1568 bytes. But that doesn't quite get it into the top 20.In the config used for my kernel build, it does appear just before a bunch of interrupt related per-cpu variables. Those might be sensitive to alignment?
Quoted 9 lines
000000000001ff40dsmca_misc_banks_map000000000001ff48dbank_map000000000001ff50dthreshold_banks000000000001ff60dstorm_desc
0000000000020580 dtsc_adjust00000000000205c0dlapic_events00000000000206c0dvector_cleanup
0000000000020720 D__uv_cpu_info
0000000000020738 dipi_mask
I did further check by putting 'storm_desc' into another section with below patch, and the regression is restored, which indictes it is related with these per-cpu data alignment change.
arch/x86/kernel/cpu/mce/threshold.c +1 -1
@@ -41,7 +41,7 @@ struct mca_storm_desc {bool poll_mode; }; -static DEFINE_PER_CPU(struct mca_storm_desc, storm_desc); +static DEFINE_PER_CPU_SHARED_ALIGNED(struct mca_storm_desc, storm_desc);
Thanks,
Feng
Quoted 2 lines
-Tony
Re: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 6 lines · Feng Tang
Quoted 5 lines · Tony
Quoted 5 lines
IIRC,
CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64Bwas enabled in 0Day's kernel config for quite a while, to force each funtion's start address aligned on 64 bytes. Don't know if this has been changed recently.
Quoted 8 lines
Quoted 8 lines
Quoted 3 lines
Also I noticed the patch introduce a new per-cpu variable '
storm_desc", if the function address is 64B aligned, then per-cpu data alignment may be related.If adding (removing, changing) per-cpu variables can cause 8% performance changes, then maybe there needs to be some way to insulate the builds from these side effects (as was done with the 64-byte function alignment). I've no ideas on how to achieve that :-(
As for mitigation (how to reduce these kind of strange performance
changes), I have proposed a "selective isolation" in LPC 2021, in
page 15 of https://lpc.events/event/11/contributions/895/attachments/770/1603/Strange_kernel_performance_changes_lpc_2021.pdf
As kernel binary is compactly linked together, the alignment change of text/data in earlier modules could affect other modules after them. MCE module is much easier to hit these strange performance changes, just because it sit in arch/ folder and get linked early in kernel binary.
The idea of "selective isolation" is simple, by picking some modules sparsely and enforce some alignment to function/data/per-cpu data, so that they can act as fences/borders, separate kernel into multiple capsules, and make the alignment changes only take effect inside that specific capsule.
Any thoughts? thanks!
- Feng
Quoted 2 lines
Philip helped to clarify that 0Day kernel build does enable the 64 bytes function address alignment.
[...]
Re: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
In reply to Feng TangQuoted 33 lines · Feng Tang
Quoted 32 lines · Tony
Quoted 23 lines
kernel test robot noticed a -8.8% regression of stress-ng.clock.ops_per_sec on:
commit:
26bff7b04b829cccc6a97726d6398391a62e34ef("[PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation")
url: https://github.com/intel-lab-lkp/linux/commits/Tony-Luck/x86-mce-Remove-old-CMCI-storm-mitigation-code/20231005-024047
patch link: https://lore.kernel.org/all/[email protected]/
patch subject: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigationtestcase: stress-ng
test machine: 64 threads 2 sockets Intel(R) Xeon(R) Gold 6346 CPU @ 3.10GHz (Ice Lake) with 256G memory parameters:nr_threads: 10% disk: 1HDD testtime: 60s fs: ext4 class: os test: clock cpufreq_governor: performanceQuoted 4 lines
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-lkp/[email protected]Is the test injecting massive numbers of corrected memory errors? The code in this patch is only executed when handling CMCI interrupts, or polling machine check banks (at most once per second).
Quoted 6 lines
Quoted 1 line
I'm guessing this report is just because alignment of some hot path code changed.
IIRC,
CONFIG_DEBUG_FORCE_FUNCTION_ALIGN_64Bwas enabled in 0Day's kernel config for quite a while, to force each funtion's start address aligned on 64 bytes. Don't know if this has been changed recently.
yes, the kernel is always built with -falign-functions=64 to test performance now.
Quoted 11 lines
Also I noticed the patch introduce a new per-cpu variable '
storm_desc", if the function address is 64B aligned, then per-cpu data alignment may be related.Thanks,
FengQuoted 2 lines
-Tony
Borislav Petkov
maintainerRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckQuoted 3 lines · Tony Luck
+/*
+ * history: bitmask tracking whether errors were seen or not seen in
+ * the most recent polls of a bank.
each bit in that bitmask represents an error seen.
arch/x86/kernel/cpu/mce/internal.h static inline void intel_clear_lmce(void) { } · line 84
Quoted 7 lines
+ * timestamp: last time (in jiffies) that the bank was polled
+ * storm: Is this bank in storm mode?
+ */arch/x86/kernel/cpu/mce/internal.h +4
-0+struct storm_bank { +u64 history; +u64 timestamp; +bool storm;
I guess "in_storm_mode" is even more descriptive:
storm->banks[bank].in_storm_mode = false;
etc.
Quoted 19 lines
arch/x86/kernel/cpu/mce/internal.h +11
-0+}; + +/* How many errors within the history buffer mark the start of a storm. */ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over. Since it is tracked by the bitmaks in the history +* field of struct storm_bank the mask is 30 bits [0 ... 29]. +*/ +#define STORM_END_POLL_THRESHOLD 29#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);arch/x86/kernel/cpu/mce/core.c +0
-0
arch/x86/kernel/cpu/mce/core.c bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b) · line 683
Quoted 4 lines
arch/x86/kernel/cpu/mce/core.c +1
-0@@ -680,6 +680,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +mce_track_storm (&m);
Lemme see if I understand the idea here:
the default polling interval is 5 mins. So the storm tracking is called every 5 mins once to see how are banks "doing", so to speak and to get them in or out of storm mode. So far so good...
arch/x86/kernel/cpu/mce/core.c bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b) · line 687
Quoted 4 lines
arch/x86/kernel/cpu/mce/core.c +1
-0+/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
Btw, you're tracking storm even if the error is not valid - conditional above here. Why?
arch/x86/kernel/cpu/mce/core.c static void mce_timer_fn(struct timer_list *t) · line 1662
Quoted 12 lines
arch/x86/kernel/cpu/mce/core.c +6
-2@@ -1652,22 +1654,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (mce_is_storm ()) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + }
... this is where it becomes, hm, interesting: the check interval will be halved if an error has been seen during this round but then if we're in storm mode, that check interval doesn't matter - you'll run the timer each second.
Then you need to restructure this to check the storm condition and not do anything to iv if storm.
Or, am I missing something?
Quoted 9 lines
arch/x86/kernel/cpu/mce/threshold.c +1
-0@@ -29,3 +29,115 @@ DEFINE_IDTENTRY_SYSVEC(sysvec_threshold)trace_threshold_apic_exit (THRESHOLD_APIC_VECTOR );apic_eoi (); } +
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 42
Quoted 10 lines
arch/x86/kernel/cpu/mce/threshold.c +10
-0+/* +* banks: per-cpu, per-bank details +* stormy_bank_count: count of MC banks in storm state +* poll_mode: CPU is in poll mode +*/ +struct mca_storm_desc { +struct storm_bank banks[MAX_NR_BANKS ]; +u8 stormy_bank_count; +bool poll_mode; +};
Yeah, put the struct definition into internal.h pls.
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 50
Quoted 7 lines
arch/x86/kernel/cpu/mce/threshold.c +7
-0+static DEFINE_PER_CPU(struct mca_storm_desc, storm_desc); + +void mce_inherit_storm (unsigned int bank) +{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); + + storm->banks[bank].history = ~0ull ;
So upon inheriting a bank, you set its history that it has seen errors each time?
That's weird.
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 54
Quoted 4 lines
arch/x86/kernel/cpu/mce/threshold.c +4
-0+ storm->banks[bank].timestamp = jiffies; +} + +bool mce_is_storm (void )
That's a weird name. mce_get_storm_mode() perhaps?
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 59
Quoted 5 lines
arch/x86/kernel/cpu/mce/threshold.c +5
-0+{ +return __this_cpu_read (storm_desc.poll_mode); +} + +void mce_set_storm (bool storm)
mce_set_storm_mode()
Quoted 9 lines
arch/x86/kernel/cpu/mce/threshold.c +9
-0+{ +__this_cpu_write (storm_desc.poll_mode, storm); +} + +static void mce_handle_storm (unsigned int bank,bool on) +{ +switch (boot_cpu_data.x86_vendor) { + } +}
...
Quoted 6 lines
arch/x86/kernel/cpu/mce/threshold.c +6
-0+void mce_track_storm (struct mce *mce) +{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); +unsigned long now = jiffies, delta; +unsigned int shift =1 ; +u64 history =0 ;
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 113
Quoted 10 lines
arch/x86/kernel/cpu/mce/threshold.c +10
-0+ +/* +* When a bank is in storm mode it is polled once per second and +* the history mask will record about the last minute of poll results. +* If it is not in storm mode, then the bank is only checked when +* there is a CMCI interrupt. Check how long it has been since +* this bank was last checked, and adjust the amount of "shift" +* to apply to history. +*/ +if (!storm->banks[mce->bank].storm) {
Yeah, if this were
if (!storm->banks[mce->bank].in_storm_mode)
it would've been perfectly clear what the condition tests.
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 119
Quoted 6 lines
arch/x86/kernel/cpu/mce/threshold.c +6
-0+ delta = now - storm->banks[mce->bank].timestamp; + shift = (delta +HZ ) /HZ ; + } + +/* If it has been a long time since the last poll, clear history. */ +if (shift <64 )
Use a properly named define instead of a naked number.
...
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteTony Luck
maintainerRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 6 lines · Borislav Petkov
Quoted 3 lines · Tony Luck
+/*
+ * history: bitmask tracking whether errors were seen or not seen in
+ * the most recent polls of a bank.each bit in that bitmask represents an error seen.
Yes. That reads better.
Quoted 11 lines
arch/x86/kernel/cpu/mce/internal.h static inline void intel_clear_lmce(void) { } · line 84
Quoted 8 lines
+ * timestamp: last time (in jiffies) that the bank was polled
+ * storm: Is this bank in storm mode?
+ */arch/x86/kernel/cpu/mce/internal.h +4
-0+struct storm_bank { +u64 history; +u64 timestamp; +bool storm;I guess "
in_storm_mode" is even more descriptive:
Quoted 3 lines
storm->banks[bank].in_storm_mode = false;etc.
Will fix.
Quoted 31 lines
Quoted 20 lines
arch/x86/kernel/cpu/mce/internal.h +11
-0+}; + +/* How many errors within the history buffer mark the start of a storm. */ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over. Since it is tracked by the bitmaks in the history +* field of struct storm_bank the mask is 30 bits [0 ... 29]. +*/ +#define STORM_END_POLL_THRESHOLD 29#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);arch/x86/kernel/cpu/mce/core.c +0
-0arch/x86/kernel/cpu/mce/core.c bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b) · line 683
Quoted 4 lines
arch/x86/kernel/cpu/mce/core.c +1
-0@@ -680,6 +680,8 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +mce_track_storm (&m);Lemme see if I understand the idea here:
the default polling interval is 5 mins. So the storm tracking is called every 5 mins once to see how are banks "doing", so to speak and to get them in or out of storm mode. So far so good...
Quoted 7 lines
arch/x86/kernel/cpu/mce/core.c bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b) · line 687
Quoted 4 lines
arch/x86/kernel/cpu/mce/core.c +1
-0+/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;Btw, you're tracking storm even if the error is not valid - conditional above here. Why?
I want to track whether each bank is in storm mode, or not. But there's no indication when a CMCI is delivered which bank was the source. Code just has to scan all the banks, and might find more than one with an error. While no bank is in polling mode, there isn't a set time interval between scanning banks. A scan is just triggered when a CMCI happens. So it's non-trivial to compute a rate. Would require saving a timestamp for every logged error.
In a simple case there's just one bank responsible for a ton of CMCI. No need for complexity here, the count of interrupts from that bank will hit a threshold and a storm is declared.
But more complex scenarois are possible. Other banks may trigger small numbers of CMCI. Not enough to call it a storm. Or multiple banks may be screaming together.
By tracking both the hits and misses in each bank, I end up with a bitmap history for the past 64 polls. If there are enough "1" bits in that bitmap to meet the threshold, then declare a storm for that bank.
Quoted 19 lines
arch/x86/kernel/cpu/mce/core.c static void mce_timer_fn(struct timer_list *t) · line 1662
Quoted 13 lines
arch/x86/kernel/cpu/mce/core.c +6
-2@@ -1652,22 +1654,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (mce_is_storm ()) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + }... this is where it becomes, hm, interesting: the check interval will be halved if an error has been seen during this round but then if we're in storm mode, that check interval doesn't matter - you'll run the timer each second.
Quoted 4 lines
Then you need to restructure this to check the storm condition and not do anything to iv if storm.
Or, am I missing something?
I need to stare at this again to refresh my memory of what's going on here. This code may need pulling apart into a routine that is used for systems with no CMCI (or have CMCI disabled). Then the whole "divide the poll interval by two" when you see an error and double the interval when you don't see an error makes sense.
For systems with CMCI ... I think just polling a one second interval until the storm is over makes sense.
Quoted 14 lines
Quoted 14 lines
arch/x86/kernel/cpu/mce/threshold.c +5
-0@@ -29,3 +29,115 @@ DEFINE_IDTENTRY_SYSVEC(sysvec_threshold)trace_threshold_apic_exit (THRESHOLD_APIC_VECTOR );apic_eoi (); } + +/* +* banks: per-cpu, per-bank details +* stormy_bank_count: count of MC banks in storm state +* poll_mode: CPU is in poll mode
Quoted 8 lines
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 42
Quoted 6 lines
arch/x86/kernel/cpu/mce/threshold.c +6
-0+*/ +struct mca_storm_desc { +struct storm_bank banks[MAX_NR_BANKS ]; +u8 stormy_bank_count; +bool poll_mode; +};Yeah, put the struct definition into
internal.hpls.
These are only used in threshold.c now. What's the point of them being in internal.h. That's for defintiones shared by multiple mcs/*.c files. Isn't it? But will move there if you still want this.
Quoted 12 lines
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 50
Quoted 8 lines
arch/x86/kernel/cpu/mce/threshold.c +7
-0+static DEFINE_PER_CPU(struct mca_storm_desc, storm_desc); + +void mce_inherit_storm (unsigned int bank) +{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); + + storm->banks[bank].history = ~0ull ;So upon inheriting a bank, you set its history that it has seen errors each time?
Quoted 1 line
That's weird.
Ideally the new CPU would inherit the precise state of the previous owner of this bank. But there's no easy way to track that as the bank is abanoned by the CPU going offline, and there is a free-for-all with remaining CPUs racing to claim ownership. It is known that this bank was in storm mode (because the threshold in the CTL2 bank register is set to CMCI_STORM_THRESHOLD).
I went with "worst case" to make sure the new CPU didn't prematurely declare an end to the storm.
I'll add a comment in mce_inherit_storm() to explain this.
Quoted 7 lines
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 54
Quoted 5 lines
arch/x86/kernel/cpu/mce/threshold.c +4
-0+ storm->banks[bank].timestamp = jiffies; +} + +bool mce_is_storm (void )That's a weird name.
mce_get_storm_mode()perhaps?
Sure.
Quoted 8 lines
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 59
Quoted 6 lines
arch/x86/kernel/cpu/mce/threshold.c +5
-0+{ +return __this_cpu_read (storm_desc.poll_mode); +} + +void mce_set_storm (bool storm)
mce_set_storm_mode()
Also sure.
Quoted 32 lines
Quoted 10 lines
arch/x86/kernel/cpu/mce/threshold.c +9
-0+{ +__this_cpu_write (storm_desc.poll_mode, storm); +} + +static void mce_handle_storm (unsigned int bank,bool on) +{ +switch (boot_cpu_data.x86_vendor) { + } +}...
Quoted 6 lines
arch/x86/kernel/cpu/mce/threshold.c +6
-0+void mce_track_storm (struct mce *mce) +{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); +unsigned long now = jiffies, delta; +unsigned int shift =1 ; +u64 history =0 ;arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 113
Quoted 10 lines
arch/x86/kernel/cpu/mce/threshold.c +10
-0+ +/* +* When a bank is in storm mode it is polled once per second and +* the history mask will record about the last minute of poll results. +* If it is not in storm mode, then the bank is only checked when +* there is a CMCI interrupt. Check how long it has been since +* this bank was last checked, and adjust the amount of "shift" +* to apply to history. +*/ +if (!storm->banks[mce->bank].storm) {Yeah, if this were
Quoted 3 lines
if (!storm->banks[mce->bank].in_storm_mode)it would've been perfectly clear what the condition tests.
Yup.
Quoted 9 lines
arch/x86/kernel/cpu/mce/threshold.c DEFINE_IDTENTRY_SYSVEC(sysvec_threshold) · line 119
Quoted 7 lines
arch/x86/kernel/cpu/mce/threshold.c +6
-0+ delta = now - storm->banks[mce->bank].timestamp; + shift = (delta +HZ ) /HZ ; + } + +/* If it has been a long time since the last poll, clear history. */ +if (shift <64 )Use a properly named define instead of a naked number.
Like this?
#define NUM_HISTORY_BITS (sizeof(u64) * BITS_PER_BYTE)
if (shift < NUM_HISTORY_BITS)
Quoted 8 lines
...
Thx.
Signature · 2 lines
Regards/Gruss, Boris.
-Tony
Borislav Petkov
maintainerRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 5 lines · Tony Luck
I want to track whether each bank is in storm mode, or not. But there's no indication when a CMCI is delivered which bank was the source. Code just has to scan all the banks, and might find more than one with an error. While no bank is in polling mode, there isn't a set time interval between scanning banks.
Well, if no bank is in *storm* polling mode - I presume you mean that when you say "polling mode" - then we have the default polling interval of machine_check_poll() of INITIAL_CHECK_INTERVAL, i.e., 5 mins, I'd say.
Quoted 3 lines
A scan is just triggered when a CMCI happens. So it's non-trivial to compute a rate. Would require saving a timestamp for every logged error.
So what I'm trying to establish first is, what our entry vectors into the storm code are.
1. You can enter storm tracking when you poll normally. I.e., machine_check_poll() each 5 mins once.
mce_track_storm() tracks history only for MCI_STATUS_VAL=1b CEs, which is what I was wondering. It is hidden a bit down in that function.
2. As a result of a CMCI interrupt. That will call machine_check_poll() too and go down the same path.
So that flow should be called out in the commit message so that the big picture is clear - how we're doing that storm tracking.
Now, what is protecting this against concurrent runs of machine_check_poll()? Imagine the timer fires and a CMCI happens at the same time and on the same core.
Quoted 3 lines
In a simple case there's just one bank responsible for a ton of CMCI. No need for complexity here, the count of interrupts from that bank will hit a threshold and a storm is declared.
Right.
Quoted 8 lines
But more complex scenarois are possible. Other banks may trigger small numbers of CMCI. Not enough to call it a storm. Or multiple banks may be screaming together.
By tracking both the hits and misses in each bank, I end up with a bitmap history for the past 64 polls. If there are enough "1" bits in that bitmap to meet the threshold, then declare a storm for that bank.
Yap, I only want to be crystal clear on the flow and the entry points.
Quoted 8 lines
I need to stare at this again to refresh my memory of what's going on here. This code may need pulling apart into a routine that is used for systems with no CMCI (or have CMCI disabled). Then the whole "divide the poll interval by two" when you see an error and double the interval when you don't see an error makes sense.
For systems with CMCI ... I think just polling a one second interval until the storm is over makes sense.
Ok.
Quoted 3 lines
These are only used in
threshold.cnow. What's the point of them being ininternal.h. That's for defintiones shared by multiple mcs/*.c files. Isn't it? But will move there if you still want this.
Structs hidden in .c files looks weird but ok.
Quoted 11 lines
Ideally the new CPU would inherit the precise state of the previous owner of this bank. But there's no easy way to track that as the bank is abanoned by the CPU going offline, and there is a free-for-all with remaining CPUs racing to claim ownership. It is known that this bank was in storm mode (because the threshold in the CTL2 bank register is set to
CMCI_STORM_THRESHOLD).I went with "worst case" to make sure the new CPU didn't prematurely declare an end to the storm.
I'll add a comment in
mce_inherit_storm()to explain this.
Yap, exactly.
Quoted 5 lines
Like this?
#define
NUM_HISTORY_BITS(sizeof(u64) *BITS_PER_BYTE)if (shift <
NUM_HISTORY_BITS)
Yap.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteTony Luck
maintainerRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 11 lines · Borislav Petkov
Quoted 5 lines · Tony Luck
I want to track whether each bank is in storm mode, or not. But there's no indication when a CMCI is delivered which bank was the source. Code just has to scan all the banks, and might find more than one with an error. While no bank is in polling mode, there isn't a set time interval between scanning banks.
Well, if no bank is in *storm* polling mode - I presume you mean that when you say "polling mode" - then we have the default polling interval of
machine_check_poll()ofINITIAL_CHECK_INTERVAL, i.e., 5 mins, I'd say.
Initial state is that no banks are in storm mode. Errors logged in any bank are signaled with a CMCI to all logical CPUs that share that bank. But the "mce_banks_owned" per-cpu bitmask means that only one of those CPUs will get past the test_bit() check at the top of the loop in machine_check_poll():
for (i = 0; i < this_cpu_read(mce_num_banks); i++) {
if (!mce_banks[i].ctl || !test_bit(i, *b))
continue;Before any storm happens, machine_check_poll() may only be called once a month, or less, when errors occur.
When a storm is detected for a bank, that bank (and any others in storm mode) will be checked once per second.
Quoted 9 lines
Quoted 3 lines
A scan is just triggered when a CMCI happens. So it's non-trivial to compute a rate. Would require saving a timestamp for every logged error.
So what I'm trying to establish first is, what our entry vectors into the storm code are.
1. You can enter storm tracking when you poll normally. I.e.,
machine_check_poll()each 5 mins once.
For a bank that doesn't support CMCI, then polling is the only way to find errors. You are right, these will feed into the history tracker, but while at 5-minute interval will not be able to trigger a storm. Since that 5-minute interval is halved every time error is found consecutively, it is possible at the 1-second poll interval to fill out enough bits to indicate a storm. I think I need to add some code to handle that case as it makes no sense to mess with the CMCI threshold in IA32_MCi_CTL2 for a bank that doesn't support CMCI. Probably will just skip tracking for any such banks.
Quoted 8 lines
mce_track_storm()tracks history only for MCI_STATUS_VAL=1b CEs, which is what I was wondering. It is hidden a bit down in that function.2. As a result of a CMCI interrupt. That will call
machine_check_poll()too and go down the same path.So that flow should be called out in the commit message so that the big picture is clear - how we're doing that storm tracking.
Yes. Those are both inputs to the storm tracker. I'll update the commit message to describe that.
Quoted 3 lines
Now, what is protecting this against concurrent runs of
machine_check_poll()? Imagine the timer fires and a CMCI happens at the same time and on the same core.
Aren't interrupts disabled while running the code after the timer fires? Whichever of the timer and the CMCI happens first will run. Second to arrive will pend the interrupt and be handled when interrupts are enabled as the first completes.
... rest of message trimmed, no open discussion items there.
-Tony
Borislav Petkov
maintainerRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 2 lines · Tony Luck
Before any storm happens,
machine_check_poll()may only be called once a month, or less, when errors occur.
Err:
[ 317.825546] mce: mc_poll_banks_default: CPU2 irq ctxt level: 1 [ 317.825585] mce: mc_poll_banks_default: CPU0 irq ctxt level: 1 [ 317.825585] mce: mc_poll_banks_default: CPU1 irq ctxt level: 1 [ 317.825586] mce: mc_poll_banks_default: CPU3 irq ctxt level: 1 [ 317.825586] mce: mc_poll_banks_default: CPU4 irq ctxt level: 1 [ 317.825586] mce: mc_poll_banks_default: CPU5 irq ctxt level: 1 [ 629.121536] mce: mc_poll_banks_default: CPU1 irq ctxt level: 1 [ 629.121536] mce: mc_poll_banks_default: CPU4 irq ctxt level: 1 [ 629.121560] mce: mc_poll_banks_default: CPU2 irq ctxt level: 1 [ 629.121561] mce: mc_poll_banks_default: CPU0 irq ctxt level: 1 [ 629.121561] mce: mc_poll_banks_default: CPU5 irq ctxt level: 1 [ 629.121569] mce: mc_poll_banks_default: CPU3 irq ctxt level: 1 [ 940.417507] mce: mc_poll_banks_default: CPU2 irq ctxt level: 1 [ 940.417508] mce: mc_poll_banks_default: CPU3 irq ctxt level: 1 [ 940.417508] mce: mc_poll_banks_default: CPU1 irq ctxt level: 1 [ 940.417508] mce: mc_poll_banks_default: CPU4 irq ctxt level: 1 [ 940.417509] mce: mc_poll_banks_default: CPU5 irq ctxt level: 1 [ 940.417508] mce: mc_poll_banks_default: CPU0 irq ctxt level: 1
...
That's from my coffeelake test box.
The irq context level thing says we're in softirq context when the polling happens.
Quoted 2 lines
When a storm is detected for a bank, that bank (and any others in storm mode) will be checked once per second.
Ok.
Quoted 4 lines
For a bank that doesn't support CMCI, then polling is the only way to find errors. You are right, these will feed into the history tracker, but while at 5-minute interval will not be able to trigger a storm.
Yes. But you need to call into the storm handling code somehow. So you do that from the polling code.
And if the machine supports CMCI, you do the same - call the polling code which then does the storm check.
Quoted 6 lines
Since that 5-minute interval is halved every time error is found consecutively, it is possible at the 1-second poll interval to fill out enough bits to indicate a storm. I think I need to add some code to handle that case as it makes no sense to mess with the CMCI threshold in
IA32_MCi_CTL2for a bank that doesn't support CMCI. Probably will just skip tracking for any such banks.
Ok.
Quoted 1 line
Aren't interrupts disabled while running the code after the timer fires?
No, see above.
Quoted 3 lines
Whichever of the timer and the CMCI happens first will run. Second to arrive will pend the interrupt and be handled when interrupts are enabled as the first completes.
So I still don't like the timer calling machine_check_poll() and cmci_mc_poll_banks() doing the same without any proper synchronization between the two.
Yes, when you get a CMCI interrupt, you poll and do the call the storm code. Now what happens if the polling runs from softirq context and you get a CMCI interrupt at exactly the same time. I.e., is machine_check_poll() reentrant and audited properly?
I hope I'm making more sense.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteTony Luck
maintainerRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 8 lines · Borislav Petkov
Quoted 3 lines · Tony Luck
Whichever of the timer and the CMCI happens first will run. Second to arrive will pend the interrupt and be handled when interrupts are enabled as the first completes.
So I still don't like the timer calling
machine_check_poll()andcmci_mc_poll_banks()doing the same without any proper synchronization between the two.
But it isn't doing the same thing. The timer calls:
machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));
and cmci_mc_poll_banks() calls:
machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));
A bank is either in the bitmap of banks to poll from the timer, or in one of the per-cpu bitmaps of banks "owned" by that CPU to be checked when a CMCI occurs. But it can't be in both.
Quoted 4 lines
Yes, when you get a CMCI interrupt, you poll and do the call the storm code. Now what happens if the polling runs from softirq context and you get a CMCI interrupt at exactly the same time. I.e., is
machine_check_poll()reentrant and audited properly?
So nothing bad happens. If Linux was polling some set of banks from the timer and is interrupted by CMCI, the interrupt will check some disjoint set of banks. All the history tracking code is done per-bank, so there is no overlap.
Quoted 1 line
I hope I'm making more sense.
Yes. Totally making sense. I was under the mistaken impression that the mce timers used TIMER_IRQSAFE and the nested CMCI while processing a timed poll couldn't happen. So I learned something here too.
I'll think of some comment to add to the history tracking code to summarize this thread.
-Tony
Tony Luck
maintainerRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 9 lines · Tony Luck
Quoted 1 line · Borislav Petkov
On Tue, Nov 14, 2023 at 02:04:46PM -0800, Tony Luck wrote:
But it isn't doing the same thing. The timer calls:
machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));and
cmci_mc_poll_banks()calls:machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));
Bah ... I've cut & pasted the same thing ... but I think there are separate bit maps ... maybe I'm wrong. Will go back and look again.
-Tony
Tony Luck
maintainerRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 10 lines · Tony Luck
Quoted 9 lines · Tony Luck
Quoted 1 line · Borislav Petkov
On Tue, Nov 14, 2023 at 02:04:46PM -0800, Tony Luck wrote:
But it isn't doing the same thing. The timer calls:
machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));and
cmci_mc_poll_banks()calls:machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));
machine_check_poll(0, this_cpu_ptr(&mce_banks_owned));
Quoted 6 lines
Bah ... I've cut & pasted the same thing ... but I think there are separate bit maps ... maybe I'm wrong. Will go back and look again.
-Tony
Re: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 6 lines · Tony Luck
Quoted 5 lines · Tony Luck
Quoted 4 lines · Tony Luck
Quoted 1 line · Borislav Petkov
On Tue, Nov 14, 2023 at 02:04:46PM -0800, Tony Luck wrote:
But it isn't doing the same thing. The timer calls:
Quoted 13 lines
Quoted 5 lines
Quoted 5 lines
machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));and
cmci_mc_poll_banks()calls:machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));machine_check_poll(0, this_cpu_ptr(&mce_banks_owned));Quoted 5 lines
Bah ... I've cut & pasted the same thing ... but I think there are separate bit maps ... maybe I'm wrong. Will go back and look again.
This mutually exclusive behavior is not enforced on AMD systems. A bank can be polled and signaled using hardware interrupts.
I've been thinking to change this in order to save polling cycles. Now it seems there's another reason. :)
Thanks,
Yazen
Borislav Petkov
maintainerRe: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckQuoted 6 lines · Tony Luck
Quoted 5 lines · Tony Luck
Quoted 4 lines · Tony Luck
Quoted 1 line · Borislav Petkov
On Tue, Nov 14, 2023 at 02:04:46PM -0800, Tony Luck wrote:
But it isn't doing the same thing. The timer calls:
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));and
cmci_mc_poll_banks()calls:machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));machine_check_poll(0, this_cpu_ptr(&mce_banks_owned));
Hmm, so I applied your v10 and this call with mce_banks_owned is done in cmci_recheck() only. Which is on some init path.
The thresholding interrupt calls it too.
The timer ends up calling mc_poll_banks_default() which does
machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));
I presume we don't do:
if (!cmci_supported(&banks)) {
mc_poll_banks = cmci_mc_poll_banks;
return;
}usually on Intel. And even if we did, cmci_mc_poll_banks() calls
machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));
too.
So regardless what machine you have, you do call the mc_poll_banks pointer which in both cases does
machine_check_poll(0, this_cpu_ptr(&mce_poll_banks));
The *thresholding* interrupt does
machine_check_poll(0, this_cpu_ptr(&mce_banks_owned));
and you're saying
mce_poll_banks and mce_banks_owned
are disjoint.
That's what you mean, right?
Because if so, yes, that makes sense. If the sets of MCA banks polled and handled in the thresholding interrupt are disjoint, we should be ok.
Thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteLuck, Tony
maintainerRE: [PATCH v9 2/3] x86/mce: Add per-bank CMCI storm mitigation
Quoted 7 lines
and you're saying
mce_poll_banksandmce_banks_ownedare disjoint.
That's what you mean, right?
Yes. A bank is one or the other bitmap, but not both.
Quoted 2 lines
Because if so, yes, that makes sense. If the sets of MCA banks polled and handled in the thresholding interrupt are disjoint, we should be ok.
Yes.
-Tony
Tony Luck
maintainerPATCH v9 3/3 x86/mce: Handle Intel threshold interrupt storms
In reply to Tony LuckAdd an Intel specific hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs (with a stub for the CONFIG_MCE_INTEL=n case).
When a storm is observed the rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
When a storm ends reset the threshold in IA32_MCi_CTL2 back to 1, remove the bank from the bitmap for polling, and change the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
The cmci_discover() function was already very large. These changes pushed it well over the top. Refactor with three helper functions to bring it back under control.
Updated with review comments from Yazen.
---
v9: Fixed lkp randconfig build issue
--- arch/x86/kernel/cpu/mce/internal.h | 2 + arch/x86/kernel/cpu/mce/intel.c | 202 +++++++++++++++++++++------- arch/x86/kernel/cpu/mce/threshold.c | 3 + 3 files changed, 157 insertions(+), 50 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -41,12 +41,14 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );void intel_clear_lmce (void );bool intel_filter_mce (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/intel.c +152 -50
244 lines not on this page · raw message
arch/x86/kernel/cpu/mce/threshold.c +3 -0
@@ -64,6 +64,9 @@ void mce_set_storm(bool storm)static void mce_handle_storm (unsigned int bank,bool on) {switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; } }
Signature · 1 line
2.41.0
Tony Luck
maintainerv10 cover Handle corrected machine check interrupt storms
In reply to Tony LuckLinux CMCI storm mitigation is a big hammer that just disables the CMCI interrupt globally and switches to polling all banks.
There are two problems with this:
1) It really is a big hammer. It means that errors reported in other banks from different functional units are all subject to the same polling delay before being processed.
2) Intel systems signal some uncorrected errors using CMCI (e.g. memory controller patrol scrub on Icelake Xeon and newer). Delaying processing these error reports negates some of the benefit of the patrol scrubber providing early notice of errors before they are consumed and cause a machine check.
This series throws away the old storm implementation and replaces it with one that keeps track of the weather on each separate machine check bank. When a storm is detected from a bank. On Intel the storm is mitigated by setting a very high threshold for corrected errors to signal CMCI. This threshold does not affect signaling CMCI for uncorrected errors.
---
Changes since v9 (based on Boris reviews)
#1 Better commit comment on flow. Added detail that both timer poll
and CMCI feed results of scanning each bank into the history calculation. Also added comment in code where mce_trac_storm() is called.
#2 Set a flag for banks that don't support CMCI so they can be
excluded from history processing
#3 Skip history processing if CMCI globally disabled with boot
argument mce=cmci_disable
#4 Move struct mca_storm_desc definition to internal.h (I had argued
against the need for this, but the new "poll_mode" flag added in change #2 needs to be set in intel.c).
#5 Add #define NUM_HISTORY_BITS instead of hard-coded "64". #6 Rebase to v6.7-rc1
Tony Luck (3):
x86/mce: Remove old CMCI storm mitigation code x86/mce: Add per-bank CMCI storm mitigation x86/mce: Handle Intel threshold interrupt storms
arch/x86/kernel/cpu/mce/internal.h | 66 +++++- arch/x86/kernel/cpu/mce/core.c | 53 +++-- arch/x86/kernel/cpu/mce/intel.c | 304 ++++++++++++---------------- arch/x86/kernel/cpu/mce/threshold.c | 115 +++++++++++ 4 files changed, 332 insertions(+), 206 deletions(-)
base-commit: b85ea95d086471afb4ad062012a4d73cd328fa86
Signature · 1 line
2.41.0
Tony Luck
maintainerPATCH v10 1/3 x86/mce: Remove old CMCI storm mitigation code
When a "storm" of CMCI is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/internal.h | 6 -- arch/x86/kernel/cpu/mce/core.c | 20 +--- arch/x86/kernel/cpu/mce/intel.c | 145 ----------------------------- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,9 +41,6 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );
@@ -51,9 +48,6 @@ void intel_clear_lmce(void);bool intel_filter_mce (struct mce *m);bool intel_mce_usable_address (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1601,13 +1601,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1637,15 +1630,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))mc_poll_banks (); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1655,7 +1642,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -1995,7 +1981,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -2008,7 +1993,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2665,8 +2649,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
Signature · 1 line
2.41.0
[tip: ras/core] x86/mce: Remove old CMCI storm mitigation code
The following commit has been merged into the ras/core branch of tip:
The following commit has been merged into the ras/core branch of tip:
Commit-ID: 3ed57b41a4125609e9fd03e32228aec61d95fe1f Gitweb: https://git.kernel.org/tip/3ed57b41a4125609e9fd03e32228aec61d95fe1f Author: Tony Luck <[email protected]> AuthorDate: Wed, 15 Nov 2023 11:54:48 -08:00 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Fri, 15 Dec 2023 13:44:12 +01:00
x86/mce: Remove old CMCI storm mitigation code
When a "storm" of corrected machine check interrupts (CMCI) is detected this code mitigates by disabling CMCI interrupt signalling from all of the banks owned by the CPU that saw the storm.
There are problems with this approach:
1) It is very coarse grained. In all likelihood only one of the banks was generating the interrupts, but CMCI is disabled for all. This means Linux may delay seeing and processing errors logged from other banks.
2) Although CMCI stands for Corrected Machine Check Interrupt, it is also used to signal when an uncorrected error is logged. This is a problem because these errors should be handled in a timely manner.
Delete all this code in preparation for a finer grained solution.
--- arch/x86/kernel/cpu/mce/core.c | 20 +---- arch/x86/kernel/cpu/mce/intel.c | 145 +---------------------------- arch/x86/kernel/cpu/mce/internal.h | 6 +- 3 files changed, 1 insertion(+), 170 deletions(-)
arch/x86/kernel/cpu/mce/core.c +1 -19
@@ -1617,13 +1617,6 @@ static unsigned long check_interval = INITIAL_CHECK_INTERVAL; static DEFINE_PER_CPU(unsigned long, mce_next_interval); /* in jiffies */ static DEFINE_PER_CPU(struct timer_list, mce_timer); -static unsigned long mce_adjust_timer_default (unsigned long interval) -{ -return interval; -} - -static unsigned long (*mce_adjust_timer)(unsigned long interval) = mce_adjust_timer_default; -static void __start_timer (struct timer_list *t,unsigned long interval) {unsigned long when = jiffies + interval;
@@ -1653,15 +1646,9 @@ static void mce_timer_fn(struct timer_list *t) iv =__this_cpu_read (mce_next_interval); -if (mce_available (this_cpu_ptr (&cpu_info))) { +if (mce_available (this_cpu_ptr (&cpu_info)))mc_poll_banks (); -if (mce_intel_cmci_poll ()) { - iv =mce_adjust_timer (iv); - goto done; - } - } -/* * Alert userspace if needed. If we logged an MCE, reduce the polling * interval, otherwise increase the polling interval.
@@ -1671,7 +1658,6 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -done:__this_cpu_write (mce_next_interval, iv);__start_timer (t, iv); }
@@ -2011,7 +1997,6 @@ static void mce_zhaoxin_feature_init(struct cpuinfo_x86 *c)intel_init_cmci ();intel_init_lmce (); - mce_adjust_timer = cmci_intel_adjust_timer; }static void mce_zhaoxin_feature_clear (struct cpuinfo_x86 *c)
@@ -2024,7 +2009,6 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)switch (c->x86_vendor) {case X86_VENDOR_INTEL :mce_intel_feature_init (c); - mce_adjust_timer = cmci_intel_adjust_timer;break ;case X86_VENDOR_AMD : {
@@ -2678,8 +2662,6 @@ static void mce_reenable_cpu(void)static int mce_cpu_dead (unsigned int cpu) { -mce_intel_hcpu_update (cpu); -/* intentionally ignoring frozen here */ if (!cpuhp_tasks_frozen)cmci_rediscover ();
arch/x86/kernel/cpu/mce/intel.c +0 -145
169 lines not on this page · raw message
arch/x86/kernel/cpu/mce/internal.h +0 -6
@@ -41,9 +41,6 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL -unsigned long cmci_intel_adjust_timer (unsigned long interval); -bool mce_intel_cmci_poll (void ); -void mce_intel_hcpu_update (unsigned long cpu);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );
@@ -51,9 +48,6 @@ void intel_clear_lmce(void);bool intel_filter_mce (struct mce *m);bool intel_mce_usable_address (struct mce *m);#else -# define cmci_intel_adjust_timer mce_adjust_timer_default -static inline bool mce_intel_cmci_poll (void ) {return false; } -static inline void mce_intel_hcpu_update (unsigned long cpu) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
Tony Luck
maintainerPATCH v10 2/3 x86/mce: Add per-bank CMCI storm mitigation
In reply to Tony LuckThis is the core functionality to track CMCI storms at the machine check bank granularity. Subsequent patches will add the vendor specific hooks to supply input to the storm detection and take actions on the start/end of a storm.
machine_check_poll() is called both by the CMCI interrupt code, and for periodic polls from a timer. Add a hook in this routine to maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of this banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed a CPU vendor specific action is taken to reduce or stop CMCI from the bank that is the source of the storm. The bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second. During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (defined as 5 in this series, could be tuned later if there is data to suggest a better value).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (defined as 30, may also change). That calls the CPU vendor specific function to revert to normal operational mode, and changes the polling rate back to the default.
[Changes made based on Boris' comments 23 Oct 2023]
--- arch/x86/kernel/cpu/mce/internal.h | 58 +++++++++++++- arch/x86/kernel/cpu/mce/core.c | 33 ++++++-- arch/x86/kernel/cpu/mce/threshold.c | 112 ++++++++++++++++++++++++++++ 3 files changed, 194 insertions(+), 9 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +57 -1
@@ -56,7 +56,63 @@ static inline bool intel_filter_mce(struct mce *m) { return false; }static inline bool intel_mce_usable_address (struct mce *m) {return false; }#endif -void mce_timer_kick (unsigned long interval); +void mce_timer_kick (bool storm); + +#ifdef CONFIG_X86_MCE_THRESHOLD +void cmci_storm_begin (unsigned int bank); +void cmci_storm_end (unsigned int bank); +void mce_track_storm (struct mce *mce); +void mce_inherit_storm (unsigned int bank); +bool mce_get_storm_mode (void ); +void mce_set_storm_mode (bool storm); +#else +static inline void cmci_storm_begin (unsigned int bank) {} +static inline void cmci_storm_end (unsigned int bank) {} +static inline void mce_track_storm (struct mce *mce) {} +static inline void mce_inherit_storm (unsigned int bank) {} +static inline bool mce_get_storm_mode (void ) {return false; } +static inline void mce_set_storm_mode (bool storm) {} +#endif + +/* +* history: bitmask tracking whether errors were seen or not seen in +* the most recent polls of a bank. Each '1' bit represents +* an error seen. +* timestamp: last time (in jiffies) that the bank was polled +* in_storm_mode: Is this bank in storm mode? +* poll_only: Bank does not support CMCI, skip storm tracking +*/ +struct storm_bank { +u64 history; +u64 timestamp; +bool in_storm_mode; +bool poll_only; +}; + +#define NUM_HISTORY_BITS (sizeof(u64) * BITS_PER_BYTE) + +/* How many errors within the history buffer mark the start of a storm. */ +#define STORM_BEGIN_THRESHOLD 5 + +/* +* How many polls of machine check bank without an error before declaring +* the storm is over. Since it is tracked by the bitmaks in the history +* field of struct storm_bank the mask is 30 bits [0 ... 29]. +*/ +#define STORM_END_POLL_THRESHOLD 29 + +/* +* banks: per-cpu, per-bank details +* stormy_bank_count: count of MC banks in storm state +* poll_mode: CPU is in poll mode +*/ +struct mca_storm_desc { +struct storm_bank banks[MAX_NR_BANKS ]; +u8 stormy_bank_count; +bool poll_mode; +}; + +DECLARE_PER_CPU(struct mca_storm_desc, storm_desc);#ifdef CONFIG_ACPI_APEI int apei_write_mce (struct mce *m);
arch/x86/kernel/cpu/mce/core.c +25 -8
@@ -670,6 +670,16 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +/* +* Update storm tracking here, before checking for the +* MCI_STATUS_VAL bit. Valid corrected errors count +* towards declaring, or maintaining, storm status. No +* error in a bank counts towards avoiding, or ending, +* storm status. +*/ +if (!mca_cfg.cmci_disabled) +mce_track_storm (&m); +/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
@@ -1642,22 +1652,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (mce_get_storm_mode ()) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +mce_set_storm_mode (storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */
arch/x86/kernel/cpu/mce/threshold.c +112 -0
115 lines not on this page · raw message
Signature · 1 line
2.41.0
[tip: ras/core] x86/mce: Add per-bank CMCI storm mitigation
The following commit has been merged into the ras/core branch of tip:
The following commit has been merged into the ras/core branch of tip:
Commit-ID: 7eae17c4add5de46efcca45356388f480103e6d9 Gitweb: https://git.kernel.org/tip/7eae17c4add5de46efcca45356388f480103e6d9 Author: Tony Luck <[email protected]> AuthorDate: Wed, 15 Nov 2023 11:54:49 -08:00 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Fri, 15 Dec 2023 14:52:01 +01:00
x86/mce: Add per-bank CMCI storm mitigation
This is the core functionality to track CMCI storms at the machine check bank granularity. Subsequent patches will add the vendor specific hooks to supply input to the storm detection and take actions on the start/end of a storm.
machine_check_poll() is called both by the CMCI interrupt code, and for periodic polls from a timer. Add a hook in this routine to maintain a bitmap history for each bank showing whether the bank logged an corrected error or not each time it is polled.
In normal operation the interval between polls of these banks determines how far to shift the history. The 64 bit width corresponds to about one second.
When a storm is observed a CPU vendor specific action is taken to reduce or stop CMCI from the bank that is the source of the storm. The bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second. During a storm each bit in the history indicates the status of the bank each time it is polled. Thus the history covers just over a minute.
Declare a storm for that bank if the number of corrected interrupts seen in that history is above some threshold (defined as 5 in this series, could be tuned later if there is data to suggest a better value).
A storm on a bank ends if enough consecutive polls of the bank show no corrected errors (defined as 30, may also change). That calls the CPU vendor specific function to revert to normal operational mode, and changes the polling rate back to the default.
[ bp: Massage. ]
--- arch/x86/kernel/cpu/mce/core.c | 33 ++++++-- arch/x86/kernel/cpu/mce/internal.h | 58 +++++++++++++- arch/x86/kernel/cpu/mce/threshold.c | 112 +++++++++++++++++++++++++++- 3 files changed, 194 insertions(+), 9 deletions(-)
arch/x86/kernel/cpu/mce/core.c +25 -8
@@ -686,6 +686,16 @@ bool machine_check_poll(enum mcp_flags flags, mce_banks_t *b)barrier (); m.status =mce_rdmsrl (mca_msr_reg (i,MCA_STATUS )); +/* +* Update storm tracking here, before checking for the +* MCI_STATUS_VAL bit. Valid corrected errors count +* towards declaring, or maintaining, storm status. No +* error in a bank counts towards avoiding, or ending, +* storm status. +*/ +if (!mca_cfg.cmci_disabled) +mce_track_storm (&m); +/* If this entry is not valid, ignore it */ if (!(m.status &MCI_STATUS_VAL ))continue ;
@@ -1658,22 +1668,29 @@ static void mce_timer_fn(struct timer_list *t)else iv =min (iv *2 ,round_jiffies_relative (check_interval *HZ )); -__this_cpu_write (mce_next_interval, iv); -__start_timer (t, iv); +if (mce_get_storm_mode ()) { +__start_timer (t,HZ ); + }else { +__this_cpu_write (mce_next_interval, iv); +__start_timer (t, iv); + } }/* -* Ensure that the timer is firing in @interval from now. +* When a storm starts on any bank on this CPU, switch to polling +* once per second. When the storm ends, revert to the default +* polling interval. */ -void mce_timer_kick (unsigned long interval) +void mce_timer_kick (bool storm) {struct timer_list *t =this_cpu_ptr (&mce_timer); -unsigned long iv =__this_cpu_read (mce_next_interval); -__start_timer (t, interval); +mce_set_storm_mode (storm); -if (interval < iv) -__this_cpu_write (mce_next_interval, interval); +if (storm) +__start_timer (t,HZ ); +else +__this_cpu_write (mce_next_interval, check_interval *HZ ); }/* Must not be called in IRQ context where del_timer_sync() can deadlock */
arch/x86/kernel/cpu/mce/internal.h +57 -1
64 lines not on this page · raw message
arch/x86/kernel/cpu/mce/threshold.c +112 -0
115 lines not on this page · raw message
Tony Luck
maintainerPATCH v10 3/3 x86/mce: Handle Intel threshold interrupt storms
In reply to Tony LuckAdd an Intel specific hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs (with a stub for the CONFIG_MCE_INTEL=n case).
When a storm is observed the rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
When a storm ends reset the threshold in IA32_MCi_CTL2 back to 1, remove the bank from the bitmap for polling, and change the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
The cmci_discover() function was already very large. These changes pushed it well over the top. Refactor with three helper functions to bring it back under control.
Updated with review comments from Yazen.
--- arch/x86/kernel/cpu/mce/internal.h | 2 + arch/x86/kernel/cpu/mce/intel.c | 205 +++++++++++++++++++++------- arch/x86/kernel/cpu/mce/threshold.c | 3 + 3 files changed, 160 insertions(+), 50 deletions(-)
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -41,6 +41,7 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );
@@ -48,6 +49,7 @@ void intel_clear_lmce(void);bool intel_filter_mce (struct mce *m);bool intel_mce_usable_address (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/intel.c +155 -50
247 lines not on this page · raw message
arch/x86/kernel/cpu/mce/threshold.c +3 -0
@@ -60,6 +60,9 @@ void mce_set_storm_mode(bool storm)static void mce_handle_storm (unsigned int bank,bool on) {switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; } }
Signature · 1 line
2.41.0
[tip: ras/core] x86/mce: Handle Intel threshold interrupt storms
The following commit has been merged into the ras/core branch of tip:
The following commit has been merged into the ras/core branch of tip:
Commit-ID: 1f68ce2a027250aeeb1756391110cdc4dc97c797 Gitweb: https://git.kernel.org/tip/1f68ce2a027250aeeb1756391110cdc4dc97c797 Author: Tony Luck <[email protected]> AuthorDate: Wed, 15 Nov 2023 11:54:50 -08:00 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Fri, 15 Dec 2023 14:53:42 +01:00
x86/mce: Handle Intel threshold interrupt storms
Add an Intel specific hook into machine_check_poll() to keep track of per-CPU, per-bank corrected error logs (with a stub for the CONFIG_MCE_INTEL=n case).
When a storm is observed the rate of interrupts is reduced by setting a large threshold value for this bank in IA32_MCi_CTL2. This bank is added to the bitmap of banks for this CPU to poll. The polling rate is increased to once per second.
When a storm ends reset the threshold in IA32_MCi_CTL2 back to 1, remove the bank from the bitmap for polling, and change the polling rate back to the default.
If a CPU with banks in storm mode is taken offline, the new CPU that inherits ownership of those banks takes over management of storm(s) in the inherited bank(s).
The cmci_discover() function was already very large. These changes pushed it well over the top. Refactor with three helper functions to bring it back under control.
--- arch/x86/kernel/cpu/mce/intel.c | 205 ++++++++++++++++++++------- arch/x86/kernel/cpu/mce/internal.h | 2 +- arch/x86/kernel/cpu/mce/threshold.c | 3 +- 3 files changed, 160 insertions(+), 50 deletions(-)
arch/x86/kernel/cpu/mce/intel.c +155 -50
@@ -54,8 +54,27 @@ static DEFINE_RAW_SPINLOCK(cmci_discover_lock);*/ static DEFINE_SPINLOCK (cmci_poll_lock); +/* Linux non-storm CMCI threshold (may be overridden by BIOS) */ #define CMCI_THRESHOLD 1 +/* +* MCi_CTL2 threshold for each bank when there is no storm. +* Default value for each bank may have been set by BIOS. +*/ +static u16 cmci_threshold[MAX_NR_BANKS ]; + +/* +* High threshold to limit CMCI rate during storms. Max supported is +* 0x7FFF. Use this slightly smaller value so it has a distinctive +* signature when some asks "Why am I not seeing all corrected errors?" +* A high threshold is used instead of just disabling CMCI for a +* bank because both corrected and uncorrected errors may be logged +* in the same bank and signalled with CMCI. The threshold only applies +* to corrected errors, so keeping CMCI enabled means that uncorrected +* errors will still be processed in a timely fashion. +*/ +#define CMCI_STORM_THRESHOLD 32749 +static int cmci_supported (int *banks) {u64 cap;
@@ -111,6 +130,31 @@ static bool lmce_supported(void) }/* +* Set a new CMCI threshold value. Preserve the state of the +* MCI_CTL2_CMCI_EN bit in case this happens during a +* cmci_rediscover() operation. +*/ +static void cmci_set_threshold (int bank,int thresh) +{ +unsigned long flags; +u64 val; + +raw_spin_lock_irqsave (&cmci_discover_lock, flags); +rdmsrl (MSR_IA32_MCx_CTL2 (bank), val); + val &= ~MCI_CTL2_CMCI_THRESHOLD_MASK ; +wrmsrl (MSR_IA32_MCx_CTL2 (bank), val | thresh); +raw_spin_unlock_irqrestore (&cmci_discover_lock, flags); +} + +void mce_intel_handle_storm (int bank,bool on) +{ +if (on) +cmci_set_threshold (bank,CMCI_STORM_THRESHOLD ); +else +cmci_set_threshold (bank, cmci_threshold[bank]); +} + +/* * The interrupt handler. This is called on every event. * Just call the poller directly to log any events. * This could in theory increase the threshold under high load,
@@ -122,71 +166,129 @@ static void intel_threshold_interrupt(void) }/* +* Check all the reasons why current CPU cannot claim +* ownership of a bank. +* 1: CPU already owns this bank +* 2: BIOS owns this bank +* 3: Some other CPU owns this bank +*/ +static bool cmci_skip_bank (int bank,u64 *val) +{ +unsigned long *owned = (void *)this_cpu_ptr (&mce_banks_owned); + +if (test_bit (bank, owned)) +return true; + +/* Skip banks in firmware first mode */ +if (test_bit (bank, mce_banks_ce_disabled)) +return true; + +rdmsrl (MSR_IA32_MCx_CTL2 (bank), *val); + +/* Already owned by someone else? */ +if (*val &MCI_CTL2_CMCI_EN ) { +clear_bit (bank, owned); +__clear_bit (bank,this_cpu_ptr (mce_poll_banks)); +return true; + } + +return false; +} + +/* +* Decide which CMCI interrupt threshold to use: +* 1: If this bank is in storm mode from whichever CPU was +* the previous owner, stay in storm mode. +* 2: If ignoring any threshold set by BIOS, set Linux default +* 3: Try to honor BIOS threshold (unless buggy BIOS set it at zero). +*/ +static u64 cmci_pick_threshold (u64 val,int *bios_zero_thresh) +{ +if ((val &MCI_CTL2_CMCI_THRESHOLD_MASK ) ==CMCI_STORM_THRESHOLD ) +return val; + +if (!mca_cfg.bios_cmci_threshold) { + val &= ~MCI_CTL2_CMCI_THRESHOLD_MASK ; + val |=CMCI_THRESHOLD ; + }else if (!(val &MCI_CTL2_CMCI_THRESHOLD_MASK )) { +/* +* If bios_cmci_threshold boot option was specified +* but the threshold is zero, we'll try to initialize +* it to 1. +*/ + *bios_zero_thresh =1 ; + val |=CMCI_THRESHOLD ; + } + +return val; +} + +/* +* Try to claim ownership of a bank. +*/ +static void cmci_claim_bank (int bank,u64 val,int bios_zero_thresh,int *bios_wrong_thresh) +{ +struct mca_storm_desc *storm =this_cpu_ptr (&storm_desc); + + val |=MCI_CTL2_CMCI_EN ; +wrmsrl (MSR_IA32_MCx_CTL2 (bank), val); +rdmsrl (MSR_IA32_MCx_CTL2 (bank), val); + +/* If the enable bit did not stick, this bank should be polled. */ +if (!(val &MCI_CTL2_CMCI_EN )) { +WARN_ON (!test_bit (bank,this_cpu_ptr (mce_poll_banks))); + storm->banks[bank].poll_only = true; +return ; + } + +/* This CPU successfully set the enable bit. */ +set_bit (bank, (void *)this_cpu_ptr (&mce_banks_owned)); + +if ((val &MCI_CTL2_CMCI_THRESHOLD_MASK ) ==CMCI_STORM_THRESHOLD ) { +pr_notice ("CPU%d BANK%d CMCI inherited storm\n" ,smp_processor_id (), bank); +mce_inherit_storm (bank); +cmci_storm_begin (bank); + }else { +__clear_bit (bank,this_cpu_ptr (mce_poll_banks)); + } + +/* +* We are able to set thresholds for some banks that +* had a threshold of 0. This means the BIOS has not +* set the thresholds properly or does not work with +* this boot option. Note down now and report later. +*/ +if (mca_cfg.bios_cmci_threshold && bios_zero_thresh && + (val &MCI_CTL2_CMCI_THRESHOLD_MASK )) + *bios_wrong_thresh =1 ; + +/* Save default threshold for each bank */ +if (cmci_threshold[bank] ==0 ) + cmci_threshold[bank] = val &MCI_CTL2_CMCI_THRESHOLD_MASK ; +} + +/* * Enable CMCI (Corrected Machine Check Interrupt) for available MCE banks * on this CPU. Use the algorithm recommended in the SDM to discover shared -* banks. +* banks. Called during initial bootstrap, and also for hotplug CPU operations +* to rediscover/reassign machine check banks. */ static void cmci_discover (int banks) { -unsigned long *owned = (void *)this_cpu_ptr (&mce_banks_owned); +int bios_wrong_thresh =0 ;unsigned long flags;int i; -int bios_wrong_thresh =0 ;raw_spin_lock_irqsave (&cmci_discover_lock, flags);for (i =0 ; i < banks; i++) {u64 val;int bios_zero_thresh =0 ; -if (test_bit (i, owned)) -continue ; - -/* Skip banks in firmware first mode */ -if (test_bit (i, mce_banks_ce_disabled)) +if (cmci_skip_bank (i, &val))continue ; -rdmsrl (MSR_IA32_MCx_CTL2 (i), val); - -/* Already owned by someone else? */ -if (val &MCI_CTL2_CMCI_EN ) { -clear_bit (i, owned); -__clear_bit (i,this_cpu_ptr (mce_poll_banks)); -continue ; - } - -if (!mca_cfg.bios_cmci_threshold) { - val &= ~MCI_CTL2_CMCI_THRESHOLD_MASK ; - val |=CMCI_THRESHOLD ; - }else if (!(val &MCI_CTL2_CMCI_THRESHOLD_MASK )) { -/* -* If bios_cmci_threshold boot option was specified -* but the threshold is zero, we'll try to initialize -* it to 1. -*/ - bios_zero_thresh =1 ; - val |=CMCI_THRESHOLD ; - } - - val |=MCI_CTL2_CMCI_EN ; -wrmsrl (MSR_IA32_MCx_CTL2 (i), val); -rdmsrl (MSR_IA32_MCx_CTL2 (i), val); - -/* Did the enable bit stick? -- the bank supports CMCI */ -if (val &MCI_CTL2_CMCI_EN ) { -set_bit (i, owned); -__clear_bit (i,this_cpu_ptr (mce_poll_banks)); -/* -* We are able to set thresholds for some banks that -* had a threshold of 0. This means the BIOS has not -* set the thresholds properly or does not work with -* this boot option. Note down now and report later. -*/ -if (mca_cfg.bios_cmci_threshold && bios_zero_thresh && - (val &MCI_CTL2_CMCI_THRESHOLD_MASK )) - bios_wrong_thresh =1 ; - }else { -WARN_ON (!test_bit (i,this_cpu_ptr (mce_poll_banks))); - } + val =cmci_pick_threshold (val, &bios_zero_thresh); +cmci_claim_bank (i, val, bios_zero_thresh, &bios_wrong_thresh); }raw_spin_unlock_irqrestore (&cmci_discover_lock, flags);if (mca_cfg.bios_cmci_threshold && bios_wrong_thresh) {
@@ -225,6 +327,9 @@ static void __cmci_disable_bank(int bank) val &= ~MCI_CTL2_CMCI_EN ;wrmsrl (MSR_IA32_MCx_CTL2 (bank), val);__clear_bit (bank,this_cpu_ptr (mce_banks_owned)); + +if ((val &MCI_CTL2_CMCI_THRESHOLD_MASK ) ==CMCI_STORM_THRESHOLD ) +cmci_storm_end (bank); }/*
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -41,6 +41,7 @@ struct dentry *mce_get_debugfs_dir(void);extern mce_banks_t mce_banks_ce_disabled;#ifdef CONFIG_X86_MCE_INTEL +void mce_intel_handle_storm (int bank,bool on);void cmci_disable_bank (int bank);void intel_init_cmci (void );void intel_init_lmce (void );
@@ -48,6 +49,7 @@ void intel_clear_lmce(void);bool intel_filter_mce (struct mce *m);bool intel_mce_usable_address (struct mce *m);#else +static inline void mce_intel_handle_storm (int bank,bool on) { }static inline void cmci_disable_bank (int bank) { }static inline void intel_init_cmci (void ) { }static inline void intel_init_lmce (void ) { }
arch/x86/kernel/cpu/mce/threshold.c +3 -0
@@ -60,6 +60,9 @@ void mce_set_storm_mode(bool storm)static void mce_handle_storm (unsigned int bank,bool on) {switch (boot_cpu_data.x86_vendor) { +case X86_VENDOR_INTEL : +mce_intel_handle_storm (bank, on); +break ; } }
Luck, Tony
maintainerRE: [tip: ras/core] x86/mce: Handle Intel threshold interrupt storms
Quoted 8 lines
The following commit has been merged into the ras/core branch of tip:
Commit-ID: 1f68ce2a027250aeeb1756391110cdc4dc97c797 Gitweb: https://git.kernel.org/tip/1f68ce2a027250aeeb1756391110cdc4dc97c797 Author: Tony Luck <[email protected]> AuthorDate: Wed, 15 Nov 2023 11:54:50 -08:00 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Fri, 15 Dec 2023 14:53:42 +01:00
Early X-Mas present for me! Thanks Boris.
-Tony
Borislav Petkov
maintainerRe: [tip: ras/core] x86/mce: Handle Intel threshold interrupt storms
Quoted 10 lines · Tony
Quoted 8 lines
The following commit has been merged into the ras/core branch of tip:
Commit-ID: 1f68ce2a027250aeeb1756391110cdc4dc97c797 Gitweb: https://git.kernel.org/tip/1f68ce2a027250aeeb1756391110cdc4dc97c797 Author: Tony Luck <[email protected]> AuthorDate: Wed, 15 Nov 2023 11:54:50 -08:00 Committer: Borislav Petkov (AMD) <[email protected]> CommitterDate: Fri, 15 Dec 2023 14:53:42 +01:00Early X-Mas present for me! Thanks Boris.
:-)
You're welcome - thanks for answering my silly questions.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteTony Luck
maintainerPATCH v3 5/5 x86/mce: Handle AMD threshold interrupt storms
In reply to Tony LuckFrom: Smita Koralahalli <[email protected]>
Extend the logic of handling CMCI storms to AMD threshold interrupts.
Rely on the similar approach as of Intel's CMCI to mitigate storms per CPU and per bank. But, unlike CMCI, do not set thresholds and reduce interrupt rate on a storm. Rather, disable the interrupt on the corresponding CPU and bank. Re-enable back the interrupts if enough consecutive polls of the bank show no corrected errors (30, as programmed by Intel).
Turning off the threshold interrupts would be a better solution on AMD systems as other error severities will still be handled even if the threshold interrupts are disabled.
[Tony: Small tweak because mce_handle_storm() isn't a pointer now]
--- arch/x86/kernel/cpu/mce/internal.h | 2 ++ arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/core.c | 3 ++ 3 files changed, 54 insertions(+)
arch/x86/kernel/cpu/mce/internal.h +2 -0
@@ -206,7 +206,9 @@ extern bool filter_mce(struct mce *m);#ifdef CONFIG_X86_MCE_AMD extern bool amd_filter_mce (struct mce *m); +void mce_amd_handle_storm (int bank,bool on);#else +static inline void mce_amd_handle_storm (int bank,bool on) {}static inline bool amd_filter_mce (struct mce *m) {return false; }#endif
arch/x86/kernel/cpu/mce/amd.c +49 -0
67 lines not on this page · raw message
arch/x86/kernel/cpu/mce/core.c +3 -0
@@ -2072,6 +2072,9 @@ void mce_handle_storm(int bank, bool on)case X86_VENDOR_INTEL :mce_intel_handle_storm (bank, on);break ; +case X86_VENDOR_AMD : +mce_amd_handle_storm (bank, on); +break ; } }
Signature · 1 line
2.39.2
RFC PATCH 5/5 x86/mce: Handle AMD threshold interrupt storms
In reply to Smita KoralahalliExtend the logic of handling CMCI storms to AMD threshold interrupts.
Rely on the similar approach as of Intel's CMCI to mitigate storms per CPU and per bank. But, unlike CMCI, do not set thresholds and reduce interrupt rate on a storm. Rather, disable the interrupt on the corresponding CPU and bank. Re-enable back the interrupts if enough consecutive polls of the bank show no corrected errors (30, as programmed by Intel).
Turning off the threshold interrupts would be a better solution on AMD systems as other error severities will still be handled even if the threshold interrupts are disabled.
--- arch/x86/kernel/cpu/mce/amd.c | 49 ++++++++++++++++++++++++++++++ arch/x86/kernel/cpu/mce/core.c | 1 + arch/x86/kernel/cpu/mce/internal.h | 4 +++ 3 files changed, 54 insertions(+)
arch/x86/kernel/cpu/mce/amd.c +49 -0
@@ -466,6 +466,47 @@ static void threshold_restart_bank(void *_tr)wrmsr (tr->b->address, lo, hi); } +static void _reset_block (struct threshold_block *block) +{ +struct thresh_restart tr; + +memset (&tr,0 ,sizeof (tr)); + tr.b = block; +threshold_restart_bank (&tr); +} + +static void toggle_interrupt_reset_block (struct threshold_block *block,bool on) +{ +if (!block) +return ; + + block->interrupt_enable = !!on; +_reset_block (block); +} + +void mce_amd_handle_storm (int bank,bool on) +{ +struct threshold_block *first_block =NULL , *block =NULL , *tmp =NULL ; +struct threshold_bank **bp =this_cpu_read (threshold_banks); +unsigned long flags; + +if (!bp) +return ; + +local_irq_save (flags); + + first_block = bp[bank]->blocks; +if (!first_block) + goto end; + +toggle_interrupt_reset_block (first_block, on); + +list_for_each_entry_safe (block, tmp, &first_block->miscj, miscj) +toggle_interrupt_reset_block (block, on); +end: +local_irq_restore (flags); +} +static void mce_threshold_block_init (struct threshold_block *b,int offset) {struct thresh_restart tr = {
@@ -867,6 +908,7 @@ static void amd_threshold_interrupt(void)struct threshold_block *first_block =NULL , *block =NULL , *tmp =NULL ;struct threshold_bank **bp =this_cpu_read (threshold_banks);unsigned int bank, cpu =smp_processor_id (); +u64 status;/* * Validate that the threshold bank has been initialized already. The
@@ -880,6 +922,13 @@ static void amd_threshold_interrupt(void)if (!(per_cpu (bank_map, cpu) & (1 << bank)))continue ; +rdmsrl (mca_msr_reg (bank,MCA_STATUS ), status); +track_cmci_storm (bank, status); + +/* Return early on an interrupt storm */ +if (this_cpu_read (bank_storm[bank])) +return ; + first_block = bp[bank]->blocks;if (!first_block)continue ;
arch/x86/kernel/cpu/mce/core.c +1 -0
@@ -2078,6 +2078,7 @@ static void __mcheck_cpu_init_vendor(struct cpuinfo_x86 *c)case X86_VENDOR_AMD : {mce_amd_feature_init (c); + mce_handle_storm = mce_amd_handle_storm;break ; }
arch/x86/kernel/cpu/mce/internal.h +4 -0
@@ -213,7 +213,11 @@ extern bool filter_mce(struct mce *m);#ifdef CONFIG_X86_MCE_AMD extern bool amd_filter_mce (struct mce *m); +void track_cmci_storm (int bank,u64 status); +void mce_amd_handle_storm (int bank,bool on);#else +static inline void track_cmci_storm (int bank,u64 status) { } +# define mce_amd_handle_storm mce_handle_storm_defaultstatic inline bool amd_filter_mce (struct mce *m) {return false; }#endif
Signature · 1 line
2.17.1
Luck, Tony
maintainerRE: [RFC PATCH 5/5] x86/mce: Handle AMD threshold interrupt storms
+ /* Return early on an interrupt storm */
+ if (this_cpu_read(bank_storm[bank]))
+ return;
Is you reasoning for early return that you already have plenty of logged errors from this bank, so OK to skip additional processing of this one?
-Tony
Re: [RFC PATCH 5/5] x86/mce: Handle AMD threshold interrupt storms
Hi,
Quoted 7 lines · Tony
arch/x86/kernel/cpu/mce/amd.c +3
-0+/* Return early on an interrupt storm */ +if (this_cpu_read (bank_storm[bank])) +return ;Is you reasoning for early return that you already have plenty of logged errors from this bank, so OK to skip additional processing of this one?
The idea behind this was: Once, the interrupts are turned off by track_cmci_storm() on a storm, (which is called before this "if statement") logging and handling of subsequent corrected errors will be taken care by machine_check_poll(). Hence, no need to redo this again in the handler....
Let me know what are your thoughts on this?
Quoted 2 lines
-Tony
Luck, Tony
maintainerRe: [RFC PATCH 5/5] x86/mce: Handle AMD threshold interrupt storms
Quoted 18 lines · Smita
Hi,
Quoted 7 lines · Tony
arch/x86/kernel/cpu/mce/amd.c +3
-0+/* Return early on an interrupt storm */ +if (this_cpu_read (bank_storm[bank])) +return ;Is you reasoning for early return that you already have plenty of logged errors from this bank, so OK to skip additional processing of this one?
The idea behind this was: Once, the interrupts are turned off by
track_cmci_storm()on a storm, (which is called before this "if statement") logging and handling of subsequent corrected errors will be taken care bymachine_check_poll(). Hence, no need to redo this again in the handler....
Quoted 1 line
Let me know what are your thoughts on this?
Makes sense. There's a storm, so picking up this error now, or waiting for machine_check_poll() to get it makes little difference.
-Tony