Implement AMD Pstate EPP Driver
Subsystems (8)
Perry Yuan
reviewerv6 cover Implement AMD Pstate EPP Driver
Hi all,
This patchset implements one new AMD CPU frequency driveramd-pstate-epp instance for better performance and power control.
CPPC has a parameter called energy preference performance (EPP).
The EPP is used in the CCLK DPM controller to drive the frequency that a core is going to operate during short periods of activity.
EPP values will be utilized for different OS profiles (balanced, performance, power savings).
AMD Energy Performance Preference (EPP) provides a hint to the hardware
if software wants to bias toward performance (0x0) or energy efficiency (0xff) The lowlevel power firmware will calculate the runtime frequency according to the EPP preference value. So the EPP hint will impact the CPU cores frequency responsiveness.
We use the RAPL interface with "perf" tool to get the energy data of the package power. Performance Per Watt (PPW) Calculation:
Below formula is referred from below spec to measure the PPW:
(F / t) / P = F * t / (t * E) = F / E,
"F" is the number of frames per second.
"P" is power measured in watts.
"E" is energy measured in joules.
Gitsouce Benchmark Data on ROME Server CPU
+------------------------------+------------------------------+------------+------------------+ | Kernel Module | PPW (1 / s * J) |Energy(J) | PPW Improvement (%)| +==============================+==============================+============+==================+ | acpi-cpufreq:schedutil | 5.85658E-05 | 17074.8 | base | +------------------------------+------------------------------+------------+------------------+ | acpi-cpufreq:ondemand | 5.03079E-05 | 19877.6 | -14.10% | +------------------------------+------------------------------+------------+------------------+ | acpi-cpufreq:performance | 5.88132E-05 | 17003 | 0.42% | +------------------------------+------------------------------+------------+------------------+ | amd-pstate:ondemand | 4.60295E-05 | 21725.2 | -21.41% | +------------------------------+------------------------------+------------+------------------+ | amd-pstate:schedutil | 4.70026E-05 | 21275.4 | -19.7% | +------------------------------+------------------------------+------------+------------------+ | amd-pstate:performance | 5.80094E-05 | 17238.6 | -0.95% | +------------------------------+------------------------------+------------+------------------+ | EPP:performance | 5.8292E-05 | 17155 | -0.47% | +------------------------------+------------------------------+------------+------------------+ | EPP: balance performance: | 6.71709E-05 | 14887.4 | 14.69% | +------------------------------+------------------------------+------------+------------------+ | EPP:power | 6.66951E-05 | 4993.6 | 13.88% | +------------------------------+------------------------------+------------+------------------+
Tbench Benchmark Data on ROME Server CPU
+---------------------------------------------+-------------------+--------------+-------------+------------------+ | Kernel Module | PPW MB / (s * J) |Throughput(MB/s)| Energy (J)|PPW Improvement(%)| +=============================================+===================+==============+=============+==================+ | acpi_cpufreq: schedutil | 46.39 | 17191 | 37057.3 | base | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | acpi_cpufreq: ondemand | 51.51 | 19269.5 | 37406.5 | 11.04 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | acpi_cpufreq: performance | 45.96 | 17063.7 | 37123.7 | -0.74 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | EPP:powersave: performance(0) | 54.46 | 20263.1 | 37205 | 17.87 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | EPP:powersave: balance performance | 55.03 | 20481.9 | 37221.5 | 19.14 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | EPP:powersave: balance_power | 54.43 | 20245.9 | 37194.2 | 17.77 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | EPP:powersave: power(255) | 54.26 | 20181.7 | 37197.4 | 17.40 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | amd-pstate: schedutil | 48.22 | 17844.9 | 37006.6 | 3.80 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | amd-pstate: ondemand | 61.30 | 22988 | 37503.4 | 33.72 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | amd-pstate: performance | 54.52 | 20252.6 | 37147.8 | 17.81 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+
change from v5:
* add one common header cpufreq_commoncpufreq_common to extract EPP profiles definition for amd and intel pstate driver.
* remove the epp_off value to avoid confusion.
* convert some other sysfs sprintf() function with sysfs_emit() and add onew new patch
* add acpi pm server priofile detection to enable dynamic boost control
* fix some code format with checkpatch script
* move the EPP profile declaration into common header file cpufreq_common.h
* fix commit typos
changes from v4:
* rebase driver based on the v6.1-rc7
* remove the builtin changes patch because pstate driver has been changed to builtin type by another thread patch
* update Documentation: amd-pstate: add amd pstate driver mode introduction
* replace sprintf with sysfs_emit() instead.
* fix typo for cppc_set_epp_perf() in cppc_acpi.h header
changes from v3:
* add one more document update patch for the active and passive mode introducion.
* drive most of the feedbacks from Mario
* drive feedback from Rafael for the cppc_acpi driver.
* remove the epp raw data set/get function
* set the amd-pstate drive by passing kernel parameter
* set amd-pstate driver disabled by default if no kernel parameter input from booting
* get cppc_set_auto_epp and cppc_set_epp_perf combined
* pick up reviewed by flag from Mario
changes from v2:
* change pstate driver as builtin type from module
* drop patch "export cpufreq cpu release and acquire"
* squash patch of shared mem into single patch of epp implementation
* add one new patch to support frequency boost control
* add patch to expose driver working status checking
* rebase driver into v6.1-rc4 kernel release
* move some declaration to amd-pstate.h
* drive feedback from Mario for the online/offline patch
* drive feedback from Mario for the suspend/resume patch
* drive feedback from Ray for the cppc_acpi and some other patches
* drive feedback from Nathan for the epp patch
changes from v1:
* rebased to v6.0
* drive feedbacks from Mario for the suspend/resume patch
* drive feedbacks from Nathan for the EPP support on msr type
* fix some typos and code style indent problems
* update commit comments for patch 4/7
* change the epp_enabled module param name to epp
* set the default epp mode to be false
* add testing for the x86_energy_perf_policy utility patchset(will send that utility patchset with another thread)
v5: https://lore.kernel.org/lkml/[email protected]/
v4: https://lore.kernel.org/lkml/[email protected]/
v3: https://lore.kernel.org/all/[email protected]/
v2: https://lore.kernel.org/all/[email protected]/
v1: https://lore.kernel.org/all/[email protected]/
Perry Yuan (11):
ACPI: CPPC: Add AMD pstate energy performance preference cppc control
Documentation: amd-pstate: add EPP profiles introduction
cpufreq: intel_pstate: use common macro definition for Energy
Preference Performance(EPP)
cpufreq: amd_pstate: implement Pstate EPP support for the AMD
processors
cpufreq: amd_pstate: implement amd pstate cpu online and offline
callback
cpufreq: amd-pstate: implement suspend and resume callbacks
cpufreq: amd-pstate: add frequency dynamic boost sysfs control
cpufreq: amd_pstate: add driver working mode status sysfs entry
Documentation: amd-pstate: add amd pstate driver mode introduction
Documentation: introduce amd pstate active mode kernel command line
options
cpufreq: amd_pstate: convert sprintf with sysfs_emit()
.../admin-guide/kernel-parameters.txt | 7 + Documentation/admin-guide/pm/amd-pstate.rst | 45 +- arch/x86/include/asm/msr-index.h | 4 - drivers/acpi/cppc_acpi.c | 114 ++- drivers/cpufreq/amd-pstate.c | 886 +++++++++++++++++- drivers/cpufreq/intel_pstate.c | 37 +- include/acpi/cppc_acpi.h | 12 + include/linux/amd-pstate.h | 36 + include/linux/cpufreq_common.h | 56 ++ 9 files changed, 1140 insertions(+), 57 deletions(-) create mode 100644 include/linux/cpufreq_common.h
Signature · 1 line
2.34.1
Perry Yuan
reviewerPATCH v6 1/11 ACPI: CPPC: Add AMD pstate energy performance preference cppc control
From: Perry Yuan <[email protected]>
Add support for setting and querying EPP preferences to the generic CPPC driver. This enables downstream drivers such as amd-pstate to discover and use these values
In order to get EPP worked, cppc_get_epp_caps() will query EPP preference value and cppc_set_epp_perf() will set EPP new value.
Before the EPP works, pstate driver will use cppc_set_auto_epp() to enable EPP function from firmware firstly.
--- drivers/acpi/cppc_acpi.c | 114 +++++++++++++++++++++++++++++++++++++-- include/acpi/cppc_acpi.h | 12 +++++ 2 files changed, 121 insertions(+), 5 deletions(-)
drivers/acpi/cppc_acpi.c +109 -5
@@ -1093,6 +1093,9 @@ static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf) {struct cpc_desc *cpc_desc =per_cpu (cpc_desc_ptr, cpunum);struct cpc_register_resource *reg; +int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpunum); +struct cppc_pcc_data *pcc_ss_data =NULL ; +int ret = -EINVAL ;if (!cpc_desc) {pr_debug ("No CPC descriptor for CPU:%d\n" , cpunum);
@@ -1102,10 +1105,6 @@ static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf) reg = &cpc_desc->cpc_regs[reg_idx];if (CPC_IN_PCC (reg)) { -int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpunum); -struct cppc_pcc_data *pcc_ss_data =NULL ; -int ret =0 ; -if (pcc_ss_id <0 )return -EIO ;
@@ -1125,7 +1124,7 @@ static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf)cpc_read (cpunum, reg, perf); -return 0 ; +return ret; }/**
@@ -1365,6 +1364,111 @@ int cppc_get_perf_ctrs(int cpunum, struct cppc_perf_fb_ctrs *perf_fb_ctrs) }EXPORT_SYMBOL_GPL (cppc_get_perf_ctrs); +/** +* cppc_get_epp_caps - Get the energy preference register value. +* @cpunum: CPU from which to get epp preference level. +* @perf_caps: Return address. +* +* Return: 0 for success, -EIO otherwise. +*/ +int cppc_get_epp_caps (int cpunum,struct cppc_perf_caps *perf_caps) +{ +struct cpc_desc *cpc_desc =per_cpu (cpc_desc_ptr, cpunum); +struct cpc_register_resource *energy_perf_reg; +u64 energy_perf; + +if (!cpc_desc) { +pr_debug ("No CPC descriptor for CPU:%d\n" , cpunum); +return -ENODEV ; + } + + energy_perf_reg = &cpc_desc->cpc_regs[ENERGY_PERF ]; + +if (!CPC_SUPPORTED (energy_perf_reg)) +pr_warn_once ("energy perf reg update is unsupported!\n" ); + +if (CPC_IN_PCC (energy_perf_reg)) { +int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpunum); +struct cppc_pcc_data *pcc_ss_data =NULL ; +int ret =0 ; + +if (pcc_ss_id <0 ) +return -ENODEV ; + + pcc_ss_data = pcc_data[pcc_ss_id]; + +down_write (&pcc_ss_data->pcc_lock); + +if (send_pcc_cmd (pcc_ss_id,CMD_READ ) >=0 ) { +cpc_read (cpunum, energy_perf_reg, &energy_perf); + perf_caps->energy_perf = energy_perf; + }else { + ret = -EIO ; + } + +up_write (&pcc_ss_data->pcc_lock); + +return ret; + } + +return 0 ; +} +EXPORT_SYMBOL_GPL (cppc_get_epp_caps); + +/* +* Set Energy Performance Preference Register value through +* Performance Controls Interface +*/ +int cppc_set_epp_perf (int cpu,struct cppc_perf_ctrls *perf_ctrls,bool enable) +{ +int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpu); +struct cpc_register_resource *epp_set_reg; +struct cpc_register_resource *auto_sel_reg; +struct cpc_desc *cpc_desc =per_cpu (cpc_desc_ptr, cpu); +struct cppc_pcc_data *pcc_ss_data =NULL ; +int ret = -EINVAL ; + +if (!cpc_desc) { +pr_debug ("No CPC descriptor for CPU:%d\n" , cpu); +return -ENODEV ; + } + + auto_sel_reg = &cpc_desc->cpc_regs[AUTO_SEL_ENABLE ]; + epp_set_reg = &cpc_desc->cpc_regs[ENERGY_PERF ]; + +if (CPC_IN_PCC (epp_set_reg) ||CPC_IN_PCC (auto_sel_reg)) { +if (pcc_ss_id <0 ) { +pr_debug ("Invalid pcc_ss_id\n" ); +return -ENODEV ; + } + +if (CPC_SUPPORTED (auto_sel_reg)) { + ret =cpc_write (cpu, auto_sel_reg, enable); +if (ret) +return ret; + } + +if (CPC_SUPPORTED (epp_set_reg)) { + ret =cpc_write (cpu, epp_set_reg, perf_ctrls->energy_perf); +if (ret) +return ret; + } + + pcc_ss_data = pcc_data[pcc_ss_id]; + +down_write (&pcc_ss_data->pcc_lock); +/* after writing CPC, transfer the ownership of PCC to platform */ + ret =send_pcc_cmd (pcc_ss_id,CMD_WRITE ); +up_write (&pcc_ss_data->pcc_lock); + }else { + ret = -ENOTSUPP ; +pr_debug ("_CPC in PCC is not supported\n" ); + } + +return ret; +} +EXPORT_SYMBOL_GPL (cppc_set_epp_perf); +/** * cppc_set_enable - Set to enable CPPC on the processor by writing the * Continuous Performance Control package EnableRegister field.
include/acpi/cppc_acpi.h +12 -0
@@ -108,12 +108,14 @@ struct cppc_perf_caps {u32 lowest_nonlinear_perf;u32 lowest_freq;u32 nominal_freq; +u32 energy_perf; };struct cppc_perf_ctrls {u32 max_perf;u32 min_perf;u32 desired_perf; +u32 energy_perf; };struct cppc_perf_fb_ctrs {
@@ -149,6 +151,8 @@ extern bool cpc_ffh_supported(void);extern bool cpc_supported_by_cpu (void );extern int cpc_read_ffh (int cpunum,struct cpc_reg *reg,u64 *val);extern int cpc_write_ffh (int cpunum,struct cpc_reg *reg,u64 val); +extern int cppc_get_epp_caps (int cpunum,struct cppc_perf_caps *perf_caps); +extern int cppc_set_epp_perf (int cpu,struct cppc_perf_ctrls *perf_ctrls,bool enable);#else /* !CONFIG_ACPI_CPPC_LIB */ static inline int cppc_get_desired_perf (int cpunum,u64 *desired_perf) {
@@ -202,6 +206,14 @@ static inline int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) {return -ENOTSUPP ; } +static inline int cppc_set_epp_perf (int cpu,struct cppc_perf_ctrls *perf_ctrls,bool enable) +{ +return -ENOTSUPP ; +} +static inline int cppc_get_epp_caps (int cpunum,struct cppc_perf_caps *perf_caps) +{ +return -ENOTSUPP ; +}#endif /* !CONFIG_ACPI_CPPC_LIB */ #endif /* _CPPC_ACPI_H*/
Signature · 1 line
2.34.1
Limonciello, Mario
maintainerRe: [PATCH v6 01/11] ACPI: CPPC: Add AMD pstate energy performance preference cppc control
The title of this first patch should not reflect amd-pstate, it's generic code.
Quoted 10 lines · Perry Yuan
From: Perry Yuan <[email protected]>
Add support for setting and querying EPP preferences to the generic CPPC driver. This enables downstream drivers such as amd-pstate to discover and use these values
In order to get EPP worked,
cppc_get_epp_caps()will query EPP preference value andcppc_set_epp_perf()will set EPP new value.
Before the EPP works, pstate driver will usecppc_set_auto_epp()to enable EPP function from firmware firstly.
My suggestion at rewording this:
Downstream drivers that want to use the new symbols cppc_get_epp_caps and cppc_set_epp_perf for querying and setting EPP preferences will need to call cppc_set_auto_epp to enable the EPP function first.
Quoted 196 lines
Signed-off-by Perry Yuan <[email protected]>--- drivers/acpi/cppc_acpi.c | 114 +++++++++++++++++++++++++++++++++++++-- include/acpi/cppc_acpi.h | 12 +++++ 2 files changed, 121 insertions(+), 5 deletions(-)drivers/acpi/cppc_acpi.c +109
-5@@ -1093,6 +1093,9 @@ static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf) {struct cpc_desc *cpc_desc =per_cpu (cpc_desc_ptr, cpunum);struct cpc_register_resource *reg; +int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpunum); +struct cppc_pcc_data *pcc_ss_data =NULL ; +int ret = -EINVAL ;if (!cpc_desc) {pr_debug ("No CPC descriptor for CPU:%d\n" , cpunum);@@ -1102,10 +1105,6 @@ static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf) reg = &cpc_desc->cpc_regs[reg_idx];if (CPC_IN_PCC (reg)) { -int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpunum); -struct cppc_pcc_data *pcc_ss_data =NULL ; -int ret =0 ; -if (pcc_ss_id <0 )return -EIO ;@@ -1125,7 +1124,7 @@ static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf)cpc_read (cpunum, reg, perf); -return 0 ; +return ret; }/** @@ -1365,6 +1364,111 @@ int cppc_get_perf_ctrs(int cpunum, struct cppc_perf_fb_ctrs *perf_fb_ctrs) }EXPORT_SYMBOL_GPL (cppc_get_perf_ctrs); +/** +* cppc_get_epp_caps - Get the energy preference register value. +* @cpunum: CPU from which to get epp preference level. +* @perf_caps: Return address. +* +* Return: 0 for success, -EIO otherwise. +*/ +int cppc_get_epp_caps (int cpunum,struct cppc_perf_caps *perf_caps) +{ +struct cpc_desc *cpc_desc =per_cpu (cpc_desc_ptr, cpunum); +struct cpc_register_resource *energy_perf_reg; +u64 energy_perf; + +if (!cpc_desc) { +pr_debug ("No CPC descriptor for CPU:%d\n" , cpunum); +return -ENODEV ; + } + + energy_perf_reg = &cpc_desc->cpc_regs[ENERGY_PERF ]; + +if (!CPC_SUPPORTED (energy_perf_reg)) +pr_warn_once ("energy perf reg update is unsupported!\n" ); + +if (CPC_IN_PCC (energy_perf_reg)) { +int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpunum); +struct cppc_pcc_data *pcc_ss_data =NULL ; +int ret =0 ; + +if (pcc_ss_id <0 ) +return -ENODEV ; + + pcc_ss_data = pcc_data[pcc_ss_id]; + +down_write (&pcc_ss_data->pcc_lock); + +if (send_pcc_cmd (pcc_ss_id,CMD_READ ) >=0 ) { +cpc_read (cpunum, energy_perf_reg, &energy_perf); + perf_caps->energy_perf = energy_perf; + }else { + ret = -EIO ; + } + +up_write (&pcc_ss_data->pcc_lock); + +return ret; + } + +return 0 ; +} +EXPORT_SYMBOL_GPL (cppc_get_epp_caps); + +/* +* Set Energy Performance Preference Register value through +* Performance Controls Interface +*/ +int cppc_set_epp_perf (int cpu,struct cppc_perf_ctrls *perf_ctrls,bool enable) +{ +int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpu); +struct cpc_register_resource *epp_set_reg; +struct cpc_register_resource *auto_sel_reg; +struct cpc_desc *cpc_desc =per_cpu (cpc_desc_ptr, cpu); +struct cppc_pcc_data *pcc_ss_data =NULL ; +int ret = -EINVAL ; + +if (!cpc_desc) { +pr_debug ("No CPC descriptor for CPU:%d\n" , cpu); +return -ENODEV ; + } + + auto_sel_reg = &cpc_desc->cpc_regs[AUTO_SEL_ENABLE ]; + epp_set_reg = &cpc_desc->cpc_regs[ENERGY_PERF ]; + +if (CPC_IN_PCC (epp_set_reg) ||CPC_IN_PCC (auto_sel_reg)) { +if (pcc_ss_id <0 ) { +pr_debug ("Invalid pcc_ss_id\n" ); +return -ENODEV ; + } + +if (CPC_SUPPORTED (auto_sel_reg)) { + ret =cpc_write (cpu, auto_sel_reg, enable); +if (ret) +return ret; + } + +if (CPC_SUPPORTED (epp_set_reg)) { + ret =cpc_write (cpu, epp_set_reg, perf_ctrls->energy_perf); +if (ret) +return ret; + } + + pcc_ss_data = pcc_data[pcc_ss_id]; + +down_write (&pcc_ss_data->pcc_lock); +/* after writing CPC, transfer the ownership of PCC to platform */ + ret =send_pcc_cmd (pcc_ss_id,CMD_WRITE ); +up_write (&pcc_ss_data->pcc_lock); + }else { + ret = -ENOTSUPP ; +pr_debug ("_CPC in PCC is not supported\n" ); + } + +return ret; +} +EXPORT_SYMBOL_GPL (cppc_set_epp_perf); +/** * cppc_set_enable - Set to enable CPPC on the processor by writing the * Continuous Performance Control package EnableRegister field. include/acpi/cppc_acpi.h +12
-0@@ -108,12 +108,14 @@ struct cppc_perf_caps {u32 lowest_nonlinear_perf;u32 lowest_freq;u32 nominal_freq; +u32 energy_perf; };struct cppc_perf_ctrls {u32 max_perf;u32 min_perf;u32 desired_perf; +u32 energy_perf; };struct cppc_perf_fb_ctrs {@@ -149,6 +151,8 @@ extern bool cpc_ffh_supported(void);extern bool cpc_supported_by_cpu (void );extern int cpc_read_ffh (int cpunum,struct cpc_reg *reg,u64 *val);extern int cpc_write_ffh (int cpunum,struct cpc_reg *reg,u64 val); +extern int cppc_get_epp_caps (int cpunum,struct cppc_perf_caps *perf_caps); +extern int cppc_set_epp_perf (int cpu,struct cppc_perf_ctrls *perf_ctrls,bool enable);#else /* !CONFIG_ACPI_CPPC_LIB */ static inline int cppc_get_desired_perf (int cpunum,u64 *desired_perf) {@@ -202,6 +206,14 @@ static inline int cpc_write_ffh(int cpunum, struct cpc_reg *reg, u64 val) {return -ENOTSUPP ; } +static inline int cppc_set_epp_perf (int cpu,struct cppc_perf_ctrls *perf_ctrls,bool enable) +{ +return -ENOTSUPP ; +} +static inline int cppc_get_epp_caps (int cpunum,struct cppc_perf_caps *perf_caps) +{ +return -ENOTSUPP ; +}#endif /* !CONFIG_ACPI_CPPC_LIB */ #endif /* _CPPC_ACPI_H*/
Yuan, Perry
reviewerRE: [PATCH v6 01/11] ACPI: CPPC: Add AMD pstate energy performance preference cppc control
[AMD Official Use Only - General]
Quoted 28 lines
-----Original Message-----
From: Limonciello, Mario <[email protected]>
Sent: Saturday, December 3, 2022 12:58 AM
To: Yuan, Perry <[email protected]>; [email protected]; Huang, Ray <[email protected]>; [email protected]
Cc: Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH v6 01/11] ACPI: CPPC: Add AMD pstate energy performance preference cppc controlThe title of this first patch should not reflect amd-pstate, it's generic code.
Quoted 10 lines · Perry Yuan
From: Perry Yuan <[email protected]>
Add support for setting and querying EPP preferences to the generic CPPC driver. This enables downstream drivers such as amd-pstate to discover and use these values
In order to get EPP worked,
cppc_get_epp_caps()will query EPP preference value andcppc_set_epp_perf()will set EPP new value. Before the EPP works, pstate driver will usecppc_set_auto_epp()to enable EPP function from firmware firstly.
Quoted 6 lines
My suggestion at rewording this:
Downstream drivers that want to use the new symbols
cppc_get_epp_capsandcppc_set_epp_perffor querying and setting EPP preferences will need to callcppc_set_auto_eppto enable the EPP function first.
Looks better, will update this to V7.
Thank you!
Perry.
Quoted 205 lines
Quoted 4 lines
Signed-off-by Perry Yuan <[email protected]>--- drivers/acpi/cppc_acpi.c | 114+++++++++++++++++++++++++++++++++++++--
drivers/acpi/cppc_acpi.c static int cppc_get_perf(int cpunum, enum
Quoted 8 lines
include/acpi/cppc_acpi.h | 12 +++++ 2 files changed, 121 insertions(+), 5 deletions(-)drivers/acpi/cppc_acpi.c index renamed from drivers/acpi/cppc_acpi.c +0
-0
093675b1a1ff..37fa75f25f62100644drivers/acpi/cppc_acpi.c +0
-0@@ -1093,6 +1093,9 @@ static int cppc_get_perf(int cpunum, enum
cppc_regsreg_idx, u64 *perf)drivers/acpi/cppc_acpi.c static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf)
Quoted 9 lines
drivers/acpi/cppc_acpi.c +3
-0{struct cpc_desc *cpc_desc =per_cpu (cpc_desc_ptr, cpunum);struct cpc_register_resource *reg; +int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpunum); +struct cppc_pcc_data *pcc_ss_data =NULL ; +int ret = -EINVAL ;if (!cpc_desc) { pr_debug("No CPC descriptor for CPU:%d\n", cpunum); @@-1102,10
Quoted 1 line
+1105,6 @@ static int cppc_get_perf(int cpunum, enum
cppc_regsreg_idx,u64 *perf)
drivers/acpi/cppc_acpi.c int cppc_get_perf_ctrs(int cpunum, struct
Quoted 21 lines
reg = &cpc_desc->cpc_regs[reg_idx]; if (CPC_IN_PCC(reg)) {drivers/acpi/cppc_acpi.c +1
-5-int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpunum); -struct cppc_pcc_data *pcc_ss_data =NULL ; -int ret =0 ; -if (pcc_ss_id <0 )return -EIO ;@@ -1125,7 +1124,7 @@ static int cppc_get_perf(int cpunum, enum cppc_regs reg_idx, u64 *perf)cpc_read (cpunum ,reg ,perf ); -return 0 ; +return ret; }/**
drivers/acpi/cppc_acpi.c +0
-0@@ -1365,6 +1364,111 @@ int cppc_get_perf_ctrs(int cpunum, struct
cppc_perf_fb_ctrs*perf_fb_ctrs)Quoted 87 lines
drivers/acpi/cppc_acpi.c +84
-0}EXPORT_SYMBOL_GPL (cppc_get_perf_ctrs); +/** +* cppc_get_epp_caps - Get the energy preference register value. +* @cpunum: CPU from which to get epp preference level. +* @perf_caps: Return address. +* +* Return: 0 for success, -EIO otherwise. +*/ +int cppc_get_epp_caps (int cpunum,struct cppc_perf_caps *perf_caps) { +struct cpc_desc *cpc_desc =per_cpu (cpc_desc_ptr, cpunum); +struct cpc_register_resource *energy_perf_reg; +u64 energy_perf; + +if (!cpc_desc) { +pr_debug ("No CPC descriptor for CPU:%d\n" , cpunum); +return -ENODEV ; + } + + energy_perf_reg = &cpc_desc->cpc_regs[ENERGY_PERF ]; + +if (!CPC_SUPPORTED (energy_perf_reg)) +pr_warn_once ("energy perf reg update is unsupported!\n" ); + +if (CPC_IN_PCC (energy_perf_reg)) { +int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpunum); +struct cppc_pcc_data *pcc_ss_data =NULL ; +int ret =0 ; + +if (pcc_ss_id <0 ) +return -ENODEV ; + + pcc_ss_data = pcc_data[pcc_ss_id]; + +down_write (&pcc_ss_data->pcc_lock); + +if (send_pcc_cmd (pcc_ss_id,CMD_READ ) >=0 ) { +cpc_read (cpunum, energy_perf_reg, &energy_perf); + perf_caps->energy_perf = energy_perf; + }else { + ret = -EIO ; + } + +up_write (&pcc_ss_data->pcc_lock); + +return ret; + } + +return 0 ; +} +EXPORT_SYMBOL_GPL (cppc_get_epp_caps); + +/* +* Set Energy Performance Preference Register value through +* Performance Controls Interface +*/ +int cppc_set_epp_perf (int cpu,struct cppc_perf_ctrls *perf_ctrls, +bool enable) { +int pcc_ss_id =per_cpu (cpu_pcc_subspace_idx, cpu); +struct cpc_register_resource *epp_set_reg; +struct cpc_register_resource *auto_sel_reg; +struct cpc_desc *cpc_desc =per_cpu (cpc_desc_ptr, cpu); +struct cppc_pcc_data *pcc_ss_data =NULL ; +int ret = -EINVAL ; + +if (!cpc_desc) { +pr_debug ("No CPC descriptor for CPU:%d\n" , cpu); +return -ENODEV ; + } + + auto_sel_reg = &cpc_desc->cpc_regs[AUTO_SEL_ENABLE ]; + epp_set_reg = &cpc_desc->cpc_regs[ENERGY_PERF ]; + +if (CPC_IN_PCC (epp_set_reg) ||CPC_IN_PCC (auto_sel_reg)) { +if (pcc_ss_id <0 ) { +pr_debug ("Invalid pcc_ss_id\n" ); +return -ENODEV ; + } + +if (CPC_SUPPORTED (auto_sel_reg)) { + ret =cpc_write (cpu, auto_sel_reg, enable); +if (ret) +return ret; + } + +if (CPC_SUPPORTED (epp_set_reg)) {drivers/acpi/cppc_acpi.c int cppc_get_perf_ctrs(int cpunum, struct cppc_perf_fb_ctrs *perf_fb_ctrs)
Quoted 10 lines
drivers/acpi/cppc_acpi.c +9
-0+ ret =cpc_write (cpu, epp_set_reg, perf_ctrls- energy_perf); +if (ret) +return ret; + } + + pcc_ss_data = pcc_data[pcc_ss_id]; + +down_write (&pcc_ss_data->pcc_lock); +/* after writing CPC, transfer the ownership of PCC to platform */
include/acpi/cppc_acpi.h static inline int cpc_write_ffh(int cpunum, struct
Quoted 44 lines
drivers/acpi/cppc_acpi.c +11
-0+ ret =send_pcc_cmd (pcc_ss_id,CMD_WRITE ); +up_write (&pcc_ss_data->pcc_lock); + }else { + ret = -ENOTSUPP ; +pr_debug ("_CPC in PCC is not supported\n" ); + } + +return ret; +} +EXPORT_SYMBOL_GPL (cppc_set_epp_perf); +/** * cppc_set_enable - Set to enable CPPC on the processor by writing the * Continuous Performance Control package EnableRegister field. include/acpi/cppc_acpi.h index renamed from include/acpi/cppc_acpi.h +0
-0
c5614444031f..a45bb876a19c100644include/acpi/cppc_acpi.h +5
-0@@ -108,12 +108,14 @@ struct cppc_perf_caps {u32 lowest_nonlinear_perf;u32 lowest_freq;u32 nominal_freq; +u32 energy_perf; };struct cppc_perf_ctrls {u32 max_perf;u32 min_perf;u32 desired_perf; +u32 energy_perf; };struct cppc_perf_fb_ctrs {@@ -149,6 +151,8 @@ extern bool cpc_ffh_supported(void);extern bool cpc_supported_by_cpu (void );extern int cpc_read_ffh (int cpunum,struct cpc_reg *reg,u64 *val);extern int cpc_write_ffh (int cpunum,struct cpc_reg *reg,u64 val); +extern int cppc_get_epp_caps (int cpunum,struct cppc_perf_caps +*perf_caps);extern int cppc_set_epp_perf (int cpu,struct +cppc_perf_ctrls *perf_ctrls,bool enable);#else /* !CONFIG_ACPI_CPPC_LIB */ static inline int cppc_get_desired_perf (int cpunum,u64 *desired_perf) {@@ -202,6 +206,14 @@ static inline int cpc_write_ffh(int cpunum, struct
cpc_reg*reg, u64 val)Quoted 14 lines
include/acpi/cppc_acpi.h +8
-0{return -ENOTSUPP ; } +static inline int cppc_set_epp_perf (int cpu,struct cppc_perf_ctrls +*perf_ctrls,bool enable) { +return -ENOTSUPP ; +} +static inline int cppc_get_epp_caps (int cpunum,struct cppc_perf_caps +*perf_caps) { +return -ENOTSUPP ; +}#endif /* !CONFIG_ACPI_CPPC_LIB */ #endif /* _CPPC_ACPI_H*/
Perry Yuan
reviewerPATCH v6 2/11 Documentation: amd-pstate: add EPP profiles introduction
In reply to Perry YuanFrom: Perry Yuan <[email protected]>
The patch add AMD pstate EPP feature introduction and what EPP preference supported for AMD processors.
User can get supported list from energy_performance_available_preferences attribute file, or update current profile to energy_performance_preference file
1) See all EPP profiles
$ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences default performance balance_performance balance_power power
2) Check current EPP profile
$ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference performance
3) Set new EPP profile
$ sudo bash -c "echo power > /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference"
--- Documentation/admin-guide/pm/amd-pstate.rst | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
Documentation/admin-guide/pm/amd-pstate.rst +19 -0
@@ -262,6 +262,25 @@ lowest non-linear performance in `AMD CPPC Performance Capability <perf_cap_>`_.) This attribute is read-only. +``energy_performance_available_preferences`` + +A list of all the supported EPP preferences that could be used for +``energy_performance_preference`` on this system. +These profiles represent different hints that are provided +to the low-level firmware about the user's desired energy vs efficiency +tradeoff. ``default`` represents the epp value is set by platform +firmware. This attribute is read-only. + +``energy_performance_preference`` + +The current energy performance preference can be read from this attribute. +and user can change current preference according to energy or performance needs +Please get all support profiles list from +``energy_performance_available_preferences`` attribute, all the profiles are +integer values defined between 0 to 255 when EPP feature is enabled by platform +firmware, if EPP feature is disabled, driver will ignore the written value +This attribute is read-write. + Other performance and frequency values can be read back from ``/sys/devices/system/cpu/cpuX/acpi_cppc/``, see :ref:`cppc_sysfs`.
Signature · 1 line
2.34.1
Perry Yuan
reviewerPATCH v6 3/11 cpufreq: intel_pstate: use common macro definition for Energy Preference Performance(EPP)
In reply to Perry Yuanmake the energy preference performance strings and profiles using one common header for intel_pstate driver, then the amd_pstate epp driver can use the common header as well. This will simpify the intel_pstate and amd_pstate driver.
--- arch/x86/include/asm/msr-index.h | 4 --- drivers/cpufreq/intel_pstate.c | 37 +-------------------- include/linux/cpufreq_common.h | 56 ++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 40 deletions(-) create mode 100644 include/linux/cpufreq_common.h
arch/x86/include/asm/msr-index.h +0 -4
@@ -472,10 +472,6 @@#define HWP_MAX_PERF (x) ((x & 0xff) << 8)#define HWP_DESIRED_PERF (x) ((x & 0xff) << 16)#define HWP_ENERGY_PERF_PREFERENCE (x) (((unsigned long long) x & 0xff) << 24) -#define HWP_EPP_PERFORMANCE 0x00 -#define HWP_EPP_BALANCE_PERFORMANCE 0x80 -#define HWP_EPP_BALANCE_POWERSAVE 0xC0 -#define HWP_EPP_POWERSAVE 0xFF#define HWP_ACTIVITY_WINDOW (x) ((unsigned long long)(x & 0xff3) << 32)#define HWP_PACKAGE_CONTROL (x) ((unsigned long long)(x & 0x1) << 42)
drivers/cpufreq/intel_pstate.c +1 -36
@@ -25,6 +25,7 @@#include <linux/acpi.h> #include <linux/vmalloc.h> #include <linux/pm_qos.h> +#include <linux/cpufreq_common.h> #include <trace/events/power.h> #include <asm/cpu.h>
@@ -628,42 +629,6 @@ static int intel_pstate_set_epb(int cpu, s16 pref)return 0 ; } -/* -* EPP/EPB display strings corresponding to EPP index in the -* energy_perf_strings[] -* index String -*------------------------------------- -* 0 default -* 1 performance -* 2 balance_performance -* 3 balance_power -* 4 power -*/ - -enum energy_perf_value_index { -EPP_INDEX_DEFAULT =0 , -EPP_INDEX_PERFORMANCE , -EPP_INDEX_BALANCE_PERFORMANCE , -EPP_INDEX_BALANCE_POWERSAVE , -EPP_INDEX_POWERSAVE , -}; - -static const char *const energy_perf_strings[] = { - [EPP_INDEX_DEFAULT ] ="default" , - [EPP_INDEX_PERFORMANCE ] ="performance" , - [EPP_INDEX_BALANCE_PERFORMANCE ] ="balance_performance" , - [EPP_INDEX_BALANCE_POWERSAVE ] ="balance_power" , - [EPP_INDEX_POWERSAVE ] ="power" , -NULL -}; -static unsigned int epp_values[] = { - [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ - [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , - [EPP_INDEX_BALANCE_PERFORMANCE ] =HWP_EPP_BALANCE_PERFORMANCE , - [EPP_INDEX_BALANCE_POWERSAVE ] =HWP_EPP_BALANCE_POWERSAVE , - [EPP_INDEX_POWERSAVE ] =HWP_EPP_POWERSAVE , -}; -static int intel_pstate_get_energy_pref_index (struct cpudata *cpu_data,int *raw_epp) {s16 epp;
include/linux/cpufreq_common.h new file +56 -0
57 lines not on this page · raw message
Signature · 1 line
2.34.1
Huang Rui
maintainerRe: [PATCH v6 03/11] cpufreq: intel_pstate: use common macro definition for Energy Preference Performance(EPP)
Quoted 10 lines · Perry
make the energy preference performance strings and profiles using one common header for
intel_pstatedriver, then theamd_pstateepp driver can use the common header as well. This will simpify theintel_pstateandamd_pstatedriver.Signed-off-by Perry Yuan <[email protected]>--- arch/x86/include/asm/msr-index.h | 4 --- drivers/cpufreq/intel_pstate.c | 37 +-------------------- include/linux/cpufreq_common.h | 56 ++++++++++++++++++++++++++++++++
I don't find any specific reason why you have to use another common cpufreq_common header instead of include/linux/cpufreq.h.
Thanks,
Ray
Quoted 139 lines
3 files changed, 57 insertions(+), 40 deletions(-) create mode 100644 include/linux/cpufreq_common.harch/x86/include/asm/msr-index.h +0
-4@@ -472,10 +472,6 @@#define HWP_MAX_PERF (x) ((x & 0xff) << 8)#define HWP_DESIRED_PERF (x) ((x & 0xff) << 16)#define HWP_ENERGY_PERF_PREFERENCE (x) (((unsigned long long) x & 0xff) << 24) -#define HWP_EPP_PERFORMANCE 0x00 -#define HWP_EPP_BALANCE_PERFORMANCE 0x80 -#define HWP_EPP_BALANCE_POWERSAVE 0xC0 -#define HWP_EPP_POWERSAVE 0xFF#define HWP_ACTIVITY_WINDOW (x) ((unsigned long long)(x & 0xff3) << 32)#define HWP_PACKAGE_CONTROL (x) ((unsigned long long)(x & 0x1) << 42)drivers/cpufreq/intel_pstate.c +1
-36@@ -25,6 +25,7 @@#include <linux/acpi.h> #include <linux/vmalloc.h> #include <linux/pm_qos.h> +#include <linux/cpufreq_common.h> #include <trace/events/power.h> #include <asm/cpu.h> @@ -628,42 +629,6 @@ static int intel_pstate_set_epb(int cpu, s16 pref)return 0 ; } -/* -* EPP/EPB display strings corresponding to EPP index in the -* energy_perf_strings[] -* index String -*------------------------------------- -* 0 default -* 1 performance -* 2 balance_performance -* 3 balance_power -* 4 power -*/ - -enum energy_perf_value_index { -EPP_INDEX_DEFAULT =0 , -EPP_INDEX_PERFORMANCE , -EPP_INDEX_BALANCE_PERFORMANCE , -EPP_INDEX_BALANCE_POWERSAVE , -EPP_INDEX_POWERSAVE , -}; - -static const char *const energy_perf_strings[] = { - [EPP_INDEX_DEFAULT ] ="default" , - [EPP_INDEX_PERFORMANCE ] ="performance" , - [EPP_INDEX_BALANCE_PERFORMANCE ] ="balance_performance" , - [EPP_INDEX_BALANCE_POWERSAVE ] ="balance_power" , - [EPP_INDEX_POWERSAVE ] ="power" , -NULL -}; -static unsigned int epp_values[] = { - [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ - [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , - [EPP_INDEX_BALANCE_PERFORMANCE ] =HWP_EPP_BALANCE_PERFORMANCE , - [EPP_INDEX_BALANCE_POWERSAVE ] =HWP_EPP_BALANCE_POWERSAVE , - [EPP_INDEX_POWERSAVE ] =HWP_EPP_POWERSAVE , -}; -static int intel_pstate_get_energy_pref_index (struct cpudata *cpu_data,int *raw_epp) {s16 epp;include/linux/cpufreq_common.h new file +56
-0@@ -0,0 +1,56 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* +* linux/include/linux/cpufreq_common.h +* +* Copyright (C) 2022 Advanced Micro Devices, Inc. +* +* Author: Perry Yuan <[email protected]> +*/ + +#ifndef _LINUX_CPUFREQ_COMMON_H +#define _LINUX_CPUFREQ_COMMON_H + +#include <asm/msr.h> +/* +* EPP/EPB display strings corresponding to EPP index in the +* energy_perf_strings[] +* index String +*------------------------------------- +* 0 default +* 1 performance +* 2 balance_performance +* 3 balance_power +* 4 power +*/ + +#define HWP_EPP_PERFORMANCE 0x00 +#define HWP_EPP_BALANCE_PERFORMANCE 0x80 +#define HWP_EPP_BALANCE_POWERSAVE 0xC0 +#define HWP_EPP_POWERSAVE 0xFF + +enum energy_perf_value_index { +EPP_INDEX_DEFAULT =0 , +EPP_INDEX_PERFORMANCE , +EPP_INDEX_BALANCE_PERFORMANCE , +EPP_INDEX_BALANCE_POWERSAVE , +EPP_INDEX_POWERSAVE , +}; + +static const char *const energy_perf_strings[] = { + [EPP_INDEX_DEFAULT ] ="default" , + [EPP_INDEX_PERFORMANCE ] ="performance" , + [EPP_INDEX_BALANCE_PERFORMANCE ] ="balance_performance" , + [EPP_INDEX_BALANCE_POWERSAVE ] ="balance_power" , + [EPP_INDEX_POWERSAVE ] ="power" , +NULL +}; + +static unsigned int epp_values[] = { + [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ + [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , + [EPP_INDEX_BALANCE_PERFORMANCE ] =HWP_EPP_BALANCE_PERFORMANCE , + [EPP_INDEX_BALANCE_POWERSAVE ] =HWP_EPP_BALANCE_POWERSAVE , + [EPP_INDEX_POWERSAVE ] =HWP_EPP_POWERSAVE , +}; + +#endif /* _LINUX_CPUFREQ_COMMON_H */ Signature · 1 line
2.34.1
Yuan, Perry
reviewerRE: [PATCH v6 03/11] cpufreq: intel_pstate: use common macro definition for Energy Preference Performance(EPP)
[AMD Official Use Only - General]
Hi Ray.
Quoted 26 lines
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Monday, December 5, 2022 7:49 PM
To: Yuan, Perry <[email protected]>
Cc: [email protected]; Limonciello, Mario <[email protected]>; [email protected]; Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)Quoted 10 lines · Perry
make the energy preference performance strings and profiles using one common header for
intel_pstatedriver, then theamd_pstateepp driver can use the common header as well. This will simpify theintel_pstateandamd_pstatedriver.Signed-off-by Perry Yuan <[email protected]>--- arch/x86/include/asm/msr-index.h | 4 --- drivers/cpufreq/intel_pstate.c | 37 +-------------------- include/linux/cpufreq_common.h | 56
Quoted 7 lines
++++++++++++++++++++++++++++++++
I don't find any specific reason why you have to use another common
cpufreq_commonheader instead ofinclude/linux/cpufreq.h.Thanks,
Ray
That is fine for me to use the cpufreq.h to store the common vars. I will move the declaration to that header file.
Thanks for the review.
Perry.
Quoted 147 lines
arch/x86/include/asm/msr-index.h line 474
Quoted 13 lines
3 files changed, 57 insertions(+), 40 deletions(-) create mode100644
include/linux/cpufreq_common.harch/x86/include/asm/msr-index.h +0
-0@@ -472,10 +472,6 @@#define HWP_MAX_PERF (x) ((x & 0xff) << 8)#define HWP_DESIRED_PERF (x) ((x & 0xff) << 16)#define HWP_ENERGY_PERF_PREFERENCE (x) (((unsigned long long)x &
0xff) << 24)arch/x86/include/asm/msr-index.h
Quoted 5 lines
arch/x86/include/asm/msr-index.h +0
-4-#define HWP_EPP_PERFORMANCE 0x00 -#define HWP_EPP_BALANCE_PERFORMANCE 0x80 -#define HWP_EPP_BALANCE_POWERSAVE 0xC0 -#define HWP_EPP_POWERSAVE 0xFF#define HWP_ACTIVITY_WINDOW (x) ((unsigned longlong)(x &
0xff3) << 32)arch/x86/include/asm/msr-index.h line 476
Quoted 1 line
arch/x86/include/asm/msr-index.h +0
-0#define HWP_PACKAGE_CONTROL (x) ((unsigned longlong)(x &
0x1) << 42)Quoted 40 lines
(quoted diff) +0
-0
b/drivers/cpufreq/intel_pstate.cindexad9be31753b6..65036ca21719100644drivers/cpufreq/intel_pstate.c +1
-22@@ -25,6 +25,7 @@#include <linux/acpi.h> #include <linux/vmalloc.h> #include <linux/pm_qos.h> +#include <linux/cpufreq_common.h> #include <trace/events/power.h> #include <asm/cpu.h> @@ -628,42 +629,6 @@ static int intel_pstate_set_epb(int cpu, s16 pref)return 0 ; } -/* -* EPP/EPB display strings corresponding to EPP index in the -* energy_perf_strings[] -* index String -*------------------------------------- -* 0 default -* 1 performance -* 2 balance_performance -* 3 balance_power -* 4 power -*/ - -enum energy_perf_value_index { -EPP_INDEX_DEFAULT =0 , -EPP_INDEX_PERFORMANCE , -EPP_INDEX_BALANCE_PERFORMANCE , -EPP_INDEX_BALANCE_POWERSAVE , -EPP_INDEX_POWERSAVE , -}; - -static const char *const energy_perf_strings[] = { - [EPP_INDEX_DEFAULT ] ="default" ,drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16 pref) · line 662
Quoted 10 lines
drivers/cpufreq/intel_pstate.c +0
-10- [EPP_INDEX_PERFORMANCE] = "performance", - [EPP_INDEX_BALANCE_PERFORMANCE] = "balance_performance", - [EPP_INDEX_BALANCE_POWERSAVE] = "balance_power", - [EPP_INDEX_POWERSAVE ] ="power" , -NULL -}; -static unsigned int epp_values[] = { - [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ - [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , - [EPP_INDEX_BALANCE_PERFORMANCE] =
HWP_EPP_BALANCE_PERFORMANCE,drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16 pref) · line 663
Quoted 1 line
drivers/cpufreq/intel_pstate.c +0
-1- [EPP_INDEX_BALANCE_POWERSAVE] =
HWP_EPP_BALANCE_POWERSAVE,Quoted 52 lines
drivers/cpufreq/intel_pstate.c +0
-3- [EPP_INDEX_POWERSAVE] = HWP_EPP_POWERSAVE, -}; -static int intel_pstate_get_energy_pref_index (struct cpudata *cpu_data,int *raw_epp) {s16 epp;(quoted diff) +0
-0
b/include/linux/cpufreq_common.hnew file mode 100644 index 000000000000..2d14b0b0f55cinclude/linux/cpufreq_common.h new file +40
-0@@ -0,0 +1,56 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* +* linux/include/linux/cpufreq_common.h +* +* Copyright (C) 2022 Advanced Micro Devices, Inc. +* +* Author: Perry Yuan <[email protected]> */ + +#ifndef _LINUX_CPUFREQ_COMMON_H +#define _LINUX_CPUFREQ_COMMON_H + +#include <asm/msr.h> +/* +* EPP/EPB display strings corresponding to EPP index in the +* energy_perf_strings[] +* index String +*------------------------------------- +* 0 default +* 1 performance +* 2 balance_performance +* 3 balance_power +* 4 power +*/ + +#define HWP_EPP_PERFORMANCE 0x00 +#define HWP_EPP_BALANCE_PERFORMANCE 0x80 +#define HWP_EPP_BALANCE_POWERSAVE 0xC0 +#define HWP_EPP_POWERSAVE 0xFF + +enum energy_perf_value_index { +EPP_INDEX_DEFAULT =0 , +EPP_INDEX_PERFORMANCE , +EPP_INDEX_BALANCE_PERFORMANCE , +EPP_INDEX_BALANCE_POWERSAVE , +EPP_INDEX_POWERSAVE , +}; + +static const char *const energy_perf_strings[] = { + [EPP_INDEX_DEFAULT ] ="default" , + [EPP_INDEX_PERFORMANCE] = "performance",include/linux/cpufreq_common.h line 50
Quoted 10 lines
include/linux/cpufreq_common.h new file +10
-0+ [EPP_INDEX_BALANCE_PERFORMANCE] = "balance_performance", + [EPP_INDEX_BALANCE_POWERSAVE] = "balance_power", + [EPP_INDEX_POWERSAVE ] ="power" , +NULL +}; + +static unsigned int epp_values[] = { + [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ + [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , + [EPP_INDEX_BALANCE_PERFORMANCE] =
HWP_EPP_BALANCE_PERFORMANCE,include/linux/cpufreq_common.h line 51
Quoted 1 line
include/linux/cpufreq_common.h new file +1
-0+ [EPP_INDEX_BALANCE_POWERSAVE] =
HWP_EPP_BALANCE_POWERSAVE,Quoted 7 lines
include/linux/cpufreq_common.h new file +3
-1+ [EPP_INDEX_POWERSAVE] = HWP_EPP_POWERSAVE, }; + +#endif /* _LINUX_CPUFREQ_COMMON_H */ --2.34.1
Limonciello, Mario
maintainerRE: [PATCH v6 03/11] cpufreq: intel_pstate: use common macro definition for Energy Preference Performance(EPP)
[Public]
Quoted 200 lines
-----Original Message-----
From: Yuan, Perry <[email protected]>
Sent: Monday, December 5, 2022 08:41
To: Huang, Ray <[email protected]>
Cc: [email protected]; Limonciello, Mario <[email protected]>; [email protected]; Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)[AMD Official Use Only - General]
Hi Ray.
Quoted 10 lines
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Monday, December 5, 2022 7:49 PM
To: Yuan, Perry <[email protected]>
Cc: [email protected]; Limonciello, Mario <[email protected]>; [email protected]; Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>;Meng,
Quoted 1 line
Li (Jassmine) <[email protected]>; Karny, Wyes
Quoted 15 lines
[email protected]; [email protected]
Subject: Re: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)Quoted 10 lines · Perry
make the energy preference performance strings and profiles using one common header for
intel_pstatedriver, then theamd_pstateepp driver can use the common header as well. This will simpify theintel_pstateandamd_pstatedriver.Signed-off-by Perry Yuan <[email protected]>--- arch/x86/include/asm/msr-index.h | 4 --- drivers/cpufreq/intel_pstate.c | 37 +-------------------- include/linux/cpufreq_common.h | 56Quoted 7 lines
++++++++++++++++++++++++++++++++
I don't find any specific reason why you have to use another common
cpufreq_commonheader instead ofinclude/linux/cpufreq.h.Thanks,
RayThat is fine for me to use the
cpufreq.hto store the common vars. I will move the declaration to that header file.Thanks for the review.
Perry.
Quoted 138 lines
arch/x86/include/asm/msr-index.h line 474
Quoted 13 lines
3 files changed, 57 insertions(+), 40 deletions(-) create mode100644
include/linux/cpufreq_common.harch/x86/include/asm/msr-index.h +0
-0@@ -472,10 +472,6 @@#define HWP_MAX_PERF (x) ((x & 0xff) << 8)#define HWP_DESIRED_PERF (x) ((x & 0xff) << 16)#define HWP_ENERGY_PERF_PREFERENCE (x) (((unsigned long long)x &
0xff) << 24)arch/x86/include/asm/msr-index.h
Quoted 5 lines
arch/x86/include/asm/msr-index.h +0
-4-#define HWP_EPP_PERFORMANCE 0x00 -#define HWP_EPP_BALANCE_PERFORMANCE 0x80 -#define HWP_EPP_BALANCE_POWERSAVE 0xC0 -#define HWP_EPP_POWERSAVE 0xFF#define HWP_ACTIVITY_WINDOW (x) ((unsigned longlong)(x &
0xff3) << 32)arch/x86/include/asm/msr-index.h line 476
Quoted 1 line
arch/x86/include/asm/msr-index.h +0
-0#define HWP_PACKAGE_CONTROL (x) ((unsigned longlong)(x &
0x1) << 42)Quoted 40 lines
(quoted diff) +0
-0
b/drivers/cpufreq/intel_pstate.cindexad9be31753b6..65036ca21719100644drivers/cpufreq/intel_pstate.c +1
-22@@ -25,6 +25,7 @@#include <linux/acpi.h> #include <linux/vmalloc.h> #include <linux/pm_qos.h> +#include <linux/cpufreq_common.h> #include <trace/events/power.h> #include <asm/cpu.h> @@ -628,42 +629,6 @@ static int intel_pstate_set_epb(int cpu, s16 pref)return 0 ; } -/* -* EPP/EPB display strings corresponding to EPP index in the -* energy_perf_strings[] -* index String -*------------------------------------- -* 0 default -* 1 performance -* 2 balance_performance -* 3 balance_power -* 4 power -*/ - -enum energy_perf_value_index { -EPP_INDEX_DEFAULT =0 , -EPP_INDEX_PERFORMANCE , -EPP_INDEX_BALANCE_PERFORMANCE , -EPP_INDEX_BALANCE_POWERSAVE , -EPP_INDEX_POWERSAVE , -}; - -static const char *const energy_perf_strings[] = { - [EPP_INDEX_DEFAULT ] ="default" ,drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16 pref) · line 662
Quoted 10 lines
drivers/cpufreq/intel_pstate.c +0
-10- [EPP_INDEX_PERFORMANCE] = "performance", - [EPP_INDEX_BALANCE_PERFORMANCE] = "balance_performance", - [EPP_INDEX_BALANCE_POWERSAVE] = "balance_power", - [EPP_INDEX_POWERSAVE ] ="power" , -NULL -}; -static unsigned int epp_values[] = { - [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ - [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , - [EPP_INDEX_BALANCE_PERFORMANCE] =
HWP_EPP_BALANCE_PERFORMANCE,drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16 pref) · line 663
Quoted 1 line
drivers/cpufreq/intel_pstate.c +0
-1- [EPP_INDEX_BALANCE_POWERSAVE] =
HWP_EPP_BALANCE_POWERSAVE,Quoted 52 lines
drivers/cpufreq/intel_pstate.c +0
-3- [EPP_INDEX_POWERSAVE] = HWP_EPP_POWERSAVE, -}; -static int intel_pstate_get_energy_pref_index (struct cpudata *cpu_data,int *raw_epp) {s16 epp;(quoted diff) +0
-0
b/include/linux/cpufreq_common.hnew file mode 100644 index 000000000000..2d14b0b0f55cinclude/linux/cpufreq_common.h new file +40
-0@@ -0,0 +1,56 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* +* linux/include/linux/cpufreq_common.h +* +* Copyright (C) 2022 Advanced Micro Devices, Inc. +* +* Author: Perry Yuan <[email protected]> */ + +#ifndef _LINUX_CPUFREQ_COMMON_H +#define _LINUX_CPUFREQ_COMMON_H + +#include <asm/msr.h> +/* +* EPP/EPB display strings corresponding to EPP index in the +* energy_perf_strings[] +* index String +*------------------------------------- +* 0 default +* 1 performance +* 2 balance_performance +* 3 balance_power +* 4 power +*/ + +#define HWP_EPP_PERFORMANCE 0x00 +#define HWP_EPP_BALANCE_PERFORMANCE 0x80 +#define HWP_EPP_BALANCE_POWERSAVE 0xC0 +#define HWP_EPP_POWERSAVE 0xFF + +enum energy_perf_value_index { +EPP_INDEX_DEFAULT =0 , +EPP_INDEX_PERFORMANCE , +EPP_INDEX_BALANCE_PERFORMANCE , +EPP_INDEX_BALANCE_POWERSAVE , +EPP_INDEX_POWERSAVE , +}; + +static const char *const energy_perf_strings[] = { + [EPP_INDEX_DEFAULT ] ="default" , + [EPP_INDEX_PERFORMANCE] = "performance",include/linux/cpufreq_common.h line 50
Quoted 10 lines
include/linux/cpufreq_common.h new file +10
-0+ [EPP_INDEX_BALANCE_PERFORMANCE] = "balance_performance", + [EPP_INDEX_BALANCE_POWERSAVE] = "balance_power", + [EPP_INDEX_POWERSAVE ] ="power" , +NULL +}; + +static unsigned int epp_values[] = { + [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ + [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , + [EPP_INDEX_BALANCE_PERFORMANCE] =
HWP_EPP_BALANCE_PERFORMANCE,
Quoted 4 lines
Quoted 4 lines
include/linux/cpufreq_common.h line 51
Quoted 1 line
include/linux/cpufreq_common.h new file +1
-0+ [EPP_INDEX_BALANCE_POWERSAVE] =
HWP_EPP_BALANCE_POWERSAVE,include/linux/cpufreq_common.h line 53
Quoted 2 lines
include/linux/cpufreq_common.h new file +2
-0+ [EPP_INDEX_POWERSAVE] = HWP_EPP_POWERSAVE, }; +
I don't believe you should be making these static in the header file.
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
include/linux/cpufreq_common.h new file +1
-1+#endif /* _LINUX_CPUFREQ_COMMON_H */ --2.34.1
Yuan, Perry
reviewerRE: [PATCH v6 03/11] cpufreq: intel_pstate: use common macro definition for Energy Preference Performance(EPP)
[Public]
Hi Mario.
Quoted 220 lines
-----Original Message-----
From: Limonciello, Mario <[email protected]>
Sent: Tuesday, December 6, 2022 12:45 AM
To: Yuan, Perry <[email protected]>; Huang, Ray <[email protected]>
Cc: [email protected]; [email protected]; Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)[Public]
Quoted 7 lines
-----Original Message-----
From: Yuan, Perry <[email protected]>
Sent: Monday, December 5, 2022 08:41
To: Huang, Ray <[email protected]>
Cc: [email protected]; Limonciello, Mario <[email protected]>; [email protected]; Sharma, Deepak <[email protected]>; Fontenot, NathanQuoted 2 lines
Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>;
Meng, Li
Quoted 5 lines
(Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)Quoted 10 lines
[AMD Official Use Only - General]
Hi Ray.
Quoted 6 lines
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Monday, December 5, 2022 7:49 PM
To: Yuan, Perry <[email protected]>
Cc: [email protected]; Limonciello, Mario <[email protected]>; [email protected]; Sharma,Deepak
Quoted 1 line
Quoted 1 line
<[email protected]>; Fontenot, Nathan
Quoted 173 lines
Quoted 2 lines
Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>;
Meng,
Quoted 1 line
Li (Jassmine) <[email protected]>; Karny, Wyes
Quoted 15 lines
[email protected]; [email protected]
Subject: Re: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)Quoted 10 lines · Perry
make the energy preference performance strings and profiles using one common header for
intel_pstatedriver, then theamd_pstateepp driver can use the common header as well. This will simpify theintel_pstateandamd_pstatedriver.Signed-off-by Perry Yuan <[email protected]>--- arch/x86/include/asm/msr-index.h | 4 --- drivers/cpufreq/intel_pstate.c | 37 +-------------------- include/linux/cpufreq_common.h | 56Quoted 7 lines
++++++++++++++++++++++++++++++++
I don't find any specific reason why you have to use another common
cpufreq_commonheader instead ofinclude/linux/cpufreq.h.Thanks,
RayThat is fine for me to use the
cpufreq.hto store the common vars. I will move the declaration to that header file.Thanks for the review.
Perry.
Quoted 138 lines
arch/x86/include/asm/msr-index.h line 474
Quoted 13 lines
3 files changed, 57 insertions(+), 40 deletions(-) create mode100644
include/linux/cpufreq_common.harch/x86/include/asm/msr-index.h +0
-0@@ -472,10 +472,6 @@#define HWP_MAX_PERF (x) ((x & 0xff) << 8)#define HWP_DESIRED_PERF (x) ((x & 0xff) << 16)#define HWP_ENERGY_PERF_PREFERENCE (x) (((unsigned long long)x &
0xff) << 24)arch/x86/include/asm/msr-index.h
Quoted 5 lines
arch/x86/include/asm/msr-index.h +0
-4-#define HWP_EPP_PERFORMANCE 0x00 -#define HWP_EPP_BALANCE_PERFORMANCE 0x80 -#define HWP_EPP_BALANCE_POWERSAVE 0xC0 -#define HWP_EPP_POWERSAVE 0xFF#define HWP_ACTIVITY_WINDOW (x) ((unsigned longlong)(x &
0xff3) << 32)arch/x86/include/asm/msr-index.h line 476
Quoted 1 line
arch/x86/include/asm/msr-index.h +0
-0#define HWP_PACKAGE_CONTROL (x) ((unsigned longlong)(x &
0x1) << 42)Quoted 40 lines
(quoted diff) +0
-0
b/drivers/cpufreq/intel_pstate.cindexad9be31753b6..65036ca21719100644drivers/cpufreq/intel_pstate.c +1
-22@@ -25,6 +25,7 @@#include <linux/acpi.h> #include <linux/vmalloc.h> #include <linux/pm_qos.h> +#include <linux/cpufreq_common.h> #include <trace/events/power.h> #include <asm/cpu.h> @@ -628,42 +629,6 @@ static int intel_pstate_set_epb(int cpu, s16 pref)return 0 ; } -/* -* EPP/EPB display strings corresponding to EPP index in the -* energy_perf_strings[] -* index String -*------------------------------------- -* 0 default -* 1 performance -* 2 balance_performance -* 3 balance_power -* 4 power -*/ - -enum energy_perf_value_index { -EPP_INDEX_DEFAULT =0 , -EPP_INDEX_PERFORMANCE , -EPP_INDEX_BALANCE_PERFORMANCE , -EPP_INDEX_BALANCE_POWERSAVE , -EPP_INDEX_POWERSAVE , -}; - -static const char *const energy_perf_strings[] = { - [EPP_INDEX_DEFAULT ] ="default" ,drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16 pref) · line 662
Quoted 10 lines
drivers/cpufreq/intel_pstate.c +0
-10- [EPP_INDEX_PERFORMANCE] = "performance", - [EPP_INDEX_BALANCE_PERFORMANCE] = "balance_performance", - [EPP_INDEX_BALANCE_POWERSAVE] = "balance_power", - [EPP_INDEX_POWERSAVE ] ="power" , -NULL -}; -static unsigned int epp_values[] = { - [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ - [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , - [EPP_INDEX_BALANCE_PERFORMANCE] =
HWP_EPP_BALANCE_PERFORMANCE,drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16 pref) · line 663
Quoted 1 line
drivers/cpufreq/intel_pstate.c +0
-1- [EPP_INDEX_BALANCE_POWERSAVE] =
HWP_EPP_BALANCE_POWERSAVE,Quoted 52 lines
drivers/cpufreq/intel_pstate.c +0
-3- [EPP_INDEX_POWERSAVE] = HWP_EPP_POWERSAVE, -}; -static int intel_pstate_get_energy_pref_index (struct cpudata *cpu_data,int *raw_epp) {s16 epp;(quoted diff) +0
-0
b/include/linux/cpufreq_common.hnew file mode 100644 index 000000000000..2d14b0b0f55cinclude/linux/cpufreq_common.h new file +40
-0@@ -0,0 +1,56 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* +* linux/include/linux/cpufreq_common.h +* +* Copyright (C) 2022 Advanced Micro Devices, Inc. +* +* Author: Perry Yuan <[email protected]> */ + +#ifndef _LINUX_CPUFREQ_COMMON_H +#define _LINUX_CPUFREQ_COMMON_H + +#include <asm/msr.h> +/* +* EPP/EPB display strings corresponding to EPP index in the +* energy_perf_strings[] +* index String +*------------------------------------- +* 0 default +* 1 performance +* 2 balance_performance +* 3 balance_power +* 4 power +*/ + +#define HWP_EPP_PERFORMANCE 0x00 +#define HWP_EPP_BALANCE_PERFORMANCE 0x80 +#define HWP_EPP_BALANCE_POWERSAVE 0xC0 +#define HWP_EPP_POWERSAVE 0xFF + +enum energy_perf_value_index { +EPP_INDEX_DEFAULT =0 , +EPP_INDEX_PERFORMANCE , +EPP_INDEX_BALANCE_PERFORMANCE , +EPP_INDEX_BALANCE_POWERSAVE , +EPP_INDEX_POWERSAVE , +}; + +static const char *const energy_perf_strings[] = { + [EPP_INDEX_DEFAULT ] ="default" , + [EPP_INDEX_PERFORMANCE] = "performance",include/linux/cpufreq_common.h line 50
Quoted 10 lines
include/linux/cpufreq_common.h new file +10
-0+ [EPP_INDEX_BALANCE_PERFORMANCE] = "balance_performance", + [EPP_INDEX_BALANCE_POWERSAVE] = "balance_power", + [EPP_INDEX_POWERSAVE ] ="power" , +NULL +}; + +static unsigned int epp_values[] = { + [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ + [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , + [EPP_INDEX_BALANCE_PERFORMANCE] =
HWP_EPP_BALANCE_PERFORMANCE,
Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
include/linux/cpufreq_common.h line 51
Quoted 1 line
include/linux/cpufreq_common.h new file +1
-0+ [EPP_INDEX_BALANCE_POWERSAVE] =
HWP_EPP_BALANCE_POWERSAVE,include/linux/cpufreq_common.h line 53
Quoted 2 lines
include/linux/cpufreq_common.h new file +2
-0+ [EPP_INDEX_POWERSAVE] = HWP_EPP_POWERSAVE, }; +I don't believe you should be making these static in the header file.
If I do not make these arrays as static type, it will be reporting lots of build errors.
ld: drivers/scsi/lpfc/lpfc_sli.o:(.data+0xa0): multiple definition of `epp_values'; drivers/scsi/lpfc/lpfc_mem.o:(.data+0x0): first defined here
ld: drivers/scsi/lpfc/lpfc_sli.o:(.rodata+0x120): multiple definition of `energy_perf_strings'; drivers/scsi/lpfc/lpfc_mem.o:(.rodata+0x0): first defined here
ld: drivers/scsi/lpfc/lpfc_ct.o:(.data+0x150): multiple definition of `epp_values'; drivers/scsi/lpfc/lpfc_mem.o:(.data+0x0): first defined here
ld: drivers/scsi/lpfc/lpfc_ct.o:(.rodata+0x60): multiple definition of `energy_perf_strings'; drivers/scsi/lpfc/lpfc_mem.o:(.rodata+0x0): first defined here
ld: drivers/scsi/lpfc/lpfc_els.o:(.data+0x0): multiple definition of `epp_values'; drivers/scsi/lpfc/lpfc_mem.o:(.data+0x0): first defined here
....
I will check how to get this fixed if we really need set it as static in V8.
Perry.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
include/linux/cpufreq_common.h new file +1
-1+#endif /* _LINUX_CPUFREQ_COMMON_H */ --2.34.1
Limonciello, Mario
maintainerRE: [PATCH v6 03/11] cpufreq: intel_pstate: use common macro definition for Energy Preference Performance(EPP)
[Public]
Quoted 274 lines
-----Original Message-----
From: Yuan, Perry <[email protected]>
Sent: Thursday, December 8, 2022 08:40
To: Limonciello, Mario <[email protected]>; Huang, Ray <[email protected]>
Cc: [email protected]; [email protected]; Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: RE: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)[Public]
Hi Mario.
Quoted 4 lines
-----Original Message-----
From: Limonciello, Mario <[email protected]>
Sent: Tuesday, December 6, 2022 12:45 AM
To: Yuan, Perry <[email protected]>; Huang, RayQuoted 5 lines
Cc: [email protected]; [email protected]; Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>;
Meng,
Quoted 1 line
Li (Jassmine) <[email protected]>; Karny, Wyes
Quoted 4 lines
[email protected]; [email protected]
Subject: RE: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)Quoted 10 lines
[Public]
Quoted 6 lines
-----Original Message-----
From: Yuan, Perry <[email protected]>
Sent: Monday, December 5, 2022 08:41
To: Huang, Ray <[email protected]>
Cc: [email protected]; Limonciello, Mario <[email protected]>; [email protected]; Sharma,Deepak
Quoted 6 lines
Quoted 1 line
<[email protected]>; Fontenot, Nathan
Quoted 2 lines
Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>;
Meng, Li
Quoted 1 line
(Jassmine) <[email protected]>; Karny, Wyes
Quoted 14 lines
Quoted 4 lines
[email protected]; [email protected]
Subject: RE: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)Quoted 10 lines
[AMD Official Use Only - General]
Hi Ray.
Quoted 6 lines
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Monday, December 5, 2022 7:49 PM
To: Yuan, Perry <[email protected]>
Cc: [email protected]; Limonciello, Mario <[email protected]>; [email protected]; Sharma,Quoted 4 lines
Deepak
Quoted 1 line
Quoted 1 line
<[email protected]>; Fontenot, Nathan
Quoted 1 line
Quoted 1 line
Deucher, Alexander <[email protected]>; Huang,
Shimmer
Quoted 11 lines
Quoted 11 lines
Quoted 1 line
<[email protected]>; Du, Xiaojian <[email protected]>;
Meng,
Quoted 1 line
Li (Jassmine) <[email protected]>; Karny, Wyes
Quoted 7 lines
[email protected]; [email protected]
Subject: Re: [PATCH v6 03/11] cpufreq:intel_pstate: use common macro definition for Energy Preference Performance(EPP)Quoted 2 lines · Perry
make the energy preference performance strings and profiles using one common header for
intel_pstatedriver, then theamd_pstateepp
Quoted 58 lines
Quoted 58 lines
Quoted 8 lines
Quoted 8 lines
driver can use the common header as well. This will simpify the
intel_pstateandamd_pstatedriver.Signed-off-by Perry Yuan <[email protected]>--- arch/x86/include/asm/msr-index.h | 4 --- drivers/cpufreq/intel_pstate.c | 37 +-------------------- include/linux/cpufreq_common.h | 56Quoted 7 lines
++++++++++++++++++++++++++++++++
I don't find any specific reason why you have to use another common
cpufreq_commonheader instead ofinclude/linux/cpufreq.h.Thanks,
RayThat is fine for me to use the
cpufreq.hto store the common vars. I will move the declaration to that header file.Thanks for the review.
Perry.
Quoted 35 lines
arch/x86/include/asm/msr-index.h line 474
Quoted 13 lines
3 files changed, 57 insertions(+), 40 deletions(-) create mode100644
include/linux/cpufreq_common.harch/x86/include/asm/msr-index.h +0
-0@@ -472,10 +472,6 @@#define HWP_MAX_PERF (x) ((x & 0xff) << 8)#define HWP_DESIRED_PERF (x) ((x & 0xff) << 16)#define HWP_ENERGY_PERF_PREFERENCE (x) (((unsigned long long)x &
0xff) << 24)arch/x86/include/asm/msr-index.h
Quoted 5 lines
arch/x86/include/asm/msr-index.h +0
-4-#define HWP_EPP_PERFORMANCE 0x00 -#define HWP_EPP_BALANCE_PERFORMANCE 0x80 -#define HWP_EPP_BALANCE_POWERSAVE 0xC0 -#define HWP_EPP_POWERSAVE 0xFF#define HWP_ACTIVITY_WINDOW (x) ((unsigned longlong)(x &
0xff3) << 32)arch/x86/include/asm/msr-index.h line 476
Quoted 1 line
arch/x86/include/asm/msr-index.h +0
-0#define HWP_PACKAGE_CONTROL (x) ((unsigned longlong)(x &
0x1) << 42)Quoted 13 lines
(quoted diff) +0
-0
b/drivers/cpufreq/intel_pstate.cindexad9be31753b6..65036ca21719100644drivers/cpufreq/intel_pstate.c +1
-0@@ -25,6 +25,7 @@#include <linux/acpi.h> #include <linux/vmalloc.h> #include <linux/pm_qos.h> +#include <linux/cpufreq_common.h> #include <trace/events/power.h> Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16
Quoted 2 lines
drivers/cpufreq/intel_pstate.c +0
-0#include <asm/cpu.h> @@ -628,42 +629,6 @@ static int intel_pstate_set_epb(int cpu, s16pref)
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
drivers/cpufreq/intel_pstate.c +0
-16return 0 ; } -/* -* EPP/EPB display strings corresponding to EPP index in the -* energy_perf_strings[] -* index String -*------------------------------------- -* 0 default -* 1 performance -* 2 balance_performance -* 3 balance_power -* 4 power -*/ - -enum energy_perf_value_index { -EPP_INDEX_DEFAULT =0 , -EPP_INDEX_PERFORMANCE , -EPP_INDEX_BALANCE_PERFORMANCE ,Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16 pref)
Quoted 8 lines
drivers/cpufreq/intel_pstate.c +0
-8- EPP_INDEX_BALANCE_POWERSAVE, - EPP_INDEX_POWERSAVE, -}; - -static const char *const energy_perf_strings[] = { - [EPP_INDEX_DEFAULT ] ="default" , - [EPP_INDEX_PERFORMANCE ] ="performance" , - [EPP_INDEX_BALANCE_PERFORMANCE] ="
balance_performance",Quoted 56 lines
Quoted 56 lines
Quoted 56 lines
drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16 pref)
Quoted 8 lines
drivers/cpufreq/intel_pstate.c +0
-8- [EPP_INDEX_BALANCE_POWERSAVE] = "balance_power", - [EPP_INDEX_POWERSAVE ] ="power" , -NULL -}; -static unsigned int epp_values[] = { - [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ - [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , - [EPP_INDEX_BALANCE_PERFORMANCE] =
HWP_EPP_BALANCE_PERFORMANCE,drivers/cpufreq/intel_pstate.c static int intel_pstate_set_epb(int cpu, s16 · line 663
Quoted 1 line
drivers/cpufreq/intel_pstate.c +0
-1- [EPP_INDEX_BALANCE_POWERSAVE] =
HWP_EPP_BALANCE_POWERSAVE,Quoted 45 lines
drivers/cpufreq/intel_pstate.c +0
-3- [EPP_INDEX_POWERSAVE] = HWP_EPP_POWERSAVE, -}; -static int intel_pstate_get_energy_pref_index (struct cpudata *cpu_data,int *raw_epp) {s16 epp;(quoted diff) +0
-0
b/include/linux/cpufreq_common.hnew file mode 100644 index 000000000000..2d14b0b0f55cinclude/linux/cpufreq_common.h new file +33
-0@@ -0,0 +1,56 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* +* linux/include/linux/cpufreq_common.h +* +* Copyright (C) 2022 Advanced Micro Devices, Inc. +* +* Author: Perry Yuan <[email protected]> */ + +#ifndef _LINUX_CPUFREQ_COMMON_H +#define _LINUX_CPUFREQ_COMMON_H + +#include <asm/msr.h> +/* +* EPP/EPB display strings corresponding to EPP index in the +* energy_perf_strings[] +* index String +*------------------------------------- +* 0 default +* 1 performance +* 2 balance_performance +* 3 balance_power +* 4 power +*/ + +#define HWP_EPP_PERFORMANCE 0x00 +#define HWP_EPP_BALANCE_PERFORMANCE 0x80 +#define HWP_EPP_BALANCE_POWERSAVE 0xC0 +#define HWP_EPP_POWERSAVE 0xFF + +enum energy_perf_value_index { +EPP_INDEX_DEFAULT =0 , +EPP_INDEX_PERFORMANCE , + EPP_INDEX_BALANCE_PERFORMANCE,Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
include/linux/cpufreq_common.h
Quoted 8 lines
include/linux/cpufreq_common.h new file +8
-0+ EPP_INDEX_BALANCE_POWERSAVE, + EPP_INDEX_POWERSAVE, +}; + +static const char *const energy_perf_strings[] = { + [EPP_INDEX_DEFAULT ] ="default" , + [EPP_INDEX_PERFORMANCE ] ="performance" , + [EPP_INDEX_BALANCE_PERFORMANCE] ="
balance_performance",Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
include/linux/cpufreq_common.h
Quoted 9 lines
include/linux/cpufreq_common.h new file +9
-0+ [EPP_INDEX_BALANCE_POWERSAVE] = "balance_power", + [EPP_INDEX_POWERSAVE ] ="power" , +NULL +}; + +static unsigned int epp_values[] = { + [EPP_INDEX_DEFAULT ] =0 ,/* Unused index */ + [EPP_INDEX_PERFORMANCE ] =HWP_EPP_PERFORMANCE , + [EPP_INDEX_BALANCE_PERFORMANCE] =
HWP_EPP_BALANCE_PERFORMANCE,Quoted 6 lines
Quoted 4 lines
Quoted 4 lines
include/linux/cpufreq_common.h line 51
Quoted 1 line
include/linux/cpufreq_common.h new file +1
-0+ [EPP_INDEX_BALANCE_POWERSAVE] =
HWP_EPP_BALANCE_POWERSAVE,include/linux/cpufreq_common.h line 53
Quoted 2 lines
include/linux/cpufreq_common.h new file +2
-0+ [EPP_INDEX_POWERSAVE] = HWP_EPP_POWERSAVE, }; +I don't believe you should be making these static in the header file.
If I do not make these arrays as static type, it will be reporting lots of build errors.
ld: drivers/scsi/lpfc/lpfc_sli.o:(.data+0xa0): multiple definition of `epp_values'; drivers/scsi/lpfc/lpfc_mem.o:(.data+0x0): first defined here
ld: drivers/scsi/lpfc/lpfc_sli.o:(.rodata+0x120): multiple definition of `energy_perf_strings'; drivers/scsi/lpfc/lpfc_mem.o:(.rodata+0x0): first defined here
ld: drivers/scsi/lpfc/lpfc_ct.o:(.data+0x150): multiple definition of `epp_values'; drivers/scsi/lpfc/lpfc_mem.o:(.data+0x0): first defined here
ld: drivers/scsi/lpfc/lpfc_ct.o:(.rodata+0x60): multiple definition of `energy_perf_strings'; drivers/scsi/lpfc/lpfc_mem.o:(.rodata+0x0): first defined here
ld: drivers/scsi/lpfc/lpfc_els.o:(.data+0x0): multiple definition of `epp_values'; drivers/scsi/lpfc/lpfc_mem.o:(.data+0x0): first defined here
....
Quoted 2 lines
I will check how to get this fixed if we really need set it as static in V8.
Right; What I think you should do is have in the header (.h) something like
extern int epp_values[];
and then declare the actual definitions in a source file used by all the consumers (.c).
Quoted 8 lines
Perry.
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
include/linux/cpufreq_common.h new file +1
-1+#endif /* _LINUX_CPUFREQ_COMMON_H */ --2.34.1
Perry Yuan
reviewerPATCH v6 4/11 cpufreq: amd_pstate: implement Pstate EPP support for the AMD processors
In reply to Perry YuanFrom: Perry Yuan <[email protected]>
Add EPP driver support for AMD SoCs which support a dedicated MSR for CPPC. EPP is used by the DPM controller to configure the frequency that a core operates at during short periods of activity.
The SoC EPP targets are configured on a scale from 0 to 255 where 0 represents maximum performance and 255 represents maximum efficiency.
The amd-pstate driver exports profile string names to userspace that are tied to specific EPP values.
The balance_performance string (0x80) provides the best balance for efficiency versus power on most systems, but users can choose other strings to meet their needs as well.
$ cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_available_preferences default performance balance_performance balance_power power
$ cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference balance_performance
To enable the driver,it needs to add amd_pstate=active to kernel command line and kernel will load the active mode epp driver
--- drivers/cpufreq/amd-pstate.c | 643 ++++++++++++++++++++++++++++++++++- include/linux/amd-pstate.h | 35 ++ 2 files changed, 672 insertions(+), 6 deletions(-)
drivers/cpufreq/amd-pstate.c +637 -6
@@ -37,9 +37,12 @@#include <linux/uaccess.h> #include <linux/static_call.h> #include <linux/amd-pstate.h> +#include <linux/cpufreq_common.h> +#ifdef CONFIG_ACPI #include <acpi/processor.h> #include <acpi/cppc_acpi.h> +#endif #include <asm/msr.h> #include <asm/processor.h>
@@ -59,9 +62,130 @@* we disable it by default to go acpi-cpufreq on these processors and add a * module parameter to be able to enable it manually for debugging. */ -static struct cpufreq_driver amd_pstate_driver; +static bool cppc_active;static int cppc_load__initdata ; +static struct cpufreq_driver *default_pstate_driver; +static struct amd_cpudata **all_cpu_data; +static struct amd_pstate_params global_params; + +static DEFINE_MUTEX (amd_pstate_limits_lock); +static DEFINE_MUTEX (amd_pstate_driver_lock); + +static bool cppc_boost__read_mostly ; +struct kobject *amd_pstate_kobj; + +#ifdef CONFIG_ACPI_CPPC_LIB +static s16 amd_pstate_get_epp (struct amd_cpudata *cpudata,u64 cppc_req_cached) +{ +s16 epp; +struct cppc_perf_caps perf_caps; +int ret; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +if (!cppc_req_cached) { + epp =rdmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , + &cppc_req_cached); +if (epp) +return epp; + } + epp = (cppc_req_cached >>24 ) &0xFF ; + }else { + ret =cppc_get_epp_caps (cpudata->cpu, &perf_caps); +if (ret <0 ) { +pr_debug ("Could not retrieve energy perf value (%d)\n" , ret); +return -EIO ; + } + epp = (s16 ) perf_caps.energy_perf; + } + +return epp; +} +#endif + +static int amd_pstate_get_energy_pref_index (struct amd_cpudata *cpudata) +{ +s16 epp; +int index = -EINVAL ; + + epp =amd_pstate_get_epp (cpudata,0 ); +if (epp <0 ) +return epp; + +switch (epp) { +case HWP_EPP_PERFORMANCE : + index =EPP_INDEX_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_PERFORMANCE : + index =EPP_INDEX_BALANCE_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_POWERSAVE : + index =EPP_INDEX_BALANCE_POWERSAVE ; +break ; +case HWP_EPP_POWERSAVE : + index =EPP_INDEX_POWERSAVE ; +break ; +default : +break ; + } + +return index; +} + +#ifdef CONFIG_ACPI_CPPC_LIB +static int amd_pstate_set_epp (struct amd_cpudata *cpudata,u32 epp) +{ +int ret; +struct cppc_perf_ctrls perf_ctrls; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +u64 value =READ_ONCE (cpudata->cppc_req_cached); + + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret =wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); +if (!ret) + cpudata->epp_cached = epp; + }else { + perf_ctrls.energy_perf = epp; + ret =cppc_set_epp_perf (cpudata->cpu, &perf_ctrls,1 ); +if (ret) { +pr_debug ("failed to set energy perf value (%d)\n" , ret); +return ret; + } + cpudata->epp_cached = epp; + } + +return ret; +} + +static int amd_pstate_set_energy_pref_index (struct amd_cpudata *cpudata, +int pref_index) +{ +int epp = -EINVAL ; +int ret; + +if (!pref_index) { +pr_debug ("EPP pref_index is invalid\n" ); +return -EINVAL ; + } + +if (epp == -EINVAL ) + epp = epp_values[pref_index]; + +if (epp >0 && cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { +pr_debug ("EPP cannot be set under performance policy\n" ); +return -EBUSY ; + } + + ret =amd_pstate_set_epp (cpudata, epp); + +return ret; +} +#endif +static inline int pstate_enable (bool enable) {return wrmsrl_safe (MSR_AMD_CPPC_ENABLE , enable);
@@ -70,11 +194,21 @@ static inline int pstate_enable(bool enable)static int cppc_enable (bool enable) {int cpu, ret =0 ; +struct cppc_perf_ctrls perf_ctrls;for_each_present_cpu (cpu) { ret =cppc_set_enable (cpu, enable);if (ret)return ret; + +/* Enable autonomous mode for EPP */ +if (!cppc_active) { +/* Set desired perf as zero to allow EPP firmware control */ + perf_ctrls.desired_perf =0 ; + ret =cppc_set_perf (cpu, &perf_ctrls); +if (ret) +return ret; + } }return ret;
@@ -417,7 +551,7 @@ static void amd_pstate_boost_init(struct amd_cpudata *cpudata)return ; cpudata->boost_supported = true; - amd_pstate_driver.boost_enabled = true; + default_pstate_driver->boost_enabled = true; }static void amd_perf_ctl_reset (unsigned int cpu)
@@ -591,10 +725,61 @@ static ssize_t show_amd_pstate_highest_perf(struct cpufreq_policy *policy,return sprintf (&buf[0 ],"%u\n" , perf); } +static ssize_t show_energy_performance_available_preferences ( +struct cpufreq_policy *policy,char *buf) +{ +int i =0 ; +int ret =0 ; + +while (energy_perf_strings[i] !=NULL ) + ret +=sysfs_emit (buf,"%s" , energy_perf_strings[i++]); + + ret +=sysfs_emit (buf,"\n" ); + +return ret; +} + +static ssize_t store_energy_performance_preference ( +struct cpufreq_policy *policy,const char *buf,size_t count) +{ +struct amd_cpudata *cpudata = policy->driver_data; +char str_preference[21 ]; +ssize_t ret; + + ret =sscanf (buf,"%20s" , str_preference); +if (ret !=1 ) +return -EINVAL ; + + ret =match_string (energy_perf_strings,-1 , str_preference); +if (ret <0 ) +return -EINVAL ; + +mutex_lock (&amd_pstate_limits_lock); + ret =amd_pstate_set_energy_pref_index (cpudata, ret); +mutex_unlock (&amd_pstate_limits_lock); + +return ret ?: count; +} + +static ssize_t show_energy_performance_preference ( +struct cpufreq_policy *policy,char *buf) +{ +struct amd_cpudata *cpudata = policy->driver_data; +int preference; + + preference =amd_pstate_get_energy_pref_index (cpudata); +if (preference <0 ) +return preference; + +return sysfs_emit (buf,"%s\n" , energy_perf_strings[preference]); +} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);cpufreq_freq_attr_ro (amd_pstate_highest_perf); +cpufreq_freq_attr_rw (energy_performance_preference); +cpufreq_freq_attr_ro (energy_performance_available_preferences);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,
@@ -603,6 +788,429 @@ static struct freq_attr *amd_pstate_attr[] = { NULL, }; +static struct freq_attr *amd_pstate_epp_attr[] = { + &amd_pstate_max_freq, + &amd_pstate_lowest_nonlinear_freq, + &amd_pstate_highest_perf, + &energy_performance_preference, + &energy_performance_available_preferences, +NULL , +}; + +static inline void update_boost_state (void ) +{ +u64 misc_en; +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[0 ]; +rdmsrl (MSR_K7_HWCR , misc_en); + global_params.cppc_boost_disabled = misc_en &BIT_ULL (25 ); +} + +static bool amd_pstate_acpi_pm_profile_server (void ) +{ +if (acpi_gbl_FADT.preferred_profile ==PM_ENTERPRISE_SERVER || + acpi_gbl_FADT.preferred_profile ==PM_PERFORMANCE_SERVER ) +return true; + +return false; +} + +static int amd_pstate_init_cpu (unsigned int cpunum) +{ +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[cpunum]; +if (!cpudata) { + cpudata =kzalloc (sizeof (*cpudata),GFP_KERNEL ); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data[cpunum], cpudata); + + cpudata->cpu = cpunum; + +if (cppc_active) { +if (amd_pstate_acpi_pm_profile_server ()) + cppc_boost = true; + } + + } + cpudata->epp_powersave = -EINVAL ; + cpudata->epp_policy =0 ; +pr_debug ("controlling: cpu %d\n" , cpunum); +return 0 ; +} + +static int __amd_pstate_cpu_init (struct cpufreq_policy *policy) +{ +int min_freq, max_freq, nominal_freq, lowest_nonlinear_freq, ret; +struct amd_cpudata *cpudata; +struct device *dev; +int rc; +u64 value; + + rc =amd_pstate_init_cpu (policy->cpu); +if (rc) +return rc; + + cpudata = all_cpu_data[policy->cpu]; + + dev =get_cpu_device (policy->cpu); +if (!dev) + goto free_cpudata1; + + rc =amd_pstate_init_perf (cpudata); +if (rc) + goto free_cpudata1; + + min_freq =amd_get_min_freq (cpudata); + max_freq =amd_get_max_freq (cpudata); + nominal_freq =amd_get_nominal_freq (cpudata); + lowest_nonlinear_freq =amd_get_lowest_nonlinear_freq (cpudata); +if (min_freq <0 || max_freq <0 || min_freq > max_freq) { +dev_err (dev,"min_freq(%d) or max_freq(%d) value is incorrect\n" , + min_freq, max_freq); + ret = -EINVAL ; + goto free_cpudata1; + } + + policy->min = min_freq; + policy->max = max_freq; + + policy->cpuinfo.min_freq = min_freq; + policy->cpuinfo.max_freq = max_freq; +/* It will be updated by governor */ + policy->cur = policy->cpuinfo.min_freq; + +/* Initial processor data capability frequencies */ + cpudata->max_freq = max_freq; + cpudata->min_freq = min_freq; + cpudata->nominal_freq = nominal_freq; + cpudata->lowest_nonlinear_freq = lowest_nonlinear_freq; + + policy->driver_data = cpudata; + +update_boost_state (); + cpudata->epp_cached =amd_pstate_get_epp (cpudata, value); + + policy->min = policy->cpuinfo.min_freq; + policy->max = policy->cpuinfo.max_freq; + +if (boot_cpu_has (X86_FEATURE_CPPC )) + policy->fast_switch_possible = true; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { + ret =rdmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , &value); +if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret =rdmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_CAP1 , &value); +if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_cap1_cached, value); + } +amd_pstate_boost_init (cpudata); + +return 0 ; + +free_cpudata1: +kfree (cpudata); +return ret; +} + +static int amd_pstate_epp_cpu_init (struct cpufreq_policy *policy) +{ +int ret; + + ret =__amd_pstate_cpu_init (policy); +if (ret) +return ret; +/* +* Set the policy to powersave to provide a valid fallback value in case +* the default cpufreq governor is neither powersave nor performance. +*/ + policy->policy =CPUFREQ_POLICY_POWERSAVE ; + +return 0 ; +} + +static int amd_pstate_epp_cpu_exit (struct cpufreq_policy *policy) +{ +pr_debug ("CPU %d exiting\n" , policy->cpu); + policy->fast_switch_possible = false; +return 0 ; +} + +static void amd_pstate_update_max_freq (unsigned int cpu) +{ +struct cpufreq_policy *policy = policy =cpufreq_cpu_get (cpu); + +if (!policy) +return ; + +refresh_frequency_limits (policy); +cpufreq_cpu_put (policy); +} + +static void amd_pstate_epp_update_limits (unsigned int cpu) +{ +mutex_lock (&amd_pstate_driver_lock); +update_boost_state (); +if (global_params.cppc_boost_disabled) { +for_each_possible_cpu (cpu) +amd_pstate_update_max_freq (cpu); + }else { +cpufreq_update_policy (cpu); + } +mutex_unlock (&amd_pstate_driver_lock); +} + +static int cppc_boost_hold_time_ns =3 *NSEC_PER_MSEC ; + +static inline void amd_pstate_boost_up (struct amd_cpudata *cpudata) +{ +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u32 max_limit = (hwp_req &0xff ); +u32 min_limit = (hwp_req &0xff00 ) >>8 ; +u32 boost_level1; + +/* If max and min are equal or already at max, nothing to boost */ +if (max_limit == min_limit) +return ; + +/* Set boost max and min to initial value */ +if (!cpudata->cppc_boost_min) + cpudata->cppc_boost_min = min_limit; + + boost_level1 = ((AMD_CPPC_NOMINAL_PERF (hwp_cap) + min_limit) >>1 ); + +if (cpudata->cppc_boost_min < boost_level1) + cpudata->cppc_boost_min = boost_level1; +else if (cpudata->cppc_boost_min <AMD_CPPC_NOMINAL_PERF (hwp_cap)) + cpudata->cppc_boost_min =AMD_CPPC_NOMINAL_PERF (hwp_cap); +else if (cpudata->cppc_boost_min ==AMD_CPPC_NOMINAL_PERF (hwp_cap)) + cpudata->cppc_boost_min = max_limit; +else +return ; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (cpudata->cppc_boost_min); +wrmsrl (MSR_AMD_CPPC_REQ , hwp_req); + cpudata->last_update = cpudata->sample.time; +} + +static inline void amd_pstate_boost_down (struct amd_cpudata *cpudata) +{ +bool expired; + +if (cpudata->cppc_boost_min) { + expired =time_after64 (cpudata->sample.time, cpudata->last_update + + cppc_boost_hold_time_ns); + +if (expired) { +wrmsrl (MSR_AMD_CPPC_REQ , cpudata->cppc_req_cached); + cpudata->cppc_boost_min =0 ; + } + } + + cpudata->last_update = cpudata->sample.time; +} + +static inline void amd_pstate_boost_update_util (struct amd_cpudata *cpudata, +u64 time) +{ + cpudata->sample.time = time; +if (smp_processor_id () != cpudata->cpu) +return ; + +if (cpudata->sched_flags &SCHED_CPUFREQ_IOWAIT ) { +bool do_io = false; + + cpudata->sched_flags =0 ; +/* +* Set iowait_boost flag and update time. Since IO WAIT flag +* is set all the time, we can't just conclude that there is +* some IO bound activity is scheduled on this CPU with just +* one occurrence. If we receive at least two in two +* consecutive ticks, then we treat as boost candidate. +* This is leveraged from Intel Pstate driver. +*/ +if (time_before64 (time, cpudata->last_io_update +2 *TICK_NSEC )) + do_io = true; + + cpudata->last_io_update = time; + +if (do_io) +amd_pstate_boost_up (cpudata); + + }else { +amd_pstate_boost_down (cpudata); + } +} + +static inline void amd_pstate_cppc_update_hook (struct update_util_data *data, +u64 time,unsigned int flags) +{ +struct amd_cpudata *cpudata =container_of (data, + struct amd_cpudata, update_util); + + cpudata->sched_flags |= flags; + +if (smp_processor_id () == cpudata->cpu) +amd_pstate_boost_update_util (cpudata, time); +} + +static void amd_pstate_clear_update_util_hook (unsigned int cpu) +{ +struct amd_cpudata *cpudata = all_cpu_data[cpu]; + +if (!cpudata->update_util_set) +return ; + +cpufreq_remove_update_util_hook (cpu); + cpudata->update_util_set = false; +synchronize_rcu (); +} + +static void amd_pstate_set_update_util_hook (unsigned int cpu_num) +{ +struct amd_cpudata *cpudata = all_cpu_data[cpu_num]; + +if (!cppc_boost) { +if (cpudata->update_util_set) +amd_pstate_clear_update_util_hook (cpudata->cpu); +return ; + } + +if (cpudata->update_util_set) +return ; + + cpudata->sample.time =0 ; +cpufreq_add_update_util_hook (cpu_num, &cpudata->update_util, + amd_pstate_cppc_update_hook); + cpudata->update_util_set = true; +} + +static void amd_pstate_epp_init (unsigned int cpu) +{ +struct amd_cpudata *cpudata = all_cpu_data[cpu]; +u32 max_perf, min_perf; +u64 value; +s16 epp; +int ret; + + max_perf =READ_ONCE (cpudata->highest_perf); + min_perf =READ_ONCE (cpudata->lowest_perf); + + value =READ_ONCE (cpudata->cppc_req_cached); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) + min_perf = max_perf; + +/* Initial min/max values for CPPC Performance Controls Register */ + value &= ~AMD_CPPC_MIN_PERF (~0L ); + value |=AMD_CPPC_MIN_PERF (min_perf); + + value &= ~AMD_CPPC_MAX_PERF (~0L ); + value |=AMD_CPPC_MAX_PERF (max_perf); + +/* CPPC EPP feature require to set zero to the desire perf bit */ + value &= ~AMD_CPPC_DES_PERF (~0L ); + value |=AMD_CPPC_DES_PERF (0 ); + +if (cpudata->epp_policy == cpudata->policy) + goto skip_epp; + + cpudata->epp_policy = cpudata->policy; + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { + epp =amd_pstate_get_epp (cpudata, value); + cpudata->epp_powersave = epp; +if (epp <0 ) + goto skip_epp; +/* force the epp value to be zero for performance policy */ + epp =0 ; + }else { +if (cpudata->epp_powersave <0 ) + goto skip_epp; +/* Get BIOS pre-defined epp value */ + epp =amd_pstate_get_epp (cpudata, value); +if (epp) + goto skip_epp; + epp = cpudata->epp_powersave; + } +/* Set initial EPP value */ +if (boot_cpu_has (X86_FEATURE_CPPC )) { + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; + } + +skip_epp: +WRITE_ONCE (cpudata->cppc_req_cached, value); + ret =wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); +if (!ret) + cpudata->epp_cached = epp; +} + +static void amd_pstate_set_max_limits (struct amd_cpudata *cpudata) +{ +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u32 max_limit = (hwp_cap >>24 ) &0xff ; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (max_limit); +wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , hwp_req); +} + +static int amd_pstate_epp_set_policy (struct cpufreq_policy *policy) +{ +struct amd_cpudata *cpudata; + +if (!policy->cpuinfo.max_freq) +return -ENODEV ; + +pr_debug ("set_policy: cpuinfo.max %u policy->max %u\n" , + policy->cpuinfo.max_freq, policy->max); + + cpudata = all_cpu_data[policy->cpu]; + cpudata->policy = policy->policy; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +mutex_lock (&amd_pstate_limits_lock); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { +amd_pstate_clear_update_util_hook (policy->cpu); +amd_pstate_set_max_limits (cpudata); + }else { +amd_pstate_set_update_util_hook (policy->cpu); + } + +if (boot_cpu_has (X86_FEATURE_CPPC )) +amd_pstate_epp_init (policy->cpu); + +mutex_unlock (&amd_pstate_limits_lock); + } + +return 0 ; +} + +static void amd_pstate_verify_cpu_policy (struct amd_cpudata *cpudata, +struct cpufreq_policy_data *policy) +{ +update_boost_state (); +cpufreq_verify_within_cpu_limits (policy); +} + +static int amd_pstate_epp_verify_policy (struct cpufreq_policy_data *policy) +{ +amd_pstate_verify_cpu_policy (all_cpu_data[policy->cpu], policy); +pr_debug ("policy_max =%d, policy_min=%d\n" , policy->max, policy->min); +return 0 ; +} +static struct cpufreq_driver amd_pstate_driver = { .flags =CPUFREQ_CONST_LOOPS |CPUFREQ_NEED_UPDATE_LIMITS , .verify = amd_pstate_verify,
@@ -616,8 +1224,20 @@ static struct cpufreq_driver amd_pstate_driver = { .attr = amd_pstate_attr, }; +static struct cpufreq_driver amd_pstate_epp_driver = { + .flags =CPUFREQ_CONST_LOOPS , + .verify = amd_pstate_epp_verify_policy, + .setpolicy = amd_pstate_epp_set_policy, + .init = amd_pstate_epp_cpu_init, + .exit = amd_pstate_epp_cpu_exit, + .update_limits = amd_pstate_epp_update_limits, + .name ="amd_pstate_epp" , + .attr = amd_pstate_epp_attr, +}; +static int __init amd_pstate_init (void ) { +static struct amd_cpudata **cpudata;int ret;if (boot_cpu_data.x86_vendor !=X86_VENDOR_AMD )
@@ -644,7 +1264,8 @@ static int __init amd_pstate_init(void)/* capability check */ if (boot_cpu_has (X86_FEATURE_CPPC )) {pr_debug ("AMD CPPC MSR based functionality is supported\n" ); - amd_pstate_driver.adjust_perf = amd_pstate_adjust_perf; +if (!cppc_active) + default_pstate_driver->adjust_perf = amd_pstate_adjust_perf; }else {pr_debug ("AMD CPPC shared memory based functionality is supported\n" );static_call_update (amd_pstate_enable, cppc_enable);
@@ -652,6 +1273,10 @@ static int __init amd_pstate_init(void)static_call_update (amd_pstate_update_perf, cppc_update_perf); } + cpudata =vzalloc (array_size (sizeof (void *),num_possible_cpus ())); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data, cpudata);/* enable amd pstate feature */ ret =amd_pstate_enable (true);if (ret) {
@@ -659,9 +1284,9 @@ static int __init amd_pstate_init(void)return ret; } - ret =cpufreq_register_driver (&amd_pstate_driver); + ret =cpufreq_register_driver (default_pstate_driver);if (ret) -pr_err ("failed to register amd_pstate_driver with return %d\n" , +pr_err ("failed to register amd pstate driver with return %d\n" , ret);return ret;
@@ -676,8 +1301,14 @@ static int __init amd_pstate_param(char *str)if (!strcmp (str,"disable" )) { cppc_load =0 ;pr_info ("driver is explicitly disabled\n" ); - }else if (!strcmp (str,"passive" )) + }else if (!strcmp (str,"passive" )) { cppc_load =1 ; + default_pstate_driver = &amd_pstate_driver; + }else if (!strcmp (str,"active" )) { + cppc_active =1 ; + cppc_load =1 ; + default_pstate_driver = &amd_pstate_epp_driver; + }return 0 ; }
include/linux/amd-pstate.h +35 -0
@@ -25,6 +25,7 @@ struct amd_aperf_mperf {u64 aperf;u64 mperf;u64 tsc; +u64 time; };/**
@@ -47,6 +48,18 @@ struct amd_aperf_mperf {* @prev: Last Aperf/Mperf/tsc count value read from register * @freq: current cpu frequency value * @boost_supported: check whether the Processor or SBIOS supports boost mode +* @epp_powersave: Last saved CPPC energy performance preference +when policy switched to performance +* @epp_policy: Last saved policy used to set energy-performance preference +* @epp_cached: Cached CPPC energy-performance preference value +* @policy: Cpufreq policy value +* @sched_flags: Store scheduler flags for possible cross CPU update +* @update_util_set: CPUFreq utility callback is set +* @last_update: Time stamp of the last performance state update +* @cppc_boost_min: Last CPPC boosted min performance state +* @cppc_cap1_cached: Cached value of the last CPPC Capabilities MSR +* @update_util: Cpufreq utility callback information +* @sample: the stored performance sample * * The amd_cpudata is key private data for each CPU thread in AMD P-State, and * represents all the attributes and goals that AMD P-State requests at runtime.
@@ -72,6 +85,28 @@ struct amd_cpudata {u64 freq;bool boost_supported; + +/* EPP feature related attributes*/ +s16 epp_powersave; +s16 epp_policy; +s16 epp_cached; +u32 policy; +u32 sched_flags; +bool update_util_set; +u64 last_update; +u64 last_io_update; +u32 cppc_boost_min; +u64 cppc_cap1_cached; +struct update_util_data update_util; + struct amd_aperf_mperf sample; +}; + +/** +* struct amd_pstate_params - global parameters for the performance control +* @ cppc_boost_disabled wheher the core performance boost disabled +*/ +struct amd_pstate_params { +bool cppc_boost_disabled; };#endif /* _LINUX_AMD_PSTATE_H */
Signature · 1 line
2.34.1
Limonciello, Mario
maintainerRe: [PATCH v6 04/11] cpufreq: amd_pstate: implement Pstate EPP support for the AMD processors
Quoted 57 lines · Perry Yuan
From: Perry Yuan <[email protected]>
Add EPP driver support for AMD SoCs which support a dedicated MSR for CPPC. EPP is used by the DPM controller to configure the frequency that a core operates at during short periods of activity.
The SoC EPP targets are configured on a scale from 0 to 255 where 0 represents maximum performance and 255 represents maximum efficiency.
The amd-pstate driver exports profile string names to userspace that are tied to specific EPP values.
The
balance_performancestring (0x80) provides the best balance for efficiency versus power on most systems, but users can choose other strings to meet their needs as well.$ cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_available_preferences default performance balance_performance balance_power power$ cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference balance_performanceTo enable the driver,it needs to add
amd_pstate=activeto kernel command line and kernel will load the active mode epp driverSigned-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/amd-pstate.c | 643 ++++++++++++++++++++++++++++++++++- include/linux/amd-pstate.h | 35 ++ 2 files changed, 672 insertions(+), 6 deletions(-)drivers/cpufreq/amd-pstate.c +5
-1@@ -37,9 +37,12 @@#include <linux/uaccess.h> #include <linux/static_call.h> #include <linux/amd-pstate.h> +#include <linux/cpufreq_common.h> +#ifdef CONFIG_ACPI #include <acpi/processor.h> #include <acpi/cppc_acpi.h> +#endif #include <asm/msr.h> #include <asm/processor.h> @@ -59,9 +62,130 @@* we disable it by default to go acpi-cpufreq on these processors and add a * module parameter to be able to enable it manually for debugging. */ -static struct cpufreq_driver amd_pstate_driver; +static bool cppc_active;static int cppc_load__initdata ; +static struct cpufreq_driver *default_pstate_driver;
drivers/cpufreq/amd-pstate.c line 78
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+static struct amd_cpudata **all_cpu_data; +static struct amd_pstate_params global_params; + +static DEFINE_MUTEX (amd_pstate_limits_lock); +static DEFINE_MUTEX (amd_pstate_driver_lock); + +static bool cppc_boost__read_mostly ; +struct kobject *amd_pstate_kobj; + +#ifdef CONFIG_ACPI_CPPC_LIB
Rather than making this conditional I would think that amd-pstate should probably depend on or select CONFIG_ACPI_CPPC_LIB, no?
Quoted 185 lines
drivers/cpufreq/amd-pstate.c +158
-1+static s16 amd_pstate_get_epp (struct amd_cpudata *cpudata,u64 cppc_req_cached) +{ +s16 epp; +struct cppc_perf_caps perf_caps; +int ret; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +if (!cppc_req_cached) { + epp =rdmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , + &cppc_req_cached); +if (epp) +return epp; + } + epp = (cppc_req_cached >>24 ) &0xFF ; + }else { + ret =cppc_get_epp_caps (cpudata->cpu, &perf_caps); +if (ret <0 ) { +pr_debug ("Could not retrieve energy perf value (%d)\n" , ret); +return -EIO ; + } + epp = (s16 ) perf_caps.energy_perf; + } + +return epp; +} +#endif + +static int amd_pstate_get_energy_pref_index (struct amd_cpudata *cpudata) +{ +s16 epp; +int index = -EINVAL ; + + epp =amd_pstate_get_epp (cpudata,0 ); +if (epp <0 ) +return epp; + +switch (epp) { +case HWP_EPP_PERFORMANCE : + index =EPP_INDEX_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_PERFORMANCE : + index =EPP_INDEX_BALANCE_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_POWERSAVE : + index =EPP_INDEX_BALANCE_POWERSAVE ; +break ; +case HWP_EPP_POWERSAVE : + index =EPP_INDEX_POWERSAVE ; +break ; +default : +break ; + } + +return index; +} + +#ifdef CONFIG_ACPI_CPPC_LIB +static int amd_pstate_set_epp (struct amd_cpudata *cpudata,u32 epp) +{ +int ret; +struct cppc_perf_ctrls perf_ctrls; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +u64 value =READ_ONCE (cpudata->cppc_req_cached); + + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret =wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); +if (!ret) + cpudata->epp_cached = epp; + }else { + perf_ctrls.energy_perf = epp; + ret =cppc_set_epp_perf (cpudata->cpu, &perf_ctrls,1 ); +if (ret) { +pr_debug ("failed to set energy perf value (%d)\n" , ret); +return ret; + } + cpudata->epp_cached = epp; + } + +return ret; +} + +static int amd_pstate_set_energy_pref_index (struct amd_cpudata *cpudata, +int pref_index) +{ +int epp = -EINVAL ; +int ret; + +if (!pref_index) { +pr_debug ("EPP pref_index is invalid\n" ); +return -EINVAL ; + } + +if (epp == -EINVAL ) + epp = epp_values[pref_index]; + +if (epp >0 && cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { +pr_debug ("EPP cannot be set under performance policy\n" ); +return -EBUSY ; + } + + ret =amd_pstate_set_epp (cpudata, epp); + +return ret; +} +#endif +static inline int pstate_enable (bool enable) {return wrmsrl_safe (MSR_AMD_CPPC_ENABLE , enable);@@ -70,11 +194,21 @@ static inline int pstate_enable(bool enable)static int cppc_enable (bool enable) {int cpu, ret =0 ; +struct cppc_perf_ctrls perf_ctrls;for_each_present_cpu (cpu) { ret =cppc_set_enable (cpu, enable);if (ret)return ret; + +/* Enable autonomous mode for EPP */ +if (!cppc_active) { +/* Set desired perf as zero to allow EPP firmware control */ + perf_ctrls.desired_perf =0 ; + ret =cppc_set_perf (cpu, &perf_ctrls); +if (ret) +return ret; + } }return ret;@@ -417,7 +551,7 @@ static void amd_pstate_boost_init(struct amd_cpudata *cpudata)return ; cpudata->boost_supported = true; - amd_pstate_driver.boost_enabled = true; + default_pstate_driver->boost_enabled = true; }static void amd_perf_ctl_reset (unsigned int cpu)@@ -591,10 +725,61 @@ static ssize_t show_amd_pstate_highest_perf(struct cpufreq_policy *policy,return sprintf (&buf[0 ],"%u\n" , perf); } +static ssize_t show_energy_performance_available_preferences ( +struct cpufreq_policy *policy,char *buf) +{ +int i =0 ; +int ret =0 ; + +while (energy_perf_strings[i] !=NULL ) + ret +=sysfs_emit (buf,"%s" , energy_perf_strings[i++]); + + ret +=sysfs_emit (buf,"\n" ); + +return ret; +} + +static ssize_t store_energy_performance_preference ( +struct cpufreq_policy *policy,const char *buf,size_t count) +{ +struct amd_cpudata *cpudata = policy->driver_data; +char str_preference[21 ]; +ssize_t ret; + + ret =sscanf (buf,"%20s" , str_preference); +if (ret !=1 ) +return -EINVAL ; + + ret =match_string (energy_perf_strings,-1 , str_preference); +if (ret <0 ) +return -EINVAL ; + +mutex_lock (&amd_pstate_limits_lock); + ret =amd_pstate_set_energy_pref_index (cpudata, ret); +mutex_unlock (&amd_pstate_limits_lock); + +return ret ?: count; +} + +static ssize_t show_energy_performance_preference(
drivers/cpufreq/amd-pstate.c static ssize_t show_amd_pstate_highest_perf(struct cpufreq_policy *policy, · line 774
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ struct cpufreq_policy *policy, char *buf) +{ + struct amd_cpudata *cpudata = policy->driver_data; +int preference; + + preference =amd_pstate_get_energy_pref_index (cpudata); +if (preference <0 ) +return preference; + +return sysfs_emit (buf,"%s\n" , energy_perf_strings[preference]);
You've got an extra space after "return".
Quoted 32 lines
drivers/cpufreq/amd-pstate.c +21
-0+} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);cpufreq_freq_attr_ro (amd_pstate_highest_perf); +cpufreq_freq_attr_rw (energy_performance_preference); +cpufreq_freq_attr_ro (energy_performance_available_preferences);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,@@ -603,6 +788,429 @@ static struct freq_attr *amd_pstate_attr[] = { NULL, }; +static struct freq_attr *amd_pstate_epp_attr[] = { + &amd_pstate_max_freq, + &amd_pstate_lowest_nonlinear_freq, + &amd_pstate_highest_perf, + &energy_performance_preference, + &energy_performance_available_preferences, +NULL , +}; + +static inline void update_boost_state (void ) +{ +u64 misc_en; +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[0 ]; +rdmsrl (MSR_K7_HWCR , misc_en); + global_params.cppc_boost_disabled = misc_en &BIT_ULL (25 );
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 817
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+} + +static bool amd_pstate_acpi_pm_profile_server (void ) +{ +if (acpi_gbl_FADT.preferred_profile ==PM_ENTERPRISE_SERVER || + acpi_gbl_FADT.preferred_profile ==PM_PERFORMANCE_SERVER ) +return true; + +return false; +}
Right now this is only used to control boost, but I wonder if this should instad also control the default EPP policy as all?
Quoted 528 lines
drivers/cpufreq/amd-pstate.c +422
-4+ +static int amd_pstate_init_cpu (unsigned int cpunum) +{ +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[cpunum]; +if (!cpudata) { + cpudata =kzalloc (sizeof (*cpudata),GFP_KERNEL ); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data[cpunum], cpudata); + + cpudata->cpu = cpunum; + +if (cppc_active) { +if (amd_pstate_acpi_pm_profile_server ()) + cppc_boost = true; + } + + } + cpudata->epp_powersave = -EINVAL ; + cpudata->epp_policy = 0; > + pr_debug("controlling: cpu %d\n", cpunum); +return 0 ; +} + +static int __amd_pstate_cpu_init (struct cpufreq_policy *policy) +{ +int min_freq, max_freq, nominal_freq, lowest_nonlinear_freq, ret; +struct amd_cpudata *cpudata; +struct device *dev; +int rc; +u64 value; + + rc =amd_pstate_init_cpu (policy->cpu); +if (rc) +return rc; + + cpudata = all_cpu_data[policy->cpu]; + + dev =get_cpu_device (policy->cpu); +if (!dev) + goto free_cpudata1; + + rc =amd_pstate_init_perf (cpudata); +if (rc) + goto free_cpudata1; + + min_freq =amd_get_min_freq (cpudata); + max_freq =amd_get_max_freq (cpudata); + nominal_freq =amd_get_nominal_freq (cpudata); + lowest_nonlinear_freq =amd_get_lowest_nonlinear_freq (cpudata); +if (min_freq <0 || max_freq <0 || min_freq > max_freq) { +dev_err (dev,"min_freq(%d) or max_freq(%d) value is incorrect\n" , + min_freq, max_freq); + ret = -EINVAL ; + goto free_cpudata1; + } + + policy->min = min_freq; + policy->max = max_freq; + + policy->cpuinfo.min_freq = min_freq; + policy->cpuinfo.max_freq = max_freq; +/* It will be updated by governor */ + policy->cur = policy->cpuinfo.min_freq; + +/* Initial processor data capability frequencies */ + cpudata->max_freq = max_freq; + cpudata->min_freq = min_freq; + cpudata->nominal_freq = nominal_freq; + cpudata->lowest_nonlinear_freq = lowest_nonlinear_freq; + + policy->driver_data = cpudata; + +update_boost_state (); + cpudata->epp_cached =amd_pstate_get_epp (cpudata, value); + + policy->min = policy->cpuinfo.min_freq; + policy->max = policy->cpuinfo.max_freq; + +if (boot_cpu_has (X86_FEATURE_CPPC )) + policy->fast_switch_possible = true; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { + ret =rdmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , &value); +if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret =rdmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_CAP1 , &value); +if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_cap1_cached, value); + } +amd_pstate_boost_init (cpudata); + +return 0 ; + +free_cpudata1: +kfree (cpudata); +return ret; +} + +static int amd_pstate_epp_cpu_init (struct cpufreq_policy *policy) +{ +int ret; + + ret =__amd_pstate_cpu_init (policy); +if (ret) +return ret; +/* +* Set the policy to powersave to provide a valid fallback value in case +* the default cpufreq governor is neither powersave nor performance. +*/ + policy->policy =CPUFREQ_POLICY_POWERSAVE ; + +return 0 ; +} + +static int amd_pstate_epp_cpu_exit (struct cpufreq_policy *policy) +{ +pr_debug ("CPU %d exiting\n" , policy->cpu); + policy->fast_switch_possible = false; +return 0 ; +} + +static void amd_pstate_update_max_freq (unsigned int cpu) +{ +struct cpufreq_policy *policy = policy =cpufreq_cpu_get (cpu); + +if (!policy) +return ; + +refresh_frequency_limits (policy); +cpufreq_cpu_put (policy); +} + +static void amd_pstate_epp_update_limits (unsigned int cpu) +{ +mutex_lock (&amd_pstate_driver_lock); +update_boost_state (); +if (global_params.cppc_boost_disabled) { +for_each_possible_cpu (cpu) +amd_pstate_update_max_freq (cpu); + }else { +cpufreq_update_policy (cpu); + } +mutex_unlock (&amd_pstate_driver_lock); +} + +static int cppc_boost_hold_time_ns =3 *NSEC_PER_MSEC ; + +static inline void amd_pstate_boost_up (struct amd_cpudata *cpudata) +{ +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u32 max_limit = (hwp_req &0xff ); +u32 min_limit = (hwp_req &0xff00 ) >>8 ; +u32 boost_level1; + +/* If max and min are equal or already at max, nothing to boost */ +if (max_limit == min_limit) +return ; + +/* Set boost max and min to initial value */ +if (!cpudata->cppc_boost_min) + cpudata->cppc_boost_min = min_limit; + + boost_level1 = ((AMD_CPPC_NOMINAL_PERF (hwp_cap) + min_limit) >>1 ); + +if (cpudata->cppc_boost_min < boost_level1) + cpudata->cppc_boost_min = boost_level1; +else if (cpudata->cppc_boost_min <AMD_CPPC_NOMINAL_PERF (hwp_cap)) + cpudata->cppc_boost_min =AMD_CPPC_NOMINAL_PERF (hwp_cap); +else if (cpudata->cppc_boost_min ==AMD_CPPC_NOMINAL_PERF (hwp_cap)) + cpudata->cppc_boost_min = max_limit; +else +return ; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (cpudata->cppc_boost_min); +wrmsrl (MSR_AMD_CPPC_REQ , hwp_req); + cpudata->last_update = cpudata->sample.time; +} + +static inline void amd_pstate_boost_down (struct amd_cpudata *cpudata) +{ +bool expired; + +if (cpudata->cppc_boost_min) { + expired =time_after64 (cpudata->sample.time, cpudata->last_update + + cppc_boost_hold_time_ns); + +if (expired) { +wrmsrl (MSR_AMD_CPPC_REQ , cpudata->cppc_req_cached); + cpudata->cppc_boost_min =0 ; + } + } + + cpudata->last_update = cpudata->sample.time; +} + +static inline void amd_pstate_boost_update_util (struct amd_cpudata *cpudata, +u64 time) +{ + cpudata->sample.time = time; +if (smp_processor_id () != cpudata->cpu) +return ; + +if (cpudata->sched_flags &SCHED_CPUFREQ_IOWAIT ) { +bool do_io = false; + + cpudata->sched_flags =0 ; +/* +* Set iowait_boost flag and update time. Since IO WAIT flag +* is set all the time, we can't just conclude that there is +* some IO bound activity is scheduled on this CPU with just +* one occurrence. If we receive at least two in two +* consecutive ticks, then we treat as boost candidate. +* This is leveraged from Intel Pstate driver. +*/ +if (time_before64 (time, cpudata->last_io_update +2 *TICK_NSEC )) + do_io = true; + + cpudata->last_io_update = time; + +if (do_io) +amd_pstate_boost_up (cpudata); + + }else { +amd_pstate_boost_down (cpudata); + } +} + +static inline void amd_pstate_cppc_update_hook (struct update_util_data *data, +u64 time,unsigned int flags) +{ +struct amd_cpudata *cpudata =container_of (data, + struct amd_cpudata, update_util); + + cpudata->sched_flags |= flags; + +if (smp_processor_id () == cpudata->cpu) +amd_pstate_boost_update_util (cpudata, time); +} + +static void amd_pstate_clear_update_util_hook (unsigned int cpu) +{ +struct amd_cpudata *cpudata = all_cpu_data[cpu]; + +if (!cpudata->update_util_set) +return ; + +cpufreq_remove_update_util_hook (cpu); + cpudata->update_util_set = false; +synchronize_rcu (); +} + +static void amd_pstate_set_update_util_hook (unsigned int cpu_num) +{ +struct amd_cpudata *cpudata = all_cpu_data[cpu_num]; + +if (!cppc_boost) { +if (cpudata->update_util_set) +amd_pstate_clear_update_util_hook (cpudata->cpu); +return ; + } + +if (cpudata->update_util_set) +return ; + + cpudata->sample.time =0 ; +cpufreq_add_update_util_hook (cpu_num, &cpudata->update_util, + amd_pstate_cppc_update_hook); + cpudata->update_util_set = true; +} + +static void amd_pstate_epp_init (unsigned int cpu) +{ +struct amd_cpudata *cpudata = all_cpu_data[cpu]; +u32 max_perf, min_perf; +u64 value; +s16 epp; +int ret; + + max_perf =READ_ONCE (cpudata->highest_perf); + min_perf =READ_ONCE (cpudata->lowest_perf); + + value =READ_ONCE (cpudata->cppc_req_cached); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) + min_perf = max_perf; + +/* Initial min/max values for CPPC Performance Controls Register */ + value &= ~AMD_CPPC_MIN_PERF (~0L ); + value |=AMD_CPPC_MIN_PERF (min_perf); + + value &= ~AMD_CPPC_MAX_PERF (~0L ); + value |=AMD_CPPC_MAX_PERF (max_perf); + +/* CPPC EPP feature require to set zero to the desire perf bit */ + value &= ~AMD_CPPC_DES_PERF (~0L ); + value |=AMD_CPPC_DES_PERF (0 ); + +if (cpudata->epp_policy == cpudata->policy) + goto skip_epp; + + cpudata->epp_policy = cpudata->policy; + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { + epp =amd_pstate_get_epp (cpudata, value); + cpudata->epp_powersave = epp; +if (epp <0 ) + goto skip_epp; +/* force the epp value to be zero for performance policy */ + epp =0 ; + }else { +if (cpudata->epp_powersave <0 ) + goto skip_epp; +/* Get BIOS pre-defined epp value */ + epp =amd_pstate_get_epp (cpudata, value); +if (epp) + goto skip_epp; + epp = cpudata->epp_powersave; + } +/* Set initial EPP value */ +if (boot_cpu_has (X86_FEATURE_CPPC )) { + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; + } + +skip_epp: +WRITE_ONCE (cpudata->cppc_req_cached, value); + ret =wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); +if (!ret) + cpudata->epp_cached = epp; +} + +static void amd_pstate_set_max_limits (struct amd_cpudata *cpudata) +{ +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u32 max_limit = (hwp_cap >>24 ) &0xff ; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (max_limit); +wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , hwp_req); +} + +static int amd_pstate_epp_set_policy (struct cpufreq_policy *policy) +{ +struct amd_cpudata *cpudata; + +if (!policy->cpuinfo.max_freq) +return -ENODEV ; + +pr_debug ("set_policy: cpuinfo.max %u policy->max %u\n" , + policy->cpuinfo.max_freq, policy->max); + + cpudata = all_cpu_data[policy->cpu]; + cpudata->policy = policy->policy; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +mutex_lock (&amd_pstate_limits_lock); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { +amd_pstate_clear_update_util_hook (policy->cpu); +amd_pstate_set_max_limits (cpudata); + }else { +amd_pstate_set_update_util_hook (policy->cpu); + } + +if (boot_cpu_has (X86_FEATURE_CPPC )) +amd_pstate_epp_init (policy->cpu); + +mutex_unlock (&amd_pstate_limits_lock); + } + +return 0 ; +} + +static void amd_pstate_verify_cpu_policy (struct amd_cpudata *cpudata, +struct cpufreq_policy_data *policy) +{ +update_boost_state (); +cpufreq_verify_within_cpu_limits (policy); +} + +static int amd_pstate_epp_verify_policy (struct cpufreq_policy_data *policy) +{ +amd_pstate_verify_cpu_policy (all_cpu_data[policy->cpu], policy); +pr_debug ("policy_max =%d, policy_min=%d\n" , policy->max, policy->min); +return 0 ; +} +static struct cpufreq_driver amd_pstate_driver = { .flags =CPUFREQ_CONST_LOOPS |CPUFREQ_NEED_UPDATE_LIMITS , .verify = amd_pstate_verify,@@ -616,8 +1224,20 @@ static struct cpufreq_driver amd_pstate_driver = { .attr = amd_pstate_attr, }; +static struct cpufreq_driver amd_pstate_epp_driver = { + .flags =CPUFREQ_CONST_LOOPS , + .verify = amd_pstate_epp_verify_policy, + .setpolicy = amd_pstate_epp_set_policy, + .init = amd_pstate_epp_cpu_init, + .exit = amd_pstate_epp_cpu_exit, + .update_limits = amd_pstate_epp_update_limits, + .name ="amd_pstate_epp" , + .attr = amd_pstate_epp_attr, +}; +static int __init amd_pstate_init (void ) { +static struct amd_cpudata **cpudata;int ret;if (boot_cpu_data.x86_vendor !=X86_VENDOR_AMD )@@ -644,7 +1264,8 @@ static int __init amd_pstate_init(void)/* capability check */ if (boot_cpu_has (X86_FEATURE_CPPC )) {pr_debug ("AMD CPPC MSR based functionality is supported\n" ); - amd_pstate_driver.adjust_perf = amd_pstate_adjust_perf; +if (!cppc_active) + default_pstate_driver->adjust_perf = amd_pstate_adjust_perf; }else {pr_debug ("AMD CPPC shared memory based functionality is supported\n" );static_call_update (amd_pstate_enable, cppc_enable);@@ -652,6 +1273,10 @@ static int __init amd_pstate_init(void)static_call_update (amd_pstate_update_perf, cppc_update_perf); } + cpudata =vzalloc (array_size (sizeof (void *),num_possible_cpus ())); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data, cpudata);/* enable amd pstate feature */ ret =amd_pstate_enable (true);if (ret) {@@ -659,9 +1284,9 @@ static int __init amd_pstate_init(void)return ret; } - ret =cpufreq_register_driver (&amd_pstate_driver); + ret =cpufreq_register_driver (default_pstate_driver);if (ret) -pr_err ("failed to register amd_pstate_driver with return %d\n" , +pr_err ("failed to register amd pstate driver with return %d\n" , ret);return ret;@@ -676,8 +1301,14 @@ static int __init amd_pstate_param(char *str)if (!strcmp (str,"disable" )) { cppc_load =0 ;pr_info ("driver is explicitly disabled\n" ); - }else if (!strcmp (str,"passive" )) + }else if (!strcmp (str,"passive" )) { cppc_load =1 ; + default_pstate_driver = &amd_pstate_driver; + }else if (!strcmp (str,"active" )) { + cppc_active =1 ; + cppc_load =1 ; + default_pstate_driver = &amd_pstate_epp_driver; + }return 0 ; }include/linux/amd-pstate.h +35
-0@@ -25,6 +25,7 @@ struct amd_aperf_mperf {u64 aperf;u64 mperf;u64 tsc; +u64 time; };/** @@ -47,6 +48,18 @@ struct amd_aperf_mperf {* @prev: Last Aperf/Mperf/tsc count value read from register * @freq: current cpu frequency value * @boost_supported: check whether the Processor or SBIOS supports boost mode +* @epp_powersave: Last saved CPPC energy performance preference +when policy switched to performance +* @epp_policy: Last saved policy used to set energy-performance preference +* @epp_cached: Cached CPPC energy-performance preference value +* @policy: Cpufreq policy value +* @sched_flags: Store scheduler flags for possible cross CPU update +* @update_util_set: CPUFreq utility callback is set +* @last_update: Time stamp of the last performance state update +* @cppc_boost_min: Last CPPC boosted min performance state +* @cppc_cap1_cached: Cached value of the last CPPC Capabilities MSR +* @update_util: Cpufreq utility callback information +* @sample: the stored performance sample * * The amd_cpudata is key private data for each CPU thread in AMD P-State, and * represents all the attributes and goals that AMD P-State requests at runtime. @@ -72,6 +85,28 @@ struct amd_cpudata {u64 freq;bool boost_supported; + +/* EPP feature related attributes*/ +s16 epp_powersave; +s16 epp_policy; +s16 epp_cached; +u32 policy; +u32 sched_flags; +bool update_util_set; +u64 last_update; +u64 last_io_update; +u32 cppc_boost_min; +u64 cppc_cap1_cached; +struct update_util_data update_util; + struct amd_aperf_mperf sample; +}; + +/** +* struct amd_pstate_params - global parameters for the performance control +* @ cppc_boost_disabled wheher the core performance boost disabled +*/ +struct amd_pstate_params { +bool cppc_boost_disabled; };#endif /* _LINUX_AMD_PSTATE_H */
Yuan, Perry
reviewerRE: [PATCH v6 04/11] cpufreq: amd_pstate: implement Pstate EPP support for the AMD processors
[AMD Official Use Only - General]
Hi Mario.
Quoted 82 lines
-----Original Message-----
From: Limonciello, Mario <[email protected]>
Sent: Saturday, December 3, 2022 1:36 AM
To: Yuan, Perry <[email protected]>; [email protected]; Huang, Ray <[email protected]>; [email protected]
Cc: Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH v6 04/11] cpufreq:amd_pstate: implement Pstate EPP support for the AMD processorsQuoted 8 lines · Perry Yuan
From: Perry Yuan <[email protected]>
Add EPP driver support for AMD SoCs which support a dedicated MSR for CPPC. EPP is used by the DPM controller to configure the frequency that a core operates at during short periods of activity.
The SoC EPP targets are configured on a scale from 0 to 255 where 0 represents maximum performance and 255 represents maximum
efficiency.
Quoted 10 lines
The amd-pstate driver exports profile string names to userspace that are tied to specific EPP values.
The
balance_performancestring (0x80) provides the best balance for efficiency versus power on most systems, but users can choose other strings to meet their needs as well.$ cat
/sys/devices/system/cpu/cpufreq/policy0/energy_performance_available_pQuoted 1 line
references default performance
balance_performancebalance_powerpower
Quoted 3 lines
$ cat
/sys/devices/system/cpu/cpufreq/policy0/energy_performance_preferenceQuoted 8 lines
balance_performanceTo enable the driver,it needs to add
amd_pstate=activeto kernel command line and kernel will load the active mode epp driverSigned-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/amd-pstate.c | 643++++++++++++++++++++++++++++++++++-
Quoted 5 lines
include/linux/amd-pstate.h | 35 ++ 2 files changed, 672 insertions(+), 6 deletions(-)(quoted diff) +0
-0
b/drivers/cpufreq/amd-pstate.cindex204e39006dda..5989d4d25d0f100644
Quoted 16 lines
drivers/cpufreq/amd-pstate.c +3
-0@@ -37,9 +37,12 @@#include <linux/uaccess.h> #include <linux/static_call.h> #include <linux/amd-pstate.h> +#include <linux/cpufreq_common.h> +#ifdef CONFIG_ACPI #include <acpi/processor.h> #include <acpi/cppc_acpi.h> +#endif #include <asm/msr.h> #include <asm/processor.h> drivers/cpufreq/amd-pstate.c line 62
Quoted 1 line
drivers/cpufreq/amd-pstate.c +0
-0@@ -59,9 +62,130 @@* we disable it by default to go acpi-cpufreq on these processors and add a
Quoted 6 lines
drivers/cpufreq/amd-pstate.c +1
-1* module parameter to be able to enable it manually for debugging. */ -static struct cpufreq_driver amd_pstate_driver; +static bool cppc_active;static int cppc_load__initdata ;
Quoted 13 lines
drivers/cpufreq/amd-pstate.c line 78
Quoted 11 lines
drivers/cpufreq/amd-pstate.c +11
-0+static struct cpufreq_driver *default_pstate_driver;static struct +amd_cpudata **all_cpu_data;static struct amd_pstate_params +global_params; + +static DEFINE_MUTEX (amd_pstate_limits_lock); +static DEFINE_MUTEX (amd_pstate_driver_lock); + +static bool cppc_boost__read_mostly ;struct kobject +*amd_pstate_kobj; + +#ifdef CONFIG_ACPI_CPPC_LIB Rather than making this conditional I would think that amd-pstate should probably depend on or select
CONFIG_ACPI_CPPC_LIB, no?
Yes, the Kconfig select CONFIG_ACPI_CPPC_LIB , I removed the checking in V7. Thanks for your review.
Perry.
Quoted 196 lines
drivers/cpufreq/amd-pstate.c
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +9
-0+static s16 amd_pstate_get_epp (struct amd_cpudata *cpudata,u64 +cppc_req_cached) { +s16 epp; +struct cppc_perf_caps perf_caps; +int ret; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +if (!cppc_req_cached) { + epp = rdmsrl_on_cpu(cpudata->cpu,
MSR_AMD_CPPC_REQ,drivers/cpufreq/amd-pstate.c
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +9
-0+ &cppc_req_cached); +if (epp) +return epp; + } + epp = (cppc_req_cached >>24 ) &0xFF ; + }else { + ret =cppc_get_epp_caps (cpudata->cpu, &perf_caps); +if (ret <0 ) { + pr_debug("Could not retrieve energy perf value(%d)\n", ret);
Quoted 41 lines
drivers/cpufreq/amd-pstate.c +41
-0+ return -EIO; + } + epp = (s16 ) perf_caps.energy_perf; + } + +return epp; +} +#endif + +static int amd_pstate_get_energy_pref_index (struct amd_cpudata +*cpudata) { +s16 epp; +int index = -EINVAL ; + + epp =amd_pstate_get_epp (cpudata,0 ); +if (epp <0 ) +return epp; + +switch (epp) { +case HWP_EPP_PERFORMANCE : + index =EPP_INDEX_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_PERFORMANCE : + index =EPP_INDEX_BALANCE_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_POWERSAVE : + index =EPP_INDEX_BALANCE_POWERSAVE ; +break ; +case HWP_EPP_POWERSAVE : + index =EPP_INDEX_POWERSAVE ; +break ; +default : +break ; + } + +return index; +} + +#ifdef CONFIG_ACPI_CPPC_LIB +static int amd_pstate_set_epp (struct amd_cpudata *cpudata,u32 epp) { +int ret;drivers/cpufreq/amd-pstate.c
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+struct cppc_perf_ctrls perf_ctrls; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +u64 value =READ_ONCE (cpudata->cppc_req_cached); + + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret = wrmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ,value);
drivers/cpufreq/amd-pstate.c
Quoted 7 lines
drivers/cpufreq/amd-pstate.c +7
-0+if (!ret) + cpudata->epp_cached = epp; + }else { + perf_ctrls.energy_perf = epp; + ret =cppc_set_epp_perf (cpudata->cpu, &perf_ctrls,1 ); +if (ret) { + pr_debug("failed to set energy perf value (%d)\n",ret);
drivers/cpufreq/amd-pstate.c
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +9
-0+return ret; + } + cpudata->epp_cached = epp; + } + +return ret; +} + +static int amd_pstate_set_energy_pref_index(struct amd_cpudata*cpudata,
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +4
-0+ int pref_index) +{ +int epp = -EINVAL ; +int ret;drivers/cpufreq/amd-pstate.c
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ +if (!pref_index) { +pr_debug ("EPP pref_index is invalid\n" ); +return -EINVAL ; + } + +if (epp == -EINVAL ) + epp = epp_values[pref_index]; + +if (epp >0 && cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ){
drivers/cpufreq/amd-pstate.c
Quoted 13 lines
drivers/cpufreq/amd-pstate.c +10
-0+pr_debug ("EPP cannot be set under performance policy\n" ); + return -EBUSY; + } + + ret =amd_pstate_set_epp (cpudata, epp); + +return ret; +} +#endif +static inline int pstate_enable (bool enable) { return wrmsrl_safe(MSR_AMD_CPPC_ENABLE, enable); @@ -70,11+194,21
Quoted 4 lines
@@ static inline int
pstate_enable(bool enable)
static intcppc_enable(bool enable)
{
int cpu, ret = 0;drivers/cpufreq/amd-pstate.c static inline int pstate_enable(bool enable)
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +5
-0+struct cppc_perf_ctrls perf_ctrls;for_each_present_cpu (cpu) { ret =cppc_set_enable (cpu, enable);if (ret)return ret; + +/* Enable autonomous mode for EPP */ +if (!cppc_active) { +/* Set desired perf as zero to allow EPP firmware control */
drivers/cpufreq/amd-pstate.c static void amd_pstate_boost_init(struct
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +5
-0+ perf_ctrls.desired_perf =0 ; + ret =cppc_set_perf (cpu, &perf_ctrls); +if (ret) +return ret; + } }return ret;@@ -417,7 +551,7 @@ static void amd_pstate_boost_init(struct
amd_cpudata*cpudata)Quoted 9 lines
drivers/cpufreq/amd-pstate.c +1
-1return ; cpudata->boost_supported = true; - amd_pstate_driver.boost_enabled = true; + default_pstate_driver->boost_enabled = true; } static void amd_perf_ctl_reset(unsigned int cpu) @@ -591,10 +725,61@@ static
ssize_tshow_amd_pstate_highest_perf(structcpufreq_policy*policy,
Quoted 41 lines
return sprintf(&buf[0], "%u\n", perf); }drivers/cpufreq/amd-pstate.c +38
-0+static ssize_t show_energy_performance_available_preferences ( +struct cpufreq_policy *policy,char *buf) { +int i =0 ; +int ret =0 ; + +while (energy_perf_strings[i] !=NULL ) + ret +=sysfs_emit (buf,"%s" , energy_perf_strings[i++]); + + ret +=sysfs_emit (buf,"\n" ); + +return ret; +} + +static ssize_t store_energy_performance_preference ( +struct cpufreq_policy *policy,const char *buf,size_t count) { +struct amd_cpudata *cpudata = policy->driver_data; +char str_preference[21 ]; +ssize_t ret; + + ret =sscanf (buf,"%20s" , str_preference); +if (ret !=1 ) +return -EINVAL ; + + ret =match_string (energy_perf_strings,-1 , str_preference); +if (ret <0 ) +return -EINVAL ; + +mutex_lock (&amd_pstate_limits_lock); + ret =amd_pstate_set_energy_pref_index (cpudata, ret); +mutex_unlock (&amd_pstate_limits_lock); + +return ret ?: count; +} + +static ssize_t show_energy_performance_preference ( +struct cpufreq_policy *policy,char *buf) { +struct amd_cpudata *cpudata = policy->driver_data; +int preference;
Quoted 8 lines
drivers/cpufreq/amd-pstate.c static ssize_t show_amd_pstate_highest_perf(struct cpufreq_policy *policy, · line 774
Quoted 6 lines
drivers/cpufreq/amd-pstate.c +6
-0+ + preference =amd_pstate_get_energy_pref_index (cpudata); +if (preference <0 ) +return preference; + +return sysfs_emit (buf,"%s\n" , energy_perf_strings[preference]);You've got an extra space after "return".
Fixed in V7.
Quoted 36 lines
Quoted 36 lines
drivers/cpufreq/amd-pstate.c +24
-0+} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);cpufreq_freq_attr_ro (amd_pstate_highest_perf); +cpufreq_freq_attr_rw (energy_performance_preference); +cpufreq_freq_attr_ro (energy_performance_available_preferences);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,@@ -603,6 +788,429 @@ static struct freq_attr *amd_pstate_attr[] = { NULL, }; +static struct freq_attr *amd_pstate_epp_attr[] = { + &amd_pstate_max_freq, + &amd_pstate_lowest_nonlinear_freq, + &amd_pstate_highest_perf, + &energy_performance_preference, + &energy_performance_available_preferences, +NULL , +}; + +static inline void update_boost_state (void ) { +u64 misc_en; +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[0 ]; +rdmsrl (MSR_K7_HWCR , misc_en); + global_params.cppc_boost_disabled = misc_en &BIT_ULL (25 ); } + +static bool amd_pstate_acpi_pm_profile_server (void ) +{ + if (acpi_gbl_FADT.preferred_profile == PM_ENTERPRISE_SERVER ||
Quoted 8 lines
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 817
Quoted 5 lines
drivers/cpufreq/amd-pstate.c +5
-0+ acpi_gbl_FADT.preferred_profile == PM_PERFORMANCE_SERVER) +return true; + +return false; +}Right now this is only used to control boost, but I wonder if this should instad also control the default EPP policy as all?
It should be able to control the EPP profile as well if needed.
Currently the default EPP profile is balance_performance for all CPUs.
If we want to set different profile for server CPU, there some are codes can be added here.
Quoted 543 lines
Quoted 12 lines
drivers/cpufreq/amd-pstate.c +11
-0+ +static int amd_pstate_init_cpu (unsigned int cpunum) { +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[cpunum]; +if (!cpudata) { + cpudata =kzalloc (sizeof (*cpudata),GFP_KERNEL ); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data[cpunum], cpudata); +drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ cpudata->cpu = cpunum; + +if (cppc_active) { +if (amd_pstate_acpi_pm_profile_server ()) + cppc_boost = true; + } + + } + cpudata->epp_powersave = -EINVAL ; + cpudata->epp_policy = 0; > + pr_debug("controlling: cpu %d\n",cpunum);
Quoted 20 lines
drivers/cpufreq/amd-pstate.c +20
-0+return 0 ; +} + +static int __amd_pstate_cpu_init (struct cpufreq_policy *policy) { +int min_freq, max_freq, nominal_freq, lowest_nonlinear_freq, ret; +struct amd_cpudata *cpudata; +struct device *dev; +int rc; +u64 value; + + rc =amd_pstate_init_cpu (policy->cpu); +if (rc) +return rc; + + cpudata = all_cpu_data[policy->cpu]; + + dev =get_cpu_device (policy->cpu); +if (!dev) + goto free_cpudata1; +drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ rc =amd_pstate_init_perf (cpudata); +if (rc) + goto free_cpudata1; + + min_freq =amd_get_min_freq (cpudata); + max_freq =amd_get_max_freq (cpudata); + nominal_freq =amd_get_nominal_freq (cpudata); + lowest_nonlinear_freq =amd_get_lowest_nonlinear_freq (cpudata); +if (min_freq <0 || max_freq <0 || min_freq > max_freq) { + dev_err(dev, "min_freq(%d) or max_freq(%d) value isincorrect\n",
Quoted 22 lines
drivers/cpufreq/amd-pstate.c +22
-0+ min_freq, max_freq); + ret = -EINVAL ; + goto free_cpudata1; + } + + policy->min = min_freq; + policy->max = max_freq; + + policy->cpuinfo.min_freq = min_freq; + policy->cpuinfo.max_freq = max_freq; +/* It will be updated by governor */ + policy->cur = policy->cpuinfo.min_freq; + +/* Initial processor data capability frequencies */ + cpudata->max_freq = max_freq; + cpudata->min_freq = min_freq; + cpudata->nominal_freq = nominal_freq; + cpudata->lowest_nonlinear_freq = lowest_nonlinear_freq; + + policy->driver_data = cpudata; + +update_boost_state ();drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ cpudata->epp_cached =amd_pstate_get_epp (cpudata, value); + + policy->min = policy->cpuinfo.min_freq; + policy->max = policy->cpuinfo.max_freq; + +if (boot_cpu_has (X86_FEATURE_CPPC )) + policy->fast_switch_possible = true; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { + ret = rdmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ,&value);
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 5 lines
drivers/cpufreq/amd-pstate.c +5
-0+if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret = rdmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_CAP1,&value);
Quoted 12 lines
drivers/cpufreq/amd-pstate.c +12
-0+if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_cap1_cached, value); + } +amd_pstate_boost_init (cpudata); + +return 0 ; + +free_cpudata1: +kfree (cpudata); +return ret; +}drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ +static int amd_pstate_epp_cpu_init (struct cpufreq_policy *policy) { +int ret; + + ret =__amd_pstate_cpu_init (policy); +if (ret) +return ret; +/* +* Set the policy to powersave to provide a valid fallback value in case +* the default cpufreq governor is neither powersave nor performance.
Quoted 42 lines
drivers/cpufreq/amd-pstate.c +42
-0+*/ + policy->policy =CPUFREQ_POLICY_POWERSAVE ; + +return 0 ; +} + +static int amd_pstate_epp_cpu_exit (struct cpufreq_policy *policy) { +pr_debug ("CPU %d exiting\n" , policy->cpu); + policy->fast_switch_possible = false; +return 0 ; +} + +static void amd_pstate_update_max_freq (unsigned int cpu) { +struct cpufreq_policy *policy = policy =cpufreq_cpu_get (cpu); + +if (!policy) +return ; + +refresh_frequency_limits (policy); +cpufreq_cpu_put (policy); +} + +static void amd_pstate_epp_update_limits (unsigned int cpu) { +mutex_lock (&amd_pstate_driver_lock); +update_boost_state (); +if (global_params.cppc_boost_disabled) { +for_each_possible_cpu (cpu) +amd_pstate_update_max_freq (cpu); + }else { +cpufreq_update_policy (cpu); + } +mutex_unlock (&amd_pstate_driver_lock); +} + +static int cppc_boost_hold_time_ns =3 *NSEC_PER_MSEC ; + +static inline void amd_pstate_boost_up (struct amd_cpudata *cpudata) { +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u32 max_limit = (hwp_req &0xff ); +u32 min_limit = (hwp_req &0xff00 ) >>8 ; +u32 boost_level1;drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ +/* If max and min are equal or already at max, nothing to boost */ +if (max_limit == min_limit) +return ; + +/* Set boost max and min to initial value */ +if (!cpudata->cppc_boost_min) + cpudata->cppc_boost_min = min_limit; + + boost_level1 = ((AMD_CPPC_NOMINAL_PERF(hwp_cap) +
min_limit) >> 1);drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +4
-0+ +if (cpudata->cppc_boost_min < boost_level1) + cpudata->cppc_boost_min = boost_level1; + else if (cpudata->cppc_boost_min <
AMD_CPPC_NOMINAL_PERF(hwp_cap))drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 982
Quoted 1 line
drivers/cpufreq/amd-pstate.c +1
-0+ cpudata->cppc_boost_min =
AMD_CPPC_NOMINAL_PERF(hwp_cap);drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 983
Quoted 1 line
drivers/cpufreq/amd-pstate.c +1
-0+ else if (cpudata->cppc_boost_min ==
AMD_CPPC_NOMINAL_PERF(hwp_cap))Quoted 21 lines
drivers/cpufreq/amd-pstate.c +15
-0+ cpudata->cppc_boost_min = max_limit; + else + return; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (cpudata->cppc_boost_min); +wrmsrl (MSR_AMD_CPPC_REQ , hwp_req); + cpudata->last_update = cpudata->sample.time; } + +static inline void amd_pstate_boost_down (struct amd_cpudata *cpudata) +{ +bool expired; + +if (cpudata->cppc_boost_min) { + expired = time_after64(cpudata->sample.time, cpudata-
last_update+drivers/cpufreq/amd-pstate.c +4
-0+ cppc_boost_hold_time_ns); + +if (expired) { + wrmsrl(MSR_AMD_CPPC_REQ, cpudata-
cppc_req_cached);drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 7 lines
drivers/cpufreq/amd-pstate.c +7
-0+ cpudata->cppc_boost_min =0 ; + } + } + + cpudata->last_update = cpudata->sample.time; } + +static inline void amd_pstate_boost_update_util(struct amd_cpudata*cpudata,
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +9
-0+ u64 time) +{ + cpudata->sample.time = time; +if (smp_processor_id () != cpudata->cpu) +return ; + +if (cpudata->sched_flags &SCHED_CPUFREQ_IOWAIT ) { +bool do_io = false; +drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ cpudata->sched_flags =0 ; +/* +* Set iowait_boost flag and update time. Since IO WAIT flag +* is set all the time, we can't just conclude that there is +* some IO bound activity is scheduled on this CPU with just +* one occurrence. If we receive at least two in two +* consecutive ticks, then we treat as boost candidate. +* This is leveraged from Intel Pstate driver. +*/ + if (time_before64(time, cpudata->last_io_update + 2 *
TICK_NSEC))drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 13 lines
drivers/cpufreq/amd-pstate.c +13
-0+ do_io = true; + + cpudata->last_io_update = time; + +if (do_io) +amd_pstate_boost_up (cpudata); + + }else { +amd_pstate_boost_down (cpudata); + } +} + +static inline void amd_pstate_cppc_update_hook(struct update_util_data*data,
Quoted 26 lines
drivers/cpufreq/amd-pstate.c +26
-0+ u64 time, unsigned int flags) +{ +struct amd_cpudata *cpudata =container_of (data, + struct amd_cpudata, update_util); + + cpudata->sched_flags |= flags; + +if (smp_processor_id () == cpudata->cpu) +amd_pstate_boost_update_util (cpudata, time); } + +static void amd_pstate_clear_update_util_hook (unsigned int cpu) { +struct amd_cpudata *cpudata = all_cpu_data[cpu]; + +if (!cpudata->update_util_set) +return ; + +cpufreq_remove_update_util_hook (cpu); + cpudata->update_util_set = false; +synchronize_rcu (); +} + +static void amd_pstate_set_update_util_hook (unsigned int cpu_num) { +struct amd_cpudata *cpudata = all_cpu_data[cpu_num]; + +if (!cppc_boost) { +if (cpudata->update_util_set)drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 1095
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+amd_pstate_clear_update_util_hook (cpudata->cpu); +return ; + } + +if (cpudata->update_util_set) +return ; + + cpudata->sample.time =0 ; + cpufreq_add_update_util_hook(cpu_num, &cpudata->update_util, +amd_pstate_cppc_update_hook);Quoted 95 lines
drivers/cpufreq/amd-pstate.c +95
-0+ cpudata->update_util_set = true; +} + +static void amd_pstate_epp_init (unsigned int cpu) { +struct amd_cpudata *cpudata = all_cpu_data[cpu]; +u32 max_perf, min_perf; +u64 value; +s16 epp; +int ret; + + max_perf =READ_ONCE (cpudata->highest_perf); + min_perf =READ_ONCE (cpudata->lowest_perf); + + value =READ_ONCE (cpudata->cppc_req_cached); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) + min_perf = max_perf; + +/* Initial min/max values for CPPC Performance Controls Register */ + value &= ~AMD_CPPC_MIN_PERF (~0L ); + value |=AMD_CPPC_MIN_PERF (min_perf); + + value &= ~AMD_CPPC_MAX_PERF (~0L ); + value |=AMD_CPPC_MAX_PERF (max_perf); + +/* CPPC EPP feature require to set zero to the desire perf bit */ + value &= ~AMD_CPPC_DES_PERF (~0L ); + value |=AMD_CPPC_DES_PERF (0 ); + +if (cpudata->epp_policy == cpudata->policy) + goto skip_epp; + + cpudata->epp_policy = cpudata->policy; + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { + epp =amd_pstate_get_epp (cpudata, value); + cpudata->epp_powersave = epp; +if (epp <0 ) + goto skip_epp; +/* force the epp value to be zero for performance policy */ + epp =0 ; + }else { +if (cpudata->epp_powersave <0 ) + goto skip_epp; +/* Get BIOS pre-defined epp value */ + epp =amd_pstate_get_epp (cpudata, value); +if (epp) + goto skip_epp; + epp = cpudata->epp_powersave; + } +/* Set initial EPP value */ +if (boot_cpu_has (X86_FEATURE_CPPC )) { + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; + } + +skip_epp: +WRITE_ONCE (cpudata->cppc_req_cached, value); + ret =wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); +if (!ret) + cpudata->epp_cached = epp; +} + +static void amd_pstate_set_max_limits (struct amd_cpudata *cpudata) { +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u32 max_limit = (hwp_cap >>24 ) &0xff ; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (max_limit); +wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , hwp_req); } + +static int amd_pstate_epp_set_policy (struct cpufreq_policy *policy) { +struct amd_cpudata *cpudata; + +if (!policy->cpuinfo.max_freq) +return -ENODEV ; + +pr_debug ("set_policy: cpuinfo.max %u policy->max %u\n" , + policy->cpuinfo.max_freq, policy->max); + + cpudata = all_cpu_data[policy->cpu]; + cpudata->policy = policy->policy; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +mutex_lock (&amd_pstate_limits_lock); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { +amd_pstate_clear_update_util_hook (policy->cpu); +amd_pstate_set_max_limits (cpudata); + }else { +amd_pstate_set_update_util_hook (policy->cpu); + } + +if (boot_cpu_has (X86_FEATURE_CPPC ))drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 1201
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+amd_pstate_epp_init (policy->cpu); + +mutex_unlock (&amd_pstate_limits_lock); + } + +return 0 ; +} + +static void amd_pstate_verify_cpu_policy (struct amd_cpudata *cpudata, +struct cpufreq_policy_data *policy){
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +8
-0+update_boost_state (); +cpufreq_verify_within_cpu_limits (policy); +} + +static int amd_pstate_epp_verify_policy (struct cpufreq_policy_data +*policy) { +amd_pstate_verify_cpu_policy (all_cpu_data[policy->cpu], policy); + pr_debug("policy_max =%d, policy_min=%d\n", policy->max, policy-min);
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 5 lines
drivers/cpufreq/amd-pstate.c +3
-0+return 0 ; +} +static struct cpufreq_driver amd_pstate_driver = { .flags = CPUFREQ_CONST_LOOPS |
CPUFREQ_NEED_UPDATE_LIMITS,drivers/cpufreq/amd-pstate.c static struct cpufreq_driver amd_pstate_driver =
Quoted 2 lines
.verify =
amd_pstate_verify,drivers/cpufreq/amd-pstate.c +0
-0@@ -616,8 +1224,20 @@ static struct cpufreq_driver amd_pstate_driver ={
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +7
-0.attr = amd_pstate_attr, }; +static struct cpufreq_driver amd_pstate_epp_driver = { + .flags =CPUFREQ_CONST_LOOPS , + .verify = amd_pstate_epp_verify_policy, + .setpolicy = amd_pstate_epp_set_policy, + .init = amd_pstate_epp_cpu_init, + .exit = amd_pstate_epp_cpu_exit, + .update_limits = amd_pstate_epp_update_limits,drivers/cpufreq/amd-pstate.c static struct cpufreq_driver amd_pstate_driver = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +5
-0+ .name = "amd_pstate_epp", + .attr = amd_pstate_epp_attr, +}; +static int __init amd_pstate_init (void ) { +static struct amd_cpudata **cpudata;int ret; if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) @@ -644,7+1264,8
Quoted 4 lines
@@ static int
__initamd_pstate_init(void)
/* capability check */
if (boot_cpu_has(X86_FEATURE_CPPC)) {
pr_debug("AMD CPPC MSR based functionality issupported\n");
drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void)
Quoted 3 lines
drivers/cpufreq/amd-pstate.c +2
-1- amd_pstate_driver.adjust_perf = amd_pstate_adjust_perf; +if (!cppc_active) + default_pstate_driver->adjust_perf =
amd_pstate_adjust_perf;Quoted 2 lines
} else {
pr_debug("AMD CPPC shared memory based functionality issupported\n");
Quoted 1 line
static_call_update(amd_pstate_enable, cppc_enable); @@ -652,6
Quoted 2 lines
+1273,10 @@ static int
__initamd_pstate_init(void)
static_call_update(amd_pstate_update_perf,
cppc_update_perf);Quoted 10 lines
}drivers/cpufreq/amd-pstate.c +4
-0+ cpudata =vzalloc (array_size (sizeof (void *),num_possible_cpus ())); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data, cpudata);/* enable amd pstate feature */ ret =amd_pstate_enable (true);if (ret) {drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void) · line 664
Quoted 7 lines
drivers/cpufreq/amd-pstate.c +1
-2@@ -659,9 +1284,9 @@ static int __init amd_pstate_init(void)return ret; } - ret =cpufreq_register_driver (&amd_pstate_driver); + ret =cpufreq_register_driver (default_pstate_driver);if (ret) - pr_err("failed to register amd_pstate_driver withreturn %d\n",
drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void) · line 1289
Quoted 1 line
drivers/cpufreq/amd-pstate.c +1
-0+ pr_err("failed to register amd pstate driver withreturn %d\n",
Quoted 41 lines
drivers/cpufreq/amd-pstate.c +7
-1ret);return ret;@@ -676,8 +1301,14 @@ static int __init amd_pstate_param(char *str)if (!strcmp (str,"disable" )) { cppc_load =0 ;pr_info ("driver is explicitly disabled\n" ); - }else if (!strcmp (str,"passive" )) + }else if (!strcmp (str,"passive" )) { cppc_load =1 ; + default_pstate_driver = &amd_pstate_driver; + }else if (!strcmp (str,"active" )) { + cppc_active =1 ; + cppc_load =1 ; + default_pstate_driver = &amd_pstate_epp_driver; + }return 0 ; }include/linux/amd-pstate.h +1
-0@@ -25,6 +25,7 @@ struct amd_aperf_mperf {u64 aperf;u64 mperf;u64 tsc; +u64 time; };/** @@ -47,6 +48,18 @@ struct amd_aperf_mperf {* @prev: Last Aperf/Mperf/tsc count value read from register * @freq: current cpu frequency value * @boost_supported: check whether the Processor or SBIOS supports boost mode
+ * @epp_powersave: Last saved CPPC energy performance preferenceinclude/linux/amd-pstate.h +4
-0+ when policy switched to performance + * @epp_policy: Last saved policy used to set energy-performance +preference + * @epp_cached: Cached CPPC energy-performance preference valueinclude/linux/amd-pstate.h struct amd_aperf_mperf {
Quoted 10 lines
include/linux/amd-pstate.h +8
-0+* @policy: Cpufreq policy value +* @sched_flags: Store scheduler flags for possible cross CPU update +* @update_util_set: CPUFreq utility callback is set +* @last_update: Time stamp of the last performance state update +* @cppc_boost_min: Last CPPC boosted min performance state +* @cppc_cap1_cached: Cached value of the last CPPC Capabilities MSR +* @update_util: Cpufreq utility callback information +* @sample: the stored performance sample * * The amd_cpudata is key private data for each CPU thread in AMD P- State, and
Quoted 1 line
* represents all the attributes and goals that AMD P-State requests at
runtime.
Quoted 29 lines
include/linux/amd-pstate.h +22
-0@@ -72,6 +85,28 @@ struct amd_cpudata {u64 freq;bool boost_supported; + +/* EPP feature related attributes*/ +s16 epp_powersave; +s16 epp_policy; +s16 epp_cached; +u32 policy; +u32 sched_flags; +bool update_util_set; +u64 last_update; +u64 last_io_update; +u32 cppc_boost_min; +u64 cppc_cap1_cached; +struct update_util_data update_util; + struct amd_aperf_mperf sample; +}; + +/** +* struct amd_pstate_params - global parameters for the performance +control +* @ cppc_boost_disabled wheher the core performance boost disabled +*/ struct amd_pstate_params { +bool cppc_boost_disabled; };#endif /* _LINUX_AMD_PSTATE_H */
kernel test robot
build botRe: [PATCH v6 04/11] cpufreq: amd_pstate: implement Pstate EPP support for the AMD processors
In reply to Perry YuanI love your patch! Yet something to improve:
Hi Perry,
I love your patch! Yet something to improve:
[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on linus/master v6.1-rc7 next-20221202] [cannot apply to tip/x86/core]
[If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]
url: https://github.com/intel-lab-lkp/linux/commits/Perry-Yuan/Implement-AMD-Pstate-EPP-Driver/20221202-155515 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next patch link: https://lore.kernel.org/r/20221202074719.623673-5-perry.yuan%40amd.com patch subject: [PATCH v6 04/11] cpufreq: amd_pstate: implement Pstate EPP support for the AMD processors config: i386-allyesconfig compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://github.com/intel-lab-lkp/linux/commit/6f2da26e9fe72400ed922b14ea494beb5e38dc59 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Perry-Yuan/Implement-AMD-Pstate-EPP-Driver/20221202-155515 git checkout 6f2da26e9fe72400ed922b14ea494beb5e38dc59 # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash drivers/
If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot <[email protected]>
All errors (new ones prefixed by >>):
drivers/cpufreq/amd-pstate.c: In function 'amd_pstate_get_energy_pref_index':
>> drivers/cpufreq/amd-pstate.c:111:15: error: implicit declaration of function 'amd_pstate_get_epp' [-Werror=implicit-function-declaration]
111 | epp = amd_pstate_get_epp(cpudata, 0);
| ^~~~~~~~~~~~~~~~~~
drivers/cpufreq/amd-pstate.c: In function 'store_energy_performance_preference':
>> drivers/cpufreq/amd-pstate.c:758:15: error: implicit declaration of function 'amd_pstate_set_energy_pref_index'; did you mean 'amd_pstate_get_energy_pref_index'? [-Werror=implicit-function-declaration]
758 | ret = amd_pstate_set_energy_pref_index(cpudata, ret);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| amd_pstate_get_energy_pref_index
drivers/cpufreq/amd-pstate.c: In function 'update_boost_state':
drivers/cpufreq/amd-pstate.c:803:29: warning: variable 'cpudata' set but not used [-Wunused-but-set-variable]
803 | struct amd_cpudata *cpudata;
| ^~~~~~~
In file included from drivers/cpufreq/amd-pstate.c:40:
At top level:
include/linux/cpufreq_common.h:48:21: warning: 'epp_values' defined but not used [-Wunused-variable]
48 | static unsigned int epp_values[] = {
| ^~~~~~~~~~cc1: some warnings being treated as errors
vim +/amd_pstate_get_epp +111 drivers/cpufreq/amd-pstate.c
105
106 static int amd_pstate_get_energy_pref_index(struct amd_cpudata *cpudata)
107 {
108 s16 epp;
109 int index = -EINVAL;
110
> 111 epp = amd_pstate_get_epp(cpudata, 0);
112 if (epp < 0)
113 return epp;
114
115 switch (epp) {
116 case HWP_EPP_PERFORMANCE:
117 index = EPP_INDEX_PERFORMANCE;
118 break;
119 case HWP_EPP_BALANCE_PERFORMANCE:
120 index = EPP_INDEX_BALANCE_PERFORMANCE;
121 break;
122 case HWP_EPP_BALANCE_POWERSAVE:
123 index = EPP_INDEX_BALANCE_POWERSAVE;
124 break;
125 case HWP_EPP_POWERSAVE:
126 index = EPP_INDEX_POWERSAVE;
127 break;
128 default:
129 break;
130 }
131
132 return index;
133 }
134
Signature · 2 lines
0-DAY CI Kernel Test Service https://01.org/lkp
#
# Automatically generated file; DO NOT EDIT.
# Linux/i386 6.1.0-rc7 Kernel Configuration
#CONFIG_CC_VERSION_TEXT="gcc-11 (Debian 11.3.0-8) 11.3.0" CONFIG_CC_IS_GCC=yCONFIG_GCC_VERSION=110300 CONFIG_CLANG_VERSION=0CONFIG_AS_IS_GNU=yCONFIG_AS_VERSION=23900CONFIG_LD_IS_BFD=yCONFIG_LD_VERSION=23900CONFIG_LLD_VERSION=0CONFIG_CC_CAN_LINK=y CONFIG_CC_CAN_LINK_STATIC=y CONFIG_CC_HAS_ASM_GOTO_OUTPUT=y CONFIG_CC_HAS_ASM_GOTO_TIED_OUTPUT=y CONFIG_CC_HAS_ASM_INLINE=y CONFIG_CC_HAS_NO_PROFILE_FN_ATTR=y CONFIG_PAHOLE_VERSION=123CONFIG_CONSTRUCTORS=yCONFIG_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_UAPI_HEADER_TEST=yCONFIG_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_POSIX_MQUEUE=yCONFIG_POSIX_MQUEUE_SYSCTL=yCONFIG_WATCH_QUEUE=yCONFIG_CROSS_MEMORY_ATTACH=yCONFIG_USELIB=yCONFIG_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_GENERIC_IRQ_CHIP=yCONFIG_IRQ_DOMAIN=yCONFIG_IRQ_SIM=yCONFIG_IRQ_DOMAIN_HIERARCHY=yCONFIG_GENERIC_MSI_IRQ=yCONFIG_GENERIC_MSI_IRQ_DOMAIN=yCONFIG_IRQ_MSI_IOMMU=yCONFIG_GENERIC_IRQ_MATRIX_ALLOCATOR=yCONFIG_GENERIC_IRQ_RESERVATION_MODE=yCONFIG_IRQ_FORCED_THREADING=yCONFIG_SPARSE_IRQ=yCONFIG_GENERIC_IRQ_DEBUGFS=y
# end of IRQ subsystem
CONFIG_CLOCKSOURCE_WATCHDOG=yCONFIG_ARCH_CLOCKSOURCE_INIT=yCONFIG_CLOCKSOURCE_VALIDATE_LAST_CYCLE=yCONFIG_GENERIC_TIME_VSYSCALL=yCONFIG_GENERIC_CLOCKEVENTS=yCONFIG_GENERIC_CLOCKEVENTS_BROADCAST=yCONFIG_GENERIC_CLOCKEVENTS_MIN_ADJUST=yCONFIG_GENERIC_CMOS_UPDATE=yCONFIG_HAVE_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_POSIX_CPU_TIMERS_TASK_WORK=yCONFIG_TIME_KUNIT_TEST=yCONFIG_CONTEXT_TRACKING=yCONFIG_CONTEXT_TRACKING_IDLE=y
#
# Timers subsystem
#CONFIG_TICK_ONESHOT=yCONFIG_NO_HZ_COMMON=y
# CONFIG_HZ_PERIODIC is not setCONFIG_NO_HZ_IDLE=yCONFIG_NO_HZ=yCONFIG_HIGH_RES_TIMERS=yCONFIG_CLOCKSOURCE_WATCHDOG_MAX_SKEW_US=100
# end of Timers subsystem
CONFIG_BPF=yCONFIG_HAVE_EBPF_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=yCONFIG_USERMODE_DRIVER=y
# CONFIG_BPF_PRELOAD is not setCONFIG_BPF_LSM=y
# end of BPF subsystem
CONFIG_PREEMPT_BUILD=yCONFIG_PREEMPT_NONE=y
# CONFIG_PREEMPT_VOLUNTARY is not set
# CONFIG_PREEMPT is not setCONFIG_PREEMPT_COUNT=yCONFIG_PREEMPTION=yCONFIG_PREEMPT_DYNAMIC=yCONFIG_SCHED_CORE=y
#
# CPU/Task time and stats accounting
#CONFIG_TICK_CPU_ACCOUNTING=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=yCONFIG_PSI=yCONFIG_PSI_DEFAULT_DISABLED=y
# end of CPU/Task time and stats accounting
CONFIG_CPU_ISOLATION=y
#
# RCU Subsystem
#CONFIG_TREE_RCU=yCONFIG_PREEMPT_RCU=yCONFIG_RCU_EXPERT=yCONFIG_SRCU=yCONFIG_TREE_SRCU=yCONFIG_TASKS_RCU_GENERIC=yCONFIG_FORCE_TASKS_RCU=yCONFIG_TASKS_RCU=yCONFIG_FORCE_TASKS_RUDE_RCU=yCONFIG_TASKS_RUDE_RCU=yCONFIG_FORCE_TASKS_TRACE_RCU=yCONFIG_TASKS_TRACE_RCU=yCONFIG_RCU_STALL_COMMON=yCONFIG_RCU_NEED_SEGCBLIST=yCONFIG_RCU_FANOUT=32CONFIG_RCU_FANOUT_LEAF=16CONFIG_RCU_BOOST=yCONFIG_RCU_BOOST_DELAY=500CONFIG_RCU_EXP_KTHREAD=yCONFIG_RCU_NOCB_CPU=yCONFIG_RCU_NOCB_CPU_DEFAULT_ALL=yCONFIG_RCU_NOCB_CPU_CB_BOOST=yCONFIG_TASKS_TRACE_RCU_READ_MB=y
# end of RCU Subsystem
CONFIG_BUILD_BIN2C=yCONFIG_IKCONFIG=yCONFIG_IKCONFIG_PROC=yCONFIG_IKHEADERS=yCONFIG_LOG_BUF_SHIFT=17CONFIG_LOG_CPU_MAX_BUF_SHIFT=12CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13CONFIG_PRINTK_INDEX=yCONFIG_HAVE_UNSTABLE_SCHED_CLOCK=y
#
# Scheduler features
#CONFIG_UCLAMP_TASK=yCONFIG_UCLAMP_BUCKETS_COUNT=5
# end of Scheduler features
CONFIG_ARCH_WANT_BATCHED_UNMAP_TLB_FLUSH=y CONFIG_CC_IMPLICIT_FALLTHROUGH="-Wimplicit-fallthrough=5" CONFIG_GCC12_NO_ARRAY_BOUNDS=yCONFIG_CGROUPS=yCONFIG_PAGE_COUNTER=y CONFIG_CGROUP_FAVOR_DYNMODS=yCONFIG_MEMCG=yCONFIG_MEMCG_KMEM=yCONFIG_BLK_CGROUP=yCONFIG_CGROUP_WRITEBACK=yCONFIG_CGROUP_SCHED=yCONFIG_FAIR_GROUP_SCHED=yCONFIG_CFS_BANDWIDTH=yCONFIG_RT_GROUP_SCHED=y CONFIG_UCLAMP_TASK_GROUP=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=yCONFIG_CGROUP_MISC=yCONFIG_CGROUP_DEBUG=yCONFIG_SOCK_CGROUP_DATA=yCONFIG_NAMESPACES=yCONFIG_UTS_NS=yCONFIG_TIME_NS=yCONFIG_IPC_NS=yCONFIG_USER_NS=yCONFIG_PID_NS=yCONFIG_NET_NS=yCONFIG_CHECKPOINT_RESTORE=y CONFIG_SCHED_AUTOGROUP=y CONFIG_SYSFS_DEPRECATED=y CONFIG_SYSFS_DEPRECATED_V2=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=yCONFIG_BOOT_CONFIG=yCONFIG_BOOT_CONFIG_EMBED=y CONFIG_BOOT_CONFIG_EMBED_FILE="" CONFIG_INITRAMFS_PRESERVE_MTIME=y CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE=y
# CONFIG_CC_OPTIMIZE_FOR_SIZE is not set CONFIG_LD_ORPHAN_WARN=yCONFIG_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=yCONFIG_KALLSYMS_ALL=y CONFIG_KALLSYMS_BASE_RELATIVE=y CONFIG_ARCH_HAS_MEMBARRIER_SYNC_CORE=y CONFIG_KCMP=yCONFIG_RSEQ=yCONFIG_DEBUG_RSEQ=yCONFIG_EMBEDDED=yCONFIG_HAVE_PERF_EVENTS=y CONFIG_GUEST_PERF_EVENTS=y CONFIG_PERF_USE_VMALLOC=yCONFIG_PC104=y
#
# Kernel Performance Events And Counters
#CONFIG_PERF_EVENTS=yCONFIG_DEBUG_PERF_USE_VMALLOC=y
# end of Kernel Performance Events And Counters
CONFIG_SYSTEM_DATA_VERIFICATION=yCONFIG_PROFILING=yCONFIG_TRACEPOINTS=y
# end of General setup
CONFIG_X86_32=yCONFIG_FORCE_DYNAMIC_FTRACE=yCONFIG_X86=yCONFIG_INSTRUCTION_DECODER=yCONFIG_OUTPUT_FORMAT="elf32-i386"CONFIG_LOCKDEP_SUPPORT=yCONFIG_STACKTRACE_SUPPORT=yCONFIG_MMU=yCONFIG_ARCH_MMAP_RND_BITS_MIN=8CONFIG_ARCH_MMAP_RND_BITS_MAX=16CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MIN=8CONFIG_ARCH_MMAP_RND_COMPAT_BITS_MAX=16CONFIG_GENERIC_ISA_DMA=yCONFIG_GENERIC_BUG=yCONFIG_ARCH_MAY_HAVE_PC_FDC=yCONFIG_GENERIC_CALIBRATE_DELAY=yCONFIG_ARCH_HAS_CPU_RELAX=yCONFIG_ARCH_HIBERNATION_POSSIBLE=yCONFIG_ARCH_NR_GPIO=512CONFIG_ARCH_SUSPEND_POSSIBLE=yCONFIG_HAVE_INTEL_TXT=yCONFIG_X86_32_SMP=yCONFIG_ARCH_SUPPORTS_UPROBES=yCONFIG_FIX_EARLYCON_MEM=yCONFIG_PGTABLE_LEVELS=2CONFIG_CC_HAS_SANE_STACKPROTECTOR=y
#
# Processor type and features
#CONFIG_SMP=yCONFIG_X86_FEATURE_NAMES=yCONFIG_X86_MPPARSE=yCONFIG_GOLDFISH=yCONFIG_X86_CPU_RESCTRL=yCONFIG_X86_BIGSMP=yCONFIG_X86_EXTENDED_PLATFORM=yCONFIG_X86_GOLDFISH=yCONFIG_X86_INTEL_MID=yCONFIG_X86_INTEL_QUARK=yCONFIG_X86_INTEL_LPSS=yCONFIG_X86_AMD_PLATFORM_DEVICE=yCONFIG_IOSF_MBI=yCONFIG_IOSF_MBI_DEBUG=yCONFIG_X86_RDC321X=yCONFIG_X86_32_NON_STANDARD=yCONFIG_X86_SUPPORTS_MEMORY_FAILURE=yCONFIG_STA2X11=yCONFIG_X86_32_IRIS=yCONFIG_SCHED_OMIT_FRAME_POINTER=yCONFIG_HYPERVISOR_GUEST=yCONFIG_PARAVIRT=yCONFIG_PARAVIRT_DEBUG=yCONFIG_PARAVIRT_SPINLOCKS=yCONFIG_X86_HV_CALLBACK_VECTOR=yCONFIG_KVM_GUEST=yCONFIG_ARCH_CPUIDLE_HALTPOLL=yCONFIG_PVH=yCONFIG_PARAVIRT_TIME_ACCOUNTING=yCONFIG_PARAVIRT_CLOCK=y
# CONFIG_M486SX is not set
# CONFIG_M486 is not set
# CONFIG_M586 is not set
# CONFIG_M586TSC is not set
# CONFIG_M586MMX is not setCONFIG_M686=y
# CONFIG_MPENTIUMII is not set
# CONFIG_MPENTIUMIII is not set
# CONFIG_MPENTIUMM is not set
# CONFIG_MPENTIUM4 is not set
# CONFIG_MK6 is not set
# CONFIG_MK7 is not set
# CONFIG_MK8 is not set
# CONFIG_MCRUSOE is not set
# CONFIG_MEFFICEON is not set
# CONFIG_MWINCHIPC6 is not set
# CONFIG_MWINCHIP3D is not set
# CONFIG_MELAN is not set
# CONFIG_MGEODEGX1 is not set
# CONFIG_MGEODE_LX is not set
# CONFIG_MCYRIXIII is not set
# CONFIG_MVIAC3_2 is not set
# CONFIG_MVIAC7 is not set
# CONFIG_MCORE2 is not set
# CONFIG_MATOM is not setCONFIG_X86_GENERIC=yCONFIG_X86_INTERNODE_CACHE_SHIFT=6CONFIG_X86_L1_CACHE_SHIFT=6CONFIG_X86_INTEL_USERCOPY=yCONFIG_X86_USE_PPRO_CHECKSUM=yCONFIG_X86_TSC=yCONFIG_X86_CMPXCHG64=yCONFIG_X86_CMOV=yCONFIG_X86_MINIMUM_CPU_FAMILY=6CONFIG_X86_DEBUGCTLMSR=yCONFIG_IA32_FEAT_CTL=yCONFIG_X86_VMX_FEATURE_NAMES=yCONFIG_PROCESSOR_SELECT=yCONFIG_CPU_SUP_INTEL=yCONFIG_CPU_SUP_CYRIX_32=yCONFIG_CPU_SUP_AMD=yCONFIG_CPU_SUP_HYGON=yCONFIG_CPU_SUP_CENTAUR=yCONFIG_CPU_SUP_TRANSMETA_32=yCONFIG_CPU_SUP_UMC_32=yCONFIG_CPU_SUP_ZHAOXIN=yCONFIG_CPU_SUP_VORTEX_32=yCONFIG_HPET_TIMER=yCONFIG_HPET_EMULATE_RTC=yCONFIG_DMI=yCONFIG_BOOT_VESA_SUPPORT=yCONFIG_NR_CPUS_RANGE_BEGIN=2CONFIG_NR_CPUS_RANGE_END=64CONFIG_NR_CPUS_DEFAULT=32CONFIG_NR_CPUS=32CONFIG_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_AMD=yCONFIG_X86_ANCIENT_MCE=yCONFIG_X86_MCE_THRESHOLD=yCONFIG_X86_MCE_INJECT=y
#
# Performance monitoring
#CONFIG_PERF_EVENTS_INTEL_UNCORE=yCONFIG_PERF_EVENTS_INTEL_RAPL=yCONFIG_PERF_EVENTS_INTEL_CSTATE=yCONFIG_PERF_EVENTS_AMD_POWER=yCONFIG_PERF_EVENTS_AMD_UNCORE=yCONFIG_PERF_EVENTS_AMD_BRS=y
# end of Performance monitoring
CONFIG_X86_LEGACY_VM86=yCONFIG_VM86=yCONFIG_X86_16BIT=yCONFIG_X86_ESPFIX32=yCONFIG_X86_IOPL_IOPERM=yCONFIG_TOSHIBA=yCONFIG_X86_REBOOTFIXUPS=yCONFIG_MICROCODE=yCONFIG_MICROCODE_INTEL=yCONFIG_MICROCODE_AMD=yCONFIG_MICROCODE_LATE_LOADING=yCONFIG_X86_MSR=yCONFIG_X86_CPUID=y
# CONFIG_NOHIGHMEM is not setCONFIG_HIGHMEM4G=y
# CONFIG_HIGHMEM64G is not setCONFIG_VMSPLIT_3G=y
# CONFIG_VMSPLIT_3G_OPT is not set
# CONFIG_VMSPLIT_2G is not set
# CONFIG_VMSPLIT_2G_OPT is not set
# CONFIG_VMSPLIT_1G is not setCONFIG_PAGE_OFFSET=0xC0000000CONFIG_HIGHMEM=yCONFIG_X86_CPA_STATISTICS=yCONFIG_ARCH_FLATMEM_ENABLE=yCONFIG_ARCH_SPARSEMEM_ENABLE=yCONFIG_ARCH_SELECT_MEMORY_MODEL=yCONFIG_ILLEGAL_POINTER_VALUE=0CONFIG_HIGHPTE=yCONFIG_X86_CHECK_BIOS_CORRUPTION=yCONFIG_X86_BOOTPARAM_MEMORY_CORRUPTION_CHECK=yCONFIG_MTRR=yCONFIG_MTRR_SANITIZER=yCONFIG_MTRR_SANITIZER_ENABLE_DEFAULT=0CONFIG_MTRR_SANITIZER_SPARE_REG_NR_DEFAULT=1CONFIG_X86_PAT=yCONFIG_ARCH_USES_PG_UNCACHED=yCONFIG_X86_UMIP=yCONFIG_CC_HAS_IBT=yCONFIG_X86_INTEL_TSX_MODE_OFF=y
# CONFIG_X86_INTEL_TSX_MODE_ON is not set
# CONFIG_X86_INTEL_TSX_MODE_AUTO is not setCONFIG_EFI=yCONFIG_EFI_STUB=y
# CONFIG_HZ_100 is not setCONFIG_HZ_250=y
# CONFIG_HZ_300 is not set
# CONFIG_HZ_1000 is not setCONFIG_HZ=250CONFIG_SCHED_HRTICK=yCONFIG_KEXEC=yCONFIG_CRASH_DUMP=yCONFIG_KEXEC_JUMP=yCONFIG_PHYSICAL_START=0x1000000CONFIG_RELOCATABLE=y
# CONFIG_RANDOMIZE_BASE is not setCONFIG_X86_NEED_RELOCS=yCONFIG_PHYSICAL_ALIGN=0x200000CONFIG_HOTPLUG_CPU=yCONFIG_BOOTPARAM_HOTPLUG_CPU0=yCONFIG_DEBUG_HOTPLUG_CPU0=yCONFIG_COMPAT_VDSO=yCONFIG_CMDLINE_BOOL=yCONFIG_CMDLINE=""CONFIG_MODIFY_LDT_SYSCALL=yCONFIG_STRICT_SIGALTSTACK_SIZE=y
# end of Processor type and features
CONFIG_CC_HAS_SLS=yCONFIG_CC_HAS_RETURN_THUNK=yCONFIG_SPECULATION_MITIGATIONS=yCONFIG_RETPOLINE=yCONFIG_RETHUNK=yCONFIG_ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE=y
#
# Power management and ACPI options
#CONFIG_ARCH_HIBERNATION_HEADER=yCONFIG_SUSPEND=yCONFIG_SUSPEND_FREEZER=yCONFIG_SUSPEND_SKIP_SYNC=yCONFIG_HIBERNATE_CALLBACKS=yCONFIG_HIBERNATION=yCONFIG_HIBERNATION_SNAPSHOT_DEV=yCONFIG_PM_STD_PARTITION=""CONFIG_PM_SLEEP=yCONFIG_PM_SLEEP_SMP=yCONFIG_PM_AUTOSLEEP=yCONFIG_PM_USERSPACE_AUTOSLEEP=yCONFIG_PM_WAKELOCKS=yCONFIG_PM_WAKELOCKS_LIMIT=100CONFIG_PM_WAKELOCKS_GC=yCONFIG_PM=yCONFIG_PM_DEBUG=yCONFIG_PM_ADVANCED_DEBUG=yCONFIG_PM_TEST_SUSPEND=yCONFIG_PM_SLEEP_DEBUG=yCONFIG_DPM_WATCHDOG=yCONFIG_DPM_WATCHDOG_TIMEOUT=120CONFIG_PM_TRACE=yCONFIG_PM_TRACE_RTC=yCONFIG_PM_CLK=yCONFIG_PM_GENERIC_DOMAINS=yCONFIG_WQ_POWER_EFFICIENT_DEFAULT=yCONFIG_PM_GENERIC_DOMAINS_SLEEP=yCONFIG_PM_GENERIC_DOMAINS_OF=yCONFIG_ENERGY_MODEL=yCONFIG_ARCH_SUPPORTS_ACPI=yCONFIG_ACPI=yCONFIG_ACPI_LEGACY_TABLES_LOOKUP=yCONFIG_ARCH_MIGHT_HAVE_ACPI_PDC=yCONFIG_ACPI_SYSTEM_POWER_STATES_SUPPORT=yCONFIG_ACPI_TABLE_LIB=yCONFIG_ACPI_DEBUGGER=yCONFIG_ACPI_DEBUGGER_USER=yCONFIG_ACPI_SPCR_TABLE=yCONFIG_ACPI_SLEEP=yCONFIG_ACPI_REV_OVERRIDE_POSSIBLE=yCONFIG_ACPI_EC_DEBUGFS=yCONFIG_ACPI_AC=yCONFIG_ACPI_BATTERY=yCONFIG_ACPI_BUTTON=yCONFIG_ACPI_VIDEO=yCONFIG_ACPI_FAN=yCONFIG_ACPI_TAD=yCONFIG_ACPI_DOCK=yCONFIG_ACPI_CPU_FREQ_PSS=yCONFIG_ACPI_PROCESSOR_CSTATE=yCONFIG_ACPI_PROCESSOR_IDLE=yCONFIG_ACPI_PROCESSOR=yCONFIG_ACPI_IPMI=yCONFIG_ACPI_HOTPLUG_CPU=yCONFIG_ACPI_PROCESSOR_AGGREGATOR=yCONFIG_ACPI_THERMAL=yCONFIG_ACPI_PLATFORM_PROFILE=yCONFIG_ARCH_HAS_ACPI_TABLE_UPGRADE=yCONFIG_ACPI_TABLE_UPGRADE=yCONFIG_ACPI_DEBUG=yCONFIG_ACPI_PCI_SLOT=yCONFIG_ACPI_CONTAINER=yCONFIG_ACPI_HOTPLUG_IOAPIC=yCONFIG_ACPI_SBS=yCONFIG_ACPI_HED=yCONFIG_ACPI_CUSTOM_METHOD=yCONFIG_ACPI_BGRT=yCONFIG_ACPI_REDUCED_HARDWARE_ONLY=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=yCONFIG_ACPI_APEI_ERST_DEBUG=yCONFIG_ACPI_DPTF=yCONFIG_DPTF_POWER=yCONFIG_DPTF_PCH_FIVR=yCONFIG_ACPI_WATCHDOG=yCONFIG_ACPI_EXTLOG=yCONFIG_ACPI_CONFIGFS=yCONFIG_ACPI_PCC=yCONFIG_ACPI_FFH=yCONFIG_PMIC_OPREGION=yCONFIG_BYTCRC_PMIC_OPREGION=yCONFIG_CHTCRC_PMIC_OPREGION=yCONFIG_XPOWER_PMIC_OPREGION=yCONFIG_BXT_WC_PMIC_OPREGION=yCONFIG_CHT_WC_PMIC_OPREGION=yCONFIG_CHT_DC_TI_PMIC_OPREGION=yCONFIG_TPS68470_PMIC_OPREGION=yCONFIG_ACPI_VIOT=yCONFIG_X86_PM_TIMER=yCONFIG_X86_APM_BOOT=yCONFIG_APM=yCONFIG_APM_IGNORE_USER_SUSPEND=yCONFIG_APM_DO_ENABLE=yCONFIG_APM_CPU_IDLE=yCONFIG_APM_DISPLAY_BLANK=yCONFIG_APM_ALLOW_INTS=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 is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y 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_CPUFREQ_DT=yCONFIG_CPUFREQ_DT_PLATDEV=yCONFIG_X86_INTEL_PSTATE=yCONFIG_X86_PCC_CPUFREQ=yCONFIG_X86_AMD_PSTATE=yCONFIG_X86_AMD_PSTATE_UT=yCONFIG_X86_ACPI_CPUFREQ=yCONFIG_X86_ACPI_CPUFREQ_CPB=yCONFIG_X86_POWERNOW_K6=yCONFIG_X86_POWERNOW_K7=yCONFIG_X86_POWERNOW_K7_ACPI=yCONFIG_X86_POWERNOW_K8=yCONFIG_X86_AMD_FREQ_SENSITIVITY=yCONFIG_X86_GX_SUSPMOD=yCONFIG_X86_SPEEDSTEP_CENTRINO=yCONFIG_X86_SPEEDSTEP_CENTRINO_TABLE=yCONFIG_X86_SPEEDSTEP_ICH=yCONFIG_X86_SPEEDSTEP_SMI=yCONFIG_X86_P4_CLOCKMOD=yCONFIG_X86_CPUFREQ_NFORCE2=yCONFIG_X86_LONGRUN=yCONFIG_X86_LONGHAUL=yCONFIG_X86_E_POWERSAVER=y
#
# shared options # CONFIG_X86_SPEEDSTEP_LIB=y CONFIG_X86_SPEEDSTEP_RELAXED_CAP_CHECK=y # end of CPU Frequency scaling
#
# CPU Idle
#CONFIG_CPU_IDLE=yCONFIG_CPU_IDLE_GOV_LADDER=yCONFIG_CPU_IDLE_GOV_MENU=yCONFIG_CPU_IDLE_GOV_TEO=yCONFIG_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_GOBIOS is not set
# CONFIG_PCI_GOMMCONFIG is not set
# CONFIG_PCI_GODIRECT is not set
# CONFIG_PCI_GOOLPC is not setCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_PCI_MMCONFIG=yCONFIG_PCI_OLPC=yCONFIG_PCI_CNB20LE_QUIRK=yCONFIG_ISA_BUS=yCONFIG_ISA_DMA_API=yCONFIG_ISA=y
CONFIG_SCx200=y
CONFIG_SCx200HR_TIMER=yCONFIG_OLPC=yCONFIG_OLPC_XO1_PM=yCONFIG_OLPC_XO1_RTC=yCONFIG_OLPC_XO1_SCI=yCONFIG_OLPC_XO15_SCI=yCONFIG_ALIX=yCONFIG_NET5501=yCONFIG_GEOS=yCONFIG_AMD_NB=y
# end of Bus options (PCI etc.)
#
# Binary Emulations
#CONFIG_COMPAT_32=y
# end of Binary Emulations
CONFIG_HAVE_ATOMIC_IOMAP=yCONFIG_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_HAVE_KVM_IRQ_BYPASS=yCONFIG_HAVE_KVM_NO_POLL=yCONFIG_KVM_XFER_TO_GUEST_WORK=yCONFIG_HAVE_KVM_PM_NOTIFIER=yCONFIG_VIRTUALIZATION=yCONFIG_KVM=y
# CONFIG_KVM_WERROR is not setCONFIG_KVM_INTEL=yCONFIG_KVM_AMD=yCONFIG_KVM_XEN=yCONFIG_AS_AVX512=yCONFIG_AS_SHA1_NI=yCONFIG_AS_SHA256_NI=yCONFIG_AS_TPAUSE=y
#
# General architecture-dependent options
#CONFIG_CRASH_CORE=yCONFIG_KEXEC_CORE=yCONFIG_HOTPLUG_SMT=yCONFIG_GENERIC_ENTRY=yCONFIG_KPROBES=yCONFIG_JUMP_LABEL=yCONFIG_STATIC_KEYS_SELFTEST=yCONFIG_STATIC_CALL_SELFTEST=yCONFIG_OPTPROBES=yCONFIG_KPROBES_ON_FTRACE=yCONFIG_UPROBES=yCONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS=yCONFIG_ARCH_USE_BUILTIN_BSWAP=yCONFIG_KRETPROBES=yCONFIG_KRETPROBE_ON_RETHOOK=yCONFIG_USER_RETURN_NOTIFIER=yCONFIG_HAVE_IOREMAP_PROT=yCONFIG_HAVE_KPROBES=yCONFIG_HAVE_KRETPROBES=yCONFIG_HAVE_OPTPROBES=yCONFIG_HAVE_KPROBES_ON_FTRACE=yCONFIG_ARCH_CORRECT_STACKTRACE_ON_KRETPROBE=yCONFIG_HAVE_FUNCTION_ERROR_INJECTION=yCONFIG_HAVE_NMI=yCONFIG_TRACE_IRQFLAGS_SUPPORT=yCONFIG_TRACE_IRQFLAGS_NMI_SUPPORT=yCONFIG_HAVE_ARCH_TRACEHOOK=yCONFIG_HAVE_DMA_CONTIGUOUS=yCONFIG_GENERIC_SMP_IDLE_THREAD=yCONFIG_ARCH_HAS_FORTIFY_SOURCE=yCONFIG_ARCH_HAS_SET_MEMORY=yCONFIG_ARCH_HAS_SET_DIRECT_MAP=yCONFIG_HAVE_ARCH_THREAD_STRUCT_WHITELIST=yCONFIG_ARCH_WANTS_DYNAMIC_TASK_STRUCT=yCONFIG_ARCH_WANTS_NO_INSTR=yCONFIG_ARCH_32BIT_OFF_T=yCONFIG_HAVE_ASM_MODVERSIONS=yCONFIG_HAVE_REGS_AND_STACK_ACCESS_API=yCONFIG_HAVE_RSEQ=yCONFIG_HAVE_FUNCTION_ARG_ACCESS_API=yCONFIG_HAVE_HW_BREAKPOINT=yCONFIG_HAVE_MIXED_BREAKPOINTS_REGS=yCONFIG_HAVE_USER_RETURN_NOTIFIER=yCONFIG_HAVE_PERF_EVENTS_NMI=yCONFIG_HAVE_HARDLOCKUP_DETECTOR_PERF=yCONFIG_HAVE_PERF_REGS=yCONFIG_HAVE_PERF_USER_STACK_DUMP=yCONFIG_HAVE_ARCH_JUMP_LABEL=yCONFIG_HAVE_ARCH_JUMP_LABEL_RELATIVE=yCONFIG_MMU_GATHER_TABLE_FREE=yCONFIG_MMU_GATHER_RCU_TABLE_FREE=yCONFIG_MMU_GATHER_MERGE_VMAS=yCONFIG_ARCH_HAVE_NMI_SAFE_CMPXCHG=yCONFIG_HAVE_ALIGNED_STRUCT_PAGE=yCONFIG_HAVE_CMPXCHG_LOCAL=yCONFIG_HAVE_CMPXCHG_DOUBLE=yCONFIG_ARCH_WANT_IPC_PARSE_VERSION=yCONFIG_HAVE_ARCH_SECCOMP=yCONFIG_HAVE_ARCH_SECCOMP_FILTER=yCONFIG_SECCOMP=yCONFIG_SECCOMP_FILTER=yCONFIG_SECCOMP_CACHE_DEBUG=yCONFIG_HAVE_ARCH_STACKLEAK=yCONFIG_HAVE_STACKPROTECTOR=yCONFIG_STACKPROTECTOR=yCONFIG_STACKPROTECTOR_STRONG=yCONFIG_ARCH_SUPPORTS_LTO_CLANG=yCONFIG_ARCH_SUPPORTS_LTO_CLANG_THIN=yCONFIG_LTO_NONE=yCONFIG_HAVE_ARCH_WITHIN_STACK_FRAMES=yCONFIG_HAVE_IRQ_TIME_ACCOUNTING=yCONFIG_HAVE_MOVE_PUD=yCONFIG_HAVE_MOVE_PMD=yCONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE=yCONFIG_ARCH_WANT_HUGE_PMD_SHARE=yCONFIG_HAVE_MOD_ARCH_SPECIFIC=yCONFIG_MODULES_USE_ELF_REL=yCONFIG_HAVE_SOFTIRQ_ON_OWN_STACK=yCONFIG_SOFTIRQ_ON_OWN_STACK=yCONFIG_ARCH_HAS_ELF_RANDOMIZE=yCONFIG_HAVE_ARCH_MMAP_RND_BITS=yCONFIG_HAVE_EXIT_THREAD=yCONFIG_ARCH_MMAP_RND_BITS=8CONFIG_PAGE_SIZE_LESS_THAN_64KB=yCONFIG_PAGE_SIZE_LESS_THAN_256KB=yCONFIG_ISA_BUS_API=yCONFIG_CLONE_BACKWARDS=yCONFIG_OLD_SIGSUSPEND3=yCONFIG_OLD_SIGACTION=yCONFIG_COMPAT_32BIT_TIME=yCONFIG_HAVE_ARCH_RANDOMIZE_KSTACK_OFFSET=yCONFIG_RANDOMIZE_KSTACK_OFFSET=yCONFIG_RANDOMIZE_KSTACK_OFFSET_DEFAULT=yCONFIG_ARCH_HAS_STRICT_KERNEL_RWX=yCONFIG_STRICT_KERNEL_RWX=yCONFIG_ARCH_HAS_STRICT_MODULE_RWX=yCONFIG_STRICT_MODULE_RWX=yCONFIG_HAVE_ARCH_PREL32_RELOCATIONS=yCONFIG_ARCH_USE_MEMREMAP_PROT=yCONFIG_LOCK_EVENT_COUNTS=yCONFIG_ARCH_HAS_MEM_ENCRYPT=yCONFIG_HAVE_STATIC_CALL=yCONFIG_HAVE_PREEMPT_DYNAMIC=yCONFIG_HAVE_PREEMPT_DYNAMIC_CALL=yCONFIG_ARCH_WANT_LD_ORPHAN_WARN=yCONFIG_ARCH_SUPPORTS_DEBUG_PAGEALLOC=yCONFIG_ARCH_SPLIT_ARG64=yCONFIG_ARCH_HAS_PARANOID_L1D_FLUSH=yCONFIG_DYNAMIC_SIGFRAME=y
#
# GCOV-based kernel profiling
#CONFIG_GCOV_KERNEL=yCONFIG_ARCH_HAS_GCOV_PROFILE_ALL=y
# CONFIG_GCOV_PROFILE_ALL is not set
# end of GCOV-based kernel profiling
CONFIG_HAVE_GCC_PLUGINS=yCONFIG_GCC_PLUGINS=yCONFIG_GCC_PLUGIN_LATENT_ENTROPY=y
# end of General architecture-dependent options
CONFIG_RT_MUTEXES=yCONFIG_BASE_SMALL=0CONFIG_MODULE_SIG_FORMAT=yCONFIG_MODULES=yCONFIG_MODULE_FORCE_LOAD=yCONFIG_MODULE_UNLOAD=yCONFIG_MODULE_FORCE_UNLOAD=yCONFIG_MODULE_UNLOAD_TAINT_TRACKING=yCONFIG_MODVERSIONS=yCONFIG_ASM_MODVERSIONS=yCONFIG_MODULE_SRCVERSION_ALL=yCONFIG_MODULE_SIG=yCONFIG_MODULE_SIG_FORCE=yCONFIG_MODULE_SIG_ALL=yCONFIG_MODULE_SIG_SHA1=y
# CONFIG_MODULE_SIG_SHA224 is not set
# CONFIG_MODULE_SIG_SHA256 is not set
# CONFIG_MODULE_SIG_SHA384 is not set
# CONFIG_MODULE_SIG_SHA512 is not setCONFIG_MODULE_SIG_HASH="sha1"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 setCONFIG_MODULE_ALLOW_MISSING_NAMESPACE_IMPORTS=yCONFIG_MODPROBE_PATH="/sbin/modprobe"
# CONFIG_TRIM_UNUSED_KSYMS is not setCONFIG_MODULES_TREE_LOOKUP=yCONFIG_BLOCK=yCONFIG_BLOCK_LEGACY_AUTOLOAD=yCONFIG_BLK_RQ_ALLOC_TIME=yCONFIG_BLK_CGROUP_RWSTAT=yCONFIG_BLK_DEV_BSG_COMMON=yCONFIG_BLK_ICQ=yCONFIG_BLK_DEV_BSGLIB=yCONFIG_BLK_DEV_INTEGRITY=yCONFIG_BLK_DEV_INTEGRITY_T10=yCONFIG_BLK_DEV_ZONED=yCONFIG_BLK_DEV_THROTTLING=yCONFIG_BLK_DEV_THROTTLING_LOW=yCONFIG_BLK_WBT=yCONFIG_BLK_WBT_MQ=yCONFIG_BLK_CGROUP_IOLATENCY=yCONFIG_BLK_CGROUP_FC_APPID=yCONFIG_BLK_CGROUP_IOCOST=yCONFIG_BLK_CGROUP_IOPRIO=yCONFIG_BLK_DEBUG_FS=yCONFIG_BLK_DEBUG_FS_ZONED=yCONFIG_BLK_SED_OPAL=yCONFIG_BLK_INLINE_ENCRYPTION=yCONFIG_BLK_INLINE_ENCRYPTION_FALLBACK=y
#
# Partition Types
#CONFIG_PARTITION_ADVANCED=yCONFIG_ACORN_PARTITION=yCONFIG_ACORN_PARTITION_CUMANA=yCONFIG_ACORN_PARTITION_EESOX=yCONFIG_ACORN_PARTITION_ICS=yCONFIG_ACORN_PARTITION_ADFS=yCONFIG_ACORN_PARTITION_POWERTEC=yCONFIG_ACORN_PARTITION_RISCIX=yCONFIG_AIX_PARTITION=yCONFIG_OSF_PARTITION=yCONFIG_AMIGA_PARTITION=yCONFIG_ATARI_PARTITION=yCONFIG_MAC_PARTITION=yCONFIG_MSDOS_PARTITION=yCONFIG_BSD_DISKLABEL=yCONFIG_MINIX_SUBPARTITION=yCONFIG_SOLARIS_X86_PARTITION=yCONFIG_UNIXWARE_DISKLABEL=yCONFIG_LDM_PARTITION=yCONFIG_LDM_DEBUG=yCONFIG_SGI_PARTITION=yCONFIG_ULTRIX_PARTITION=yCONFIG_SUN_PARTITION=yCONFIG_KARMA_PARTITION=yCONFIG_EFI_PARTITION=yCONFIG_SYSV68_PARTITION=yCONFIG_CMDLINE_PARTITION=y
# end of Partition Types
CONFIG_BLK_MQ_PCI=yCONFIG_BLK_MQ_VIRTIO=yCONFIG_BLK_MQ_RDMA=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=yCONFIG_BFQ_CGROUP_DEBUG=y
# end of IO Schedulers
CONFIG_PREEMPT_NOTIFIERS=yCONFIG_PADATA=yCONFIG_ASN1=yCONFIG_UNINLINE_SPIN_UNLOCK=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_BINFMT_ELF_KUNIT_TEST=yCONFIG_ELFCORE=yCONFIG_CORE_DUMP_DEFAULT_ELF_HEADERS=yCONFIG_BINFMT_SCRIPT=yCONFIG_BINFMT_MISC=yCONFIG_COREDUMP=y
# end of Executable file formats
#
# Memory Management options
#CONFIG_ZPOOL=yCONFIG_SWAP=yCONFIG_ZSWAP=yCONFIG_ZSWAP_DEFAULT_ON=y
# CONFIG_ZSWAP_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=yCONFIG_Z3FOLD=yCONFIG_ZSMALLOC=yCONFIG_ZSMALLOC_STAT=y
#
# SLAB allocator options
#
# CONFIG_SLAB is not setCONFIG_SLUB=y
# CONFIG_SLOB is not setCONFIG_SLAB_MERGE_DEFAULT=y
# CONFIG_SLAB_FREELIST_RANDOM is not set
# CONFIG_SLAB_FREELIST_HARDENED is not set
# CONFIG_SLUB_STATS is not setCONFIG_SLUB_CPU_PARTIAL=y
# end of SLAB allocator options
CONFIG_SHUFFLE_PAGE_ALLOCATOR=yCONFIG_COMPAT_BRK=yCONFIG_SELECT_MEMORY_MODEL=yCONFIG_FLATMEM_MANUAL=y
# CONFIG_SPARSEMEM_MANUAL is not setCONFIG_FLATMEM=yCONFIG_SPARSEMEM_STATIC=yCONFIG_HAVE_FAST_GUP=yCONFIG_MEMORY_ISOLATION=yCONFIG_EXCLUSIVE_SYSTEM_RAM=yCONFIG_SPLIT_PTLOCK_CPUS=4CONFIG_MEMORY_BALLOON=yCONFIG_BALLOON_COMPACTION=yCONFIG_COMPACTION=yCONFIG_COMPACT_UNEVICTABLE_DEFAULT=1CONFIG_PAGE_REPORTING=yCONFIG_MIGRATION=yCONFIG_CONTIG_ALLOC=yCONFIG_BOUNCE=yCONFIG_MMU_NOTIFIER=yCONFIG_KSM=yCONFIG_DEFAULT_MMAP_MIN_ADDR=4096CONFIG_ARCH_SUPPORTS_MEMORY_FAILURE=yCONFIG_MEMORY_FAILURE=yCONFIG_HWPOISON_INJECT=yCONFIG_ARCH_WANT_GENERAL_HUGETLB=yCONFIG_TRANSPARENT_HUGEPAGE=yCONFIG_TRANSPARENT_HUGEPAGE_ALWAYS=y
# CONFIG_TRANSPARENT_HUGEPAGE_MADVISE is not setCONFIG_READ_ONLY_THP_FOR_FS=yCONFIG_NEED_PER_CPU_EMBED_FIRST_CHUNK=yCONFIG_NEED_PER_CPU_PAGE_FIRST_CHUNK=yCONFIG_HAVE_SETUP_PER_CPU_AREA=yCONFIG_FRONTSWAP=yCONFIG_CMA=yCONFIG_CMA_DEBUG=yCONFIG_CMA_DEBUGFS=yCONFIG_CMA_SYSFS=yCONFIG_CMA_AREAS=7CONFIG_GENERIC_EARLY_IOREMAP=yCONFIG_PAGE_IDLE_FLAG=yCONFIG_IDLE_PAGE_TRACKING=yCONFIG_ARCH_HAS_CACHE_LINE_SIZE=yCONFIG_ARCH_HAS_CURRENT_STACK_POINTER=yCONFIG_ARCH_HAS_ZONE_DMA_SET=yCONFIG_ZONE_DMA=yCONFIG_HMM_MIRROR=yCONFIG_VMAP_PFN=yCONFIG_VM_EVENT_COUNTERS=yCONFIG_PERCPU_STATS=yCONFIG_GUP_TEST=yCONFIG_ARCH_HAS_PTE_SPECIAL=yCONFIG_MAPPING_DIRTY_HELPERS=yCONFIG_KMAP_LOCAL=yCONFIG_ANON_VMA_NAME=yCONFIG_USERFAULTFD=yCONFIG_LRU_GEN=yCONFIG_LRU_GEN_ENABLED=yCONFIG_LRU_GEN_STATS=y
#
# Data Access Monitoring
#CONFIG_DAMON=yCONFIG_DAMON_KUNIT_TEST=yCONFIG_DAMON_VADDR=yCONFIG_DAMON_PADDR=yCONFIG_DAMON_VADDR_KUNIT_TEST=yCONFIG_DAMON_SYSFS=yCONFIG_DAMON_DBGFS=yCONFIG_DAMON_DBGFS_KUNIT_TEST=yCONFIG_DAMON_RECLAIM=yCONFIG_DAMON_LRU_SORT=y
# end of Data Access Monitoring # end of Memory Management options
CONFIG_NET=yCONFIG_NET_INGRESS=yCONFIG_NET_EGRESS=yCONFIG_NET_REDIRECT=yCONFIG_SKB_EXTENSIONS=y
#
# Networking options
#CONFIG_PACKET=yCONFIG_PACKET_DIAG=yCONFIG_UNIX=yCONFIG_UNIX_SCM=yCONFIG_AF_UNIX_OOB=yCONFIG_UNIX_DIAG=yCONFIG_TLS=yCONFIG_TLS_DEVICE=yCONFIG_TLS_TOE=yCONFIG_XFRM=yCONFIG_XFRM_OFFLOAD=yCONFIG_XFRM_ALGO=yCONFIG_XFRM_USER=yCONFIG_XFRM_INTERFACE=yCONFIG_XFRM_SUB_POLICY=yCONFIG_XFRM_MIGRATE=yCONFIG_XFRM_STATISTICS=yCONFIG_XFRM_AH=yCONFIG_XFRM_ESP=yCONFIG_XFRM_IPCOMP=yCONFIG_NET_KEY=yCONFIG_NET_KEY_MIGRATE=yCONFIG_XFRM_ESPINTCP=yCONFIG_SMC=yCONFIG_SMC_DIAG=yCONFIG_XDP_SOCKETS=yCONFIG_XDP_SOCKETS_DIAG=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=yCONFIG_IP_PNP_BOOTP=yCONFIG_IP_PNP_RARP=yCONFIG_NET_IPIP=yCONFIG_NET_IPGRE_DEMUX=yCONFIG_NET_IP_TUNNEL=yCONFIG_NET_IPGRE=yCONFIG_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=yCONFIG_NET_UDP_TUNNEL=yCONFIG_NET_FOU=yCONFIG_NET_FOU_IP_TUNNELS=yCONFIG_INET_AH=yCONFIG_INET_ESP=yCONFIG_INET_ESP_OFFLOAD=yCONFIG_INET_ESPINTCP=yCONFIG_INET_IPCOMP=yCONFIG_INET_TABLE_PERTURB_ORDER=16CONFIG_INET_XFRM_TUNNEL=yCONFIG_INET_TUNNEL=yCONFIG_INET_DIAG=yCONFIG_INET_TCP_DIAG=yCONFIG_INET_UDP_DIAG=yCONFIG_INET_RAW_DIAG=yCONFIG_INET_DIAG_DESTROY=yCONFIG_TCP_CONG_ADVANCED=yCONFIG_TCP_CONG_BIC=yCONFIG_TCP_CONG_CUBIC=yCONFIG_TCP_CONG_WESTWOOD=yCONFIG_TCP_CONG_HTCP=yCONFIG_TCP_CONG_HSTCP=yCONFIG_TCP_CONG_HYBLA=yCONFIG_TCP_CONG_VEGAS=yCONFIG_TCP_CONG_NV=yCONFIG_TCP_CONG_SCALABLE=yCONFIG_TCP_CONG_LP=yCONFIG_TCP_CONG_VENO=yCONFIG_TCP_CONG_YEAH=yCONFIG_TCP_CONG_ILLINOIS=yCONFIG_TCP_CONG_DCTCP=yCONFIG_TCP_CONG_CDG=yCONFIG_TCP_CONG_BBR=y
# CONFIG_DEFAULT_BIC is not setCONFIG_DEFAULT_CUBIC=y
# CONFIG_DEFAULT_HTCP is not set
# CONFIG_DEFAULT_HYBLA is not set
# CONFIG_DEFAULT_VEGAS is not set
# CONFIG_DEFAULT_VENO is not set
# CONFIG_DEFAULT_WESTWOOD is not set
# CONFIG_DEFAULT_DCTCP is not set
# CONFIG_DEFAULT_CDG is not set
# CONFIG_DEFAULT_BBR is not set
# 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=yCONFIG_INET6_ESP=yCONFIG_INET6_ESP_OFFLOAD=yCONFIG_INET6_ESPINTCP=yCONFIG_INET6_IPCOMP=yCONFIG_IPV6_MIP6=yCONFIG_IPV6_ILA=yCONFIG_INET6_XFRM_TUNNEL=yCONFIG_INET6_TUNNEL=yCONFIG_IPV6_VTI=yCONFIG_IPV6_SIT=yCONFIG_IPV6_SIT_6RD=yCONFIG_IPV6_NDISC_NODETYPE=yCONFIG_IPV6_TUNNEL=yCONFIG_IPV6_GRE=yCONFIG_IPV6_FOU=yCONFIG_IPV6_FOU_TUNNEL=yCONFIG_IPV6_MULTIPLE_TABLES=yCONFIG_IPV6_SUBTREES=yCONFIG_IPV6_MROUTE=yCONFIG_IPV6_MROUTE_MULTIPLE_TABLES=yCONFIG_IPV6_PIMSM_V2=yCONFIG_IPV6_SEG6_LWTUNNEL=yCONFIG_IPV6_SEG6_HMAC=yCONFIG_IPV6_SEG6_BPF=yCONFIG_IPV6_RPL_LWTUNNEL=yCONFIG_IPV6_IOAM6_LWTUNNEL=yCONFIG_NETLABEL=yCONFIG_MPTCP=yCONFIG_INET_MPTCP_DIAG=yCONFIG_MPTCP_IPV6=yCONFIG_MPTCP_KUNIT_TEST=yCONFIG_NETWORK_SECMARK=yCONFIG_NET_PTP_CLASSIFY=yCONFIG_NETWORK_PHY_TIMESTAMPING=yCONFIG_NETFILTER=yCONFIG_NETFILTER_ADVANCED=yCONFIG_BRIDGE_NETFILTER=y
#
# Core Netfilter Configuration
#CONFIG_NETFILTER_INGRESS=yCONFIG_NETFILTER_EGRESS=yCONFIG_NETFILTER_SKIP_EGRESS=yCONFIG_NETFILTER_NETLINK=yCONFIG_NETFILTER_FAMILY_BRIDGE=yCONFIG_NETFILTER_FAMILY_ARP=yCONFIG_NETFILTER_NETLINK_HOOK=yCONFIG_NETFILTER_NETLINK_ACCT=yCONFIG_NETFILTER_NETLINK_QUEUE=yCONFIG_NETFILTER_NETLINK_LOG=yCONFIG_NETFILTER_NETLINK_OSF=yCONFIG_NF_CONNTRACK=yCONFIG_NF_LOG_SYSLOG=yCONFIG_NETFILTER_CONNCOUNT=yCONFIG_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_CT_PROTO_DCCP=yCONFIG_NF_CT_PROTO_GRE=yCONFIG_NF_CT_PROTO_SCTP=yCONFIG_NF_CT_PROTO_UDPLITE=yCONFIG_NF_CONNTRACK_AMANDA=yCONFIG_NF_CONNTRACK_FTP=yCONFIG_NF_CONNTRACK_H323=yCONFIG_NF_CONNTRACK_IRC=yCONFIG_NF_CONNTRACK_BROADCAST=yCONFIG_NF_CONNTRACK_NETBIOS_NS=yCONFIG_NF_CONNTRACK_SNMP=yCONFIG_NF_CONNTRACK_PPTP=yCONFIG_NF_CONNTRACK_SANE=yCONFIG_NF_CONNTRACK_SIP=yCONFIG_NF_CONNTRACK_TFTP=yCONFIG_NF_CT_NETLINK=yCONFIG_NF_CT_NETLINK_TIMEOUT=yCONFIG_NF_CT_NETLINK_HELPER=yCONFIG_NETFILTER_NETLINK_GLUE_CT=yCONFIG_NF_NAT=yCONFIG_NF_NAT_AMANDA=yCONFIG_NF_NAT_FTP=yCONFIG_NF_NAT_IRC=yCONFIG_NF_NAT_SIP=yCONFIG_NF_NAT_TFTP=yCONFIG_NF_NAT_REDIRECT=yCONFIG_NF_NAT_MASQUERADE=yCONFIG_NETFILTER_SYNPROXY=yCONFIG_NF_TABLES=yCONFIG_NF_TABLES_INET=yCONFIG_NF_TABLES_NETDEV=yCONFIG_NFT_NUMGEN=yCONFIG_NFT_CT=yCONFIG_NFT_FLOW_OFFLOAD=yCONFIG_NFT_CONNLIMIT=yCONFIG_NFT_LOG=yCONFIG_NFT_LIMIT=yCONFIG_NFT_MASQ=yCONFIG_NFT_REDIR=yCONFIG_NFT_NAT=yCONFIG_NFT_TUNNEL=y
# CONFIG_NFT_OBJREF is not setCONFIG_NFT_QUEUE=yCONFIG_NFT_QUOTA=yCONFIG_NFT_REJECT=yCONFIG_NFT_REJECT_INET=yCONFIG_NFT_COMPAT=yCONFIG_NFT_HASH=yCONFIG_NFT_FIB=yCONFIG_NFT_FIB_INET=yCONFIG_NFT_XFRM=yCONFIG_NFT_SOCKET=yCONFIG_NFT_OSF=yCONFIG_NFT_TPROXY=yCONFIG_NFT_SYNPROXY=yCONFIG_NF_DUP_NETDEV=yCONFIG_NFT_DUP_NETDEV=yCONFIG_NFT_FWD_NETDEV=yCONFIG_NFT_FIB_NETDEV=yCONFIG_NFT_REJECT_NETDEV=yCONFIG_NF_FLOW_TABLE_INET=yCONFIG_NF_FLOW_TABLE=yCONFIG_NF_FLOW_TABLE_PROCFS=yCONFIG_NETFILTER_XTABLES=y
#
# Xtables combined modules
#CONFIG_NETFILTER_XT_MARK=yCONFIG_NETFILTER_XT_CONNMARK=yCONFIG_NETFILTER_XT_SET=y
#
# Xtables targets
#CONFIG_NETFILTER_XT_TARGET_AUDIT=yCONFIG_NETFILTER_XT_TARGET_CHECKSUM=yCONFIG_NETFILTER_XT_TARGET_CLASSIFY=yCONFIG_NETFILTER_XT_TARGET_CONNMARK=yCONFIG_NETFILTER_XT_TARGET_CONNSECMARK=yCONFIG_NETFILTER_XT_TARGET_CT=yCONFIG_NETFILTER_XT_TARGET_DSCP=yCONFIG_NETFILTER_XT_TARGET_HL=yCONFIG_NETFILTER_XT_TARGET_HMARK=yCONFIG_NETFILTER_XT_TARGET_IDLETIMER=yCONFIG_NETFILTER_XT_TARGET_LED=yCONFIG_NETFILTER_XT_TARGET_LOG=yCONFIG_NETFILTER_XT_TARGET_MARK=yCONFIG_NETFILTER_XT_NAT=yCONFIG_NETFILTER_XT_TARGET_NETMAP=yCONFIG_NETFILTER_XT_TARGET_NFLOG=yCONFIG_NETFILTER_XT_TARGET_NFQUEUE=yCONFIG_NETFILTER_XT_TARGET_NOTRACK=yCONFIG_NETFILTER_XT_TARGET_RATEEST=yCONFIG_NETFILTER_XT_TARGET_REDIRECT=yCONFIG_NETFILTER_XT_TARGET_MASQUERADE=yCONFIG_NETFILTER_XT_TARGET_TEE=yCONFIG_NETFILTER_XT_TARGET_TPROXY=yCONFIG_NETFILTER_XT_TARGET_TRACE=yCONFIG_NETFILTER_XT_TARGET_SECMARK=yCONFIG_NETFILTER_XT_TARGET_TCPMSS=yCONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=y
#
# Xtables matches
#CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=yCONFIG_NETFILTER_XT_MATCH_BPF=yCONFIG_NETFILTER_XT_MATCH_CGROUP=yCONFIG_NETFILTER_XT_MATCH_CLUSTER=yCONFIG_NETFILTER_XT_MATCH_COMMENT=yCONFIG_NETFILTER_XT_MATCH_CONNBYTES=yCONFIG_NETFILTER_XT_MATCH_CONNLABEL=yCONFIG_NETFILTER_XT_MATCH_CONNLIMIT=yCONFIG_NETFILTER_XT_MATCH_CONNMARK=yCONFIG_NETFILTER_XT_MATCH_CONNTRACK=yCONFIG_NETFILTER_XT_MATCH_CPU=yCONFIG_NETFILTER_XT_MATCH_DCCP=yCONFIG_NETFILTER_XT_MATCH_DEVGROUP=yCONFIG_NETFILTER_XT_MATCH_DSCP=yCONFIG_NETFILTER_XT_MATCH_ECN=yCONFIG_NETFILTER_XT_MATCH_ESP=yCONFIG_NETFILTER_XT_MATCH_HASHLIMIT=yCONFIG_NETFILTER_XT_MATCH_HELPER=yCONFIG_NETFILTER_XT_MATCH_HL=yCONFIG_NETFILTER_XT_MATCH_IPCOMP=yCONFIG_NETFILTER_XT_MATCH_IPRANGE=yCONFIG_NETFILTER_XT_MATCH_IPVS=yCONFIG_NETFILTER_XT_MATCH_L2TP=yCONFIG_NETFILTER_XT_MATCH_LENGTH=yCONFIG_NETFILTER_XT_MATCH_LIMIT=yCONFIG_NETFILTER_XT_MATCH_MAC=yCONFIG_NETFILTER_XT_MATCH_MARK=yCONFIG_NETFILTER_XT_MATCH_MULTIPORT=yCONFIG_NETFILTER_XT_MATCH_NFACCT=yCONFIG_NETFILTER_XT_MATCH_OSF=yCONFIG_NETFILTER_XT_MATCH_OWNER=yCONFIG_NETFILTER_XT_MATCH_POLICY=yCONFIG_NETFILTER_XT_MATCH_PHYSDEV=yCONFIG_NETFILTER_XT_MATCH_PKTTYPE=yCONFIG_NETFILTER_XT_MATCH_QUOTA=yCONFIG_NETFILTER_XT_MATCH_RATEEST=yCONFIG_NETFILTER_XT_MATCH_REALM=yCONFIG_NETFILTER_XT_MATCH_RECENT=yCONFIG_NETFILTER_XT_MATCH_SCTP=yCONFIG_NETFILTER_XT_MATCH_SOCKET=yCONFIG_NETFILTER_XT_MATCH_STATE=yCONFIG_NETFILTER_XT_MATCH_STATISTIC=yCONFIG_NETFILTER_XT_MATCH_STRING=yCONFIG_NETFILTER_XT_MATCH_TCPMSS=yCONFIG_NETFILTER_XT_MATCH_TIME=yCONFIG_NETFILTER_XT_MATCH_U32=y
# end of Core Netfilter Configuration
CONFIG_IP_SET=yCONFIG_IP_SET_MAX=256CONFIG_IP_SET_BITMAP_IP=yCONFIG_IP_SET_BITMAP_IPMAC=yCONFIG_IP_SET_BITMAP_PORT=yCONFIG_IP_SET_HASH_IP=yCONFIG_IP_SET_HASH_IPMARK=yCONFIG_IP_SET_HASH_IPPORT=yCONFIG_IP_SET_HASH_IPPORTIP=yCONFIG_IP_SET_HASH_IPPORTNET=yCONFIG_IP_SET_HASH_IPMAC=yCONFIG_IP_SET_HASH_MAC=yCONFIG_IP_SET_HASH_NETPORTNET=yCONFIG_IP_SET_HASH_NET=yCONFIG_IP_SET_HASH_NETNET=yCONFIG_IP_SET_HASH_NETPORT=yCONFIG_IP_SET_HASH_NETIFACE=yCONFIG_IP_SET_LIST_SET=yCONFIG_IP_VS=yCONFIG_IP_VS_IPV6=yCONFIG_IP_VS_DEBUG=yCONFIG_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=yCONFIG_IP_VS_WRR=yCONFIG_IP_VS_LC=yCONFIG_IP_VS_WLC=yCONFIG_IP_VS_FO=yCONFIG_IP_VS_OVF=yCONFIG_IP_VS_LBLC=yCONFIG_IP_VS_LBLCR=yCONFIG_IP_VS_DH=yCONFIG_IP_VS_SH=yCONFIG_IP_VS_MH=yCONFIG_IP_VS_SED=yCONFIG_IP_VS_NQ=yCONFIG_IP_VS_TWOS=y
#
# 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=yCONFIG_IP_VS_NFCT=yCONFIG_IP_VS_PE_SIP=y
#
# IP: Netfilter Configuration
#CONFIG_NF_DEFRAG_IPV4=yCONFIG_NF_SOCKET_IPV4=yCONFIG_NF_TPROXY_IPV4=yCONFIG_NF_TABLES_IPV4=yCONFIG_NFT_REJECT_IPV4=yCONFIG_NFT_DUP_IPV4=yCONFIG_NFT_FIB_IPV4=yCONFIG_NF_TABLES_ARP=yCONFIG_NF_DUP_IPV4=yCONFIG_NF_LOG_ARP=yCONFIG_NF_LOG_IPV4=yCONFIG_NF_REJECT_IPV4=yCONFIG_NF_NAT_SNMP_BASIC=yCONFIG_NF_NAT_PPTP=yCONFIG_NF_NAT_H323=yCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_AH=yCONFIG_IP_NF_MATCH_ECN=yCONFIG_IP_NF_MATCH_RPFILTER=yCONFIG_IP_NF_MATCH_TTL=yCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=yCONFIG_IP_NF_TARGET_SYNPROXY=yCONFIG_IP_NF_NAT=yCONFIG_IP_NF_TARGET_MASQUERADE=yCONFIG_IP_NF_TARGET_NETMAP=yCONFIG_IP_NF_TARGET_REDIRECT=yCONFIG_IP_NF_MANGLE=yCONFIG_IP_NF_TARGET_CLUSTERIP=yCONFIG_IP_NF_TARGET_ECN=yCONFIG_IP_NF_TARGET_TTL=yCONFIG_IP_NF_RAW=yCONFIG_IP_NF_SECURITY=yCONFIG_IP_NF_ARPTABLES=yCONFIG_IP_NF_ARPFILTER=yCONFIG_IP_NF_ARP_MANGLE=y
# end of IP: Netfilter Configuration
#
# IPv6: Netfilter Configuration
#CONFIG_NF_SOCKET_IPV6=yCONFIG_NF_TPROXY_IPV6=yCONFIG_NF_TABLES_IPV6=yCONFIG_NFT_REJECT_IPV6=yCONFIG_NFT_DUP_IPV6=yCONFIG_NFT_FIB_IPV6=yCONFIG_NF_DUP_IPV6=yCONFIG_NF_REJECT_IPV6=yCONFIG_NF_LOG_IPV6=yCONFIG_IP6_NF_IPTABLES=yCONFIG_IP6_NF_MATCH_AH=yCONFIG_IP6_NF_MATCH_EUI64=yCONFIG_IP6_NF_MATCH_FRAG=yCONFIG_IP6_NF_MATCH_OPTS=yCONFIG_IP6_NF_MATCH_HL=yCONFIG_IP6_NF_MATCH_IPV6HEADER=yCONFIG_IP6_NF_MATCH_MH=yCONFIG_IP6_NF_MATCH_RPFILTER=yCONFIG_IP6_NF_MATCH_RT=yCONFIG_IP6_NF_MATCH_SRH=yCONFIG_IP6_NF_TARGET_HL=yCONFIG_IP6_NF_FILTER=yCONFIG_IP6_NF_TARGET_REJECT=yCONFIG_IP6_NF_TARGET_SYNPROXY=yCONFIG_IP6_NF_MANGLE=yCONFIG_IP6_NF_RAW=yCONFIG_IP6_NF_SECURITY=yCONFIG_IP6_NF_NAT=yCONFIG_IP6_NF_TARGET_MASQUERADE=yCONFIG_IP6_NF_TARGET_NPT=y
# end of IPv6: Netfilter Configuration
CONFIG_NF_DEFRAG_IPV6=yCONFIG_NF_TABLES_BRIDGE=yCONFIG_NFT_BRIDGE_META=yCONFIG_NFT_BRIDGE_REJECT=yCONFIG_NF_CONNTRACK_BRIDGE=yCONFIG_BRIDGE_NF_EBTABLES=yCONFIG_BRIDGE_EBT_BROUTE=yCONFIG_BRIDGE_EBT_T_FILTER=yCONFIG_BRIDGE_EBT_T_NAT=yCONFIG_BRIDGE_EBT_802_3=yCONFIG_BRIDGE_EBT_AMONG=yCONFIG_BRIDGE_EBT_ARP=yCONFIG_BRIDGE_EBT_IP=yCONFIG_BRIDGE_EBT_IP6=yCONFIG_BRIDGE_EBT_LIMIT=yCONFIG_BRIDGE_EBT_MARK=yCONFIG_BRIDGE_EBT_PKTTYPE=yCONFIG_BRIDGE_EBT_STP=yCONFIG_BRIDGE_EBT_VLAN=yCONFIG_BRIDGE_EBT_ARPREPLY=yCONFIG_BRIDGE_EBT_DNAT=yCONFIG_BRIDGE_EBT_MARK_T=yCONFIG_BRIDGE_EBT_REDIRECT=yCONFIG_BRIDGE_EBT_SNAT=yCONFIG_BRIDGE_EBT_LOG=yCONFIG_BRIDGE_EBT_NFLOG=yCONFIG_BPFILTER=yCONFIG_BPFILTER_UMH=yCONFIG_IP_DCCP=yCONFIG_INET_DCCP_DIAG=y
#
# DCCP CCIDs Configuration
#CONFIG_IP_DCCP_CCID2_DEBUG=yCONFIG_IP_DCCP_CCID3=yCONFIG_IP_DCCP_CCID3_DEBUG=yCONFIG_IP_DCCP_TFRC_LIB=yCONFIG_IP_DCCP_TFRC_DEBUG=y
# end of DCCP CCIDs Configuration
#
# DCCP Kernel Hacking
#CONFIG_IP_DCCP_DEBUG=y
# end of DCCP Kernel Hacking
CONFIG_IP_SCTP=yCONFIG_SCTP_DBG_OBJCNT=yCONFIG_SCTP_DEFAULT_COOKIE_HMAC_MD5=y
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_SHA1 is not set
# CONFIG_SCTP_DEFAULT_COOKIE_HMAC_NONE is not setCONFIG_SCTP_COOKIE_HMAC_MD5=yCONFIG_SCTP_COOKIE_HMAC_SHA1=yCONFIG_INET_SCTP_DIAG=yCONFIG_RDS=yCONFIG_RDS_RDMA=yCONFIG_RDS_TCP=yCONFIG_RDS_DEBUG=yCONFIG_TIPC=yCONFIG_TIPC_MEDIA_IB=yCONFIG_TIPC_MEDIA_UDP=yCONFIG_TIPC_CRYPTO=yCONFIG_TIPC_DIAG=yCONFIG_ATM=yCONFIG_ATM_CLIP=yCONFIG_ATM_CLIP_NO_ICMP=yCONFIG_ATM_LANE=yCONFIG_ATM_MPOA=yCONFIG_ATM_BR2684=yCONFIG_ATM_BR2684_IPFILTER=yCONFIG_L2TP=yCONFIG_L2TP_DEBUGFS=yCONFIG_L2TP_V3=yCONFIG_L2TP_IP=yCONFIG_L2TP_ETH=yCONFIG_STP=yCONFIG_GARP=yCONFIG_MRP=yCONFIG_BRIDGE=yCONFIG_BRIDGE_IGMP_SNOOPING=yCONFIG_BRIDGE_VLAN_FILTERING=yCONFIG_BRIDGE_MRP=yCONFIG_BRIDGE_CFM=yCONFIG_NET_DSA=yCONFIG_NET_DSA_TAG_AR9331=yCONFIG_NET_DSA_TAG_BRCM_COMMON=yCONFIG_NET_DSA_TAG_BRCM=yCONFIG_NET_DSA_TAG_BRCM_LEGACY=yCONFIG_NET_DSA_TAG_BRCM_PREPEND=yCONFIG_NET_DSA_TAG_HELLCREEK=yCONFIG_NET_DSA_TAG_GSWIP=yCONFIG_NET_DSA_TAG_DSA_COMMON=yCONFIG_NET_DSA_TAG_DSA=yCONFIG_NET_DSA_TAG_EDSA=yCONFIG_NET_DSA_TAG_MTK=yCONFIG_NET_DSA_TAG_KSZ=yCONFIG_NET_DSA_TAG_OCELOT=yCONFIG_NET_DSA_TAG_OCELOT_8021Q=yCONFIG_NET_DSA_TAG_QCA=yCONFIG_NET_DSA_TAG_RTL4_A=yCONFIG_NET_DSA_TAG_RTL8_4=yCONFIG_NET_DSA_TAG_RZN1_A5PSW=yCONFIG_NET_DSA_TAG_LAN9303=yCONFIG_NET_DSA_TAG_SJA1105=yCONFIG_NET_DSA_TAG_TRAILER=yCONFIG_NET_DSA_TAG_XRS700X=yCONFIG_VLAN_8021Q=yCONFIG_VLAN_8021Q_GVRP=yCONFIG_VLAN_8021Q_MVRP=yCONFIG_LLC=yCONFIG_LLC2=yCONFIG_ATALK=yCONFIG_DEV_APPLETALK=yCONFIG_COPS=yCONFIG_COPS_DAYNA=yCONFIG_COPS_TANGENT=yCONFIG_IPDDP=yCONFIG_IPDDP_ENCAP=yCONFIG_X25=yCONFIG_LAPB=yCONFIG_PHONET=yCONFIG_6LOWPAN=yCONFIG_6LOWPAN_DEBUGFS=yCONFIG_6LOWPAN_NHC=yCONFIG_6LOWPAN_NHC_DEST=yCONFIG_6LOWPAN_NHC_FRAGMENT=yCONFIG_6LOWPAN_NHC_HOP=yCONFIG_6LOWPAN_NHC_IPV6=yCONFIG_6LOWPAN_NHC_MOBILITY=yCONFIG_6LOWPAN_NHC_ROUTING=yCONFIG_6LOWPAN_NHC_UDP=yCONFIG_6LOWPAN_GHC_EXT_HDR_HOP=yCONFIG_6LOWPAN_GHC_UDP=yCONFIG_6LOWPAN_GHC_ICMPV6=yCONFIG_6LOWPAN_GHC_EXT_HDR_DEST=yCONFIG_6LOWPAN_GHC_EXT_HDR_FRAG=yCONFIG_6LOWPAN_GHC_EXT_HDR_ROUTE=yCONFIG_IEEE802154=yCONFIG_IEEE802154_NL802154_EXPERIMENTAL=yCONFIG_IEEE802154_SOCKET=yCONFIG_IEEE802154_6LOWPAN=yCONFIG_MAC802154=yCONFIG_NET_SCHED=y
#
# Queueing/Scheduling
#CONFIG_NET_SCH_CBQ=yCONFIG_NET_SCH_HTB=yCONFIG_NET_SCH_HFSC=yCONFIG_NET_SCH_ATM=yCONFIG_NET_SCH_PRIO=yCONFIG_NET_SCH_MULTIQ=yCONFIG_NET_SCH_RED=yCONFIG_NET_SCH_SFB=yCONFIG_NET_SCH_SFQ=yCONFIG_NET_SCH_TEQL=yCONFIG_NET_SCH_TBF=yCONFIG_NET_SCH_CBS=yCONFIG_NET_SCH_ETF=yCONFIG_NET_SCH_TAPRIO=yCONFIG_NET_SCH_GRED=yCONFIG_NET_SCH_DSMARK=yCONFIG_NET_SCH_NETEM=yCONFIG_NET_SCH_DRR=yCONFIG_NET_SCH_MQPRIO=yCONFIG_NET_SCH_SKBPRIO=yCONFIG_NET_SCH_CHOKE=yCONFIG_NET_SCH_QFQ=yCONFIG_NET_SCH_CODEL=yCONFIG_NET_SCH_FQ_CODEL=yCONFIG_NET_SCH_CAKE=yCONFIG_NET_SCH_FQ=yCONFIG_NET_SCH_HHF=yCONFIG_NET_SCH_PIE=yCONFIG_NET_SCH_FQ_PIE=yCONFIG_NET_SCH_INGRESS=yCONFIG_NET_SCH_PLUG=yCONFIG_NET_SCH_ETS=yCONFIG_NET_SCH_DEFAULT=y
# CONFIG_DEFAULT_FQ is not set
# CONFIG_DEFAULT_CODEL is not set
# CONFIG_DEFAULT_FQ_CODEL is not set
# CONFIG_DEFAULT_FQ_PIE is not set
# CONFIG_DEFAULT_SFQ is not setCONFIG_DEFAULT_PFIFO_FAST=yCONFIG_DEFAULT_NET_SCH="pfifo_fast"
#
# Classification
#CONFIG_NET_CLS=yCONFIG_NET_CLS_BASIC=yCONFIG_NET_CLS_TCINDEX=yCONFIG_NET_CLS_ROUTE4=yCONFIG_NET_CLS_FW=yCONFIG_NET_CLS_U32=yCONFIG_CLS_U32_PERF=yCONFIG_CLS_U32_MARK=yCONFIG_NET_CLS_RSVP=yCONFIG_NET_CLS_RSVP6=yCONFIG_NET_CLS_FLOW=yCONFIG_NET_CLS_CGROUP=yCONFIG_NET_CLS_BPF=yCONFIG_NET_CLS_FLOWER=yCONFIG_NET_CLS_MATCHALL=yCONFIG_NET_EMATCH=yCONFIG_NET_EMATCH_STACK=32CONFIG_NET_EMATCH_CMP=yCONFIG_NET_EMATCH_NBYTE=yCONFIG_NET_EMATCH_U32=yCONFIG_NET_EMATCH_META=yCONFIG_NET_EMATCH_TEXT=yCONFIG_NET_EMATCH_CANID=yCONFIG_NET_EMATCH_IPSET=yCONFIG_NET_EMATCH_IPT=yCONFIG_NET_CLS_ACT=yCONFIG_NET_ACT_POLICE=yCONFIG_NET_ACT_GACT=yCONFIG_GACT_PROB=yCONFIG_NET_ACT_MIRRED=yCONFIG_NET_ACT_SAMPLE=yCONFIG_NET_ACT_IPT=yCONFIG_NET_ACT_NAT=yCONFIG_NET_ACT_PEDIT=yCONFIG_NET_ACT_SIMP=yCONFIG_NET_ACT_SKBEDIT=yCONFIG_NET_ACT_CSUM=yCONFIG_NET_ACT_MPLS=yCONFIG_NET_ACT_VLAN=yCONFIG_NET_ACT_BPF=yCONFIG_NET_ACT_CONNMARK=yCONFIG_NET_ACT_CTINFO=yCONFIG_NET_ACT_SKBMOD=yCONFIG_NET_ACT_IFE=yCONFIG_NET_ACT_TUNNEL_KEY=yCONFIG_NET_ACT_CT=yCONFIG_NET_ACT_GATE=yCONFIG_NET_IFE_SKBMARK=yCONFIG_NET_IFE_SKBPRIO=yCONFIG_NET_IFE_SKBTCINDEX=yCONFIG_NET_TC_SKB_EXT=yCONFIG_NET_SCH_FIFO=yCONFIG_DCB=yCONFIG_DNS_RESOLVER=yCONFIG_BATMAN_ADV=yCONFIG_BATMAN_ADV_BATMAN_V=yCONFIG_BATMAN_ADV_BLA=yCONFIG_BATMAN_ADV_DAT=yCONFIG_BATMAN_ADV_NC=yCONFIG_BATMAN_ADV_MCAST=yCONFIG_BATMAN_ADV_DEBUG=yCONFIG_BATMAN_ADV_TRACING=yCONFIG_OPENVSWITCH=yCONFIG_OPENVSWITCH_GRE=yCONFIG_OPENVSWITCH_VXLAN=yCONFIG_OPENVSWITCH_GENEVE=yCONFIG_VSOCKETS=yCONFIG_VSOCKETS_DIAG=yCONFIG_VSOCKETS_LOOPBACK=yCONFIG_VMWARE_VMCI_VSOCKETS=yCONFIG_VIRTIO_VSOCKETS=yCONFIG_VIRTIO_VSOCKETS_COMMON=yCONFIG_HYPERV_VSOCKETS=yCONFIG_NETLINK_DIAG=yCONFIG_MPLS=yCONFIG_NET_MPLS_GSO=yCONFIG_MPLS_ROUTING=yCONFIG_MPLS_IPTUNNEL=yCONFIG_NET_NSH=yCONFIG_HSR=yCONFIG_NET_SWITCHDEV=yCONFIG_NET_L3_MASTER_DEV=yCONFIG_QRTR=yCONFIG_QRTR_SMD=yCONFIG_QRTR_TUN=yCONFIG_QRTR_MHI=yCONFIG_NET_NCSI=yCONFIG_NCSI_OEM_CMD_GET_MAC=yCONFIG_NCSI_OEM_CMD_KEEP_PHY=yCONFIG_PCPU_DEV_REFCNT=yCONFIG_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=yCONFIG_NET_DROP_MONITOR=y
# end of Network testing # end of Networking options
CONFIG_HAMRADIO=y
#
# Packet Radio protocols
#CONFIG_AX25=yCONFIG_AX25_DAMA_SLAVE=yCONFIG_NETROM=yCONFIG_ROSE=y
#
# AX.25 network device drivers
#CONFIG_MKISS=yCONFIG_6PACK=yCONFIG_BPQETHER=yCONFIG_SCC=yCONFIG_SCC_DELAY=yCONFIG_SCC_TRXECHO=yCONFIG_BAYCOM_SER_FDX=yCONFIG_BAYCOM_SER_HDX=yCONFIG_BAYCOM_PAR=yCONFIG_BAYCOM_EPP=yCONFIG_YAM=y
# end of AX.25 network device drivers
CONFIG_CAN=yCONFIG_CAN_RAW=yCONFIG_CAN_BCM=yCONFIG_CAN_GW=yCONFIG_CAN_J1939=yCONFIG_CAN_ISOTP=yCONFIG_BT=yCONFIG_BT_BREDR=yCONFIG_BT_RFCOMM=yCONFIG_BT_RFCOMM_TTY=yCONFIG_BT_BNEP=yCONFIG_BT_BNEP_MC_FILTER=yCONFIG_BT_BNEP_PROTO_FILTER=yCONFIG_BT_CMTP=yCONFIG_BT_HIDP=yCONFIG_BT_HS=yCONFIG_BT_LE=yCONFIG_BT_6LOWPAN=yCONFIG_BT_LEDS=yCONFIG_BT_MSFTEXT=yCONFIG_BT_AOSPEXT=yCONFIG_BT_DEBUGFS=yCONFIG_BT_SELFTEST=yCONFIG_BT_SELFTEST_ECDH=yCONFIG_BT_SELFTEST_SMP=y
#
# Bluetooth device drivers
#CONFIG_BT_INTEL=yCONFIG_BT_BCM=yCONFIG_BT_RTL=yCONFIG_BT_QCA=yCONFIG_BT_MTK=yCONFIG_BT_HCIBTUSB=yCONFIG_BT_HCIBTUSB_AUTOSUSPEND=yCONFIG_BT_HCIBTUSB_BCM=yCONFIG_BT_HCIBTUSB_MTK=yCONFIG_BT_HCIBTUSB_RTL=yCONFIG_BT_HCIBTSDIO=yCONFIG_BT_HCIUART=yCONFIG_BT_HCIUART_SERDEV=yCONFIG_BT_HCIUART_H4=yCONFIG_BT_HCIUART_NOKIA=yCONFIG_BT_HCIUART_BCSP=yCONFIG_BT_HCIUART_ATH3K=yCONFIG_BT_HCIUART_LL=yCONFIG_BT_HCIUART_3WIRE=yCONFIG_BT_HCIUART_INTEL=yCONFIG_BT_HCIUART_BCM=yCONFIG_BT_HCIUART_RTL=yCONFIG_BT_HCIUART_QCA=yCONFIG_BT_HCIUART_AG6XX=yCONFIG_BT_HCIUART_MRVL=yCONFIG_BT_HCIBCM203X=yCONFIG_BT_HCIBPA10X=yCONFIG_BT_HCIBFUSB=yCONFIG_BT_HCIDTL1=yCONFIG_BT_HCIBT3C=yCONFIG_BT_HCIBLUECARD=yCONFIG_BT_HCIVHCI=yCONFIG_BT_MRVL=yCONFIG_BT_MRVL_SDIO=yCONFIG_BT_ATH3K=yCONFIG_BT_MTKSDIO=yCONFIG_BT_MTKUART=yCONFIG_BT_HCIRSI=yCONFIG_BT_VIRTIO=y
# end of Bluetooth device drivers
CONFIG_AF_RXRPC=yCONFIG_AF_RXRPC_IPV6=yCONFIG_AF_RXRPC_INJECT_LOSS=yCONFIG_AF_RXRPC_DEBUG=yCONFIG_RXKAD=yCONFIG_AF_KCM=yCONFIG_STREAM_PARSER=yCONFIG_MCTP=yCONFIG_MCTP_TEST=yCONFIG_MCTP_FLOWS=yCONFIG_FIB_RULES=yCONFIG_WIRELESS=yCONFIG_WIRELESS_EXT=yCONFIG_WEXT_CORE=yCONFIG_WEXT_PROC=yCONFIG_WEXT_SPY=yCONFIG_WEXT_PRIV=yCONFIG_CFG80211=yCONFIG_NL80211_TESTMODE=yCONFIG_CFG80211_DEVELOPER_WARNINGS=yCONFIG_CFG80211_CERTIFICATION_ONUS=yCONFIG_CFG80211_REQUIRE_SIGNED_REGDB=yCONFIG_CFG80211_USE_KERNEL_REGDB_KEYS=yCONFIG_CFG80211_EXTRA_REGDB_KEYDIR=""CONFIG_CFG80211_REG_CELLULAR_HINTS=yCONFIG_CFG80211_REG_RELAX_NO_IR=yCONFIG_CFG80211_DEFAULT_PS=yCONFIG_CFG80211_DEBUGFS=yCONFIG_CFG80211_CRDA_SUPPORT=yCONFIG_CFG80211_WEXT=yCONFIG_CFG80211_WEXT_EXPORT=yCONFIG_LIB80211=yCONFIG_LIB80211_CRYPT_WEP=yCONFIG_LIB80211_CRYPT_CCMP=yCONFIG_LIB80211_CRYPT_TKIP=yCONFIG_LIB80211_DEBUG=yCONFIG_MAC80211=yCONFIG_MAC80211_HAS_RC=yCONFIG_MAC80211_RC_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT_MINSTREL=yCONFIG_MAC80211_RC_DEFAULT="minstrel_ht"CONFIG_MAC80211_MESH=yCONFIG_MAC80211_LEDS=yCONFIG_MAC80211_DEBUGFS=yCONFIG_MAC80211_MESSAGE_TRACING=yCONFIG_MAC80211_DEBUG_MENU=yCONFIG_MAC80211_NOINLINE=yCONFIG_MAC80211_VERBOSE_DEBUG=yCONFIG_MAC80211_MLME_DEBUG=yCONFIG_MAC80211_STA_DEBUG=yCONFIG_MAC80211_HT_DEBUG=yCONFIG_MAC80211_OCB_DEBUG=yCONFIG_MAC80211_IBSS_DEBUG=yCONFIG_MAC80211_PS_DEBUG=yCONFIG_MAC80211_MPL_DEBUG=yCONFIG_MAC80211_MPATH_DEBUG=yCONFIG_MAC80211_MHWMP_DEBUG=yCONFIG_MAC80211_MESH_SYNC_DEBUG=yCONFIG_MAC80211_MESH_CSA_DEBUG=yCONFIG_MAC80211_MESH_PS_DEBUG=yCONFIG_MAC80211_TDLS_DEBUG=yCONFIG_MAC80211_DEBUG_COUNTERS=yCONFIG_MAC80211_STA_HASH_MAX_SIZE=0CONFIG_RFKILL=yCONFIG_RFKILL_LEDS=yCONFIG_RFKILL_INPUT=yCONFIG_RFKILL_GPIO=yCONFIG_NET_9P=yCONFIG_NET_9P_FD=yCONFIG_NET_9P_VIRTIO=yCONFIG_NET_9P_RDMA=yCONFIG_NET_9P_DEBUG=yCONFIG_CAIF=yCONFIG_CAIF_DEBUG=yCONFIG_CAIF_NETDEV=yCONFIG_CAIF_USB=yCONFIG_CEPH_LIB=yCONFIG_CEPH_LIB_PRETTYDEBUG=yCONFIG_CEPH_LIB_USE_DNS_RESOLVER=yCONFIG_NFC=yCONFIG_NFC_DIGITAL=yCONFIG_NFC_NCI=yCONFIG_NFC_NCI_SPI=yCONFIG_NFC_NCI_UART=yCONFIG_NFC_HCI=yCONFIG_NFC_SHDLC=y
#
# Near Field Communication (NFC) devices
#CONFIG_NFC_TRF7970A=yCONFIG_NFC_MEI_PHY=yCONFIG_NFC_SIM=yCONFIG_NFC_PORT100=yCONFIG_NFC_VIRTUAL_NCI=yCONFIG_NFC_FDP=yCONFIG_NFC_FDP_I2C=yCONFIG_NFC_PN544=yCONFIG_NFC_PN544_I2C=yCONFIG_NFC_PN544_MEI=yCONFIG_NFC_PN533=yCONFIG_NFC_PN533_USB=yCONFIG_NFC_PN533_I2C=yCONFIG_NFC_PN532_UART=yCONFIG_NFC_MICROREAD=yCONFIG_NFC_MICROREAD_I2C=yCONFIG_NFC_MICROREAD_MEI=yCONFIG_NFC_MRVL=yCONFIG_NFC_MRVL_USB=yCONFIG_NFC_MRVL_UART=yCONFIG_NFC_MRVL_I2C=yCONFIG_NFC_MRVL_SPI=yCONFIG_NFC_ST21NFCA=yCONFIG_NFC_ST21NFCA_I2C=yCONFIG_NFC_ST_NCI=yCONFIG_NFC_ST_NCI_I2C=yCONFIG_NFC_ST_NCI_SPI=yCONFIG_NFC_NXP_NCI=yCONFIG_NFC_NXP_NCI_I2C=yCONFIG_NFC_S3FWRN5=yCONFIG_NFC_S3FWRN5_I2C=yCONFIG_NFC_S3FWRN82_UART=yCONFIG_NFC_ST95HF=y
# end of Near Field Communication (NFC) devices
CONFIG_PSAMPLE=yCONFIG_NET_IFE=yCONFIG_LWTUNNEL=yCONFIG_LWTUNNEL_BPF=yCONFIG_DST_CACHE=yCONFIG_GRO_CELLS=yCONFIG_SOCK_VALIDATE_XMIT=yCONFIG_NET_SELFTESTS=yCONFIG_NET_SOCK_MSG=yCONFIG_NET_DEVLINK=yCONFIG_PAGE_POOL=yCONFIG_PAGE_POOL_STATS=yCONFIG_FAILOVER=yCONFIG_ETHTOOL_NETLINK=yCONFIG_NETDEV_ADDR_LIST_TEST=y
#
# Device Drivers
#CONFIG_HAVE_EISA=yCONFIG_EISA=yCONFIG_EISA_VLB_PRIMING=yCONFIG_EISA_PCI_EISA=yCONFIG_EISA_VIRTUAL_ROOT=yCONFIG_EISA_NAMES=yCONFIG_HAVE_PCI=yCONFIG_PCI=yCONFIG_PCI_DOMAINS=yCONFIG_PCIEPORTBUS=yCONFIG_HOTPLUG_PCI_PCIE=yCONFIG_PCIEAER=yCONFIG_PCIEAER_INJECT=yCONFIG_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=yCONFIG_PCIE_PTM=yCONFIG_PCIE_EDR=yCONFIG_PCI_MSI=yCONFIG_PCI_MSI_IRQ_DOMAIN=yCONFIG_PCI_QUIRKS=yCONFIG_PCI_DEBUG=yCONFIG_PCI_REALLOC_ENABLE_AUTO=yCONFIG_PCI_STUB=yCONFIG_PCI_PF_STUB=yCONFIG_PCI_ATS=yCONFIG_PCI_DOE=yCONFIG_PCI_ECAM=yCONFIG_PCI_LOCKLESS_CONFIG=yCONFIG_PCI_IOV=yCONFIG_PCI_PRI=yCONFIG_PCI_PASID=yCONFIG_PCI_LABEL=y
# 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=16CONFIG_HOTPLUG_PCI=yCONFIG_HOTPLUG_PCI_COMPAQ=yCONFIG_HOTPLUG_PCI_COMPAQ_NVRAM=yCONFIG_HOTPLUG_PCI_IBM=yCONFIG_HOTPLUG_PCI_ACPI=yCONFIG_HOTPLUG_PCI_ACPI_IBM=yCONFIG_HOTPLUG_PCI_CPCI=yCONFIG_HOTPLUG_PCI_CPCI_ZT5550=yCONFIG_HOTPLUG_PCI_CPCI_GENERIC=yCONFIG_HOTPLUG_PCI_SHPC=y
#
# PCI controller drivers
#CONFIG_PCI_FTPCI100=yCONFIG_PCI_HOST_COMMON=yCONFIG_PCI_HOST_GENERIC=yCONFIG_PCIE_XILINX=yCONFIG_PCIE_MICROCHIP_HOST=y
#
# DesignWare PCI Core Support
#CONFIG_PCIE_DW=yCONFIG_PCIE_DW_HOST=yCONFIG_PCIE_DW_EP=yCONFIG_PCIE_DW_PLAT=yCONFIG_PCIE_DW_PLAT_HOST=yCONFIG_PCIE_DW_PLAT_EP=yCONFIG_PCIE_INTEL_GW=yCONFIG_PCI_MESON=y
# end of DesignWare PCI Core Support
#
# Mobiveil PCIe Core Support
#
# end of Mobiveil PCIe Core Support
#
# Cadence PCIe controllers support
#CONFIG_PCIE_CADENCE=yCONFIG_PCIE_CADENCE_HOST=yCONFIG_PCIE_CADENCE_EP=yCONFIG_PCIE_CADENCE_PLAT=yCONFIG_PCIE_CADENCE_PLAT_HOST=yCONFIG_PCIE_CADENCE_PLAT_EP=yCONFIG_PCI_J721E=yCONFIG_PCI_J721E_HOST=yCONFIG_PCI_J721E_EP=y
# end of Cadence PCIe controllers support # end of PCI controller drivers
#
# PCI Endpoint
#CONFIG_PCI_ENDPOINT=yCONFIG_PCI_ENDPOINT_CONFIGFS=yCONFIG_PCI_EPF_TEST=yCONFIG_PCI_EPF_NTB=yCONFIG_PCI_EPF_VNTB=y
# end of PCI Endpoint
#
# PCI switch controller drivers
#CONFIG_PCI_SW_SWITCHTEC=y
# end of PCI switch controller drivers
CONFIG_CXL_BUS=yCONFIG_CXL_PCI=yCONFIG_CXL_MEM_RAW_COMMANDS=yCONFIG_CXL_ACPI=yCONFIG_CXL_MEM=yCONFIG_CXL_PORT=yCONFIG_CXL_SUSPEND=yCONFIG_PCCARD=yCONFIG_PCMCIA=yCONFIG_PCMCIA_LOAD_CIS=yCONFIG_CARDBUS=y
#
# PC-card bridges
#CONFIG_YENTA=yCONFIG_YENTA_O2=yCONFIG_YENTA_RICOH=yCONFIG_YENTA_TI=yCONFIG_YENTA_ENE_TUNE=yCONFIG_YENTA_TOSHIBA=yCONFIG_PD6729=yCONFIG_I82092=yCONFIG_I82365=yCONFIG_TCIC=yCONFIG_PCMCIA_PROBE=yCONFIG_PCCARD_NONSTATIC=yCONFIG_RAPIDIO=yCONFIG_RAPIDIO_TSI721=yCONFIG_RAPIDIO_DISC_TIMEOUT=30CONFIG_RAPIDIO_ENABLE_RX_TX_PORTS=yCONFIG_RAPIDIO_DMA_ENGINE=yCONFIG_RAPIDIO_DEBUG=yCONFIG_RAPIDIO_ENUM_BASIC=yCONFIG_RAPIDIO_CHMAN=yCONFIG_RAPIDIO_MPORT_CDEV=y
#
# RapidIO Switch drivers
#CONFIG_RAPIDIO_CPS_XX=yCONFIG_RAPIDIO_CPS_GEN2=yCONFIG_RAPIDIO_RXS_GEN3=y
# end of RapidIO Switch drivers
#
# Generic Driver Options
#CONFIG_AUXILIARY_BUS=yCONFIG_UEVENT_HELPER=yCONFIG_UEVENT_HELPER_PATH=""CONFIG_DEVTMPFS=yCONFIG_DEVTMPFS_MOUNT=yCONFIG_DEVTMPFS_SAFE=yCONFIG_STANDALONE=yCONFIG_PREVENT_FIRMWARE_BUILD=y
#
# Firmware loader
#CONFIG_FW_LOADER=yCONFIG_FW_LOADER_PAGED_BUF=yCONFIG_FW_LOADER_SYSFS=yCONFIG_EXTRA_FIRMWARE=""CONFIG_FW_LOADER_USER_HELPER=yCONFIG_FW_LOADER_USER_HELPER_FALLBACK=yCONFIG_FW_LOADER_COMPRESS=yCONFIG_FW_LOADER_COMPRESS_XZ=yCONFIG_FW_LOADER_COMPRESS_ZSTD=yCONFIG_FW_CACHE=yCONFIG_FW_UPLOAD=y
# end of Firmware loader
CONFIG_WANT_DEV_COREDUMP=yCONFIG_ALLOW_DEV_COREDUMP=yCONFIG_DEV_COREDUMP=yCONFIG_DEBUG_DRIVER=yCONFIG_DEBUG_DEVRES=yCONFIG_DEBUG_TEST_DRIVER_REMOVE=yCONFIG_PM_QOS_KUNIT_TEST=yCONFIG_TEST_ASYNC_DRIVER_PROBE=mCONFIG_DRIVER_PE_KUNIT_TEST=yCONFIG_GENERIC_CPU_AUTOPROBE=yCONFIG_GENERIC_CPU_VULNERABILITIES=yCONFIG_REGMAP=yCONFIG_REGMAP_I2C=yCONFIG_REGMAP_SLIMBUS=yCONFIG_REGMAP_SPI=yCONFIG_REGMAP_SPMI=yCONFIG_REGMAP_W1=yCONFIG_REGMAP_MMIO=yCONFIG_REGMAP_IRQ=yCONFIG_REGMAP_SOUNDWIRE=yCONFIG_REGMAP_SOUNDWIRE_MBQ=yCONFIG_REGMAP_SCCB=yCONFIG_REGMAP_I3C=yCONFIG_REGMAP_SPI_AVMM=yCONFIG_DMA_SHARED_BUFFER=yCONFIG_DMA_FENCE_TRACE=y
# end of Generic Driver Options
#
# Bus devices
#CONFIG_MOXTET=yCONFIG_MHI_BUS=yCONFIG_MHI_BUS_DEBUG=yCONFIG_MHI_BUS_PCI_GENERIC=yCONFIG_MHI_BUS_EP=y
# end of Bus devices
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=yCONFIG_EDD_OFF=yCONFIG_FIRMWARE_MEMMAP=yCONFIG_DMIID=yCONFIG_DMI_SYSFS=yCONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK=yCONFIG_ISCSI_IBFT_FIND=yCONFIG_ISCSI_IBFT=yCONFIG_FW_CFG_SYSFS=yCONFIG_FW_CFG_SYSFS_CMDLINE=yCONFIG_SYSFB=yCONFIG_SYSFB_SIMPLEFB=yCONFIG_CS_DSP=yCONFIG_GOOGLE_FIRMWARE=yCONFIG_GOOGLE_SMI=yCONFIG_GOOGLE_COREBOOT_TABLE=yCONFIG_GOOGLE_MEMCONSOLE=yCONFIG_GOOGLE_MEMCONSOLE_X86_LEGACY=yCONFIG_GOOGLE_MEMCONSOLE_COREBOOT=yCONFIG_GOOGLE_VPD=y
#
# EFI (Extensible Firmware Interface) Support
#CONFIG_EFI_ESRT=yCONFIG_EFI_VARS_PSTORE=yCONFIG_EFI_VARS_PSTORE_DEFAULT_DISABLE=yCONFIG_EFI_RUNTIME_MAP=yCONFIG_EFI_FAKE_MEMMAP=yCONFIG_EFI_MAX_FAKE_MEM=8CONFIG_EFI_DXE_MEM_ATTRIBUTES=yCONFIG_EFI_RUNTIME_WRAPPERS=yCONFIG_EFI_GENERIC_STUB_INITRD_CMDLINE_LOADER=yCONFIG_EFI_BOOTLOADER_CONTROL=yCONFIG_EFI_CAPSULE_LOADER=yCONFIG_EFI_CAPSULE_QUIRK_QUARK_CSH=yCONFIG_EFI_TEST=yCONFIG_EFI_DEV_PATH_PARSER=yCONFIG_APPLE_PROPERTIES=yCONFIG_RESET_ATTACK_MITIGATION=yCONFIG_EFI_RCI2_TABLE=yCONFIG_EFI_DISABLE_PCI_DMA=yCONFIG_EFI_EARLYCON=yCONFIG_EFI_CUSTOM_SSDT_OVERLAYS=yCONFIG_EFI_DISABLE_RUNTIME=yCONFIG_EFI_COCO_SECRET=yCONFIG_EFI_EMBEDDED_FIRMWARE=y
# 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=yCONFIG_GNSS_SERIAL=yCONFIG_GNSS_MTK_SERIAL=yCONFIG_GNSS_SIRF_SERIAL=yCONFIG_GNSS_UBX_SERIAL=yCONFIG_GNSS_USB=yCONFIG_MTD=yCONFIG_MTD_TESTS=m
#
# Partition parsers
#CONFIG_MTD_AR7_PARTS=yCONFIG_MTD_CMDLINE_PARTS=yCONFIG_MTD_OF_PARTS=yCONFIG_MTD_REDBOOT_PARTS=yCONFIG_MTD_REDBOOT_DIRECTORY_BLOCK=-1CONFIG_MTD_REDBOOT_PARTS_UNALLOCATED=yCONFIG_MTD_REDBOOT_PARTS_READONLY=y
# end of Partition parsers
#
# User Modules And Translation Layers
#CONFIG_MTD_BLKDEVS=yCONFIG_MTD_BLOCK=y
#
# Note that in some cases UBI block is preferred. See MTD_UBI_BLOCK. #CONFIG_FTL=yCONFIG_NFTL=yCONFIG_NFTL_RW=yCONFIG_INFTL=yCONFIG_RFD_FTL=yCONFIG_SSFDC=yCONFIG_SM_FTL=yCONFIG_MTD_OOPS=yCONFIG_MTD_PSTORE=yCONFIG_MTD_SWAP=yCONFIG_MTD_PARTITIONED_MASTER=y
#
# RAM/ROM/Flash chip drivers
#CONFIG_MTD_CFI=yCONFIG_MTD_JEDECPROBE=yCONFIG_MTD_GEN_PROBE=yCONFIG_MTD_CFI_ADV_OPTIONS=yCONFIG_MTD_CFI_NOSWAP=y
# CONFIG_MTD_CFI_BE_BYTE_SWAP is not set
# CONFIG_MTD_CFI_LE_BYTE_SWAP is not setCONFIG_MTD_CFI_GEOMETRY=yCONFIG_MTD_MAP_BANK_WIDTH_1=yCONFIG_MTD_MAP_BANK_WIDTH_2=yCONFIG_MTD_MAP_BANK_WIDTH_4=yCONFIG_MTD_MAP_BANK_WIDTH_8=yCONFIG_MTD_MAP_BANK_WIDTH_16=yCONFIG_MTD_MAP_BANK_WIDTH_32=yCONFIG_MTD_CFI_I1=yCONFIG_MTD_CFI_I2=yCONFIG_MTD_CFI_I4=yCONFIG_MTD_CFI_I8=yCONFIG_MTD_OTP=yCONFIG_MTD_CFI_INTELEXT=yCONFIG_MTD_CFI_AMDSTD=yCONFIG_MTD_CFI_STAA=yCONFIG_MTD_CFI_UTIL=yCONFIG_MTD_RAM=yCONFIG_MTD_ROM=yCONFIG_MTD_ABSENT=y
# end of RAM/ROM/Flash chip drivers
#
# Mapping drivers for chip access
#CONFIG_MTD_COMPLEX_MAPPINGS=yCONFIG_MTD_PHYSMAP=yCONFIG_MTD_PHYSMAP_COMPAT=yCONFIG_MTD_PHYSMAP_START=0x8000000CONFIG_MTD_PHYSMAP_LEN=0CONFIG_MTD_PHYSMAP_BANKWIDTH=2CONFIG_MTD_PHYSMAP_OF=yCONFIG_MTD_PHYSMAP_VERSATILE=yCONFIG_MTD_PHYSMAP_GEMINI=yCONFIG_MTD_PHYSMAP_GPIO_ADDR=yCONFIG_MTD_SBC_GXX=y
CONFIG_MTD_SCx200_DOCFLASH=yCONFIG_MTD_AMD76XROM=yCONFIG_MTD_ICHXROM=yCONFIG_MTD_ESB2ROM=yCONFIG_MTD_CK804XROM=yCONFIG_MTD_SCB2_FLASH=y
CONFIG_MTD_NETtel=yCONFIG_MTD_L440GX=yCONFIG_MTD_PCI=yCONFIG_MTD_PCMCIA=yCONFIG_MTD_PCMCIA_ANONYMOUS=yCONFIG_MTD_INTEL_VR_NOR=yCONFIG_MTD_PLATRAM=y
# end of Mapping drivers for chip access
#
# Self-contained MTD device drivers
#CONFIG_MTD_PMC551=yCONFIG_MTD_PMC551_BUGFIX=yCONFIG_MTD_PMC551_DEBUG=yCONFIG_MTD_DATAFLASH=yCONFIG_MTD_DATAFLASH_WRITE_VERIFY=yCONFIG_MTD_DATAFLASH_OTP=yCONFIG_MTD_MCHP23K256=yCONFIG_MTD_MCHP48L640=yCONFIG_MTD_SST25L=yCONFIG_MTD_SLRAM=yCONFIG_MTD_PHRAM=yCONFIG_MTD_MTDRAM=yCONFIG_MTDRAM_TOTAL_SIZE=4096CONFIG_MTDRAM_ERASE_SIZE=128CONFIG_MTD_BLOCK2MTD=y
#
# Disk-On-Chip Device Drivers
#CONFIG_MTD_DOCG3=yCONFIG_BCH_CONST_M=14CONFIG_BCH_CONST_T=4
# end of Self-contained MTD device drivers
#
# NAND
#CONFIG_MTD_NAND_CORE=yCONFIG_MTD_ONENAND=yCONFIG_MTD_ONENAND_VERIFY_WRITE=yCONFIG_MTD_ONENAND_GENERIC=yCONFIG_MTD_ONENAND_OTP=yCONFIG_MTD_ONENAND_2X_PROGRAM=yCONFIG_MTD_RAW_NAND=y
#
# Raw/parallel NAND flash controllers
#CONFIG_MTD_NAND_DENALI=yCONFIG_MTD_NAND_DENALI_PCI=yCONFIG_MTD_NAND_DENALI_DT=yCONFIG_MTD_NAND_CAFE=yCONFIG_MTD_NAND_CS553X=yCONFIG_MTD_NAND_MXIC=yCONFIG_MTD_NAND_GPIO=yCONFIG_MTD_NAND_PLATFORM=yCONFIG_MTD_NAND_CADENCE=yCONFIG_MTD_NAND_ARASAN=yCONFIG_MTD_NAND_INTEL_LGM=y
#
# Misc
#CONFIG_MTD_SM_COMMON=yCONFIG_MTD_NAND_NANDSIM=yCONFIG_MTD_NAND_RICOH=yCONFIG_MTD_NAND_DISKONCHIP=yCONFIG_MTD_NAND_DISKONCHIP_PROBE_ADVANCED=yCONFIG_MTD_NAND_DISKONCHIP_PROBE_ADDRESS=0CONFIG_MTD_NAND_DISKONCHIP_PROBE_HIGH=yCONFIG_MTD_NAND_DISKONCHIP_BBTWRITE=yCONFIG_MTD_SPI_NAND=y
#
# ECC engine support
#CONFIG_MTD_NAND_ECC=yCONFIG_MTD_NAND_ECC_SW_HAMMING=yCONFIG_MTD_NAND_ECC_SW_HAMMING_SMC=yCONFIG_MTD_NAND_ECC_SW_BCH=yCONFIG_MTD_NAND_ECC_MXIC=y
# end of ECC engine support # end of NAND
#
# LPDDR & LPDDR2 PCM memory drivers
#CONFIG_MTD_LPDDR=yCONFIG_MTD_QINFO_PROBE=y
# end of LPDDR & LPDDR2 PCM memory drivers
CONFIG_MTD_SPI_NOR=yCONFIG_MTD_SPI_NOR_USE_4K_SECTORS=y
# CONFIG_MTD_SPI_NOR_SWP_DISABLE is not setCONFIG_MTD_SPI_NOR_SWP_DISABLE_ON_VOLATILE=y
# CONFIG_MTD_SPI_NOR_SWP_KEEP is not setCONFIG_MTD_UBI=yCONFIG_MTD_UBI_WL_THRESHOLD=4096CONFIG_MTD_UBI_BEB_LIMIT=20CONFIG_MTD_UBI_FASTMAP=yCONFIG_MTD_UBI_GLUEBI=yCONFIG_MTD_UBI_BLOCK=yCONFIG_MTD_HYPERBUS=yCONFIG_DTC=yCONFIG_OF=yCONFIG_OF_UNITTEST=yCONFIG_OF_FLATTREE=yCONFIG_OF_EARLY_FLATTREE=yCONFIG_OF_PROMTREE=yCONFIG_OF_KOBJ=yCONFIG_OF_DYNAMIC=yCONFIG_OF_ADDRESS=yCONFIG_OF_IRQ=yCONFIG_OF_RESERVED_MEM=yCONFIG_OF_RESOLVE=yCONFIG_OF_OVERLAY=yCONFIG_ARCH_MIGHT_HAVE_PC_PARPORT=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=yCONFIG_PARPORT_SERIAL=yCONFIG_PARPORT_PC_FIFO=yCONFIG_PARPORT_PC_SUPERIO=yCONFIG_PARPORT_PC_PCMCIA=yCONFIG_PARPORT_AX88796=yCONFIG_PARPORT_1284=yCONFIG_PARPORT_NOT_PC=yCONFIG_PNP=yCONFIG_PNP_DEBUG_MESSAGES=y
#
# Protocols
#CONFIG_ISAPNP=yCONFIG_PNPBIOS=yCONFIG_PNPBIOS_PROC_FS=yCONFIG_PNPACPI=yCONFIG_BLK_DEV=yCONFIG_BLK_DEV_NULL_BLK=yCONFIG_BLK_DEV_NULL_BLK_FAULT_INJECTION=yCONFIG_BLK_DEV_FD=yCONFIG_BLK_DEV_FD_RAWCMD=yCONFIG_CDROM=yCONFIG_PARIDE=y
#
# Parallel IDE high-level drivers
#CONFIG_PARIDE_PD=yCONFIG_PARIDE_PCD=yCONFIG_PARIDE_PF=yCONFIG_PARIDE_PT=yCONFIG_PARIDE_PG=y
#
# Parallel IDE protocol modules
#CONFIG_PARIDE_ATEN=yCONFIG_PARIDE_BPCK=yCONFIG_PARIDE_BPCK6=yCONFIG_PARIDE_COMM=yCONFIG_PARIDE_DSTR=yCONFIG_PARIDE_FIT2=yCONFIG_PARIDE_FIT3=yCONFIG_PARIDE_EPAT=yCONFIG_PARIDE_EPATC8=yCONFIG_PARIDE_EPIA=yCONFIG_PARIDE_FRIQ=yCONFIG_PARIDE_FRPW=yCONFIG_PARIDE_KBIC=yCONFIG_PARIDE_KTTI=yCONFIG_PARIDE_ON20=yCONFIG_PARIDE_ON26=yCONFIG_BLK_DEV_PCIESSD_MTIP32XX=yCONFIG_ZRAM=yCONFIG_ZRAM_DEF_COMP_LZORLE=y
# CONFIG_ZRAM_DEF_COMP_ZSTD is not set
# CONFIG_ZRAM_DEF_COMP_LZ4 is not set
# CONFIG_ZRAM_DEF_COMP_LZO is not set
# CONFIG_ZRAM_DEF_COMP_LZ4HC is not set
# CONFIG_ZRAM_DEF_COMP_842 is not setCONFIG_ZRAM_DEF_COMP="lzo-rle"CONFIG_ZRAM_WRITEBACK=yCONFIG_ZRAM_MEMORY_TRACKING=yCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_DEV_LOOP_MIN_COUNT=8CONFIG_BLK_DEV_DRBD=yCONFIG_DRBD_FAULT_INJECTION=yCONFIG_BLK_DEV_NBD=yCONFIG_BLK_DEV_RAM=yCONFIG_BLK_DEV_RAM_COUNT=16CONFIG_BLK_DEV_RAM_SIZE=4096
# CONFIG_CDROM_PKTCDVD is not setCONFIG_ATA_OVER_ETH=yCONFIG_VIRTIO_BLK=yCONFIG_BLK_DEV_RBD=yCONFIG_BLK_DEV_UBLK=yCONFIG_BLK_DEV_RNBD=yCONFIG_BLK_DEV_RNBD_CLIENT=yCONFIG_BLK_DEV_RNBD_SERVER=y
#
# NVME Support
#CONFIG_NVME_COMMON=yCONFIG_NVME_CORE=yCONFIG_BLK_DEV_NVME=yCONFIG_NVME_MULTIPATH=yCONFIG_NVME_VERBOSE_ERRORS=yCONFIG_NVME_HWMON=yCONFIG_NVME_FABRICS=yCONFIG_NVME_RDMA=yCONFIG_NVME_FC=yCONFIG_NVME_TCP=yCONFIG_NVME_AUTH=yCONFIG_NVME_TARGET=yCONFIG_NVME_TARGET_PASSTHRU=yCONFIG_NVME_TARGET_LOOP=yCONFIG_NVME_TARGET_RDMA=yCONFIG_NVME_TARGET_FC=yCONFIG_NVME_TARGET_FCLOOP=yCONFIG_NVME_TARGET_TCP=yCONFIG_NVME_TARGET_AUTH=y
# end of NVME Support
#
# Misc devices
#CONFIG_SENSORS_LIS3LV02D=yCONFIG_AD525X_DPOT=yCONFIG_AD525X_DPOT_I2C=yCONFIG_AD525X_DPOT_SPI=yCONFIG_DUMMY_IRQ=yCONFIG_IBM_ASM=yCONFIG_PHANTOM=yCONFIG_TIFM_CORE=yCONFIG_TIFM_7XX1=yCONFIG_ICS932S401=yCONFIG_ENCLOSURE_SERVICES=yCONFIG_CS5535_MFGPT=yCONFIG_CS5535_MFGPT_DEFAULT_IRQ=7CONFIG_CS5535_CLOCK_EVENT_SRC=yCONFIG_HI6421V600_IRQ=yCONFIG_HP_ILO=yCONFIG_APDS9802ALS=yCONFIG_ISL29003=yCONFIG_ISL29020=yCONFIG_SENSORS_TSL2550=yCONFIG_SENSORS_BH1770=yCONFIG_SENSORS_APDS990X=yCONFIG_HMC6352=yCONFIG_DS1682=yCONFIG_VMWARE_BALLOON=yCONFIG_PCH_PHUB=yCONFIG_LATTICE_ECP3_CONFIG=yCONFIG_SRAM=yCONFIG_DW_XDATA_PCIE=yCONFIG_PCI_ENDPOINT_TEST=yCONFIG_XILINX_SDFEC=yCONFIG_MISC_RTSX=yCONFIG_HISI_HIKEY_USB=yCONFIG_OPEN_DICE=yCONFIG_VCPU_STALL_DETECTOR=yCONFIG_C2PORT=yCONFIG_C2PORT_DURAMAR_2150=y
#
# EEPROM support
#CONFIG_EEPROM_AT24=yCONFIG_EEPROM_AT25=yCONFIG_EEPROM_LEGACY=yCONFIG_EEPROM_MAX6875=yCONFIG_EEPROM_93CX6=yCONFIG_EEPROM_93XX46=yCONFIG_EEPROM_IDT_89HPESX=yCONFIG_EEPROM_EE1004=y
# end of EEPROM support
CONFIG_CB710_CORE=yCONFIG_CB710_DEBUG=yCONFIG_CB710_DEBUG_ASSUMPTIONS=y
#
# Texas Instruments shared transport line discipline #CONFIG_TI_ST=y
# end of Texas Instruments shared transport line discipline
CONFIG_SENSORS_LIS3_I2C=yCONFIG_ALTERA_STAPL=yCONFIG_INTEL_MEI=yCONFIG_INTEL_MEI_ME=yCONFIG_INTEL_MEI_TXE=yCONFIG_INTEL_MEI_GSC=yCONFIG_INTEL_MEI_HDCP=yCONFIG_INTEL_MEI_PXP=yCONFIG_VMWARE_VMCI=yCONFIG_ECHO=yCONFIG_BCM_VK=yCONFIG_BCM_VK_TTY=yCONFIG_MISC_ALCOR_PCI=yCONFIG_MISC_RTSX_PCI=yCONFIG_MISC_RTSX_USB=yCONFIG_HABANA_AI=yCONFIG_UACCE=yCONFIG_PVPANIC=yCONFIG_PVPANIC_MMIO=yCONFIG_PVPANIC_PCI=yCONFIG_GP_PCI1XXXX=y
# end of Misc devices
#
# SCSI device support
#CONFIG_SCSI_MOD=yCONFIG_RAID_ATTRS=yCONFIG_SCSI_COMMON=yCONFIG_SCSI=yCONFIG_SCSI_DMA=yCONFIG_SCSI_NETLINK=yCONFIG_SCSI_PROC_FS=y
#
# SCSI support type (disk, tape, CD-ROM)
#CONFIG_BLK_DEV_SD=yCONFIG_CHR_DEV_ST=yCONFIG_BLK_DEV_SR=yCONFIG_CHR_DEV_SG=yCONFIG_BLK_DEV_BSG=yCONFIG_CHR_DEV_SCH=yCONFIG_SCSI_ENCLOSURE=yCONFIG_SCSI_CONSTANTS=yCONFIG_SCSI_LOGGING=yCONFIG_SCSI_SCAN_ASYNC=y
#
# SCSI Transports
#CONFIG_SCSI_SPI_ATTRS=yCONFIG_SCSI_FC_ATTRS=yCONFIG_SCSI_ISCSI_ATTRS=yCONFIG_SCSI_SAS_ATTRS=yCONFIG_SCSI_SAS_LIBSAS=yCONFIG_SCSI_SAS_ATA=yCONFIG_SCSI_SAS_HOST_SMP=yCONFIG_SCSI_SRP_ATTRS=y
# end of SCSI Transports
CONFIG_SCSI_LOWLEVEL=yCONFIG_ISCSI_TCP=yCONFIG_ISCSI_BOOT_SYSFS=yCONFIG_SCSI_CXGB3_ISCSI=yCONFIG_SCSI_CXGB4_ISCSI=yCONFIG_SCSI_BNX2_ISCSI=yCONFIG_SCSI_BNX2X_FCOE=yCONFIG_BE2ISCSI=yCONFIG_BLK_DEV_3W_XXXX_RAID=yCONFIG_SCSI_HPSA=yCONFIG_SCSI_3W_9XXX=yCONFIG_SCSI_3W_SAS=yCONFIG_SCSI_ACARD=yCONFIG_SCSI_AHA152X=yCONFIG_SCSI_AHA1542=yCONFIG_SCSI_AHA1740=yCONFIG_SCSI_AACRAID=yCONFIG_SCSI_AIC7XXX=yCONFIG_AIC7XXX_CMDS_PER_DEVICE=32CONFIG_AIC7XXX_RESET_DELAY_MS=5000CONFIG_AIC7XXX_DEBUG_ENABLE=yCONFIG_AIC7XXX_DEBUG_MASK=0CONFIG_AIC7XXX_REG_PRETTY_PRINT=yCONFIG_SCSI_AIC79XX=yCONFIG_AIC79XX_CMDS_PER_DEVICE=32CONFIG_AIC79XX_RESET_DELAY_MS=5000CONFIG_AIC79XX_DEBUG_ENABLE=yCONFIG_AIC79XX_DEBUG_MASK=0CONFIG_AIC79XX_REG_PRETTY_PRINT=yCONFIG_SCSI_AIC94XX=yCONFIG_AIC94XX_DEBUG=yCONFIG_SCSI_MVSAS=yCONFIG_SCSI_MVSAS_DEBUG=yCONFIG_SCSI_MVSAS_TASKLET=yCONFIG_SCSI_MVUMI=yCONFIG_SCSI_ADVANSYS=yCONFIG_SCSI_ARCMSR=yCONFIG_SCSI_ESAS2R=yCONFIG_MEGARAID_NEWGEN=yCONFIG_MEGARAID_MM=yCONFIG_MEGARAID_MAILBOX=yCONFIG_MEGARAID_LEGACY=yCONFIG_MEGARAID_SAS=yCONFIG_SCSI_MPT3SAS=yCONFIG_SCSI_MPT2SAS_MAX_SGE=128CONFIG_SCSI_MPT3SAS_MAX_SGE=128CONFIG_SCSI_MPT2SAS=yCONFIG_SCSI_MPI3MR=yCONFIG_SCSI_SMARTPQI=yCONFIG_SCSI_HPTIOP=yCONFIG_SCSI_BUSLOGIC=yCONFIG_SCSI_FLASHPOINT=yCONFIG_SCSI_MYRB=yCONFIG_SCSI_MYRS=yCONFIG_VMWARE_PVSCSI=yCONFIG_HYPERV_STORAGE=yCONFIG_LIBFC=yCONFIG_LIBFCOE=yCONFIG_FCOE=yCONFIG_FCOE_FNIC=yCONFIG_SCSI_SNIC=yCONFIG_SCSI_SNIC_DEBUG_FS=yCONFIG_SCSI_DMX3191D=yCONFIG_SCSI_FDOMAIN=yCONFIG_SCSI_FDOMAIN_PCI=yCONFIG_SCSI_FDOMAIN_ISA=yCONFIG_SCSI_ISCI=yCONFIG_SCSI_GENERIC_NCR5380=yCONFIG_SCSI_IPS=yCONFIG_SCSI_INITIO=yCONFIG_SCSI_INIA100=yCONFIG_SCSI_PPA=yCONFIG_SCSI_IMM=yCONFIG_SCSI_IZIP_EPP16=yCONFIG_SCSI_IZIP_SLOW_CTR=yCONFIG_SCSI_STEX=yCONFIG_SCSI_SYM53C8XX_2=yCONFIG_SCSI_SYM53C8XX_DMA_ADDRESSING_MODE=1CONFIG_SCSI_SYM53C8XX_DEFAULT_TAGS=16CONFIG_SCSI_SYM53C8XX_MAX_TAGS=64CONFIG_SCSI_SYM53C8XX_MMIO=yCONFIG_SCSI_IPR=yCONFIG_SCSI_IPR_TRACE=yCONFIG_SCSI_IPR_DUMP=yCONFIG_SCSI_QLOGIC_FAS=yCONFIG_SCSI_QLOGIC_1280=yCONFIG_SCSI_QLA_FC=yCONFIG_TCM_QLA2XXX=yCONFIG_TCM_QLA2XXX_DEBUG=yCONFIG_SCSI_QLA_ISCSI=yCONFIG_QEDI=yCONFIG_QEDF=yCONFIG_SCSI_LPFC=yCONFIG_SCSI_LPFC_DEBUG_FS=yCONFIG_SCSI_EFCT=yCONFIG_SCSI_SIM710=y
CONFIG_SCSI_DC395x=yCONFIG_SCSI_AM53C974=yCONFIG_SCSI_NSP32=yCONFIG_SCSI_WD719X=yCONFIG_SCSI_DEBUG=yCONFIG_SCSI_PMCRAID=yCONFIG_SCSI_PM8001=yCONFIG_SCSI_BFA_FC=yCONFIG_SCSI_VIRTIO=yCONFIG_SCSI_CHELSIO_FCOE=yCONFIG_SCSI_LOWLEVEL_PCMCIA=yCONFIG_PCMCIA_AHA152X=mCONFIG_PCMCIA_FDOMAIN=mCONFIG_PCMCIA_NINJA_SCSI=mCONFIG_PCMCIA_QLOGIC=mCONFIG_PCMCIA_SYM53C500=mCONFIG_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=yCONFIG_SATA_HOST=yCONFIG_PATA_TIMINGS=yCONFIG_ATA_VERBOSE_ERROR=yCONFIG_ATA_FORCE=yCONFIG_ATA_ACPI=yCONFIG_SATA_ZPODD=yCONFIG_SATA_PMP=y
#
# Controllers with non-SFF native interface
#CONFIG_SATA_AHCI=yCONFIG_SATA_MOBILE_LPM_POLICY=0CONFIG_SATA_AHCI_PLATFORM=yCONFIG_AHCI_DWC=yCONFIG_AHCI_CEVA=yCONFIG_AHCI_QORIQ=yCONFIG_SATA_INIC162X=yCONFIG_SATA_ACARD_AHCI=yCONFIG_SATA_SIL24=yCONFIG_ATA_SFF=y
#
# SFF controllers with custom DMA interface
#CONFIG_PDC_ADMA=yCONFIG_SATA_QSTOR=yCONFIG_SATA_SX4=yCONFIG_ATA_BMDMA=y
#
# SATA SFF controllers with BMDMA
#CONFIG_ATA_PIIX=yCONFIG_SATA_DWC=yCONFIG_SATA_DWC_OLD_DMA=yCONFIG_SATA_MV=yCONFIG_SATA_NV=yCONFIG_SATA_PROMISE=yCONFIG_SATA_SIL=yCONFIG_SATA_SIS=yCONFIG_SATA_SVW=yCONFIG_SATA_ULI=yCONFIG_SATA_VIA=yCONFIG_SATA_VITESSE=y
#
# PATA SFF controllers with BMDMA
#CONFIG_PATA_ALI=yCONFIG_PATA_AMD=yCONFIG_PATA_ARTOP=yCONFIG_PATA_ATIIXP=yCONFIG_PATA_ATP867X=yCONFIG_PATA_CMD64X=yCONFIG_PATA_CS5520=yCONFIG_PATA_CS5530=yCONFIG_PATA_CS5535=yCONFIG_PATA_CS5536=yCONFIG_PATA_CYPRESS=yCONFIG_PATA_EFAR=yCONFIG_PATA_HPT366=yCONFIG_PATA_HPT37X=yCONFIG_PATA_HPT3X2N=yCONFIG_PATA_HPT3X3=yCONFIG_PATA_HPT3X3_DMA=yCONFIG_PATA_IT8213=yCONFIG_PATA_IT821X=yCONFIG_PATA_JMICRON=yCONFIG_PATA_MARVELL=yCONFIG_PATA_NETCELL=yCONFIG_PATA_NINJA32=yCONFIG_PATA_NS87415=yCONFIG_PATA_OLDPIIX=yCONFIG_PATA_OPTIDMA=yCONFIG_PATA_PDC2027X=yCONFIG_PATA_PDC_OLD=yCONFIG_PATA_RADISYS=yCONFIG_PATA_RDC=yCONFIG_PATA_SC1200=yCONFIG_PATA_SCH=yCONFIG_PATA_SERVERWORKS=yCONFIG_PATA_SIL680=yCONFIG_PATA_SIS=yCONFIG_PATA_TOSHIBA=yCONFIG_PATA_TRIFLEX=yCONFIG_PATA_VIA=yCONFIG_PATA_WINBOND=y
#
# PIO-only SFF controllers
#CONFIG_PATA_CMD640_PCI=yCONFIG_PATA_ISAPNP=yCONFIG_PATA_MPIIX=yCONFIG_PATA_NS87410=yCONFIG_PATA_OPTI=yCONFIG_PATA_PCMCIA=yCONFIG_PATA_PLATFORM=yCONFIG_PATA_OF_PLATFORM=yCONFIG_PATA_QDI=yCONFIG_PATA_RZ1000=yCONFIG_PATA_WINBOND_VLB=y
#
# Generic fallback / legacy drivers
#CONFIG_PATA_ACPI=yCONFIG_ATA_GENERIC=yCONFIG_PATA_LEGACY=yCONFIG_MD=yCONFIG_BLK_DEV_MD=yCONFIG_MD_AUTODETECT=yCONFIG_MD_LINEAR=yCONFIG_MD_RAID0=yCONFIG_MD_RAID1=yCONFIG_MD_RAID10=yCONFIG_MD_RAID456=yCONFIG_MD_MULTIPATH=yCONFIG_MD_FAULTY=yCONFIG_MD_CLUSTER=yCONFIG_BCACHE=yCONFIG_BCACHE_DEBUG=y CONFIG_BCACHE_CLOSURES_DEBUG=y CONFIG_BCACHE_ASYNC_REGISTRATION=y CONFIG_BLK_DEV_DM_BUILTIN=yCONFIG_BLK_DEV_DM=yCONFIG_DM_DEBUG=yCONFIG_DM_BUFIO=y CONFIG_DM_DEBUG_BLOCK_MANAGER_LOCKING=y CONFIG_DM_DEBUG_BLOCK_STACK_TRACING=y CONFIG_DM_BIO_PRISON=y CONFIG_DM_PERSISTENT_DATA=y CONFIG_DM_UNSTRIPED=yCONFIG_DM_CRYPT=yCONFIG_DM_SNAPSHOT=y CONFIG_DM_THIN_PROVISIONING=yCONFIG_DM_CACHE=yCONFIG_DM_CACHE_SMQ=yCONFIG_DM_WRITECACHE=yCONFIG_DM_ERA=yCONFIG_DM_CLONE=yCONFIG_DM_MIRROR=yCONFIG_DM_LOG_USERSPACE=yCONFIG_DM_RAID=yCONFIG_DM_ZERO=yCONFIG_DM_MULTIPATH=yCONFIG_DM_MULTIPATH_QL=y CONFIG_DM_MULTIPATH_ST=y CONFIG_DM_MULTIPATH_HST=y CONFIG_DM_MULTIPATH_IOA=yCONFIG_DM_DELAY=yCONFIG_DM_DUST=yCONFIG_DM_INIT=yCONFIG_DM_UEVENT=yCONFIG_DM_FLAKEY=yCONFIG_DM_VERITY=y CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG=y CONFIG_DM_VERITY_VERIFY_ROOTHASH_SIG_SECONDARY_KEYRING=y CONFIG_DM_VERITY_FEC=yCONFIG_DM_SWITCH=yCONFIG_DM_LOG_WRITES=yCONFIG_DM_INTEGRITY=yCONFIG_DM_ZONED=yCONFIG_DM_AUDIT=yCONFIG_TARGET_CORE=yCONFIG_TCM_IBLOCK=yCONFIG_TCM_FILEIO=yCONFIG_TCM_PSCSI=yCONFIG_TCM_USER2=yCONFIG_LOOPBACK_TARGET=yCONFIG_TCM_FC=yCONFIG_ISCSI_TARGET=y CONFIG_ISCSI_TARGET_CXGB4=yCONFIG_SBP_TARGET=yCONFIG_FUSION=yCONFIG_FUSION_SPI=yCONFIG_FUSION_FC=yCONFIG_FUSION_SAS=yCONFIG_FUSION_MAX_SGE=128CONFIG_FUSION_CTL=yCONFIG_FUSION_LAN=yCONFIG_FUSION_LOGGING=y
#
# IEEE 1394 (FireWire) support
#CONFIG_FIREWIRE=yCONFIG_FIREWIRE_OHCI=yCONFIG_FIREWIRE_SBP2=yCONFIG_FIREWIRE_NET=yCONFIG_FIREWIRE_NOSY=y
# end of IEEE 1394 (FireWire) support
CONFIG_MACINTOSH_DRIVERS=yCONFIG_MAC_EMUMOUSEBTN=yCONFIG_NETDEVICES=yCONFIG_MII=yCONFIG_NET_CORE=yCONFIG_BONDING=yCONFIG_DUMMY=yCONFIG_WIREGUARD=yCONFIG_WIREGUARD_DEBUG=yCONFIG_EQUALIZER=yCONFIG_NET_FC=yCONFIG_IFB=yCONFIG_NET_TEAM=yCONFIG_NET_TEAM_MODE_BROADCAST=yCONFIG_NET_TEAM_MODE_ROUNDROBIN=yCONFIG_NET_TEAM_MODE_RANDOM=yCONFIG_NET_TEAM_MODE_ACTIVEBACKUP=yCONFIG_NET_TEAM_MODE_LOADBALANCE=yCONFIG_MACVLAN=yCONFIG_MACVTAP=yCONFIG_IPVLAN_L3S=yCONFIG_IPVLAN=yCONFIG_IPVTAP=yCONFIG_VXLAN=yCONFIG_GENEVE=yCONFIG_BAREUDP=yCONFIG_GTP=yCONFIG_AMT=yCONFIG_MACSEC=yCONFIG_NETCONSOLE=yCONFIG_NETCONSOLE_DYNAMIC=yCONFIG_NETPOLL=yCONFIG_NET_POLL_CONTROLLER=yCONFIG_NTB_NETDEV=yCONFIG_RIONET=yCONFIG_RIONET_TX_SIZE=128CONFIG_RIONET_RX_SIZE=128CONFIG_TUN=yCONFIG_TAP=yCONFIG_TUN_VNET_CROSS_LE=yCONFIG_VETH=yCONFIG_VIRTIO_NET=yCONFIG_NLMON=yCONFIG_NET_VRF=yCONFIG_VSOCKMON=yCONFIG_MHI_NET=yCONFIG_SUNGEM_PHY=yCONFIG_ARCNET=yCONFIG_ARCNET_1201=yCONFIG_ARCNET_1051=yCONFIG_ARCNET_RAW=yCONFIG_ARCNET_CAP=y
CONFIG_ARCNET_COM90xx=y
CONFIG_ARCNET_COM90xxIO=yCONFIG_ARCNET_RIM_I=yCONFIG_ARCNET_COM20020=yCONFIG_ARCNET_COM20020_ISA=yCONFIG_ARCNET_COM20020_PCI=yCONFIG_ARCNET_COM20020_CS=yCONFIG_ATM_DRIVERS=yCONFIG_ATM_DUMMY=yCONFIG_ATM_TCP=yCONFIG_ATM_LANAI=yCONFIG_ATM_ENI=yCONFIG_ATM_ENI_DEBUG=yCONFIG_ATM_ENI_TUNE_BURST=yCONFIG_ATM_ENI_BURST_TX_16W=yCONFIG_ATM_ENI_BURST_TX_8W=yCONFIG_ATM_ENI_BURST_TX_4W=yCONFIG_ATM_ENI_BURST_TX_2W=yCONFIG_ATM_ENI_BURST_RX_16W=yCONFIG_ATM_ENI_BURST_RX_8W=yCONFIG_ATM_ENI_BURST_RX_4W=yCONFIG_ATM_ENI_BURST_RX_2W=yCONFIG_ATM_NICSTAR=yCONFIG_ATM_NICSTAR_USE_SUNI=yCONFIG_ATM_NICSTAR_USE_IDT77105=yCONFIG_ATM_IDT77252=yCONFIG_ATM_IDT77252_DEBUG=yCONFIG_ATM_IDT77252_RCV_ALL=yCONFIG_ATM_IDT77252_USE_SUNI=yCONFIG_ATM_IA=yCONFIG_ATM_IA_DEBUG=yCONFIG_ATM_FORE200E=yCONFIG_ATM_FORE200E_USE_TASKLET=yCONFIG_ATM_FORE200E_TX_RETRY=16CONFIG_ATM_FORE200E_DEBUG=0CONFIG_ATM_HE=yCONFIG_ATM_HE_USE_SUNI=yCONFIG_ATM_SOLOS=yCONFIG_CAIF_DRIVERS=yCONFIG_CAIF_TTY=yCONFIG_CAIF_VIRTIO=y
#
# Distributed Switch Architecture drivers
#CONFIG_B53=yCONFIG_B53_SPI_DRIVER=yCONFIG_B53_MDIO_DRIVER=yCONFIG_B53_MMAP_DRIVER=yCONFIG_B53_SRAB_DRIVER=yCONFIG_B53_SERDES=yCONFIG_NET_DSA_BCM_SF2=yCONFIG_NET_DSA_LOOP=yCONFIG_NET_DSA_HIRSCHMANN_HELLCREEK=yCONFIG_NET_DSA_LANTIQ_GSWIP=yCONFIG_NET_DSA_MT7530=yCONFIG_NET_DSA_MV88E6060=yCONFIG_NET_DSA_MICROCHIP_KSZ_COMMON=yCONFIG_NET_DSA_MICROCHIP_KSZ9477_I2C=yCONFIG_NET_DSA_MICROCHIP_KSZ_SPI=yCONFIG_NET_DSA_MICROCHIP_KSZ8863_SMI=yCONFIG_NET_DSA_MV88E6XXX=yCONFIG_NET_DSA_MV88E6XXX_PTP=yCONFIG_NET_DSA_MSCC_SEVILLE=yCONFIG_NET_DSA_AR9331=yCONFIG_NET_DSA_QCA8K=yCONFIG_NET_DSA_SJA1105=yCONFIG_NET_DSA_SJA1105_PTP=yCONFIG_NET_DSA_SJA1105_TAS=yCONFIG_NET_DSA_SJA1105_VL=yCONFIG_NET_DSA_XRS700X=yCONFIG_NET_DSA_XRS700X_I2C=yCONFIG_NET_DSA_XRS700X_MDIO=yCONFIG_NET_DSA_REALTEK=yCONFIG_NET_DSA_REALTEK_MDIO=yCONFIG_NET_DSA_REALTEK_SMI=yCONFIG_NET_DSA_REALTEK_RTL8365MB=yCONFIG_NET_DSA_REALTEK_RTL8366RB=yCONFIG_NET_DSA_SMSC_LAN9303=yCONFIG_NET_DSA_SMSC_LAN9303_I2C=yCONFIG_NET_DSA_SMSC_LAN9303_MDIO=yCONFIG_NET_DSA_VITESSE_VSC73XX=yCONFIG_NET_DSA_VITESSE_VSC73XX_SPI=yCONFIG_NET_DSA_VITESSE_VSC73XX_PLATFORM=y
# end of Distributed Switch Architecture drivers
CONFIG_ETHERNET=yCONFIG_MDIO=yCONFIG_NET_VENDOR_3COM=yCONFIG_EL3=yCONFIG_3C515=yCONFIG_PCMCIA_3C574=yCONFIG_PCMCIA_3C589=yCONFIG_VORTEX=yCONFIG_TYPHOON=yCONFIG_NET_VENDOR_ADAPTEC=yCONFIG_ADAPTEC_STARFIRE=yCONFIG_NET_VENDOR_AGERE=yCONFIG_ET131X=yCONFIG_NET_VENDOR_ALACRITECH=yCONFIG_SLICOSS=yCONFIG_NET_VENDOR_ALTEON=yCONFIG_ACENIC=yCONFIG_ACENIC_OMIT_TIGON_I=yCONFIG_ALTERA_TSE=yCONFIG_NET_VENDOR_AMAZON=yCONFIG_ENA_ETHERNET=yCONFIG_NET_VENDOR_AMD=yCONFIG_AMD8111_ETH=yCONFIG_LANCE=yCONFIG_PCNET32=yCONFIG_PCMCIA_NMCLAN=yCONFIG_AMD_XGBE=yCONFIG_AMD_XGBE_DCB=yCONFIG_AMD_XGBE_HAVE_ECC=yCONFIG_NET_VENDOR_AQUANTIA=yCONFIG_AQTION=yCONFIG_NET_VENDOR_ARC=yCONFIG_NET_VENDOR_ASIX=yCONFIG_SPI_AX88796C=yCONFIG_SPI_AX88796C_COMPRESSION=yCONFIG_NET_VENDOR_ATHEROS=yCONFIG_ATL2=yCONFIG_ATL1=yCONFIG_ATL1E=yCONFIG_ATL1C=yCONFIG_ALX=yCONFIG_CX_ECAT=yCONFIG_NET_VENDOR_BROADCOM=yCONFIG_B44=yCONFIG_B44_PCI_AUTOSELECT=yCONFIG_B44_PCICORE_AUTOSELECT=yCONFIG_B44_PCI=yCONFIG_BCMGENET=yCONFIG_BNX2=yCONFIG_CNIC=yCONFIG_TIGON3=yCONFIG_TIGON3_HWMON=yCONFIG_BNX2X=yCONFIG_BNX2X_SRIOV=yCONFIG_SYSTEMPORT=yCONFIG_BNXT=yCONFIG_BNXT_SRIOV=yCONFIG_BNXT_FLOWER_OFFLOAD=yCONFIG_BNXT_DCB=yCONFIG_BNXT_HWMON=yCONFIG_NET_VENDOR_CADENCE=yCONFIG_MACB=yCONFIG_MACB_USE_HWSTAMP=yCONFIG_MACB_PCI=yCONFIG_NET_VENDOR_CAVIUM=yCONFIG_NET_VENDOR_CHELSIO=yCONFIG_CHELSIO_T1=yCONFIG_CHELSIO_T1_1G=yCONFIG_CHELSIO_T3=yCONFIG_CHELSIO_T4=yCONFIG_CHELSIO_T4_DCB=yCONFIG_CHELSIO_T4_FCOE=yCONFIG_CHELSIO_T4VF=yCONFIG_CHELSIO_LIB=yCONFIG_CHELSIO_INLINE_CRYPTO=yCONFIG_CRYPTO_DEV_CHELSIO_TLS=yCONFIG_CHELSIO_IPSEC_INLINE=yCONFIG_CHELSIO_TLS_DEVICE=yCONFIG_NET_VENDOR_CIRRUS=y
# CONFIG_CS89x0_ISA is not setCONFIG_NET_VENDOR_CISCO=yCONFIG_ENIC=yCONFIG_NET_VENDOR_CORTINA=yCONFIG_GEMINI_ETHERNET=yCONFIG_NET_VENDOR_DAVICOM=yCONFIG_DM9051=yCONFIG_DNET=yCONFIG_NET_VENDOR_DEC=yCONFIG_NET_TULIP=yCONFIG_DE2104X=yCONFIG_DE2104X_DSL=0CONFIG_TULIP=yCONFIG_TULIP_MWI=yCONFIG_TULIP_MMIO=yCONFIG_TULIP_NAPI=yCONFIG_TULIP_NAPI_HW_MITIGATION=yCONFIG_WINBOND_840=yCONFIG_DM9102=yCONFIG_ULI526X=yCONFIG_PCMCIA_XIRCOM=yCONFIG_NET_VENDOR_DLINK=yCONFIG_DL2K=yCONFIG_SUNDANCE=yCONFIG_SUNDANCE_MMIO=yCONFIG_NET_VENDOR_EMULEX=yCONFIG_BE2NET=yCONFIG_BE2NET_HWMON=yCONFIG_BE2NET_BE2=yCONFIG_BE2NET_BE3=yCONFIG_BE2NET_LANCER=yCONFIG_BE2NET_SKYHAWK=yCONFIG_NET_VENDOR_ENGLEDER=yCONFIG_TSNEP=yCONFIG_TSNEP_SELFTESTS=yCONFIG_NET_VENDOR_EZCHIP=yCONFIG_EZCHIP_NPS_MANAGEMENT_ENET=yCONFIG_NET_VENDOR_FUJITSU=yCONFIG_PCMCIA_FMVJ18X=yCONFIG_NET_VENDOR_FUNGIBLE=yCONFIG_FUN_CORE=yCONFIG_FUN_ETH=yCONFIG_NET_VENDOR_GOOGLE=yCONFIG_GVE=yCONFIG_NET_VENDOR_HUAWEI=yCONFIG_HINIC=yCONFIG_NET_VENDOR_I825XX=yCONFIG_NET_VENDOR_INTEL=yCONFIG_E100=yCONFIG_E1000=yCONFIG_E1000E=yCONFIG_E1000E_HWTS=yCONFIG_IGB=yCONFIG_IGB_HWMON=yCONFIG_IGBVF=yCONFIG_IXGB=yCONFIG_IXGBE=yCONFIG_IXGBE_HWMON=yCONFIG_IXGBE_DCB=yCONFIG_IXGBE_IPSEC=yCONFIG_IXGBEVF=yCONFIG_IXGBEVF_IPSEC=yCONFIG_I40E=yCONFIG_I40E_DCB=yCONFIG_IAVF=yCONFIG_I40EVF=yCONFIG_ICE=yCONFIG_ICE_SWITCHDEV=yCONFIG_ICE_HWTS=yCONFIG_FM10K=yCONFIG_IGC=yCONFIG_NET_VENDOR_WANGXUN=yCONFIG_NGBE=yCONFIG_TXGBE=yCONFIG_JME=yCONFIG_NET_VENDOR_ADI=yCONFIG_ADIN1110=yCONFIG_NET_VENDOR_LITEX=yCONFIG_LITEX_LITEETH=yCONFIG_NET_VENDOR_MARVELL=yCONFIG_MVMDIO=yCONFIG_SKGE=yCONFIG_SKGE_DEBUG=yCONFIG_SKGE_GENESIS=yCONFIG_SKY2=yCONFIG_SKY2_DEBUG=yCONFIG_PRESTERA=yCONFIG_PRESTERA_PCI=yCONFIG_NET_VENDOR_MELLANOX=yCONFIG_MLX4_EN=yCONFIG_MLX4_EN_DCB=yCONFIG_MLX4_CORE=yCONFIG_MLX4_DEBUG=yCONFIG_MLX4_CORE_GEN2=yCONFIG_MLX5_CORE=yCONFIG_MLX5_FPGA=yCONFIG_MLX5_CORE_EN=yCONFIG_MLX5_EN_ARFS=yCONFIG_MLX5_EN_RXNFC=yCONFIG_MLX5_MPFS=yCONFIG_MLX5_ESWITCH=yCONFIG_MLX5_BRIDGE=yCONFIG_MLX5_CLS_ACT=yCONFIG_MLX5_TC_CT=yCONFIG_MLX5_TC_SAMPLE=yCONFIG_MLX5_CORE_EN_DCB=yCONFIG_MLX5_CORE_IPOIB=yCONFIG_MLX5_EN_MACSEC=yCONFIG_MLX5_EN_IPSEC=yCONFIG_MLX5_EN_TLS=yCONFIG_MLX5_SW_STEERING=yCONFIG_MLX5_SF=yCONFIG_MLX5_SF_MANAGER=yCONFIG_MLXSW_CORE=yCONFIG_MLXSW_CORE_HWMON=yCONFIG_MLXSW_CORE_THERMAL=yCONFIG_MLXSW_PCI=yCONFIG_MLXSW_I2C=yCONFIG_MLXSW_SPECTRUM=yCONFIG_MLXSW_SPECTRUM_DCB=yCONFIG_MLXSW_MINIMAL=yCONFIG_MLXFW=yCONFIG_NET_VENDOR_MICREL=yCONFIG_KS8842=yCONFIG_KS8851=yCONFIG_KS8851_MLL=yCONFIG_KSZ884X_PCI=yCONFIG_NET_VENDOR_MICROCHIP=yCONFIG_ENC28J60=yCONFIG_ENC28J60_WRITEVERIFY=yCONFIG_ENCX24J600=yCONFIG_LAN743X=yCONFIG_LAN966X_SWITCH=yCONFIG_NET_VENDOR_MICROSEMI=yCONFIG_MSCC_OCELOT_SWITCH_LIB=yCONFIG_MSCC_OCELOT_SWITCH=yCONFIG_NET_VENDOR_MICROSOFT=yCONFIG_NET_VENDOR_MYRI=yCONFIG_MYRI10GE=y
# CONFIG_FEALNX is not setCONFIG_NET_VENDOR_NI=yCONFIG_NI_XGE_MANAGEMENT_ENET=yCONFIG_NET_VENDOR_NATSEMI=yCONFIG_NATSEMI=yCONFIG_NS83820=yCONFIG_NET_VENDOR_NETERION=yCONFIG_S2IO=yCONFIG_NET_VENDOR_NETRONOME=yCONFIG_NFP=yCONFIG_NFP_APP_FLOWER=yCONFIG_NFP_APP_ABM_NIC=yCONFIG_NFP_DEBUG=yCONFIG_NET_VENDOR_8390=yCONFIG_PCMCIA_AXNET=yCONFIG_NE2000=yCONFIG_NE2K_PCI=yCONFIG_PCMCIA_PCNET=yCONFIG_ULTRA=y
CONFIG_WD80x3=yCONFIG_NET_VENDOR_NVIDIA=yCONFIG_FORCEDETH=yCONFIG_NET_VENDOR_OKI=yCONFIG_PCH_GBE=yCONFIG_ETHOC=yCONFIG_NET_VENDOR_PACKET_ENGINES=yCONFIG_HAMACHI=yCONFIG_YELLOWFIN=yCONFIG_NET_VENDOR_PENSANDO=yCONFIG_NET_VENDOR_QLOGIC=yCONFIG_QLA3XXX=yCONFIG_QLCNIC=yCONFIG_QLCNIC_SRIOV=yCONFIG_QLCNIC_DCB=yCONFIG_QLCNIC_HWMON=yCONFIG_NETXEN_NIC=yCONFIG_QED=yCONFIG_QED_LL2=yCONFIG_QED_SRIOV=yCONFIG_QEDE=yCONFIG_QED_ISCSI=yCONFIG_QED_FCOE=yCONFIG_QED_OOO=yCONFIG_NET_VENDOR_BROCADE=yCONFIG_BNA=yCONFIG_NET_VENDOR_QUALCOMM=yCONFIG_QCA7000=yCONFIG_QCA7000_SPI=yCONFIG_QCA7000_UART=yCONFIG_QCOM_EMAC=yCONFIG_RMNET=yCONFIG_NET_VENDOR_RDC=yCONFIG_R6040=yCONFIG_NET_VENDOR_REALTEK=yCONFIG_ATP=yCONFIG_8139CP=yCONFIG_8139TOO=yCONFIG_8139TOO_PIO=yCONFIG_8139TOO_TUNE_TWISTER=yCONFIG_8139TOO_8129=yCONFIG_8139_OLD_RX_RESET=yCONFIG_R8169=yCONFIG_NET_VENDOR_RENESAS=yCONFIG_NET_VENDOR_ROCKER=yCONFIG_ROCKER=yCONFIG_NET_VENDOR_SAMSUNG=yCONFIG_SXGBE_ETH=yCONFIG_NET_VENDOR_SEEQ=yCONFIG_NET_VENDOR_SILAN=yCONFIG_SC92031=yCONFIG_NET_VENDOR_SIS=yCONFIG_SIS900=yCONFIG_SIS190=yCONFIG_NET_VENDOR_SOLARFLARE=yCONFIG_SFC=yCONFIG_SFC_MTD=yCONFIG_SFC_MCDI_MON=yCONFIG_SFC_SRIOV=yCONFIG_SFC_MCDI_LOGGING=yCONFIG_SFC_FALCON=yCONFIG_SFC_FALCON_MTD=yCONFIG_SFC_SIENA=yCONFIG_SFC_SIENA_MTD=yCONFIG_SFC_SIENA_MCDI_MON=yCONFIG_SFC_SIENA_SRIOV=yCONFIG_SFC_SIENA_MCDI_LOGGING=yCONFIG_NET_VENDOR_SMSC=yCONFIG_SMC9194=yCONFIG_PCMCIA_SMC91C92=yCONFIG_EPIC100=yCONFIG_SMSC911X=yCONFIG_SMSC9420=yCONFIG_NET_VENDOR_SOCIONEXT=yCONFIG_NET_VENDOR_STMICRO=yCONFIG_STMMAC_ETH=yCONFIG_STMMAC_SELFTESTS=yCONFIG_STMMAC_PLATFORM=yCONFIG_DWMAC_DWC_QOS_ETH=yCONFIG_DWMAC_GENERIC=yCONFIG_DWMAC_INTEL_PLAT=yCONFIG_DWMAC_INTEL=yCONFIG_DWMAC_LOONGSON=yCONFIG_STMMAC_PCI=yCONFIG_NET_VENDOR_SUN=yCONFIG_HAPPYMEAL=yCONFIG_SUNGEM=yCONFIG_CASSINI=yCONFIG_NIU=yCONFIG_NET_VENDOR_SYNOPSYS=yCONFIG_DWC_XLGMAC=yCONFIG_DWC_XLGMAC_PCI=yCONFIG_NET_VENDOR_TEHUTI=yCONFIG_TEHUTI=yCONFIG_NET_VENDOR_TI=yCONFIG_TI_CPSW_PHY_SEL=yCONFIG_TLAN=yCONFIG_NET_VENDOR_VERTEXCOM=yCONFIG_MSE102X=yCONFIG_NET_VENDOR_VIA=yCONFIG_VIA_RHINE=yCONFIG_VIA_RHINE_MMIO=yCONFIG_VIA_VELOCITY=yCONFIG_NET_VENDOR_WIZNET=yCONFIG_WIZNET_W5100=yCONFIG_WIZNET_W5300=y
# CONFIG_WIZNET_BUS_DIRECT is not set
# CONFIG_WIZNET_BUS_INDIRECT is not setCONFIG_WIZNET_BUS_ANY=yCONFIG_WIZNET_W5100_SPI=yCONFIG_NET_VENDOR_XILINX=yCONFIG_XILINX_EMACLITE=yCONFIG_XILINX_AXI_EMAC=yCONFIG_XILINX_LL_TEMAC=yCONFIG_NET_VENDOR_XIRCOM=yCONFIG_PCMCIA_XIRC2PS=yCONFIG_FDDI=yCONFIG_DEFXX=yCONFIG_SKFP=yCONFIG_HIPPI=yCONFIG_ROADRUNNER=yCONFIG_ROADRUNNER_LARGE_RINGS=yCONFIG_NET_SB1000=yCONFIG_PHYLINK=yCONFIG_PHYLIB=yCONFIG_SWPHY=yCONFIG_LED_TRIGGER_PHY=yCONFIG_FIXED_PHY=yCONFIG_SFP=y
#
# MII PHY device drivers
#CONFIG_AMD_PHY=yCONFIG_ADIN_PHY=yCONFIG_ADIN1100_PHY=yCONFIG_AQUANTIA_PHY=yCONFIG_AX88796B_PHY=yCONFIG_BROADCOM_PHY=yCONFIG_BCM54140_PHY=yCONFIG_BCM7XXX_PHY=yCONFIG_BCM84881_PHY=yCONFIG_BCM87XX_PHY=yCONFIG_BCM_NET_PHYLIB=yCONFIG_BCM_NET_PHYPTP=yCONFIG_CICADA_PHY=yCONFIG_CORTINA_PHY=yCONFIG_DAVICOM_PHY=yCONFIG_ICPLUS_PHY=yCONFIG_LXT_PHY=yCONFIG_INTEL_XWAY_PHY=yCONFIG_LSI_ET1011C_PHY=yCONFIG_MARVELL_PHY=yCONFIG_MARVELL_10G_PHY=yCONFIG_MARVELL_88X2222_PHY=yCONFIG_MAXLINEAR_GPHY=yCONFIG_MEDIATEK_GE_PHY=yCONFIG_MICREL_PHY=yCONFIG_MICROCHIP_PHY=yCONFIG_MICROCHIP_T1_PHY=yCONFIG_MICROSEMI_PHY=yCONFIG_MOTORCOMM_PHY=yCONFIG_NATIONAL_PHY=yCONFIG_NXP_C45_TJA11XX_PHY=yCONFIG_NXP_TJA11XX_PHY=yCONFIG_AT803X_PHY=yCONFIG_QSEMI_PHY=yCONFIG_REALTEK_PHY=yCONFIG_RENESAS_PHY=yCONFIG_ROCKCHIP_PHY=yCONFIG_SMSC_PHY=yCONFIG_STE10XP=yCONFIG_TERANETICS_PHY=yCONFIG_DP83822_PHY=yCONFIG_DP83TC811_PHY=yCONFIG_DP83848_PHY=yCONFIG_DP83867_PHY=yCONFIG_DP83869_PHY=yCONFIG_DP83TD510_PHY=yCONFIG_VITESSE_PHY=yCONFIG_XILINX_GMII2RGMII=yCONFIG_MICREL_KS8995MA=yCONFIG_PSE_CONTROLLER=yCONFIG_PSE_REGULATOR=yCONFIG_CAN_DEV=yCONFIG_CAN_VCAN=yCONFIG_CAN_VXCAN=yCONFIG_CAN_NETLINK=yCONFIG_CAN_CALC_BITTIMING=yCONFIG_CAN_RX_OFFLOAD=yCONFIG_CAN_CAN327=yCONFIG_CAN_FLEXCAN=yCONFIG_CAN_GRCAN=yCONFIG_CAN_JANZ_ICAN3=yCONFIG_CAN_KVASER_PCIEFD=yCONFIG_CAN_SLCAN=y
# CONFIG_PCH_CAN is not setCONFIG_CAN_C_CAN=yCONFIG_CAN_C_CAN_PLATFORM=yCONFIG_CAN_C_CAN_PCI=yCONFIG_CAN_CC770=yCONFIG_CAN_CC770_ISA=yCONFIG_CAN_CC770_PLATFORM=yCONFIG_CAN_CTUCANFD=yCONFIG_CAN_CTUCANFD_PCI=yCONFIG_CAN_CTUCANFD_PLATFORM=yCONFIG_CAN_IFI_CANFD=yCONFIG_CAN_M_CAN=yCONFIG_CAN_M_CAN_PCI=yCONFIG_CAN_M_CAN_PLATFORM=yCONFIG_CAN_M_CAN_TCAN4X5X=yCONFIG_CAN_PEAK_PCIEFD=yCONFIG_CAN_SJA1000=yCONFIG_CAN_EMS_PCI=yCONFIG_CAN_EMS_PCMCIA=yCONFIG_CAN_F81601=yCONFIG_CAN_KVASER_PCI=yCONFIG_CAN_PEAK_PCI=yCONFIG_CAN_PEAK_PCIEC=yCONFIG_CAN_PEAK_PCMCIA=yCONFIG_CAN_PLX_PCI=yCONFIG_CAN_SJA1000_ISA=yCONFIG_CAN_SJA1000_PLATFORM=yCONFIG_CAN_TSCAN1=yCONFIG_CAN_SOFTING=yCONFIG_CAN_SOFTING_CS=y
#
# CAN SPI interfaces
#CONFIG_CAN_HI311X=yCONFIG_CAN_MCP251X=yCONFIG_CAN_MCP251XFD=yCONFIG_CAN_MCP251XFD_SANITY=y
# end of CAN SPI interfaces
#
# CAN USB interfaces
#CONFIG_CAN_8DEV_USB=yCONFIG_CAN_EMS_USB=yCONFIG_CAN_ESD_USB=yCONFIG_CAN_ETAS_ES58X=yCONFIG_CAN_GS_USB=yCONFIG_CAN_KVASER_USB=yCONFIG_CAN_MCBA_USB=yCONFIG_CAN_PEAK_USB=yCONFIG_CAN_UCAN=y
# end of CAN USB interfaces
CONFIG_CAN_DEBUG_DEVICES=y
#
# MCTP Device Drivers
#CONFIG_MCTP_SERIAL=yCONFIG_MCTP_TRANSPORT_I2C=y
# end of MCTP Device Drivers
CONFIG_MDIO_DEVICE=yCONFIG_MDIO_BUS=yCONFIG_FWNODE_MDIO=yCONFIG_OF_MDIO=yCONFIG_ACPI_MDIO=yCONFIG_MDIO_DEVRES=yCONFIG_MDIO_BITBANG=yCONFIG_MDIO_BCM_UNIMAC=yCONFIG_MDIO_GPIO=yCONFIG_MDIO_HISI_FEMAC=yCONFIG_MDIO_I2C=yCONFIG_MDIO_MVUSB=yCONFIG_MDIO_MSCC_MIIM=yCONFIG_MDIO_IPQ4019=yCONFIG_MDIO_IPQ8064=y
#
# MDIO Multiplexers
#CONFIG_MDIO_BUS_MUX=yCONFIG_MDIO_BUS_MUX_GPIO=yCONFIG_MDIO_BUS_MUX_MULTIPLEXER=yCONFIG_MDIO_BUS_MUX_MMIOREG=y
#
# PCS device drivers
#CONFIG_PCS_XPCS=yCONFIG_PCS_LYNX=yCONFIG_PCS_ALTERA_TSE=y
# end of PCS device drivers
CONFIG_PLIP=yCONFIG_PPP=yCONFIG_PPP_BSDCOMP=yCONFIG_PPP_DEFLATE=yCONFIG_PPP_FILTER=yCONFIG_PPP_MPPE=yCONFIG_PPP_MULTILINK=yCONFIG_PPPOATM=yCONFIG_PPPOE=yCONFIG_PPTP=yCONFIG_PPPOL2TP=yCONFIG_PPP_ASYNC=yCONFIG_PPP_SYNC_TTY=yCONFIG_SLIP=yCONFIG_SLHC=yCONFIG_SLIP_COMPRESSED=yCONFIG_SLIP_SMART=yCONFIG_SLIP_MODE_SLIP6=yCONFIG_USB_NET_DRIVERS=yCONFIG_USB_CATC=yCONFIG_USB_KAWETH=yCONFIG_USB_PEGASUS=yCONFIG_USB_RTL8150=yCONFIG_USB_RTL8152=yCONFIG_USB_LAN78XX=yCONFIG_USB_USBNET=yCONFIG_USB_NET_AX8817X=yCONFIG_USB_NET_AX88179_178A=yCONFIG_USB_NET_CDCETHER=yCONFIG_USB_NET_CDC_EEM=yCONFIG_USB_NET_CDC_NCM=yCONFIG_USB_NET_HUAWEI_CDC_NCM=yCONFIG_USB_NET_CDC_MBIM=yCONFIG_USB_NET_DM9601=yCONFIG_USB_NET_SR9700=yCONFIG_USB_NET_SR9800=yCONFIG_USB_NET_SMSC75XX=yCONFIG_USB_NET_SMSC95XX=yCONFIG_USB_NET_GL620A=yCONFIG_USB_NET_NET1080=yCONFIG_USB_NET_PLUSB=yCONFIG_USB_NET_MCS7830=yCONFIG_USB_NET_RNDIS_HOST=yCONFIG_USB_NET_CDC_SUBSET_ENABLE=yCONFIG_USB_NET_CDC_SUBSET=yCONFIG_USB_ALI_M5632=yCONFIG_USB_AN2720=yCONFIG_USB_BELKIN=yCONFIG_USB_ARMLINUX=yCONFIG_USB_EPSON2888=yCONFIG_USB_KC2190=yCONFIG_USB_NET_ZAURUS=yCONFIG_USB_NET_CX82310_ETH=yCONFIG_USB_NET_KALMIA=yCONFIG_USB_NET_QMI_WWAN=yCONFIG_USB_HSO=yCONFIG_USB_NET_INT51X1=yCONFIG_USB_CDC_PHONET=yCONFIG_USB_IPHETH=yCONFIG_USB_SIERRA_NET=yCONFIG_USB_VL600=yCONFIG_USB_NET_CH9200=yCONFIG_USB_NET_AQC111=yCONFIG_USB_RTL8153_ECM=yCONFIG_WLAN=yCONFIG_WLAN_VENDOR_ADMTEK=yCONFIG_ADM8211=yCONFIG_ATH_COMMON=yCONFIG_WLAN_VENDOR_ATH=yCONFIG_ATH_DEBUG=yCONFIG_ATH_TRACEPOINTS=yCONFIG_ATH_REG_DYNAMIC_USER_REG_HINTS=yCONFIG_ATH_REG_DYNAMIC_USER_CERT_TESTING=yCONFIG_ATH5K=yCONFIG_ATH5K_DEBUG=yCONFIG_ATH5K_TRACER=yCONFIG_ATH5K_PCI=yCONFIG_ATH5K_TEST_CHANNELS=yCONFIG_ATH9K_HW=yCONFIG_ATH9K_COMMON=yCONFIG_ATH9K_COMMON_DEBUG=yCONFIG_ATH9K_DFS_DEBUGFS=yCONFIG_ATH9K_BTCOEX_SUPPORT=yCONFIG_ATH9K=yCONFIG_ATH9K_PCI=yCONFIG_ATH9K_AHB=yCONFIG_ATH9K_DEBUGFS=yCONFIG_ATH9K_STATION_STATISTICS=yCONFIG_ATH9K_TX99=yCONFIG_ATH9K_DFS_CERTIFIED=yCONFIG_ATH9K_DYNACK=yCONFIG_ATH9K_WOW=yCONFIG_ATH9K_RFKILL=yCONFIG_ATH9K_CHANNEL_CONTEXT=yCONFIG_ATH9K_PCOEM=yCONFIG_ATH9K_PCI_NO_EEPROM=yCONFIG_ATH9K_HTC=yCONFIG_ATH9K_HTC_DEBUGFS=yCONFIG_ATH9K_HWRNG=yCONFIG_ATH9K_COMMON_SPECTRAL=yCONFIG_CARL9170=yCONFIG_CARL9170_LEDS=yCONFIG_CARL9170_DEBUGFS=yCONFIG_CARL9170_WPC=yCONFIG_CARL9170_HWRNG=yCONFIG_ATH6KL=yCONFIG_ATH6KL_SDIO=yCONFIG_ATH6KL_USB=yCONFIG_ATH6KL_DEBUG=yCONFIG_ATH6KL_TRACING=yCONFIG_ATH6KL_REGDOMAIN=yCONFIG_AR5523=yCONFIG_WIL6210=yCONFIG_WIL6210_ISR_COR=yCONFIG_WIL6210_TRACING=yCONFIG_WIL6210_DEBUGFS=yCONFIG_ATH10K=yCONFIG_ATH10K_CE=yCONFIG_ATH10K_PCI=yCONFIG_ATH10K_AHB=yCONFIG_ATH10K_SDIO=yCONFIG_ATH10K_USB=yCONFIG_ATH10K_DEBUG=yCONFIG_ATH10K_DEBUGFS=yCONFIG_ATH10K_SPECTRAL=yCONFIG_ATH10K_TRACING=yCONFIG_ATH10K_DFS_CERTIFIED=yCONFIG_WCN36XX=yCONFIG_WCN36XX_DEBUGFS=yCONFIG_ATH11K=yCONFIG_ATH11K_AHB=yCONFIG_ATH11K_PCI=yCONFIG_ATH11K_DEBUG=yCONFIG_ATH11K_DEBUGFS=yCONFIG_ATH11K_TRACING=yCONFIG_ATH11K_SPECTRAL=yCONFIG_WLAN_VENDOR_ATMEL=yCONFIG_ATMEL=yCONFIG_PCI_ATMEL=yCONFIG_PCMCIA_ATMEL=yCONFIG_AT76C50X_USB=yCONFIG_WLAN_VENDOR_BROADCOM=yCONFIG_B43=yCONFIG_B43_BCMA=yCONFIG_B43_SSB=yCONFIG_B43_BUSES_BCMA_AND_SSB=y
# CONFIG_B43_BUSES_BCMA is not set
# CONFIG_B43_BUSES_SSB is not setCONFIG_B43_PCI_AUTOSELECT=yCONFIG_B43_PCICORE_AUTOSELECT=yCONFIG_B43_SDIO=yCONFIG_B43_BCMA_PIO=yCONFIG_B43_PIO=yCONFIG_B43_PHY_G=yCONFIG_B43_PHY_N=yCONFIG_B43_PHY_LP=yCONFIG_B43_PHY_HT=yCONFIG_B43_LEDS=yCONFIG_B43_HWRNG=yCONFIG_B43_DEBUG=yCONFIG_B43LEGACY=yCONFIG_B43LEGACY_PCI_AUTOSELECT=yCONFIG_B43LEGACY_PCICORE_AUTOSELECT=yCONFIG_B43LEGACY_LEDS=yCONFIG_B43LEGACY_HWRNG=yCONFIG_B43LEGACY_DEBUG=yCONFIG_B43LEGACY_DMA=yCONFIG_B43LEGACY_PIO=yCONFIG_B43LEGACY_DMA_AND_PIO_MODE=y
# CONFIG_B43LEGACY_DMA_MODE is not set
# CONFIG_B43LEGACY_PIO_MODE is not setCONFIG_BRCMUTIL=yCONFIG_BRCMSMAC=yCONFIG_BRCMSMAC_LEDS=yCONFIG_BRCMFMAC=yCONFIG_BRCMFMAC_PROTO_BCDC=yCONFIG_BRCMFMAC_PROTO_MSGBUF=yCONFIG_BRCMFMAC_SDIO=yCONFIG_BRCMFMAC_USB=yCONFIG_BRCMFMAC_PCIE=yCONFIG_BRCM_TRACING=yCONFIG_BRCMDBG=yCONFIG_WLAN_VENDOR_CISCO=yCONFIG_AIRO=yCONFIG_AIRO_CS=yCONFIG_WLAN_VENDOR_INTEL=yCONFIG_IPW2100=yCONFIG_IPW2100_MONITOR=yCONFIG_IPW2100_DEBUG=yCONFIG_IPW2200=yCONFIG_IPW2200_MONITOR=yCONFIG_IPW2200_RADIOTAP=yCONFIG_IPW2200_PROMISCUOUS=yCONFIG_IPW2200_QOS=yCONFIG_IPW2200_DEBUG=yCONFIG_LIBIPW=yCONFIG_LIBIPW_DEBUG=yCONFIG_IWLEGACY=yCONFIG_IWL4965=yCONFIG_IWL3945=y
#
# iwl3945 / iwl4965 Debugging Options # CONFIG_IWLEGACY_DEBUG=y CONFIG_IWLEGACY_DEBUGFS=y # end of iwl3945 / iwl4965 Debugging Options
CONFIG_IWLWIFI=yCONFIG_IWLWIFI_LEDS=yCONFIG_IWLDVM=yCONFIG_IWLMVM=y
#
# Debugging Options
#CONFIG_IWLWIFI_DEBUG=yCONFIG_IWLWIFI_DEBUGFS=yCONFIG_IWLWIFI_DEVICE_TRACING=y
# end of Debugging Options
CONFIG_WLAN_VENDOR_INTERSIL=yCONFIG_HOSTAP=yCONFIG_HOSTAP_FIRMWARE=yCONFIG_HOSTAP_FIRMWARE_NVRAM=yCONFIG_HOSTAP_PLX=yCONFIG_HOSTAP_PCI=yCONFIG_HOSTAP_CS=yCONFIG_HERMES=yCONFIG_HERMES_PRISM=yCONFIG_HERMES_CACHE_FW_ON_INIT=yCONFIG_PLX_HERMES=yCONFIG_TMD_HERMES=yCONFIG_NORTEL_HERMES=yCONFIG_PCI_HERMES=yCONFIG_PCMCIA_HERMES=yCONFIG_PCMCIA_SPECTRUM=yCONFIG_ORINOCO_USB=yCONFIG_P54_COMMON=yCONFIG_P54_USB=yCONFIG_P54_PCI=yCONFIG_P54_SPI=yCONFIG_P54_SPI_DEFAULT_EEPROM=yCONFIG_P54_LEDS=yCONFIG_WLAN_VENDOR_MARVELL=yCONFIG_LIBERTAS=yCONFIG_LIBERTAS_USB=yCONFIG_LIBERTAS_CS=yCONFIG_LIBERTAS_SDIO=yCONFIG_LIBERTAS_SPI=yCONFIG_LIBERTAS_DEBUG=yCONFIG_LIBERTAS_MESH=yCONFIG_LIBERTAS_THINFIRM=yCONFIG_LIBERTAS_THINFIRM_DEBUG=yCONFIG_LIBERTAS_THINFIRM_USB=yCONFIG_MWIFIEX=yCONFIG_MWIFIEX_SDIO=yCONFIG_MWIFIEX_PCIE=yCONFIG_MWIFIEX_USB=yCONFIG_MWL8K=yCONFIG_WLAN_VENDOR_MEDIATEK=yCONFIG_MT7601U=yCONFIG_MT76_CORE=yCONFIG_MT76_LEDS=yCONFIG_MT76_USB=yCONFIG_MT76_SDIO=y
CONFIG_MT76x02_LIB=y
CONFIG_MT76x02_USB=yCONFIG_MT76_CONNAC_LIB=y
CONFIG_MT76x0_COMMON=y
CONFIG_MT76x0U=y
CONFIG_MT76x0E=y
CONFIG_MT76x2_COMMON=y
CONFIG_MT76x2E=y
CONFIG_MT76x2U=yCONFIG_MT7603E=yCONFIG_MT7615_COMMON=yCONFIG_MT7615E=yCONFIG_MT7663_USB_SDIO_COMMON=yCONFIG_MT7663U=yCONFIG_MT7663S=yCONFIG_MT7915E=yCONFIG_MT7921_COMMON=yCONFIG_MT7921E=yCONFIG_MT7921S=yCONFIG_MT7921U=yCONFIG_WLAN_VENDOR_MICROCHIP=yCONFIG_WILC1000=yCONFIG_WILC1000_SDIO=yCONFIG_WILC1000_SPI=yCONFIG_WILC1000_HW_OOB_INTR=yCONFIG_WLAN_VENDOR_PURELIFI=yCONFIG_PLFXLC=yCONFIG_WLAN_VENDOR_RALINK=yCONFIG_RT2X00=yCONFIG_RT2400PCI=yCONFIG_RT2500PCI=yCONFIG_RT61PCI=yCONFIG_RT2800PCI=yCONFIG_RT2800PCI_RT33XX=yCONFIG_RT2800PCI_RT35XX=yCONFIG_RT2800PCI_RT53XX=yCONFIG_RT2800PCI_RT3290=yCONFIG_RT2500USB=yCONFIG_RT73USB=yCONFIG_RT2800USB=yCONFIG_RT2800USB_RT33XX=yCONFIG_RT2800USB_RT35XX=yCONFIG_RT2800USB_RT3573=yCONFIG_RT2800USB_RT53XX=yCONFIG_RT2800USB_RT55XX=yCONFIG_RT2800USB_UNKNOWN=yCONFIG_RT2800_LIB=yCONFIG_RT2800_LIB_MMIO=yCONFIG_RT2X00_LIB_MMIO=yCONFIG_RT2X00_LIB_PCI=yCONFIG_RT2X00_LIB_USB=yCONFIG_RT2X00_LIB=yCONFIG_RT2X00_LIB_FIRMWARE=yCONFIG_RT2X00_LIB_CRYPTO=yCONFIG_RT2X00_LIB_LEDS=yCONFIG_RT2X00_LIB_DEBUGFS=yCONFIG_RT2X00_DEBUG=yCONFIG_WLAN_VENDOR_REALTEK=yCONFIG_RTL8180=yCONFIG_RTL8187=yCONFIG_RTL8187_LEDS=yCONFIG_RTL_CARDS=yCONFIG_RTL8192CE=yCONFIG_RTL8192SE=yCONFIG_RTL8192DE=yCONFIG_RTL8723AE=yCONFIG_RTL8723BE=yCONFIG_RTL8188EE=yCONFIG_RTL8192EE=yCONFIG_RTL8821AE=yCONFIG_RTL8192CU=yCONFIG_RTLWIFI=yCONFIG_RTLWIFI_PCI=yCONFIG_RTLWIFI_USB=yCONFIG_RTLWIFI_DEBUG=yCONFIG_RTL8192C_COMMON=yCONFIG_RTL8723_COMMON=yCONFIG_RTLBTCOEXIST=yCONFIG_RTL8XXXU=yCONFIG_RTL8XXXU_UNTESTED=yCONFIG_RTW88=yCONFIG_RTW88_CORE=yCONFIG_RTW88_PCI=yCONFIG_RTW88_8822B=yCONFIG_RTW88_8822C=yCONFIG_RTW88_8723D=yCONFIG_RTW88_8821C=yCONFIG_RTW88_8822BE=yCONFIG_RTW88_8822CE=yCONFIG_RTW88_8723DE=yCONFIG_RTW88_8821CE=yCONFIG_RTW88_DEBUG=yCONFIG_RTW88_DEBUGFS=yCONFIG_RTW89=yCONFIG_RTW89_CORE=yCONFIG_RTW89_PCI=yCONFIG_RTW89_8852A=yCONFIG_RTW89_8852C=yCONFIG_RTW89_8852AE=yCONFIG_RTW89_8852CE=yCONFIG_RTW89_DEBUG=yCONFIG_RTW89_DEBUGMSG=yCONFIG_RTW89_DEBUGFS=yCONFIG_WLAN_VENDOR_RSI=yCONFIG_RSI_91X=yCONFIG_RSI_DEBUGFS=yCONFIG_RSI_SDIO=yCONFIG_RSI_USB=yCONFIG_RSI_COEX=yCONFIG_WLAN_VENDOR_SILABS=yCONFIG_WFX=yCONFIG_WLAN_VENDOR_ST=yCONFIG_CW1200=yCONFIG_CW1200_WLAN_SDIO=yCONFIG_CW1200_WLAN_SPI=yCONFIG_WLAN_VENDOR_TI=yCONFIG_WL1251=yCONFIG_WL1251_SPI=yCONFIG_WL1251_SDIO=yCONFIG_WL12XX=yCONFIG_WL18XX=yCONFIG_WLCORE=yCONFIG_WLCORE_SPI=yCONFIG_WLCORE_SDIO=yCONFIG_WILINK_PLATFORM_DATA=yCONFIG_WLAN_VENDOR_ZYDAS=yCONFIG_USB_ZD1201=yCONFIG_ZD1211RW=yCONFIG_ZD1211RW_DEBUG=yCONFIG_WLAN_VENDOR_QUANTENNA=yCONFIG_QTNFMAC=yCONFIG_QTNFMAC_PCIE=yCONFIG_PCMCIA_RAYCS=yCONFIG_PCMCIA_WL3501=yCONFIG_MAC80211_HWSIM=yCONFIG_USB_NET_RNDIS_WLAN=yCONFIG_VIRT_WIFI=yCONFIG_WAN=yCONFIG_HDLC=yCONFIG_HDLC_RAW=yCONFIG_HDLC_RAW_ETH=yCONFIG_HDLC_CISCO=yCONFIG_HDLC_FR=yCONFIG_HDLC_PPP=yCONFIG_HDLC_X25=yCONFIG_PCI200SYN=yCONFIG_WANXL=yCONFIG_PC300TOO=yCONFIG_N2=yCONFIG_C101=yCONFIG_FARSYNC=yCONFIG_LAPBETHER=yCONFIG_IEEE802154_DRIVERS=yCONFIG_IEEE802154_FAKELB=yCONFIG_IEEE802154_AT86RF230=yCONFIG_IEEE802154_MRF24J40=yCONFIG_IEEE802154_CC2520=yCONFIG_IEEE802154_ATUSB=yCONFIG_IEEE802154_ADF7242=yCONFIG_IEEE802154_CA8210=yCONFIG_IEEE802154_CA8210_DEBUGFS=yCONFIG_IEEE802154_MCR20A=yCONFIG_IEEE802154_HWSIM=y
#
# Wireless WAN
#CONFIG_WWAN=yCONFIG_WWAN_DEBUGFS=yCONFIG_WWAN_HWSIM=yCONFIG_MHI_WWAN_CTRL=yCONFIG_MHI_WWAN_MBIM=yCONFIG_RPMSG_WWAN_CTRL=yCONFIG_IOSM=yCONFIG_MTK_T7XX=y
# end of Wireless WAN
CONFIG_VMXNET3=yCONFIG_FUJITSU_ES=yCONFIG_USB4_NET=yCONFIG_HYPERV_NET=yCONFIG_NETDEVSIM=yCONFIG_NET_FAILOVER=yCONFIG_NETDEV_LEGACY_INIT=yCONFIG_ISDN=yCONFIG_ISDN_CAPI=yCONFIG_CAPI_TRACE=yCONFIG_ISDN_CAPI_MIDDLEWARE=yCONFIG_MISDN=yCONFIG_MISDN_DSP=yCONFIG_MISDN_L1OIP=y
#
# mISDN hardware drivers
#CONFIG_MISDN_HFCPCI=yCONFIG_MISDN_HFCMULTI=yCONFIG_MISDN_HFCUSB=yCONFIG_MISDN_AVMFRITZ=yCONFIG_MISDN_SPEEDFAX=yCONFIG_MISDN_INFINEON=yCONFIG_MISDN_W6692=yCONFIG_MISDN_NETJET=yCONFIG_MISDN_HDLC=yCONFIG_MISDN_IPAC=yCONFIG_MISDN_ISAR=y
#
# Input device support
#CONFIG_INPUT=yCONFIG_INPUT_LEDS=yCONFIG_INPUT_FF_MEMLESS=yCONFIG_INPUT_SPARSEKMAP=yCONFIG_INPUT_MATRIXKMAP=yCONFIG_INPUT_VIVALDIFMAP=y
#
# Userland interfaces
#CONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_PSAUX=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=1024CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768CONFIG_INPUT_JOYDEV=yCONFIG_INPUT_EVDEV=yCONFIG_INPUT_EVBUG=y
#
# Input Device Drivers
#CONFIG_INPUT_KEYBOARD=yCONFIG_KEYBOARD_ADC=yCONFIG_KEYBOARD_ADP5520=yCONFIG_KEYBOARD_ADP5588=yCONFIG_KEYBOARD_ADP5589=yCONFIG_KEYBOARD_APPLESPI=yCONFIG_KEYBOARD_ATKBD=yCONFIG_KEYBOARD_QT1050=yCONFIG_KEYBOARD_QT1070=yCONFIG_KEYBOARD_QT2160=yCONFIG_KEYBOARD_DLINK_DIR685=yCONFIG_KEYBOARD_LKKBD=yCONFIG_KEYBOARD_GPIO=yCONFIG_KEYBOARD_GPIO_POLLED=yCONFIG_KEYBOARD_TCA6416=yCONFIG_KEYBOARD_TCA8418=yCONFIG_KEYBOARD_MATRIX=yCONFIG_KEYBOARD_LM8323=yCONFIG_KEYBOARD_LM8333=yCONFIG_KEYBOARD_MAX7359=yCONFIG_KEYBOARD_MCS=yCONFIG_KEYBOARD_MPR121=yCONFIG_KEYBOARD_NEWTON=yCONFIG_KEYBOARD_OPENCORES=yCONFIG_KEYBOARD_PINEPHONE=yCONFIG_KEYBOARD_SAMSUNG=yCONFIG_KEYBOARD_GOLDFISH_EVENTS=yCONFIG_KEYBOARD_STOWAWAY=yCONFIG_KEYBOARD_SUNKBD=yCONFIG_KEYBOARD_STMPE=yCONFIG_KEYBOARD_IQS62X=yCONFIG_KEYBOARD_OMAP4=yCONFIG_KEYBOARD_TC3589X=yCONFIG_KEYBOARD_TM2_TOUCHKEY=yCONFIG_KEYBOARD_TWL4030=yCONFIG_KEYBOARD_XTKBD=yCONFIG_KEYBOARD_CROS_EC=yCONFIG_KEYBOARD_CAP11XX=yCONFIG_KEYBOARD_BCM=yCONFIG_KEYBOARD_MTK_PMIC=yCONFIG_KEYBOARD_CYPRESS_SF=yCONFIG_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=yCONFIG_MOUSE_PS2_TOUCHKIT=yCONFIG_MOUSE_PS2_OLPC=yCONFIG_MOUSE_PS2_FOCALTECH=yCONFIG_MOUSE_PS2_VMMOUSE=yCONFIG_MOUSE_PS2_SMBUS=yCONFIG_MOUSE_SERIAL=yCONFIG_MOUSE_APPLETOUCH=yCONFIG_MOUSE_BCM5974=yCONFIG_MOUSE_CYAPA=yCONFIG_MOUSE_ELAN_I2C=yCONFIG_MOUSE_ELAN_I2C_I2C=yCONFIG_MOUSE_ELAN_I2C_SMBUS=yCONFIG_MOUSE_INPORT=yCONFIG_MOUSE_ATIXL=yCONFIG_MOUSE_LOGIBM=yCONFIG_MOUSE_PC110PAD=yCONFIG_MOUSE_VSXXXAA=yCONFIG_MOUSE_GPIO=yCONFIG_MOUSE_SYNAPTICS_I2C=yCONFIG_MOUSE_SYNAPTICS_USB=yCONFIG_INPUT_JOYSTICK=yCONFIG_JOYSTICK_ANALOG=yCONFIG_JOYSTICK_A3D=yCONFIG_JOYSTICK_ADC=yCONFIG_JOYSTICK_ADI=yCONFIG_JOYSTICK_COBRA=yCONFIG_JOYSTICK_GF2K=yCONFIG_JOYSTICK_GRIP=yCONFIG_JOYSTICK_GRIP_MP=yCONFIG_JOYSTICK_GUILLEMOT=yCONFIG_JOYSTICK_INTERACT=yCONFIG_JOYSTICK_SIDEWINDER=yCONFIG_JOYSTICK_TMDC=yCONFIG_JOYSTICK_IFORCE=yCONFIG_JOYSTICK_IFORCE_USB=yCONFIG_JOYSTICK_IFORCE_232=yCONFIG_JOYSTICK_WARRIOR=yCONFIG_JOYSTICK_MAGELLAN=yCONFIG_JOYSTICK_SPACEORB=yCONFIG_JOYSTICK_SPACEBALL=yCONFIG_JOYSTICK_STINGER=yCONFIG_JOYSTICK_TWIDJOY=yCONFIG_JOYSTICK_ZHENHUA=yCONFIG_JOYSTICK_DB9=yCONFIG_JOYSTICK_GAMECON=yCONFIG_JOYSTICK_TURBOGRAFX=yCONFIG_JOYSTICK_AS5011=yCONFIG_JOYSTICK_JOYDUMP=yCONFIG_JOYSTICK_XPAD=yCONFIG_JOYSTICK_XPAD_FF=yCONFIG_JOYSTICK_XPAD_LEDS=yCONFIG_JOYSTICK_WALKERA0701=yCONFIG_JOYSTICK_PSXPAD_SPI=yCONFIG_JOYSTICK_PSXPAD_SPI_FF=yCONFIG_JOYSTICK_PXRC=yCONFIG_JOYSTICK_QWIIC=yCONFIG_JOYSTICK_FSIA6B=yCONFIG_JOYSTICK_SENSEHAT=yCONFIG_INPUT_TABLET=yCONFIG_TABLET_USB_ACECAD=yCONFIG_TABLET_USB_AIPTEK=yCONFIG_TABLET_USB_HANWANG=yCONFIG_TABLET_USB_KBTAB=yCONFIG_TABLET_USB_PEGASUS=yCONFIG_TABLET_SERIAL_WACOM4=yCONFIG_INPUT_TOUCHSCREEN=yCONFIG_TOUCHSCREEN_88PM860X=yCONFIG_TOUCHSCREEN_ADS7846=yCONFIG_TOUCHSCREEN_AD7877=yCONFIG_TOUCHSCREEN_AD7879=yCONFIG_TOUCHSCREEN_AD7879_I2C=yCONFIG_TOUCHSCREEN_AD7879_SPI=yCONFIG_TOUCHSCREEN_ADC=yCONFIG_TOUCHSCREEN_AR1021_I2C=yCONFIG_TOUCHSCREEN_ATMEL_MXT=yCONFIG_TOUCHSCREEN_ATMEL_MXT_T37=yCONFIG_TOUCHSCREEN_AUO_PIXCIR=yCONFIG_TOUCHSCREEN_BU21013=yCONFIG_TOUCHSCREEN_BU21029=yCONFIG_TOUCHSCREEN_CHIPONE_ICN8318=yCONFIG_TOUCHSCREEN_CHIPONE_ICN8505=yCONFIG_TOUCHSCREEN_CY8CTMA140=yCONFIG_TOUCHSCREEN_CY8CTMG110=yCONFIG_TOUCHSCREEN_CYTTSP_CORE=yCONFIG_TOUCHSCREEN_CYTTSP_I2C=yCONFIG_TOUCHSCREEN_CYTTSP_SPI=yCONFIG_TOUCHSCREEN_CYTTSP4_CORE=yCONFIG_TOUCHSCREEN_CYTTSP4_I2C=yCONFIG_TOUCHSCREEN_CYTTSP4_SPI=yCONFIG_TOUCHSCREEN_DA9034=yCONFIG_TOUCHSCREEN_DA9052=yCONFIG_TOUCHSCREEN_DYNAPRO=yCONFIG_TOUCHSCREEN_HAMPSHIRE=yCONFIG_TOUCHSCREEN_EETI=yCONFIG_TOUCHSCREEN_EGALAX=yCONFIG_TOUCHSCREEN_EGALAX_SERIAL=yCONFIG_TOUCHSCREEN_EXC3000=yCONFIG_TOUCHSCREEN_FUJITSU=yCONFIG_TOUCHSCREEN_GOODIX=yCONFIG_TOUCHSCREEN_HIDEEP=yCONFIG_TOUCHSCREEN_HYCON_HY46XX=yCONFIG_TOUCHSCREEN_ILI210X=yCONFIG_TOUCHSCREEN_ILITEK=yCONFIG_TOUCHSCREEN_S6SY761=yCONFIG_TOUCHSCREEN_GUNZE=yCONFIG_TOUCHSCREEN_EKTF2127=yCONFIG_TOUCHSCREEN_ELAN=yCONFIG_TOUCHSCREEN_ELO=yCONFIG_TOUCHSCREEN_WACOM_W8001=yCONFIG_TOUCHSCREEN_WACOM_I2C=yCONFIG_TOUCHSCREEN_MAX11801=yCONFIG_TOUCHSCREEN_MCS5000=yCONFIG_TOUCHSCREEN_MMS114=yCONFIG_TOUCHSCREEN_MELFAS_MIP4=yCONFIG_TOUCHSCREEN_MSG2638=yCONFIG_TOUCHSCREEN_MTOUCH=yCONFIG_TOUCHSCREEN_IMAGIS=yCONFIG_TOUCHSCREEN_IMX6UL_TSC=yCONFIG_TOUCHSCREEN_INEXIO=yCONFIG_TOUCHSCREEN_MK712=yCONFIG_TOUCHSCREEN_HTCPEN=yCONFIG_TOUCHSCREEN_PENMOUNT=yCONFIG_TOUCHSCREEN_EDT_FT5X06=yCONFIG_TOUCHSCREEN_TOUCHRIGHT=yCONFIG_TOUCHSCREEN_TOUCHWIN=yCONFIG_TOUCHSCREEN_TI_AM335X_TSC=yCONFIG_TOUCHSCREEN_UCB1400=yCONFIG_TOUCHSCREEN_PIXCIR=yCONFIG_TOUCHSCREEN_WDT87XX_I2C=yCONFIG_TOUCHSCREEN_WM831X=yCONFIG_TOUCHSCREEN_WM97XX=yCONFIG_TOUCHSCREEN_WM9705=yCONFIG_TOUCHSCREEN_WM9712=yCONFIG_TOUCHSCREEN_WM9713=yCONFIG_TOUCHSCREEN_USB_COMPOSITE=yCONFIG_TOUCHSCREEN_MC13783=yCONFIG_TOUCHSCREEN_USB_EGALAX=yCONFIG_TOUCHSCREEN_USB_PANJIT=yCONFIG_TOUCHSCREEN_USB_3M=yCONFIG_TOUCHSCREEN_USB_ITM=yCONFIG_TOUCHSCREEN_USB_ETURBO=yCONFIG_TOUCHSCREEN_USB_GUNZE=yCONFIG_TOUCHSCREEN_USB_DMC_TSC10=yCONFIG_TOUCHSCREEN_USB_IRTOUCH=yCONFIG_TOUCHSCREEN_USB_IDEALTEK=yCONFIG_TOUCHSCREEN_USB_GENERAL_TOUCH=yCONFIG_TOUCHSCREEN_USB_GOTOP=yCONFIG_TOUCHSCREEN_USB_JASTEC=yCONFIG_TOUCHSCREEN_USB_ELO=yCONFIG_TOUCHSCREEN_USB_E2I=yCONFIG_TOUCHSCREEN_USB_ZYTRONIC=yCONFIG_TOUCHSCREEN_USB_ETT_TC45USB=yCONFIG_TOUCHSCREEN_USB_NEXIO=yCONFIG_TOUCHSCREEN_USB_EASYTOUCH=yCONFIG_TOUCHSCREEN_TOUCHIT213=yCONFIG_TOUCHSCREEN_TSC_SERIO=yCONFIG_TOUCHSCREEN_TSC200X_CORE=yCONFIG_TOUCHSCREEN_TSC2004=yCONFIG_TOUCHSCREEN_TSC2005=yCONFIG_TOUCHSCREEN_TSC2007=yCONFIG_TOUCHSCREEN_TSC2007_IIO=yCONFIG_TOUCHSCREEN_PCAP=yCONFIG_TOUCHSCREEN_RM_TS=yCONFIG_TOUCHSCREEN_SILEAD=yCONFIG_TOUCHSCREEN_SIS_I2C=yCONFIG_TOUCHSCREEN_ST1232=yCONFIG_TOUCHSCREEN_STMFTS=yCONFIG_TOUCHSCREEN_STMPE=yCONFIG_TOUCHSCREEN_SUR40=yCONFIG_TOUCHSCREEN_SURFACE3_SPI=yCONFIG_TOUCHSCREEN_SX8654=yCONFIG_TOUCHSCREEN_TPS6507X=yCONFIG_TOUCHSCREEN_ZET6223=yCONFIG_TOUCHSCREEN_ZFORCE=yCONFIG_TOUCHSCREEN_COLIBRI_VF50=yCONFIG_TOUCHSCREEN_ROHM_BU21023=yCONFIG_TOUCHSCREEN_IQS5XX=yCONFIG_TOUCHSCREEN_ZINITIX=yCONFIG_INPUT_MISC=yCONFIG_INPUT_88PM860X_ONKEY=yCONFIG_INPUT_88PM80X_ONKEY=yCONFIG_INPUT_AD714X=yCONFIG_INPUT_AD714X_I2C=yCONFIG_INPUT_AD714X_SPI=yCONFIG_INPUT_ARIZONA_HAPTICS=yCONFIG_INPUT_ATC260X_ONKEY=yCONFIG_INPUT_ATMEL_CAPTOUCH=yCONFIG_INPUT_BMA150=yCONFIG_INPUT_E3X0_BUTTON=yCONFIG_INPUT_PCSPKR=yCONFIG_INPUT_MAX77650_ONKEY=yCONFIG_INPUT_MAX77693_HAPTIC=yCONFIG_INPUT_MAX8925_ONKEY=yCONFIG_INPUT_MAX8997_HAPTIC=yCONFIG_INPUT_MC13783_PWRBUTTON=yCONFIG_INPUT_MMA8450=yCONFIG_INPUT_APANEL=yCONFIG_INPUT_GPIO_BEEPER=yCONFIG_INPUT_GPIO_DECODER=yCONFIG_INPUT_GPIO_VIBRA=yCONFIG_INPUT_CPCAP_PWRBUTTON=yCONFIG_INPUT_WISTRON_BTNS=yCONFIG_INPUT_ATLAS_BTNS=yCONFIG_INPUT_ATI_REMOTE2=yCONFIG_INPUT_KEYSPAN_REMOTE=yCONFIG_INPUT_KXTJ9=yCONFIG_INPUT_POWERMATE=yCONFIG_INPUT_YEALINK=yCONFIG_INPUT_CM109=yCONFIG_INPUT_REGULATOR_HAPTIC=yCONFIG_INPUT_RETU_PWRBUTTON=yCONFIG_INPUT_TPS65218_PWRBUTTON=yCONFIG_INPUT_AXP20X_PEK=yCONFIG_INPUT_TWL4030_PWRBUTTON=yCONFIG_INPUT_TWL4030_VIBRA=yCONFIG_INPUT_TWL6040_VIBRA=yCONFIG_INPUT_UINPUT=yCONFIG_INPUT_PALMAS_PWRBUTTON=yCONFIG_INPUT_PCF50633_PMU=yCONFIG_INPUT_PCF8574=yCONFIG_INPUT_PWM_BEEPER=yCONFIG_INPUT_PWM_VIBRA=yCONFIG_INPUT_RK805_PWRKEY=yCONFIG_INPUT_GPIO_ROTARY_ENCODER=yCONFIG_INPUT_DA7280_HAPTICS=yCONFIG_INPUT_DA9052_ONKEY=yCONFIG_INPUT_DA9055_ONKEY=yCONFIG_INPUT_DA9063_ONKEY=yCONFIG_INPUT_WM831X_ON=yCONFIG_INPUT_PCAP=yCONFIG_INPUT_ADXL34X=yCONFIG_INPUT_ADXL34X_I2C=yCONFIG_INPUT_ADXL34X_SPI=yCONFIG_INPUT_IBM_PANEL=yCONFIG_INPUT_IMS_PCU=yCONFIG_INPUT_IQS269A=yCONFIG_INPUT_IQS626A=yCONFIG_INPUT_IQS7222=yCONFIG_INPUT_CMA3000=yCONFIG_INPUT_CMA3000_I2C=yCONFIG_INPUT_IDEAPAD_SLIDEBAR=yCONFIG_INPUT_SOC_BUTTON_ARRAY=yCONFIG_INPUT_DRV260X_HAPTICS=yCONFIG_INPUT_DRV2665_HAPTICS=yCONFIG_INPUT_DRV2667_HAPTICS=yCONFIG_INPUT_RAVE_SP_PWRBUTTON=yCONFIG_INPUT_RT5120_PWRKEY=yCONFIG_INPUT_STPMIC1_ONKEY=yCONFIG_RMI4_CORE=yCONFIG_RMI4_I2C=yCONFIG_RMI4_SPI=yCONFIG_RMI4_SMB=yCONFIG_RMI4_F03=yCONFIG_RMI4_F03_SERIO=yCONFIG_RMI4_2D_SENSOR=yCONFIG_RMI4_F11=yCONFIG_RMI4_F12=yCONFIG_RMI4_F30=yCONFIG_RMI4_F34=yCONFIG_RMI4_F3A=yCONFIG_RMI4_F54=yCONFIG_RMI4_F55=y
#
# Hardware I/O ports
#CONFIG_SERIO=yCONFIG_ARCH_MIGHT_HAVE_PC_SERIO=yCONFIG_SERIO_I8042=yCONFIG_SERIO_SERPORT=yCONFIG_SERIO_CT82C710=yCONFIG_SERIO_PARKBD=yCONFIG_SERIO_PCIPS2=yCONFIG_SERIO_LIBPS2=yCONFIG_SERIO_RAW=yCONFIG_SERIO_ALTERA_PS2=yCONFIG_SERIO_PS2MULT=yCONFIG_SERIO_ARC_PS2=yCONFIG_SERIO_APBPS2=yCONFIG_HYPERV_KEYBOARD=yCONFIG_SERIO_GPIO_PS2=yCONFIG_USERIO=yCONFIG_GAMEPORT=yCONFIG_GAMEPORT_NS558=yCONFIG_GAMEPORT_L4=yCONFIG_GAMEPORT_EMU10K1=yCONFIG_GAMEPORT_FM801=y
# end of Hardware I/O ports # end of Input device support
#
# Character devices
#CONFIG_TTY=yCONFIG_VT=yCONFIG_CONSOLE_TRANSLATIONS=yCONFIG_VT_CONSOLE=yCONFIG_VT_CONSOLE_SLEEP=yCONFIG_HW_CONSOLE=yCONFIG_VT_HW_CONSOLE_BINDING=yCONFIG_UNIX98_PTYS=yCONFIG_LEGACY_PTYS=yCONFIG_LEGACY_PTY_COUNT=256CONFIG_LDISC_AUTOLOAD=y
#
# Serial drivers
#CONFIG_SERIAL_EARLYCON=yCONFIG_SERIAL_8250=yCONFIG_SERIAL_8250_DEPRECATED_OPTIONS=yCONFIG_SERIAL_8250_PNP=yCONFIG_SERIAL_8250_16550A_VARIANTS=yCONFIG_SERIAL_8250_FINTEK=yCONFIG_SERIAL_8250_CONSOLE=yCONFIG_SERIAL_8250_DMA=yCONFIG_SERIAL_8250_PCI=yCONFIG_SERIAL_8250_EXAR=yCONFIG_SERIAL_8250_CS=yCONFIG_SERIAL_8250_MEN_MCB=yCONFIG_SERIAL_8250_NR_UARTS=4CONFIG_SERIAL_8250_RUNTIME_UARTS=4CONFIG_SERIAL_8250_EXTENDED=yCONFIG_SERIAL_8250_MANY_PORTS=yCONFIG_SERIAL_8250_FOURPORT=yCONFIG_SERIAL_8250_ACCENT=yCONFIG_SERIAL_8250_BOCA=yCONFIG_SERIAL_8250_EXAR_ST16C554=yCONFIG_SERIAL_8250_HUB6=yCONFIG_SERIAL_8250_SHARE_IRQ=yCONFIG_SERIAL_8250_DETECT_IRQ=yCONFIG_SERIAL_8250_RSA=yCONFIG_SERIAL_8250_DWLIB=yCONFIG_SERIAL_8250_DW=yCONFIG_SERIAL_8250_RT288X=yCONFIG_SERIAL_8250_LPSS=yCONFIG_SERIAL_8250_MID=yCONFIG_SERIAL_8250_PERICOM=yCONFIG_SERIAL_OF_PLATFORM=y
#
# Non-8250 serial port support
#CONFIG_SERIAL_KGDB_NMI=yCONFIG_SERIAL_MAX3100=yCONFIG_SERIAL_MAX310X=yCONFIG_SERIAL_UARTLITE=yCONFIG_SERIAL_UARTLITE_CONSOLE=yCONFIG_SERIAL_UARTLITE_NR_UARTS=1CONFIG_SERIAL_CORE=yCONFIG_SERIAL_CORE_CONSOLE=yCONFIG_CONSOLE_POLL=yCONFIG_SERIAL_JSM=yCONFIG_SERIAL_SIFIVE=yCONFIG_SERIAL_SIFIVE_CONSOLE=yCONFIG_SERIAL_LANTIQ=yCONFIG_SERIAL_LANTIQ_CONSOLE=yCONFIG_SERIAL_SCCNXP=yCONFIG_SERIAL_SCCNXP_CONSOLE=yCONFIG_SERIAL_SC16IS7XX_CORE=yCONFIG_SERIAL_SC16IS7XX=yCONFIG_SERIAL_SC16IS7XX_I2C=yCONFIG_SERIAL_SC16IS7XX_SPI=yCONFIG_SERIAL_TIMBERDALE=yCONFIG_SERIAL_ALTERA_JTAGUART=yCONFIG_SERIAL_ALTERA_JTAGUART_CONSOLE=yCONFIG_SERIAL_ALTERA_JTAGUART_CONSOLE_BYPASS=yCONFIG_SERIAL_ALTERA_UART=yCONFIG_SERIAL_ALTERA_UART_MAXPORTS=4CONFIG_SERIAL_ALTERA_UART_BAUDRATE=115200CONFIG_SERIAL_ALTERA_UART_CONSOLE=yCONFIG_SERIAL_PCH_UART=yCONFIG_SERIAL_PCH_UART_CONSOLE=yCONFIG_SERIAL_XILINX_PS_UART=yCONFIG_SERIAL_XILINX_PS_UART_CONSOLE=yCONFIG_SERIAL_ARC=yCONFIG_SERIAL_ARC_CONSOLE=yCONFIG_SERIAL_ARC_NR_PORTS=1CONFIG_SERIAL_RP2=yCONFIG_SERIAL_RP2_NR_UARTS=32CONFIG_SERIAL_FSL_LPUART=yCONFIG_SERIAL_FSL_LPUART_CONSOLE=yCONFIG_SERIAL_FSL_LINFLEXUART=yCONFIG_SERIAL_FSL_LINFLEXUART_CONSOLE=yCONFIG_SERIAL_CONEXANT_DIGICOLOR=yCONFIG_SERIAL_CONEXANT_DIGICOLOR_CONSOLE=yCONFIG_SERIAL_MEN_Z135=yCONFIG_SERIAL_SPRD=yCONFIG_SERIAL_SPRD_CONSOLE=yCONFIG_SERIAL_LITEUART=yCONFIG_SERIAL_LITEUART_MAX_PORTS=1CONFIG_SERIAL_LITEUART_CONSOLE=y
# end of Serial drivers
CONFIG_SERIAL_MCTRL_GPIO=yCONFIG_SERIAL_NONSTANDARD=yCONFIG_MOXA_INTELLIO=yCONFIG_MOXA_SMARTIO=yCONFIG_SYNCLINK_GT=yCONFIG_N_HDLC=yCONFIG_GOLDFISH_TTY=yCONFIG_GOLDFISH_TTY_EARLY_CONSOLE=yCONFIG_N_GSM=yCONFIG_NOZOMI=yCONFIG_NULL_TTY=yCONFIG_HVC_DRIVER=yCONFIG_RPMSG_TTY=yCONFIG_SERIAL_DEV_BUS=yCONFIG_SERIAL_DEV_CTRL_TTYPORT=yCONFIG_TTY_PRINTK=yCONFIG_TTY_PRINTK_LEVEL=6CONFIG_PRINTER=yCONFIG_LP_CONSOLE=yCONFIG_PPDEV=yCONFIG_VIRTIO_CONSOLE=yCONFIG_IPMI_HANDLER=yCONFIG_IPMI_DMI_DECODE=yCONFIG_IPMI_PLAT_DATA=yCONFIG_IPMI_PANIC_EVENT=yCONFIG_IPMI_PANIC_STRING=yCONFIG_IPMI_DEVICE_INTERFACE=yCONFIG_IPMI_SI=yCONFIG_IPMI_SSIF=yCONFIG_IPMI_IPMB=yCONFIG_IPMI_WATCHDOG=yCONFIG_IPMI_POWEROFF=yCONFIG_IPMB_DEVICE_INTERFACE=yCONFIG_HW_RANDOM=yCONFIG_HW_RANDOM_TIMERIOMEM=yCONFIG_HW_RANDOM_INTEL=yCONFIG_HW_RANDOM_AMD=yCONFIG_HW_RANDOM_BA431=yCONFIG_HW_RANDOM_GEODE=yCONFIG_HW_RANDOM_VIA=yCONFIG_HW_RANDOM_VIRTIO=yCONFIG_HW_RANDOM_CCTRNG=yCONFIG_HW_RANDOM_XIPHERA=yCONFIG_DTLK=yCONFIG_APPLICOM=yCONFIG_SONYPI=y
#
# PCMCIA character devices
#CONFIG_SYNCLINK_CS=yCONFIG_CARDMAN_4000=yCONFIG_CARDMAN_4040=yCONFIG_SCR24X=yCONFIG_IPWIRELESS=y
# end of PCMCIA character devices
CONFIG_MWAVE=y
CONFIG_SCx200_GPIO=y
CONFIG_PC8736x_GPIO=yCONFIG_NSC_GPIO=yCONFIG_DEVMEM=yCONFIG_NVRAM=yCONFIG_DEVPORT=yCONFIG_HPET=yCONFIG_HPET_MMAP=yCONFIG_HPET_MMAP_DEFAULT=yCONFIG_HANGCHECK_TIMER=yCONFIG_TCG_TPM=yCONFIG_HW_RANDOM_TPM=yCONFIG_TCG_TIS_CORE=yCONFIG_TCG_TIS=yCONFIG_TCG_TIS_SPI=yCONFIG_TCG_TIS_SPI_CR50=yCONFIG_TCG_TIS_I2C=yCONFIG_TCG_TIS_I2C_CR50=yCONFIG_TCG_TIS_I2C_ATMEL=yCONFIG_TCG_TIS_I2C_INFINEON=yCONFIG_TCG_TIS_I2C_NUVOTON=yCONFIG_TCG_NSC=yCONFIG_TCG_ATMEL=yCONFIG_TCG_INFINEON=yCONFIG_TCG_CRB=yCONFIG_TCG_VTPM_PROXY=yCONFIG_TCG_TIS_ST33ZP24=yCONFIG_TCG_TIS_ST33ZP24_I2C=yCONFIG_TCG_TIS_ST33ZP24_SPI=yCONFIG_TELCLOCK=yCONFIG_XILLYBUS_CLASS=yCONFIG_XILLYBUS=yCONFIG_XILLYBUS_PCIE=yCONFIG_XILLYBUS_OF=yCONFIG_XILLYUSB=yCONFIG_RANDOM_TRUST_CPU=yCONFIG_RANDOM_TRUST_BOOTLOADER=y
# end of Character devices
#
# I2C support
#CONFIG_I2C=yCONFIG_ACPI_I2C_OPREGION=yCONFIG_I2C_BOARDINFO=yCONFIG_I2C_COMPAT=yCONFIG_I2C_CHARDEV=yCONFIG_I2C_MUX=y
#
# Multiplexer I2C Chip support
#CONFIG_I2C_ARB_GPIO_CHALLENGE=yCONFIG_I2C_MUX_GPIO=yCONFIG_I2C_MUX_GPMUX=yCONFIG_I2C_MUX_LTC4306=yCONFIG_I2C_MUX_PCA9541=y
CONFIG_I2C_MUX_PCA954x=yCONFIG_I2C_MUX_PINCTRL=yCONFIG_I2C_MUX_REG=yCONFIG_I2C_DEMUX_PINCTRL=yCONFIG_I2C_MUX_MLXCPLD=y
# end of Multiplexer I2C Chip support
CONFIG_I2C_HELPER_AUTO=yCONFIG_I2C_SMBUS=yCONFIG_I2C_ALGOBIT=yCONFIG_I2C_ALGOPCA=y
#
# I2C Hardware Bus support
#
#
# PC SMBus host controller drivers
#CONFIG_I2C_CCGX_UCSI=yCONFIG_I2C_ALI1535=yCONFIG_I2C_ALI1563=yCONFIG_I2C_ALI15X3=yCONFIG_I2C_AMD756=yCONFIG_I2C_AMD756_S4882=yCONFIG_I2C_AMD8111=yCONFIG_I2C_AMD_MP2=yCONFIG_I2C_I801=yCONFIG_I2C_ISCH=yCONFIG_I2C_ISMT=yCONFIG_I2C_PIIX4=yCONFIG_I2C_CHT_WC=yCONFIG_I2C_NFORCE2=yCONFIG_I2C_NFORCE2_S4985=yCONFIG_I2C_NVIDIA_GPU=yCONFIG_I2C_SIS5595=yCONFIG_I2C_SIS630=yCONFIG_I2C_SIS96X=yCONFIG_I2C_VIA=yCONFIG_I2C_VIAPRO=y
#
# ACPI drivers
#CONFIG_I2C_SCMI=y
#
# I2C system bus drivers (mostly embedded / system-on-chip) #CONFIG_I2C_CBUS_GPIO=y CONFIG_I2C_DESIGNWARE_CORE=y CONFIG_I2C_DESIGNWARE_SLAVE=y CONFIG_I2C_DESIGNWARE_PLATFORM=y CONFIG_I2C_DESIGNWARE_AMDPSP=y CONFIG_I2C_DESIGNWARE_BAYTRAIL=y CONFIG_I2C_DESIGNWARE_PCI=yCONFIG_I2C_EG20T=yCONFIG_I2C_EMEV2=yCONFIG_I2C_GPIO=yCONFIG_I2C_GPIO_FAULT_INJECTOR=y CONFIG_I2C_KEMPLD=yCONFIG_I2C_OCORES=yCONFIG_I2C_PCA_PLATFORM=yCONFIG_I2C_PXA=yCONFIG_I2C_PXA_PCI=yCONFIG_I2C_RK3X=yCONFIG_I2C_SIMTEC=yCONFIG_I2C_XILINX=y
#
# External I2C/SMBus adapter drivers
#CONFIG_I2C_DIOLAN_U2C=yCONFIG_I2C_DLN2=yCONFIG_I2C_CP2615=yCONFIG_I2C_PARPORT=yCONFIG_I2C_PCI1XXXX=yCONFIG_I2C_ROBOTFUZZ_OSIF=yCONFIG_I2C_TAOS_EVM=yCONFIG_I2C_TINY_USB=yCONFIG_I2C_VIPERBOARD=y
#
# Other I2C/SMBus bus drivers
#CONFIG_I2C_PCA_ISA=yCONFIG_I2C_CROS_EC_TUNNEL=y
CONFIG_SCx200_ACB=yCONFIG_I2C_FSI=yCONFIG_I2C_VIRTIO=y
# end of I2C Hardware Bus support
CONFIG_I2C_STUB=mCONFIG_I2C_SLAVE=yCONFIG_I2C_SLAVE_EEPROM=yCONFIG_I2C_SLAVE_TESTUNIT=yCONFIG_I2C_DEBUG_CORE=yCONFIG_I2C_DEBUG_ALGO=yCONFIG_I2C_DEBUG_BUS=y
# end of I2C support
CONFIG_I3C=yCONFIG_CDNS_I3C_MASTER=yCONFIG_DW_I3C_MASTER=yCONFIG_SVC_I3C_MASTER=yCONFIG_MIPI_I3C_HCI=yCONFIG_SPI=yCONFIG_SPI_DEBUG=yCONFIG_SPI_MASTER=yCONFIG_SPI_MEM=y
#
# SPI Master Controller Drivers
#CONFIG_SPI_ALTERA=yCONFIG_SPI_ALTERA_CORE=yCONFIG_SPI_ALTERA_DFL=yCONFIG_SPI_AXI_SPI_ENGINE=yCONFIG_SPI_BITBANG=yCONFIG_SPI_BUTTERFLY=yCONFIG_SPI_CADENCE=yCONFIG_SPI_CADENCE_QUADSPI=yCONFIG_SPI_CADENCE_XSPI=yCONFIG_SPI_DESIGNWARE=yCONFIG_SPI_DW_DMA=yCONFIG_SPI_DW_PCI=yCONFIG_SPI_DW_MMIO=yCONFIG_SPI_DLN2=yCONFIG_SPI_FSI=yCONFIG_SPI_NXP_FLEXSPI=yCONFIG_SPI_GPIO=yCONFIG_SPI_INTEL=yCONFIG_SPI_INTEL_PCI=yCONFIG_SPI_INTEL_PLATFORM=yCONFIG_SPI_LM70_LLP=yCONFIG_SPI_FSL_LIB=yCONFIG_SPI_FSL_SPI=yCONFIG_SPI_MICROCHIP_CORE=yCONFIG_SPI_MICROCHIP_CORE_QSPI=yCONFIG_SPI_LANTIQ_SSC=yCONFIG_SPI_OC_TINY=yCONFIG_SPI_PXA2XX=yCONFIG_SPI_PXA2XX_PCI=yCONFIG_SPI_ROCKCHIP=yCONFIG_SPI_SC18IS602=yCONFIG_SPI_SIFIVE=yCONFIG_SPI_MXIC=yCONFIG_SPI_TOPCLIFF_PCH=yCONFIG_SPI_XCOMM=yCONFIG_SPI_XILINX=yCONFIG_SPI_ZYNQMP_GQSPI=yCONFIG_SPI_AMD=y
#
# SPI Multiplexer support
#CONFIG_SPI_MUX=y
#
# SPI Protocol Masters
#CONFIG_SPI_SPIDEV=yCONFIG_SPI_LOOPBACK_TEST=mCONFIG_SPI_TLE62X0=yCONFIG_SPI_SLAVE=yCONFIG_SPI_SLAVE_TIME=yCONFIG_SPI_SLAVE_SYSTEM_CONTROL=yCONFIG_SPI_DYNAMIC=yCONFIG_SPMI=yCONFIG_SPMI_HISI3670=yCONFIG_HSI=yCONFIG_HSI_BOARDINFO=y
#
# HSI controllers
#
#
# HSI clients
#CONFIG_HSI_CHAR=yCONFIG_PPS=yCONFIG_PPS_DEBUG=y
#
# PPS clients support
#CONFIG_PPS_CLIENT_KTIMER=yCONFIG_PPS_CLIENT_LDISC=yCONFIG_PPS_CLIENT_PARPORT=yCONFIG_PPS_CLIENT_GPIO=y
#
# PPS generators support
#
#
# PTP clock support
#CONFIG_PTP_1588_CLOCK=yCONFIG_PTP_1588_CLOCK_OPTIONAL=yCONFIG_DP83640_PHY=yCONFIG_PTP_1588_CLOCK_INES=yCONFIG_PTP_1588_CLOCK_PCH=yCONFIG_PTP_1588_CLOCK_KVM=yCONFIG_PTP_1588_CLOCK_IDT82P33=yCONFIG_PTP_1588_CLOCK_IDTCM=yCONFIG_PTP_1588_CLOCK_VMW=yCONFIG_PTP_1588_CLOCK_OCP=y
# end of PTP clock support
CONFIG_PINCTRL=yCONFIG_GENERIC_PINCTRL_GROUPS=yCONFIG_PINMUX=yCONFIG_GENERIC_PINMUX_FUNCTIONS=yCONFIG_PINCONF=yCONFIG_GENERIC_PINCONF=yCONFIG_DEBUG_PINCTRL=yCONFIG_PINCTRL_AMD=yCONFIG_PINCTRL_AS3722=yCONFIG_PINCTRL_AXP209=yCONFIG_PINCTRL_CY8C95X0=yCONFIG_PINCTRL_DA9062=yCONFIG_PINCTRL_EQUILIBRIUM=yCONFIG_PINCTRL_MAX77620=yCONFIG_PINCTRL_MCP23S08_I2C=yCONFIG_PINCTRL_MCP23S08_SPI=yCONFIG_PINCTRL_MCP23S08=yCONFIG_PINCTRL_MICROCHIP_SGPIO=yCONFIG_PINCTRL_OCELOT=yCONFIG_PINCTRL_PALMAS=yCONFIG_PINCTRL_RK805=yCONFIG_PINCTRL_SINGLE=yCONFIG_PINCTRL_STMFX=yCONFIG_PINCTRL_SX150X=yCONFIG_PINCTRL_LOCHNAGAR=yCONFIG_PINCTRL_MADERA=yCONFIG_PINCTRL_CS47L15=yCONFIG_PINCTRL_CS47L35=yCONFIG_PINCTRL_CS47L85=yCONFIG_PINCTRL_CS47L90=yCONFIG_PINCTRL_CS47L92=y
#
# Intel pinctrl drivers
#CONFIG_PINCTRL_BAYTRAIL=yCONFIG_PINCTRL_CHERRYVIEW=yCONFIG_PINCTRL_LYNXPOINT=yCONFIG_PINCTRL_MERRIFIELD=yCONFIG_PINCTRL_INTEL=yCONFIG_PINCTRL_ALDERLAKE=yCONFIG_PINCTRL_BROXTON=yCONFIG_PINCTRL_CANNONLAKE=yCONFIG_PINCTRL_CEDARFORK=yCONFIG_PINCTRL_DENVERTON=yCONFIG_PINCTRL_ELKHARTLAKE=yCONFIG_PINCTRL_EMMITSBURG=yCONFIG_PINCTRL_GEMINILAKE=yCONFIG_PINCTRL_ICELAKE=yCONFIG_PINCTRL_JASPERLAKE=yCONFIG_PINCTRL_LAKEFIELD=yCONFIG_PINCTRL_LEWISBURG=yCONFIG_PINCTRL_METEORLAKE=yCONFIG_PINCTRL_SUNRISEPOINT=yCONFIG_PINCTRL_TIGERLAKE=y
# end of Intel pinctrl drivers
#
# Renesas pinctrl drivers
#
# end of Renesas pinctrl drivers
CONFIG_GPIOLIB=yCONFIG_GPIOLIB_FASTPATH_LIMIT=512CONFIG_OF_GPIO=yCONFIG_GPIO_ACPI=yCONFIG_GPIOLIB_IRQCHIP=yCONFIG_DEBUG_GPIO=yCONFIG_GPIO_SYSFS=yCONFIG_GPIO_CDEV=yCONFIG_GPIO_CDEV_V1=yCONFIG_GPIO_GENERIC=yCONFIG_GPIO_MAX730X=y
#
# Memory mapped GPIO drivers
#CONFIG_GPIO_74XX_MMIO=yCONFIG_GPIO_ALTERA=yCONFIG_GPIO_AMDPT=yCONFIG_GPIO_CADENCE=yCONFIG_GPIO_DWAPB=yCONFIG_GPIO_EXAR=yCONFIG_GPIO_FTGPIO010=yCONFIG_GPIO_GENERIC_PLATFORM=yCONFIG_GPIO_GRGPIO=yCONFIG_GPIO_HLWD=yCONFIG_GPIO_ICH=yCONFIG_GPIO_LOGICVC=yCONFIG_GPIO_MB86S7X=yCONFIG_GPIO_MENZ127=yCONFIG_GPIO_SIFIVE=yCONFIG_GPIO_SIOX=y
# CONFIG_GPIO_STA2X11 is not setCONFIG_GPIO_SYSCON=yCONFIG_GPIO_VX855=yCONFIG_GPIO_WCD934X=yCONFIG_GPIO_XILINX=yCONFIG_GPIO_AMD_FCH=y
# end of Memory mapped GPIO drivers
#
# Port-mapped I/O GPIO drivers
#CONFIG_GPIO_I8255=yCONFIG_GPIO_104_DIO_48E=yCONFIG_GPIO_104_IDIO_16=yCONFIG_GPIO_104_IDI_48=yCONFIG_GPIO_F7188X=yCONFIG_GPIO_GPIO_MM=yCONFIG_GPIO_IT87=yCONFIG_GPIO_SCH=yCONFIG_GPIO_SCH311X=yCONFIG_GPIO_WINBOND=yCONFIG_GPIO_WS16C48=y
# end of Port-mapped I/O GPIO drivers
#
# I2C GPIO expanders
#CONFIG_GPIO_ADNP=yCONFIG_GPIO_GW_PLD=yCONFIG_GPIO_MAX7300=yCONFIG_GPIO_MAX732X=yCONFIG_GPIO_MAX732X_IRQ=yCONFIG_GPIO_PCA953X=yCONFIG_GPIO_PCA953X_IRQ=yCONFIG_GPIO_PCA9570=yCONFIG_GPIO_PCF857X=yCONFIG_GPIO_TPIC2810=y
# end of I2C GPIO expanders
#
# MFD GPIO expanders
#CONFIG_GPIO_ADP5520=yCONFIG_GPIO_ARIZONA=yCONFIG_GPIO_BD71815=yCONFIG_GPIO_BD71828=yCONFIG_GPIO_BD9571MWV=yCONFIG_GPIO_CRYSTAL_COVE=yCONFIG_GPIO_CS5535=yCONFIG_GPIO_DA9052=yCONFIG_GPIO_DA9055=yCONFIG_GPIO_DLN2=yCONFIG_GPIO_JANZ_TTL=yCONFIG_GPIO_KEMPLD=yCONFIG_GPIO_LP3943=yCONFIG_GPIO_LP873X=yCONFIG_GPIO_LP87565=yCONFIG_GPIO_MADERA=yCONFIG_GPIO_MAX77620=yCONFIG_GPIO_MAX77650=yCONFIG_GPIO_PALMAS=yCONFIG_GPIO_RC5T583=yCONFIG_GPIO_STMPE=yCONFIG_GPIO_TC3589X=yCONFIG_GPIO_TIMBERDALE=yCONFIG_GPIO_TPS65086=yCONFIG_GPIO_TPS65218=yCONFIG_GPIO_TPS6586X=yCONFIG_GPIO_TPS65910=yCONFIG_GPIO_TPS65912=yCONFIG_GPIO_TPS68470=yCONFIG_GPIO_TQMX86=yCONFIG_GPIO_TWL4030=yCONFIG_GPIO_TWL6040=yCONFIG_GPIO_UCB1400=yCONFIG_GPIO_WHISKEY_COVE=yCONFIG_GPIO_WM831X=yCONFIG_GPIO_WM8350=yCONFIG_GPIO_WM8994=y
# end of MFD GPIO expanders
#
# PCI GPIO expanders
#CONFIG_GPIO_AMD8111=yCONFIG_GPIO_MERRIFIELD=yCONFIG_GPIO_ML_IOH=yCONFIG_GPIO_PCH=yCONFIG_GPIO_PCI_IDIO_16=yCONFIG_GPIO_PCIE_IDIO_24=yCONFIG_GPIO_RDC321X=yCONFIG_GPIO_SODAVILLE=y
# end of PCI GPIO expanders
#
# SPI GPIO expanders
#CONFIG_GPIO_74X164=yCONFIG_GPIO_MAX3191X=yCONFIG_GPIO_MAX7301=yCONFIG_GPIO_MC33880=yCONFIG_GPIO_PISOSR=yCONFIG_GPIO_XRA1403=yCONFIG_GPIO_MOXTET=y
# end of SPI GPIO expanders
#
# USB GPIO expanders
#CONFIG_GPIO_VIPERBOARD=y
# end of USB GPIO expanders
#
# Virtual GPIO drivers
#CONFIG_GPIO_AGGREGATOR=yCONFIG_GPIO_MOCKUP=yCONFIG_GPIO_VIRTIO=yCONFIG_GPIO_SIM=y
# end of Virtual GPIO drivers
CONFIG_W1=yCONFIG_W1_CON=y
#
# 1-wire Bus Masters
#CONFIG_W1_MASTER_MATROX=yCONFIG_W1_MASTER_DS2490=yCONFIG_W1_MASTER_DS2482=yCONFIG_W1_MASTER_DS1WM=yCONFIG_W1_MASTER_GPIO=yCONFIG_W1_MASTER_SGI=y
# end of 1-wire Bus Masters
#
# 1-wire Slaves
#CONFIG_W1_SLAVE_THERM=yCONFIG_W1_SLAVE_SMEM=yCONFIG_W1_SLAVE_DS2405=yCONFIG_W1_SLAVE_DS2408=yCONFIG_W1_SLAVE_DS2408_READBACK=yCONFIG_W1_SLAVE_DS2413=yCONFIG_W1_SLAVE_DS2406=yCONFIG_W1_SLAVE_DS2423=yCONFIG_W1_SLAVE_DS2805=yCONFIG_W1_SLAVE_DS2430=yCONFIG_W1_SLAVE_DS2431=yCONFIG_W1_SLAVE_DS2433=yCONFIG_W1_SLAVE_DS2433_CRC=yCONFIG_W1_SLAVE_DS2438=yCONFIG_W1_SLAVE_DS250X=yCONFIG_W1_SLAVE_DS2780=yCONFIG_W1_SLAVE_DS2781=yCONFIG_W1_SLAVE_DS28E04=yCONFIG_W1_SLAVE_DS28E17=y
# end of 1-wire Slaves
CONFIG_POWER_RESET=yCONFIG_POWER_RESET_AS3722=yCONFIG_POWER_RESET_ATC260X=yCONFIG_POWER_RESET_GPIO=yCONFIG_POWER_RESET_GPIO_RESTART=yCONFIG_POWER_RESET_LTC2952=yCONFIG_POWER_RESET_MT6323=yCONFIG_POWER_RESET_REGULATOR=yCONFIG_POWER_RESET_RESTART=yCONFIG_POWER_RESET_TPS65086=yCONFIG_POWER_RESET_SYSCON=yCONFIG_POWER_RESET_SYSCON_POWEROFF=yCONFIG_REBOOT_MODE=yCONFIG_SYSCON_REBOOT_MODE=yCONFIG_NVMEM_REBOOT_MODE=yCONFIG_POWER_SUPPLY=yCONFIG_POWER_SUPPLY_DEBUG=yCONFIG_POWER_SUPPLY_HWMON=yCONFIG_PDA_POWER=yCONFIG_GENERIC_ADC_BATTERY=yCONFIG_IP5XXX_POWER=yCONFIG_MAX8925_POWER=yCONFIG_WM831X_BACKUP=yCONFIG_WM831X_POWER=yCONFIG_WM8350_POWER=yCONFIG_TEST_POWER=yCONFIG_BATTERY_88PM860X=yCONFIG_CHARGER_ADP5061=yCONFIG_BATTERY_ACT8945A=yCONFIG_BATTERY_CPCAP=yCONFIG_BATTERY_CW2015=yCONFIG_BATTERY_DS2760=yCONFIG_BATTERY_DS2780=yCONFIG_BATTERY_DS2781=yCONFIG_BATTERY_DS2782=yCONFIG_BATTERY_OLPC=yCONFIG_BATTERY_SAMSUNG_SDI=yCONFIG_BATTERY_WM97XX=yCONFIG_BATTERY_SBS=yCONFIG_CHARGER_SBS=yCONFIG_MANAGER_SBS=yCONFIG_BATTERY_BQ27XXX=yCONFIG_BATTERY_BQ27XXX_I2C=yCONFIG_BATTERY_BQ27XXX_HDQ=yCONFIG_BATTERY_BQ27XXX_DT_UPDATES_NVM=yCONFIG_BATTERY_DA9030=yCONFIG_BATTERY_DA9052=yCONFIG_CHARGER_DA9150=yCONFIG_BATTERY_DA9150=yCONFIG_CHARGER_AXP20X=yCONFIG_BATTERY_AXP20X=yCONFIG_AXP20X_POWER=yCONFIG_AXP288_CHARGER=yCONFIG_AXP288_FUEL_GAUGE=yCONFIG_BATTERY_MAX17040=yCONFIG_BATTERY_MAX17042=yCONFIG_BATTERY_MAX1721X=yCONFIG_BATTERY_TWL4030_MADC=yCONFIG_CHARGER_88PM860X=yCONFIG_CHARGER_PCF50633=yCONFIG_BATTERY_RX51=yCONFIG_CHARGER_ISP1704=yCONFIG_CHARGER_MAX8903=yCONFIG_CHARGER_TWL4030=yCONFIG_CHARGER_LP8727=yCONFIG_CHARGER_LP8788=yCONFIG_CHARGER_GPIO=yCONFIG_CHARGER_MANAGER=yCONFIG_CHARGER_LT3651=yCONFIG_CHARGER_LTC4162L=yCONFIG_CHARGER_MAX14577=yCONFIG_CHARGER_DETECTOR_MAX14656=yCONFIG_CHARGER_MAX77650=yCONFIG_CHARGER_MAX77693=yCONFIG_CHARGER_MAX77976=yCONFIG_CHARGER_MAX8997=yCONFIG_CHARGER_MAX8998=yCONFIG_CHARGER_MP2629=yCONFIG_CHARGER_MT6360=yCONFIG_CHARGER_MT6370=yCONFIG_CHARGER_BQ2415X=yCONFIG_CHARGER_BQ24190=yCONFIG_CHARGER_BQ24257=yCONFIG_CHARGER_BQ24735=yCONFIG_CHARGER_BQ2515X=yCONFIG_CHARGER_BQ25890=yCONFIG_CHARGER_BQ25980=yCONFIG_CHARGER_BQ256XX=yCONFIG_CHARGER_RK817=yCONFIG_CHARGER_SMB347=yCONFIG_CHARGER_TPS65090=yCONFIG_CHARGER_TPS65217=yCONFIG_BATTERY_GAUGE_LTC2941=yCONFIG_BATTERY_GOLDFISH=yCONFIG_BATTERY_RT5033=yCONFIG_CHARGER_RT9455=yCONFIG_CHARGER_CROS_USBPD=yCONFIG_CHARGER_CROS_PCHG=yCONFIG_CHARGER_UCS1002=yCONFIG_CHARGER_BD99954=yCONFIG_CHARGER_WILCO=yCONFIG_RN5T618_POWER=yCONFIG_BATTERY_SURFACE=yCONFIG_CHARGER_SURFACE=yCONFIG_BATTERY_UG3105=yCONFIG_HWMON=yCONFIG_HWMON_VID=yCONFIG_HWMON_DEBUG_CHIP=y
#
# Native drivers
#CONFIG_SENSORS_ABITUGURU=yCONFIG_SENSORS_ABITUGURU3=yCONFIG_SENSORS_AD7314=yCONFIG_SENSORS_AD7414=yCONFIG_SENSORS_AD7418=yCONFIG_SENSORS_ADM1025=yCONFIG_SENSORS_ADM1026=yCONFIG_SENSORS_ADM1029=yCONFIG_SENSORS_ADM1031=yCONFIG_SENSORS_ADM1177=yCONFIG_SENSORS_ADM9240=yCONFIG_SENSORS_ADT7X10=yCONFIG_SENSORS_ADT7310=yCONFIG_SENSORS_ADT7410=yCONFIG_SENSORS_ADT7411=yCONFIG_SENSORS_ADT7462=yCONFIG_SENSORS_ADT7470=yCONFIG_SENSORS_ADT7475=yCONFIG_SENSORS_AHT10=yCONFIG_SENSORS_AQUACOMPUTER_D5NEXT=yCONFIG_SENSORS_AS370=yCONFIG_SENSORS_ASC7621=yCONFIG_SENSORS_AXI_FAN_CONTROL=yCONFIG_SENSORS_K8TEMP=yCONFIG_SENSORS_K10TEMP=yCONFIG_SENSORS_FAM15H_POWER=yCONFIG_SENSORS_APPLESMC=yCONFIG_SENSORS_ASB100=yCONFIG_SENSORS_ATXP1=yCONFIG_SENSORS_CORSAIR_CPRO=yCONFIG_SENSORS_CORSAIR_PSU=yCONFIG_SENSORS_DRIVETEMP=yCONFIG_SENSORS_DS620=yCONFIG_SENSORS_DS1621=yCONFIG_SENSORS_DELL_SMM=yCONFIG_I8K=yCONFIG_SENSORS_DA9052_ADC=yCONFIG_SENSORS_DA9055=yCONFIG_SENSORS_I5K_AMB=yCONFIG_SENSORS_F71805F=yCONFIG_SENSORS_F71882FG=yCONFIG_SENSORS_F75375S=yCONFIG_SENSORS_GSC=yCONFIG_SENSORS_MC13783_ADC=yCONFIG_SENSORS_FSCHMD=yCONFIG_SENSORS_FTSTEUTATES=yCONFIG_SENSORS_GL518SM=yCONFIG_SENSORS_GL520SM=yCONFIG_SENSORS_G760A=yCONFIG_SENSORS_G762=yCONFIG_SENSORS_GPIO_FAN=yCONFIG_SENSORS_HIH6130=yCONFIG_SENSORS_IBMAEM=yCONFIG_SENSORS_IBMPEX=yCONFIG_SENSORS_IIO_HWMON=yCONFIG_SENSORS_I5500=yCONFIG_SENSORS_CORETEMP=yCONFIG_SENSORS_IT87=yCONFIG_SENSORS_JC42=yCONFIG_SENSORS_POWR1220=yCONFIG_SENSORS_LINEAGE=yCONFIG_SENSORS_LOCHNAGAR=yCONFIG_SENSORS_LTC2945=yCONFIG_SENSORS_LTC2947=yCONFIG_SENSORS_LTC2947_I2C=yCONFIG_SENSORS_LTC2947_SPI=yCONFIG_SENSORS_LTC2990=yCONFIG_SENSORS_LTC2992=yCONFIG_SENSORS_LTC4151=yCONFIG_SENSORS_LTC4215=yCONFIG_SENSORS_LTC4222=yCONFIG_SENSORS_LTC4245=yCONFIG_SENSORS_LTC4260=yCONFIG_SENSORS_LTC4261=yCONFIG_SENSORS_MAX1111=yCONFIG_SENSORS_MAX127=yCONFIG_SENSORS_MAX16065=yCONFIG_SENSORS_MAX1619=yCONFIG_SENSORS_MAX1668=yCONFIG_SENSORS_MAX197=yCONFIG_SENSORS_MAX31722=yCONFIG_SENSORS_MAX31730=yCONFIG_SENSORS_MAX31760=yCONFIG_SENSORS_MAX6620=yCONFIG_SENSORS_MAX6621=yCONFIG_SENSORS_MAX6639=yCONFIG_SENSORS_MAX6650=yCONFIG_SENSORS_MAX6697=yCONFIG_SENSORS_MAX31790=yCONFIG_SENSORS_MCP3021=yCONFIG_SENSORS_MLXREG_FAN=yCONFIG_SENSORS_TC654=yCONFIG_SENSORS_TPS23861=yCONFIG_SENSORS_MENF21BMC_HWMON=yCONFIG_SENSORS_MR75203=yCONFIG_SENSORS_ADCXX=yCONFIG_SENSORS_LM63=yCONFIG_SENSORS_LM70=yCONFIG_SENSORS_LM73=yCONFIG_SENSORS_LM75=yCONFIG_SENSORS_LM77=yCONFIG_SENSORS_LM78=yCONFIG_SENSORS_LM80=yCONFIG_SENSORS_LM83=yCONFIG_SENSORS_LM85=yCONFIG_SENSORS_LM87=yCONFIG_SENSORS_LM90=yCONFIG_SENSORS_LM92=yCONFIG_SENSORS_LM93=yCONFIG_SENSORS_LM95234=yCONFIG_SENSORS_LM95241=yCONFIG_SENSORS_LM95245=yCONFIG_SENSORS_PC87360=yCONFIG_SENSORS_PC87427=yCONFIG_SENSORS_NTC_THERMISTOR=yCONFIG_SENSORS_NCT6683=yCONFIG_SENSORS_NCT6775_CORE=yCONFIG_SENSORS_NCT6775=yCONFIG_SENSORS_NCT6775_I2C=yCONFIG_SENSORS_NCT7802=yCONFIG_SENSORS_NCT7904=yCONFIG_SENSORS_NPCM7XX=yCONFIG_SENSORS_NZXT_KRAKEN2=yCONFIG_SENSORS_NZXT_SMART2=yCONFIG_SENSORS_PCF8591=yCONFIG_SENSORS_PECI_CPUTEMP=yCONFIG_SENSORS_PECI_DIMMTEMP=yCONFIG_SENSORS_PECI=yCONFIG_PMBUS=yCONFIG_SENSORS_PMBUS=yCONFIG_SENSORS_ADM1266=yCONFIG_SENSORS_ADM1275=yCONFIG_SENSORS_BEL_PFE=yCONFIG_SENSORS_BPA_RS600=yCONFIG_SENSORS_DELTA_AHE50DC_FAN=yCONFIG_SENSORS_FSP_3Y=yCONFIG_SENSORS_IBM_CFFPS=yCONFIG_SENSORS_DPS920AB=yCONFIG_SENSORS_INSPUR_IPSPS=yCONFIG_SENSORS_IR35221=yCONFIG_SENSORS_IR36021=yCONFIG_SENSORS_IR38064=yCONFIG_SENSORS_IR38064_REGULATOR=yCONFIG_SENSORS_IRPS5401=yCONFIG_SENSORS_ISL68137=yCONFIG_SENSORS_LM25066=yCONFIG_SENSORS_LM25066_REGULATOR=yCONFIG_SENSORS_LT7182S=yCONFIG_SENSORS_LTC2978=yCONFIG_SENSORS_LTC2978_REGULATOR=yCONFIG_SENSORS_LTC3815=yCONFIG_SENSORS_MAX15301=yCONFIG_SENSORS_MAX16064=yCONFIG_SENSORS_MAX16601=yCONFIG_SENSORS_MAX20730=yCONFIG_SENSORS_MAX20751=yCONFIG_SENSORS_MAX31785=yCONFIG_SENSORS_MAX34440=yCONFIG_SENSORS_MAX8688=yCONFIG_SENSORS_MP2888=yCONFIG_SENSORS_MP2975=yCONFIG_SENSORS_MP5023=yCONFIG_SENSORS_PIM4328=yCONFIG_SENSORS_PLI1209BC=yCONFIG_SENSORS_PLI1209BC_REGULATOR=yCONFIG_SENSORS_PM6764TR=yCONFIG_SENSORS_PXE1610=yCONFIG_SENSORS_Q54SJ108A2=yCONFIG_SENSORS_STPDDC60=yCONFIG_SENSORS_TPS40422=yCONFIG_SENSORS_TPS53679=yCONFIG_SENSORS_TPS546D24=yCONFIG_SENSORS_UCD9000=yCONFIG_SENSORS_UCD9200=yCONFIG_SENSORS_XDPE152=yCONFIG_SENSORS_XDPE122=yCONFIG_SENSORS_XDPE122_REGULATOR=yCONFIG_SENSORS_ZL6100=yCONFIG_SENSORS_PWM_FAN=yCONFIG_SENSORS_SBTSI=yCONFIG_SENSORS_SBRMI=yCONFIG_SENSORS_SHT15=yCONFIG_SENSORS_SHT21=y
CONFIG_SENSORS_SHT3x=y
CONFIG_SENSORS_SHT4x=yCONFIG_SENSORS_SHTC1=yCONFIG_SENSORS_SIS5595=yCONFIG_SENSORS_SY7636A=yCONFIG_SENSORS_DME1737=yCONFIG_SENSORS_EMC1403=yCONFIG_SENSORS_EMC2103=yCONFIG_SENSORS_EMC2305=yCONFIG_SENSORS_EMC6W201=yCONFIG_SENSORS_SMSC47M1=yCONFIG_SENSORS_SMSC47M192=yCONFIG_SENSORS_SMSC47B397=yCONFIG_SENSORS_SCH56XX_COMMON=yCONFIG_SENSORS_SCH5627=yCONFIG_SENSORS_SCH5636=yCONFIG_SENSORS_STTS751=yCONFIG_SENSORS_SMM665=yCONFIG_SENSORS_ADC128D818=yCONFIG_SENSORS_ADS7828=yCONFIG_SENSORS_ADS7871=yCONFIG_SENSORS_AMC6821=yCONFIG_SENSORS_INA209=yCONFIG_SENSORS_INA2XX=yCONFIG_SENSORS_INA238=yCONFIG_SENSORS_INA3221=yCONFIG_SENSORS_TC74=yCONFIG_SENSORS_THMC50=yCONFIG_SENSORS_TMP102=yCONFIG_SENSORS_TMP103=yCONFIG_SENSORS_TMP108=yCONFIG_SENSORS_TMP401=yCONFIG_SENSORS_TMP421=yCONFIG_SENSORS_TMP464=yCONFIG_SENSORS_TMP513=yCONFIG_SENSORS_VIA_CPUTEMP=yCONFIG_SENSORS_VIA686A=yCONFIG_SENSORS_VT1211=yCONFIG_SENSORS_VT8231=yCONFIG_SENSORS_W83773G=yCONFIG_SENSORS_W83781D=yCONFIG_SENSORS_W83791D=yCONFIG_SENSORS_W83792D=yCONFIG_SENSORS_W83793=yCONFIG_SENSORS_W83795=yCONFIG_SENSORS_W83795_FANCTRL=yCONFIG_SENSORS_W83L785TS=yCONFIG_SENSORS_W83L786NG=yCONFIG_SENSORS_W83627HF=yCONFIG_SENSORS_W83627EHF=yCONFIG_SENSORS_WM831X=yCONFIG_SENSORS_WM8350=yCONFIG_SENSORS_XGENE=yCONFIG_SENSORS_INTEL_M10_BMC_HWMON=y
#
# ACPI drivers
#CONFIG_SENSORS_ACPI_POWER=y CONFIG_SENSORS_ATK0110=y CONFIG_SENSORS_ASUS_WMI=y CONFIG_SENSORS_ASUS_EC=yCONFIG_THERMAL=yCONFIG_THERMAL_NETLINK=y CONFIG_THERMAL_STATISTICS=y CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=0 CONFIG_THERMAL_HWMON=yCONFIG_THERMAL_OF=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_POWER_ALLOCATOR 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_GOV_POWER_ALLOCATOR=y CONFIG_CPU_THERMAL=yCONFIG_CPU_FREQ_THERMAL=y CONFIG_CPU_IDLE_THERMAL=y CONFIG_DEVFREQ_THERMAL=y CONFIG_THERMAL_EMULATION=y CONFIG_THERMAL_MMIO=y CONFIG_MAX77620_THERMAL=y CONFIG_DA9062_THERMAL=y
#
# Intel thermal drivers
#CONFIG_INTEL_POWERCLAMP=yCONFIG_X86_THERMAL_VECTOR=yCONFIG_X86_PKG_TEMP_THERMAL=yCONFIG_INTEL_SOC_DTS_IOSF_CORE=yCONFIG_INTEL_SOC_DTS_THERMAL=yCONFIG_INTEL_QUARK_DTS_THERMAL=y
#
# ACPI INT340X thermal drivers
#
# end of ACPI INT340X thermal drivers
CONFIG_INTEL_BXT_PMIC_THERMAL=yCONFIG_INTEL_PCH_THERMAL=yCONFIG_INTEL_TCC_COOLING=yCONFIG_INTEL_MENLOW=yCONFIG_INTEL_HFI_THERMAL=y
# end of Intel thermal drivers
# CONFIG_TI_SOC_THERMAL is not setCONFIG_GENERIC_ADC_THERMAL=yCONFIG_WATCHDOG=yCONFIG_WATCHDOG_CORE=yCONFIG_WATCHDOG_NOWAYOUT=yCONFIG_WATCHDOG_HANDLE_BOOT_ENABLED=yCONFIG_WATCHDOG_OPEN_TIMEOUT=0CONFIG_WATCHDOG_SYSFS=yCONFIG_WATCHDOG_HRTIMER_PRETIMEOUT=y
#
# Watchdog Pretimeout Governors
#CONFIG_WATCHDOG_PRETIMEOUT_GOV=y CONFIG_WATCHDOG_PRETIMEOUT_GOV_SEL=m CONFIG_WATCHDOG_PRETIMEOUT_GOV_NOOP=y CONFIG_WATCHDOG_PRETIMEOUT_GOV_PANIC=y
# CONFIG_WATCHDOG_PRETIMEOUT_DEFAULT_GOV_NOOP is not set CONFIG_WATCHDOG_PRETIMEOUT_DEFAULT_GOV_PANIC=y
#
# Watchdog Device Drivers
#CONFIG_SOFT_WATCHDOG=yCONFIG_SOFT_WATCHDOG_PRETIMEOUT=yCONFIG_BD957XMUF_WATCHDOG=yCONFIG_DA9052_WATCHDOG=yCONFIG_DA9055_WATCHDOG=yCONFIG_DA9063_WATCHDOG=yCONFIG_DA9062_WATCHDOG=yCONFIG_GPIO_WATCHDOG=yCONFIG_GPIO_WATCHDOG_ARCH_INITCALL=yCONFIG_MENF21BMC_WATCHDOG=yCONFIG_MENZ069_WATCHDOG=yCONFIG_WDAT_WDT=yCONFIG_WM831X_WATCHDOG=yCONFIG_WM8350_WATCHDOG=yCONFIG_XILINX_WATCHDOG=yCONFIG_ZIIRAVE_WATCHDOG=yCONFIG_RAVE_SP_WATCHDOG=yCONFIG_MLX_WDT=yCONFIG_CADENCE_WATCHDOG=yCONFIG_DW_WATCHDOG=yCONFIG_RN5T618_WATCHDOG=yCONFIG_TWL4030_WATCHDOG=yCONFIG_MAX63XX_WATCHDOG=yCONFIG_MAX77620_WATCHDOG=yCONFIG_RETU_WATCHDOG=yCONFIG_STPMIC1_WATCHDOG=yCONFIG_ACQUIRE_WDT=yCONFIG_ADVANTECH_WDT=yCONFIG_ALIM1535_WDT=yCONFIG_ALIM7101_WDT=yCONFIG_EBC_C384_WDT=yCONFIG_EXAR_WDT=yCONFIG_F71808E_WDT=yCONFIG_SP5100_TCO=yCONFIG_GEODE_WDT=yCONFIG_SBC_FITPC2_WATCHDOG=yCONFIG_EUROTECH_WDT=yCONFIG_IB700_WDT=yCONFIG_IBMASR=yCONFIG_WAFER_WDT=yCONFIG_I6300ESB_WDT=yCONFIG_IE6XX_WDT=yCONFIG_INTEL_MID_WATCHDOG=yCONFIG_ITCO_WDT=yCONFIG_ITCO_VENDOR_SUPPORT=yCONFIG_IT8712F_WDT=yCONFIG_IT87_WDT=yCONFIG_HP_WATCHDOG=yCONFIG_HPWDT_NMI_DECODING=yCONFIG_KEMPLD_WDT=yCONFIG_SC1200_WDT=y
CONFIG_SCx200_WDT=yCONFIG_PC87413_WDT=yCONFIG_NV_TCO=yCONFIG_RDC321X_WDT=yCONFIG_60XX_WDT=yCONFIG_SBC8360_WDT=yCONFIG_SBC7240_WDT=yCONFIG_CPU5_WDT=yCONFIG_SMSC_SCH311X_WDT=yCONFIG_SMSC37B787_WDT=yCONFIG_TQMX86_WDT=yCONFIG_VIA_WDT=yCONFIG_W83627HF_WDT=yCONFIG_W83877F_WDT=yCONFIG_W83977F_WDT=yCONFIG_MACHZ_WDT=yCONFIG_SBC_EPX_C3_WATCHDOG=yCONFIG_INTEL_MEI_WDT=yCONFIG_NI903X_WDT=yCONFIG_NIC7018_WDT=yCONFIG_SIEMENS_SIMATIC_IPC_WDT=yCONFIG_MEN_A21_WDT=y
#
# ISA-based Watchdog Cards
#CONFIG_PCWATCHDOG=yCONFIG_MIXCOMWD=yCONFIG_WDT=y
#
# PCI-based Watchdog Cards
#CONFIG_PCIPCWATCHDOG=yCONFIG_WDTPCI=y
#
# USB-based Watchdog Cards
#CONFIG_USBPCWATCHDOG=yCONFIG_SSB_POSSIBLE=yCONFIG_SSB=yCONFIG_SSB_SPROM=yCONFIG_SSB_BLOCKIO=yCONFIG_SSB_PCIHOST_POSSIBLE=yCONFIG_SSB_PCIHOST=yCONFIG_SSB_B43_PCI_BRIDGE=yCONFIG_SSB_PCMCIAHOST_POSSIBLE=yCONFIG_SSB_PCMCIAHOST=yCONFIG_SSB_SDIOHOST_POSSIBLE=yCONFIG_SSB_SDIOHOST=yCONFIG_SSB_DRIVER_PCICORE_POSSIBLE=yCONFIG_SSB_DRIVER_PCICORE=yCONFIG_SSB_DRIVER_GPIO=yCONFIG_BCMA_POSSIBLE=yCONFIG_BCMA=yCONFIG_BCMA_BLOCKIO=yCONFIG_BCMA_HOST_PCI_POSSIBLE=yCONFIG_BCMA_HOST_PCI=yCONFIG_BCMA_HOST_SOC=yCONFIG_BCMA_DRIVER_PCI=yCONFIG_BCMA_SFLASH=yCONFIG_BCMA_DRIVER_GMAC_CMN=yCONFIG_BCMA_DRIVER_GPIO=yCONFIG_BCMA_DEBUG=y
#
# Multifunction device drivers
#CONFIG_MFD_CORE=yCONFIG_MFD_CS5535=yCONFIG_MFD_ACT8945A=yCONFIG_MFD_AS3711=yCONFIG_MFD_AS3722=yCONFIG_PMIC_ADP5520=yCONFIG_MFD_AAT2870_CORE=yCONFIG_MFD_ATMEL_FLEXCOM=yCONFIG_MFD_ATMEL_HLCDC=yCONFIG_MFD_BCM590XX=yCONFIG_MFD_BD9571MWV=yCONFIG_MFD_AXP20X=yCONFIG_MFD_AXP20X_I2C=yCONFIG_MFD_CROS_EC_DEV=yCONFIG_MFD_MADERA=yCONFIG_MFD_MADERA_I2C=yCONFIG_MFD_MADERA_SPI=yCONFIG_MFD_CS47L15=yCONFIG_MFD_CS47L35=yCONFIG_MFD_CS47L85=yCONFIG_MFD_CS47L90=yCONFIG_MFD_CS47L92=yCONFIG_PMIC_DA903X=yCONFIG_PMIC_DA9052=yCONFIG_MFD_DA9052_SPI=yCONFIG_MFD_DA9052_I2C=yCONFIG_MFD_DA9055=yCONFIG_MFD_DA9062=yCONFIG_MFD_DA9063=yCONFIG_MFD_DA9150=yCONFIG_MFD_DLN2=yCONFIG_MFD_GATEWORKS_GSC=yCONFIG_MFD_MC13XXX=yCONFIG_MFD_MC13XXX_SPI=yCONFIG_MFD_MC13XXX_I2C=yCONFIG_MFD_MP2629=yCONFIG_MFD_HI6421_PMIC=yCONFIG_MFD_HI6421_SPMI=yCONFIG_HTC_PASIC3=y
# CONFIG_HTC_I2CPLD is not setCONFIG_MFD_INTEL_QUARK_I2C_GPIO=yCONFIG_LPC_ICH=yCONFIG_LPC_SCH=yCONFIG_INTEL_SOC_PMIC=yCONFIG_INTEL_SOC_PMIC_BXTWC=yCONFIG_INTEL_SOC_PMIC_CHTWC=yCONFIG_INTEL_SOC_PMIC_CHTDC_TI=yCONFIG_INTEL_SOC_PMIC_MRFLD=yCONFIG_MFD_INTEL_LPSS=yCONFIG_MFD_INTEL_LPSS_ACPI=yCONFIG_MFD_INTEL_LPSS_PCI=yCONFIG_MFD_INTEL_PMC_BXT=yCONFIG_MFD_IQS62X=yCONFIG_MFD_JANZ_CMODIO=yCONFIG_MFD_KEMPLD=yCONFIG_MFD_88PM800=yCONFIG_MFD_88PM805=yCONFIG_MFD_88PM860X=yCONFIG_MFD_MAX14577=yCONFIG_MFD_MAX77620=yCONFIG_MFD_MAX77650=yCONFIG_MFD_MAX77686=yCONFIG_MFD_MAX77693=yCONFIG_MFD_MAX77714=yCONFIG_MFD_MAX77843=yCONFIG_MFD_MAX8907=yCONFIG_MFD_MAX8925=yCONFIG_MFD_MAX8997=yCONFIG_MFD_MAX8998=yCONFIG_MFD_MT6360=yCONFIG_MFD_MT6370=yCONFIG_MFD_MT6397=yCONFIG_MFD_MENF21BMC=yCONFIG_MFD_OCELOT=yCONFIG_EZX_PCAP=yCONFIG_MFD_CPCAP=yCONFIG_MFD_VIPERBOARD=yCONFIG_MFD_NTXEC=yCONFIG_MFD_RETU=yCONFIG_MFD_PCF50633=yCONFIG_PCF50633_ADC=yCONFIG_PCF50633_GPIO=yCONFIG_UCB1400_CORE=yCONFIG_MFD_SY7636A=yCONFIG_MFD_RDC321X=yCONFIG_MFD_RT4831=yCONFIG_MFD_RT5033=yCONFIG_MFD_RT5120=yCONFIG_MFD_RC5T583=yCONFIG_MFD_RK808=yCONFIG_MFD_RN5T618=yCONFIG_MFD_SEC_CORE=yCONFIG_MFD_SI476X_CORE=yCONFIG_MFD_SIMPLE_MFD_I2C=yCONFIG_MFD_SM501=yCONFIG_MFD_SM501_GPIO=yCONFIG_MFD_SKY81452=yCONFIG_MFD_STMPE=y
#
# STMicroelectronics STMPE Interface Drivers
#CONFIG_STMPE_I2C=yCONFIG_STMPE_SPI=y
# end of STMicroelectronics STMPE Interface Drivers
CONFIG_MFD_STA2X11=yCONFIG_MFD_SYSCON=yCONFIG_MFD_TI_AM335X_TSCADC=yCONFIG_MFD_LP3943=yCONFIG_MFD_LP8788=yCONFIG_MFD_TI_LMU=yCONFIG_MFD_PALMAS=yCONFIG_TPS6105X=yCONFIG_TPS65010=yCONFIG_TPS6507X=yCONFIG_MFD_TPS65086=yCONFIG_MFD_TPS65090=yCONFIG_MFD_TPS65217=yCONFIG_MFD_TI_LP873X=yCONFIG_MFD_TI_LP87565=yCONFIG_MFD_TPS65218=yCONFIG_MFD_TPS6586X=yCONFIG_MFD_TPS65910=yCONFIG_MFD_TPS65912=yCONFIG_MFD_TPS65912_I2C=yCONFIG_MFD_TPS65912_SPI=yCONFIG_TWL4030_CORE=yCONFIG_MFD_TWL4030_AUDIO=yCONFIG_TWL6040_CORE=yCONFIG_MFD_WL1273_CORE=yCONFIG_MFD_LM3533=yCONFIG_MFD_TIMBERDALE=yCONFIG_MFD_TC3589X=yCONFIG_MFD_TQMX86=yCONFIG_MFD_VX855=yCONFIG_MFD_LOCHNAGAR=yCONFIG_MFD_ARIZONA=yCONFIG_MFD_ARIZONA_I2C=yCONFIG_MFD_ARIZONA_SPI=yCONFIG_MFD_CS47L24=yCONFIG_MFD_WM5102=yCONFIG_MFD_WM5110=yCONFIG_MFD_WM8997=yCONFIG_MFD_WM8998=yCONFIG_MFD_WM8400=yCONFIG_MFD_WM831X=yCONFIG_MFD_WM831X_I2C=yCONFIG_MFD_WM831X_SPI=yCONFIG_MFD_WM8350=yCONFIG_MFD_WM8350_I2C=yCONFIG_MFD_WM8994=yCONFIG_MFD_ROHM_BD718XX=yCONFIG_MFD_ROHM_BD71828=yCONFIG_MFD_ROHM_BD957XMUF=yCONFIG_MFD_STPMIC1=yCONFIG_MFD_STMFX=yCONFIG_MFD_WCD934X=yCONFIG_MFD_ATC260X=yCONFIG_MFD_ATC260X_I2C=yCONFIG_MFD_QCOM_PM8008=yCONFIG_RAVE_SP_CORE=yCONFIG_MFD_INTEL_M10_BMC=yCONFIG_MFD_RSMU_I2C=yCONFIG_MFD_RSMU_SPI=y
# end of Multifunction device drivers
6,341 lines not shown · raw message
Part of this message is not shown here. View the raw message.
Huang Rui
maintainerRe: [PATCH v6 04/11] cpufreq: amd_pstate: implement Pstate EPP support for the AMD processors
In reply to Perry YuanQuoted 4 lines · Perry
From: Perry Yuan <[email protected]>
cpufreq:
amd_pstate: implement Pstate EPP support for the AMD processors
I suggest that we align the format like "cpufreq: amd-pstate:" as the prefix of the subject like previous patches. Because it's there anywhere even in the documentation file. I think it's not worth to change such as minor update like amd-pstate to amd_pstate for all the files and comments. So let's align the previous way.
Quoted 34 lines
Add EPP driver support for AMD SoCs which support a dedicated MSR for CPPC. EPP is used by the DPM controller to configure the frequency that a core operates at during short periods of activity.
The SoC EPP targets are configured on a scale from 0 to 255 where 0 represents maximum performance and 255 represents maximum efficiency.
The amd-pstate driver exports profile string names to userspace that are tied to specific EPP values.
The
balance_performancestring (0x80) provides the best balance for efficiency versus power on most systems, but users can choose other strings to meet their needs as well.$ cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_available_preferences default performance balance_performance balance_power power$ cat /sys/devices/system/cpu/cpufreq/policy0/energy_performance_preference balance_performanceTo enable the driver,it needs to add
amd_pstate=activeto kernel command line and kernel will load the active mode epp driverSigned-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/amd-pstate.c | 643 ++++++++++++++++++++++++++++++++++- include/linux/amd-pstate.h | 35 ++ 2 files changed, 672 insertions(+), 6 deletions(-)drivers/cpufreq/amd-pstate.c +0
-0
drivers/cpufreq/amd-pstate.c line 45
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +3
-0@@ -37,9 +37,12 @@#include <linux/uaccess.h> #include <linux/static_call.h> #include <linux/amd-pstate.h> +#include <linux/cpufreq_common.h> +#ifdef CONFIG_ACPI #include <acpi/processor.h> #include <acpi/cppc_acpi.h> +#endif
The amd-pstate module depends on ACPI in the kconfig, so we won't need add CONFIG_ACPI here.
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +1
-1#include <asm/msr.h> #include <asm/processor.h> @@ -59,9 +62,130 @@* we disable it by default to go acpi-cpufreq on these processors and add a * module parameter to be able to enable it manually for debugging. */ -static struct cpufreq_driver amd_pstate_driver; +static bool cppc_active;static int cppc_load__initdata ;
drivers/cpufreq/amd-pstate.c line 76
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +9
-0+static struct cpufreq_driver *default_pstate_driver; +static struct amd_cpudata **all_cpu_data; +static struct amd_pstate_params global_params; + +static DEFINE_MUTEX (amd_pstate_limits_lock); +static DEFINE_MUTEX (amd_pstate_driver_lock); + +static bool cppc_boost__read_mostly ; +struct kobject *amd_pstate_kobj;
Where is it using amd_pstate_kobj?
Quoted 593 lines
drivers/cpufreq/amd-pstate.c +555
-1+ +#ifdef CONFIG_ACPI_CPPC_LIB +static s16 amd_pstate_get_epp (struct amd_cpudata *cpudata,u64 cppc_req_cached) +{ +s16 epp; +struct cppc_perf_caps perf_caps; +int ret; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +if (!cppc_req_cached) { + epp =rdmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , + &cppc_req_cached); +if (epp) +return epp; + } + epp = (cppc_req_cached >>24 ) &0xFF ; + }else { + ret =cppc_get_epp_caps (cpudata->cpu, &perf_caps); +if (ret <0 ) { +pr_debug ("Could not retrieve energy perf value (%d)\n" , ret); +return -EIO ; + } + epp = (s16 ) perf_caps.energy_perf; + } + +return epp; +} +#endif + +static int amd_pstate_get_energy_pref_index (struct amd_cpudata *cpudata) +{ +s16 epp; +int index = -EINVAL ; + + epp =amd_pstate_get_epp (cpudata,0 ); +if (epp <0 ) +return epp; + +switch (epp) { +case HWP_EPP_PERFORMANCE : + index =EPP_INDEX_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_PERFORMANCE : + index =EPP_INDEX_BALANCE_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_POWERSAVE : + index =EPP_INDEX_BALANCE_POWERSAVE ; +break ; +case HWP_EPP_POWERSAVE : + index =EPP_INDEX_POWERSAVE ; +break ; +default : +break ; + } + +return index; +} + +#ifdef CONFIG_ACPI_CPPC_LIB +static int amd_pstate_set_epp (struct amd_cpudata *cpudata,u32 epp) +{ +int ret; +struct cppc_perf_ctrls perf_ctrls; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +u64 value =READ_ONCE (cpudata->cppc_req_cached); + + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret =wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); +if (!ret) + cpudata->epp_cached = epp; + }else { + perf_ctrls.energy_perf = epp; + ret =cppc_set_epp_perf (cpudata->cpu, &perf_ctrls,1 ); +if (ret) { +pr_debug ("failed to set energy perf value (%d)\n" , ret); +return ret; + } + cpudata->epp_cached = epp; + } + +return ret; +} + +static int amd_pstate_set_energy_pref_index (struct amd_cpudata *cpudata, +int pref_index) +{ +int epp = -EINVAL ; +int ret; + +if (!pref_index) { +pr_debug ("EPP pref_index is invalid\n" ); +return -EINVAL ; + } + +if (epp == -EINVAL ) + epp = epp_values[pref_index]; + +if (epp >0 && cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { +pr_debug ("EPP cannot be set under performance policy\n" ); +return -EBUSY ; + } + + ret =amd_pstate_set_epp (cpudata, epp); + +return ret; +} +#endif +static inline int pstate_enable (bool enable) {return wrmsrl_safe (MSR_AMD_CPPC_ENABLE , enable);@@ -70,11 +194,21 @@ static inline int pstate_enable(bool enable)static int cppc_enable (bool enable) {int cpu, ret =0 ; +struct cppc_perf_ctrls perf_ctrls;for_each_present_cpu (cpu) { ret =cppc_set_enable (cpu, enable);if (ret)return ret; + +/* Enable autonomous mode for EPP */ +if (!cppc_active) { +/* Set desired perf as zero to allow EPP firmware control */ + perf_ctrls.desired_perf =0 ; + ret =cppc_set_perf (cpu, &perf_ctrls); +if (ret) +return ret; + } }return ret;@@ -417,7 +551,7 @@ static void amd_pstate_boost_init(struct amd_cpudata *cpudata)return ; cpudata->boost_supported = true; - amd_pstate_driver.boost_enabled = true; + default_pstate_driver->boost_enabled = true; }static void amd_perf_ctl_reset (unsigned int cpu)@@ -591,10 +725,61 @@ static ssize_t show_amd_pstate_highest_perf(struct cpufreq_policy *policy,return sprintf (&buf[0 ],"%u\n" , perf); } +static ssize_t show_energy_performance_available_preferences ( +struct cpufreq_policy *policy,char *buf) +{ +int i =0 ; +int ret =0 ; + +while (energy_perf_strings[i] !=NULL ) + ret +=sysfs_emit (buf,"%s" , energy_perf_strings[i++]); + + ret +=sysfs_emit (buf,"\n" ); + +return ret; +} + +static ssize_t store_energy_performance_preference ( +struct cpufreq_policy *policy,const char *buf,size_t count) +{ +struct amd_cpudata *cpudata = policy->driver_data; +char str_preference[21 ]; +ssize_t ret; + + ret =sscanf (buf,"%20s" , str_preference); +if (ret !=1 ) +return -EINVAL ; + + ret =match_string (energy_perf_strings,-1 , str_preference); +if (ret <0 ) +return -EINVAL ; + +mutex_lock (&amd_pstate_limits_lock); + ret =amd_pstate_set_energy_pref_index (cpudata, ret); +mutex_unlock (&amd_pstate_limits_lock); + +return ret ?: count; +} + +static ssize_t show_energy_performance_preference ( +struct cpufreq_policy *policy,char *buf) +{ +struct amd_cpudata *cpudata = policy->driver_data; +int preference; + + preference =amd_pstate_get_energy_pref_index (cpudata); +if (preference <0 ) +return preference; + +return sysfs_emit (buf,"%s\n" , energy_perf_strings[preference]); +} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);cpufreq_freq_attr_ro (amd_pstate_highest_perf); +cpufreq_freq_attr_rw (energy_performance_preference); +cpufreq_freq_attr_ro (energy_performance_available_preferences);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,@@ -603,6 +788,429 @@ static struct freq_attr *amd_pstate_attr[] = { NULL, }; +static struct freq_attr *amd_pstate_epp_attr[] = { + &amd_pstate_max_freq, + &amd_pstate_lowest_nonlinear_freq, + &amd_pstate_highest_perf, + &energy_performance_preference, + &energy_performance_available_preferences, +NULL , +}; + +static inline void update_boost_state (void ) +{ +u64 misc_en; +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[0 ]; +rdmsrl (MSR_K7_HWCR , misc_en); + global_params.cppc_boost_disabled = misc_en &BIT_ULL (25 ); +} + +static bool amd_pstate_acpi_pm_profile_server (void ) +{ +if (acpi_gbl_FADT.preferred_profile ==PM_ENTERPRISE_SERVER || + acpi_gbl_FADT.preferred_profile ==PM_PERFORMANCE_SERVER ) +return true; + +return false; +} + +static int amd_pstate_init_cpu (unsigned int cpunum) +{ +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[cpunum]; +if (!cpudata) { + cpudata =kzalloc (sizeof (*cpudata),GFP_KERNEL ); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data[cpunum], cpudata); + + cpudata->cpu = cpunum; + +if (cppc_active) { +if (amd_pstate_acpi_pm_profile_server ()) + cppc_boost = true; + } + + } + cpudata->epp_powersave = -EINVAL ; + cpudata->epp_policy =0 ; +pr_debug ("controlling: cpu %d\n" , cpunum); +return 0 ; +} + +static int __amd_pstate_cpu_init (struct cpufreq_policy *policy) +{ +int min_freq, max_freq, nominal_freq, lowest_nonlinear_freq, ret; +struct amd_cpudata *cpudata; +struct device *dev; +int rc; +u64 value; + + rc =amd_pstate_init_cpu (policy->cpu); +if (rc) +return rc; + + cpudata = all_cpu_data[policy->cpu]; + + dev =get_cpu_device (policy->cpu); +if (!dev) + goto free_cpudata1; + + rc =amd_pstate_init_perf (cpudata); +if (rc) + goto free_cpudata1; + + min_freq =amd_get_min_freq (cpudata); + max_freq =amd_get_max_freq (cpudata); + nominal_freq =amd_get_nominal_freq (cpudata); + lowest_nonlinear_freq =amd_get_lowest_nonlinear_freq (cpudata); +if (min_freq <0 || max_freq <0 || min_freq > max_freq) { +dev_err (dev,"min_freq(%d) or max_freq(%d) value is incorrect\n" , + min_freq, max_freq); + ret = -EINVAL ; + goto free_cpudata1; + } + + policy->min = min_freq; + policy->max = max_freq; + + policy->cpuinfo.min_freq = min_freq; + policy->cpuinfo.max_freq = max_freq; +/* It will be updated by governor */ + policy->cur = policy->cpuinfo.min_freq; + +/* Initial processor data capability frequencies */ + cpudata->max_freq = max_freq; + cpudata->min_freq = min_freq; + cpudata->nominal_freq = nominal_freq; + cpudata->lowest_nonlinear_freq = lowest_nonlinear_freq; + + policy->driver_data = cpudata; + +update_boost_state (); + cpudata->epp_cached =amd_pstate_get_epp (cpudata, value); + + policy->min = policy->cpuinfo.min_freq; + policy->max = policy->cpuinfo.max_freq; + +if (boot_cpu_has (X86_FEATURE_CPPC )) + policy->fast_switch_possible = true; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { + ret =rdmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , &value); +if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret =rdmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_CAP1 , &value); +if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_cap1_cached, value); + } +amd_pstate_boost_init (cpudata); + +return 0 ; + +free_cpudata1: +kfree (cpudata); +return ret; +} + +static int amd_pstate_epp_cpu_init (struct cpufreq_policy *policy) +{ +int ret; + + ret =__amd_pstate_cpu_init (policy); +if (ret) +return ret; +/* +* Set the policy to powersave to provide a valid fallback value in case +* the default cpufreq governor is neither powersave nor performance. +*/ + policy->policy =CPUFREQ_POLICY_POWERSAVE ; + +return 0 ; +} + +static int amd_pstate_epp_cpu_exit (struct cpufreq_policy *policy) +{ +pr_debug ("CPU %d exiting\n" , policy->cpu); + policy->fast_switch_possible = false; +return 0 ; +} + +static void amd_pstate_update_max_freq (unsigned int cpu) +{ +struct cpufreq_policy *policy = policy =cpufreq_cpu_get (cpu); + +if (!policy) +return ; + +refresh_frequency_limits (policy); +cpufreq_cpu_put (policy); +} + +static void amd_pstate_epp_update_limits (unsigned int cpu) +{ +mutex_lock (&amd_pstate_driver_lock); +update_boost_state (); +if (global_params.cppc_boost_disabled) { +for_each_possible_cpu (cpu) +amd_pstate_update_max_freq (cpu); + }else { +cpufreq_update_policy (cpu); + } +mutex_unlock (&amd_pstate_driver_lock); +} + +static int cppc_boost_hold_time_ns =3 *NSEC_PER_MSEC ; + +static inline void amd_pstate_boost_up (struct amd_cpudata *cpudata) +{ +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u32 max_limit = (hwp_req &0xff ); +u32 min_limit = (hwp_req &0xff00 ) >>8 ; +u32 boost_level1; + +/* If max and min are equal or already at max, nothing to boost */ +if (max_limit == min_limit) +return ; + +/* Set boost max and min to initial value */ +if (!cpudata->cppc_boost_min) + cpudata->cppc_boost_min = min_limit; + + boost_level1 = ((AMD_CPPC_NOMINAL_PERF (hwp_cap) + min_limit) >>1 ); + +if (cpudata->cppc_boost_min < boost_level1) + cpudata->cppc_boost_min = boost_level1; +else if (cpudata->cppc_boost_min <AMD_CPPC_NOMINAL_PERF (hwp_cap)) + cpudata->cppc_boost_min =AMD_CPPC_NOMINAL_PERF (hwp_cap); +else if (cpudata->cppc_boost_min ==AMD_CPPC_NOMINAL_PERF (hwp_cap)) + cpudata->cppc_boost_min = max_limit; +else +return ; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (cpudata->cppc_boost_min); +wrmsrl (MSR_AMD_CPPC_REQ , hwp_req); + cpudata->last_update = cpudata->sample.time; +} + +static inline void amd_pstate_boost_down (struct amd_cpudata *cpudata) +{ +bool expired; + +if (cpudata->cppc_boost_min) { + expired =time_after64 (cpudata->sample.time, cpudata->last_update + + cppc_boost_hold_time_ns); + +if (expired) { +wrmsrl (MSR_AMD_CPPC_REQ , cpudata->cppc_req_cached); + cpudata->cppc_boost_min =0 ; + } + } + + cpudata->last_update = cpudata->sample.time; +} + +static inline void amd_pstate_boost_update_util (struct amd_cpudata *cpudata, +u64 time) +{ + cpudata->sample.time = time; +if (smp_processor_id () != cpudata->cpu) +return ; + +if (cpudata->sched_flags &SCHED_CPUFREQ_IOWAIT ) { +bool do_io = false; + + cpudata->sched_flags =0 ; +/* +* Set iowait_boost flag and update time. Since IO WAIT flag +* is set all the time, we can't just conclude that there is +* some IO bound activity is scheduled on this CPU with just +* one occurrence. If we receive at least two in two +* consecutive ticks, then we treat as boost candidate. +* This is leveraged from Intel Pstate driver. +*/ +if (time_before64 (time, cpudata->last_io_update +2 *TICK_NSEC )) + do_io = true; + + cpudata->last_io_update = time; + +if (do_io) +amd_pstate_boost_up (cpudata); + + }else { +amd_pstate_boost_down (cpudata); + } +} + +static inline void amd_pstate_cppc_update_hook (struct update_util_data *data, +u64 time,unsigned int flags) +{ +struct amd_cpudata *cpudata =container_of (data, + struct amd_cpudata, update_util); + + cpudata->sched_flags |= flags; + +if (smp_processor_id () == cpudata->cpu) +amd_pstate_boost_update_util (cpudata, time); +} + +static void amd_pstate_clear_update_util_hook (unsigned int cpu) +{ +struct amd_cpudata *cpudata = all_cpu_data[cpu]; + +if (!cpudata->update_util_set) +return ; + +cpufreq_remove_update_util_hook (cpu); + cpudata->update_util_set = false; +synchronize_rcu (); +} + +static void amd_pstate_set_update_util_hook (unsigned int cpu_num) +{ +struct amd_cpudata *cpudata = all_cpu_data[cpu_num]; + +if (!cppc_boost) { +if (cpudata->update_util_set) +amd_pstate_clear_update_util_hook (cpudata->cpu); +return ; + } + +if (cpudata->update_util_set) +return ; + + cpudata->sample.time =0 ; +cpufreq_add_update_util_hook (cpu_num, &cpudata->update_util, + amd_pstate_cppc_update_hook); + cpudata->update_util_set = true; +} + +static void amd_pstate_epp_init (unsigned int cpu) +{ +struct amd_cpudata *cpudata = all_cpu_data[cpu]; +u32 max_perf, min_perf; +u64 value; +s16 epp; +int ret; + + max_perf =READ_ONCE (cpudata->highest_perf); + min_perf =READ_ONCE (cpudata->lowest_perf); + + value =READ_ONCE (cpudata->cppc_req_cached); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) + min_perf = max_perf; + +/* Initial min/max values for CPPC Performance Controls Register */ + value &= ~AMD_CPPC_MIN_PERF (~0L ); + value |=AMD_CPPC_MIN_PERF (min_perf); + + value &= ~AMD_CPPC_MAX_PERF (~0L ); + value |=AMD_CPPC_MAX_PERF (max_perf); + +/* CPPC EPP feature require to set zero to the desire perf bit */ + value &= ~AMD_CPPC_DES_PERF (~0L ); + value |=AMD_CPPC_DES_PERF (0 ); + +if (cpudata->epp_policy == cpudata->policy) + goto skip_epp; + + cpudata->epp_policy = cpudata->policy; + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { + epp =amd_pstate_get_epp (cpudata, value); + cpudata->epp_powersave = epp; +if (epp <0 ) + goto skip_epp; +/* force the epp value to be zero for performance policy */ + epp =0 ; + }else { +if (cpudata->epp_powersave <0 ) + goto skip_epp; +/* Get BIOS pre-defined epp value */ + epp =amd_pstate_get_epp (cpudata, value); +if (epp) + goto skip_epp; + epp = cpudata->epp_powersave; + } +/* Set initial EPP value */ +if (boot_cpu_has (X86_FEATURE_CPPC )) { + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; + } + +skip_epp: +WRITE_ONCE (cpudata->cppc_req_cached, value); + ret =wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); +if (!ret) + cpudata->epp_cached = epp; +} + +static void amd_pstate_set_max_limits (struct amd_cpudata *cpudata) +{ +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u32 max_limit = (hwp_cap >>24 ) &0xff ; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (max_limit); +wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , hwp_req); +} + +static int amd_pstate_epp_set_policy (struct cpufreq_policy *policy) +{ +struct amd_cpudata *cpudata; +
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 1181
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+if (!policy->cpuinfo.max_freq) +return -ENODEV ; + +pr_debug ("set_policy: cpuinfo.max %u policy->max %u\n" , + policy->cpuinfo.max_freq, policy->max); + + cpudata = all_cpu_data[policy->cpu]; + cpudata->policy = policy->policy; + +if (boot_cpu_has (X86_FEATURE_CPPC )) {
X86_FEATURE_CPPC indicated the MSR support, but I believe the share memory CPU also has the EPP, right?
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 1188
Quoted 7 lines
drivers/cpufreq/amd-pstate.c +7
-0+mutex_lock (&amd_pstate_limits_lock); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { +amd_pstate_clear_update_util_hook (policy->cpu); +amd_pstate_set_max_limits (cpudata); + }else { +amd_pstate_set_update_util_hook (policy->cpu);
May I know why amd processors also needs to set and update util hook?
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 899
Quoted 3 lines
drivers/cpufreq/amd-pstate.c +3
-0+ } + +if (boot_cpu_has (X86_FEATURE_CPPC ))
I am confused why if (boot_cpu_has(X86_FEATURE_CPPC) is still inside of a if (boot_cpu_has(X86_FEATURE_CPPC)).
Quoted 158 lines
drivers/cpufreq/amd-pstate.c +49
-4+amd_pstate_epp_init (policy->cpu); + +mutex_unlock (&amd_pstate_limits_lock); + } + +return 0 ; +} + +static void amd_pstate_verify_cpu_policy (struct amd_cpudata *cpudata, +struct cpufreq_policy_data *policy) +{ +update_boost_state (); +cpufreq_verify_within_cpu_limits (policy); +} + +static int amd_pstate_epp_verify_policy (struct cpufreq_policy_data *policy) +{ +amd_pstate_verify_cpu_policy (all_cpu_data[policy->cpu], policy); +pr_debug ("policy_max =%d, policy_min=%d\n" , policy->max, policy->min); +return 0 ; +} +static struct cpufreq_driver amd_pstate_driver = { .flags =CPUFREQ_CONST_LOOPS |CPUFREQ_NEED_UPDATE_LIMITS , .verify = amd_pstate_verify,@@ -616,8 +1224,20 @@ static struct cpufreq_driver amd_pstate_driver = { .attr = amd_pstate_attr, }; +static struct cpufreq_driver amd_pstate_epp_driver = { + .flags =CPUFREQ_CONST_LOOPS , + .verify = amd_pstate_epp_verify_policy, + .setpolicy = amd_pstate_epp_set_policy, + .init = amd_pstate_epp_cpu_init, + .exit = amd_pstate_epp_cpu_exit, + .update_limits = amd_pstate_epp_update_limits, + .name ="amd_pstate_epp" , + .attr = amd_pstate_epp_attr, +}; +static int __init amd_pstate_init (void ) { +static struct amd_cpudata **cpudata;int ret;if (boot_cpu_data.x86_vendor !=X86_VENDOR_AMD )@@ -644,7 +1264,8 @@ static int __init amd_pstate_init(void)/* capability check */ if (boot_cpu_has (X86_FEATURE_CPPC )) {pr_debug ("AMD CPPC MSR based functionality is supported\n" ); - amd_pstate_driver.adjust_perf = amd_pstate_adjust_perf; +if (!cppc_active) + default_pstate_driver->adjust_perf = amd_pstate_adjust_perf; }else {pr_debug ("AMD CPPC shared memory based functionality is supported\n" );static_call_update (amd_pstate_enable, cppc_enable);@@ -652,6 +1273,10 @@ static int __init amd_pstate_init(void)static_call_update (amd_pstate_update_perf, cppc_update_perf); } + cpudata =vzalloc (array_size (sizeof (void *),num_possible_cpus ())); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data, cpudata);/* enable amd pstate feature */ ret =amd_pstate_enable (true);if (ret) {@@ -659,9 +1284,9 @@ static int __init amd_pstate_init(void)return ret; } - ret =cpufreq_register_driver (&amd_pstate_driver); + ret =cpufreq_register_driver (default_pstate_driver);if (ret) -pr_err ("failed to register amd_pstate_driver with return %d\n" , +pr_err ("failed to register amd pstate driver with return %d\n" , ret);return ret;@@ -676,8 +1301,14 @@ static int __init amd_pstate_param(char *str)if (!strcmp (str,"disable" )) { cppc_load =0 ;pr_info ("driver is explicitly disabled\n" ); - }else if (!strcmp (str,"passive" )) + }else if (!strcmp (str,"passive" )) { cppc_load =1 ; + default_pstate_driver = &amd_pstate_driver; + }else if (!strcmp (str,"active" )) { + cppc_active =1 ; + cppc_load =1 ; + default_pstate_driver = &amd_pstate_epp_driver; + }return 0 ; }include/linux/amd-pstate.h +35
-0@@ -25,6 +25,7 @@ struct amd_aperf_mperf {u64 aperf;u64 mperf;u64 tsc; +u64 time; };/** @@ -47,6 +48,18 @@ struct amd_aperf_mperf {* @prev: Last Aperf/Mperf/tsc count value read from register * @freq: current cpu frequency value * @boost_supported: check whether the Processor or SBIOS supports boost mode +* @epp_powersave: Last saved CPPC energy performance preference +when policy switched to performance +* @epp_policy: Last saved policy used to set energy-performance preference +* @epp_cached: Cached CPPC energy-performance preference value +* @policy: Cpufreq policy value +* @sched_flags: Store scheduler flags for possible cross CPU update +* @update_util_set: CPUFreq utility callback is set +* @last_update: Time stamp of the last performance state update +* @cppc_boost_min: Last CPPC boosted min performance state +* @cppc_cap1_cached: Cached value of the last CPPC Capabilities MSR +* @update_util: Cpufreq utility callback information +* @sample: the stored performance sample * * The amd_cpudata is key private data for each CPU thread in AMD P-State, and * represents all the attributes and goals that AMD P-State requests at runtime. @@ -72,6 +85,28 @@ struct amd_cpudata {u64 freq;bool boost_supported; + +/* EPP feature related attributes*/ +s16 epp_powersave; +s16 epp_policy; +s16 epp_cached; +u32 policy; +u32 sched_flags; +bool update_util_set; +u64 last_update; +u64 last_io_update; +u32 cppc_boost_min; +u64 cppc_cap1_cached; +struct update_util_data update_util; + struct amd_aperf_mperf sample; +}; + +/** +* struct amd_pstate_params - global parameters for the performance control +* @ cppc_boost_disabled wheher the core performance boost disabled +*/ +struct amd_pstate_params { +bool cppc_boost_disabled; };#endif /* _LINUX_AMD_PSTATE_H */ Signature · 1 line
2.34.1
Yuan, Perry
reviewerRE: [PATCH v6 04/11] cpufreq: amd_pstate: implement Pstate EPP support for the AMD processors
[AMD Official Use Only - General]
Hi Ray,
Quoted 19 lines
-----Original Message-----
From: Huang, Ray <[email protected]>
Sent: Monday, December 5, 2022 8:22 PM
To: Yuan, Perry <[email protected]>
Cc: [email protected]; Limonciello, Mario <[email protected]>; [email protected]; Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH v6 04/11] cpufreq:amd_pstate: implement Pstate EPP support for the AMD processorsQuoted 2 lines · Perry
From: Perry Yuan <[email protected]>
Quoted 8 lines
Quoted 2 lines
cpufreq:
amd_pstate: implement Pstate EPP support for the AMD processorsI suggest that we align the format like "cpufreq: amd-pstate:" as the prefix of the subject like previous patches. Because it's there anywhere even in the documentation file. I think it's not worth to change such as minor update like amd-pstate to
amd_pstatefor all the files and comments.
So let's align the previous way.
Agreed , I have revised the title and part of the kernel docs update patches in V7. Please take a look at the v7 if you have some other concerns.
Quoted 50 lines
Quoted 7 lines
Add EPP driver support for AMD SoCs which support a dedicated MSR for CPPC. EPP is used by the DPM controller to configure the frequency that a core operates at during short periods of activity.
The SoC EPP targets are configured on a scale from 0 to 255 where 0 represents maximum performance and 255 represents maximum
efficiency.
Quoted 10 lines
The amd-pstate driver exports profile string names to userspace that are tied to specific EPP values.
The
balance_performancestring (0x80) provides the best balance for efficiency versus power on most systems, but users can choose other strings to meet their needs as well.$ cat
/sys/devices/system/cpu/cpufreq/policy0/energy_performance_available_pQuoted 1 line
references default performance
balance_performancebalance_powerpower
Quoted 3 lines
$ cat
/sys/devices/system/cpu/cpufreq/policy0/energy_performance_preferenceQuoted 8 lines
balance_performanceTo enable the driver,it needs to add
amd_pstate=activeto kernel command line and kernel will load the active mode epp driverSigned-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/amd-pstate.c | 643++++++++++++++++++++++++++++++++++-
Quoted 5 lines
include/linux/amd-pstate.h | 35 ++ 2 files changed, 672 insertions(+), 6 deletions(-)(quoted diff) +0
-0
b/drivers/cpufreq/amd-pstate.cindex204e39006dda..5989d4d25d0f100644
Quoted 8 lines
drivers/cpufreq/amd-pstate.c +1
-0@@ -37,9 +37,12 @@#include <linux/uaccess.h> #include <linux/static_call.h> #include <linux/amd-pstate.h> +#include <linux/cpufreq_common.h>
Quoted 7 lines
drivers/cpufreq/amd-pstate.c line 45
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +2
-0+#ifdef CONFIG_ACPI #include <acpi/processor.h> #include <acpi/cppc_acpi.h> +#endif The amd-pstate module depends on ACPI in the kconfig, so we won't need add
CONFIG_ACPIhere.
Removed in V7.
Quoted 13 lines
drivers/cpufreq/amd-pstate.c line 62
Quoted 6 lines
drivers/cpufreq/amd-pstate.c +0
-0#include <asm/msr.h> #include <asm/processor.h> @@ -59,9 +62,130 @@* we disable it by default to go acpi-cpufreq on these processors and add a
Quoted 6 lines
drivers/cpufreq/amd-pstate.c +1
-1* module parameter to be able to enable it manually for debugging. */ -static struct cpufreq_driver amd_pstate_driver; +static bool cppc_active;static int cppc_load__initdata ;
Quoted 11 lines
drivers/cpufreq/amd-pstate.c line 76
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +9
-0+static struct cpufreq_driver *default_pstate_driver;static struct +amd_cpudata **all_cpu_data;static struct amd_pstate_params +global_params; + +static DEFINE_MUTEX (amd_pstate_limits_lock); +static DEFINE_MUTEX (amd_pstate_driver_lock); + +static bool cppc_boost__read_mostly ;struct kobject +*amd_pstate_kobj;Where is it using
amd_pstate_kobj?
Moved the amd_pstate_kobj definition to the patch where it is actually used in v7.
Quoted 597 lines
drivers/cpufreq/amd-pstate.c
Quoted 12 lines
drivers/cpufreq/amd-pstate.c +11
-0+ +#ifdef CONFIG_ACPI_CPPC_LIB +static s16 amd_pstate_get_epp (struct amd_cpudata *cpudata,u64 +cppc_req_cached) { +s16 epp; +struct cppc_perf_caps perf_caps; +int ret; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +if (!cppc_req_cached) { + epp = rdmsrl_on_cpu(cpudata->cpu,
MSR_AMD_CPPC_REQ,drivers/cpufreq/amd-pstate.c
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +9
-0+ &cppc_req_cached); +if (epp) +return epp; + } + epp = (cppc_req_cached >>24 ) &0xFF ; + }else { + ret =cppc_get_epp_caps (cpudata->cpu, &perf_caps); +if (ret <0 ) { + pr_debug("Could not retrieve energy perf value(%d)\n", ret);
Quoted 41 lines
drivers/cpufreq/amd-pstate.c +41
-0+ return -EIO; + } + epp = (s16 ) perf_caps.energy_perf; + } + +return epp; +} +#endif + +static int amd_pstate_get_energy_pref_index (struct amd_cpudata +*cpudata) { +s16 epp; +int index = -EINVAL ; + + epp =amd_pstate_get_epp (cpudata,0 ); +if (epp <0 ) +return epp; + +switch (epp) { +case HWP_EPP_PERFORMANCE : + index =EPP_INDEX_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_PERFORMANCE : + index =EPP_INDEX_BALANCE_PERFORMANCE ; +break ; +case HWP_EPP_BALANCE_POWERSAVE : + index =EPP_INDEX_BALANCE_POWERSAVE ; +break ; +case HWP_EPP_POWERSAVE : + index =EPP_INDEX_POWERSAVE ; +break ; +default : +break ; + } + +return index; +} + +#ifdef CONFIG_ACPI_CPPC_LIB +static int amd_pstate_set_epp (struct amd_cpudata *cpudata,u32 epp) { +int ret;drivers/cpufreq/amd-pstate.c
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+struct cppc_perf_ctrls perf_ctrls; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +u64 value =READ_ONCE (cpudata->cppc_req_cached); + + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret = wrmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ,value);
drivers/cpufreq/amd-pstate.c
Quoted 7 lines
drivers/cpufreq/amd-pstate.c +7
-0+if (!ret) + cpudata->epp_cached = epp; + }else { + perf_ctrls.energy_perf = epp; + ret =cppc_set_epp_perf (cpudata->cpu, &perf_ctrls,1 ); +if (ret) { + pr_debug("failed to set energy perf value (%d)\n",ret);
drivers/cpufreq/amd-pstate.c
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +9
-0+return ret; + } + cpudata->epp_cached = epp; + } + +return ret; +} + +static int amd_pstate_set_energy_pref_index(struct amd_cpudata*cpudata,
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +4
-0+ int pref_index) +{ +int epp = -EINVAL ; +int ret;drivers/cpufreq/amd-pstate.c
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ +if (!pref_index) { +pr_debug ("EPP pref_index is invalid\n" ); +return -EINVAL ; + } + +if (epp == -EINVAL ) + epp = epp_values[pref_index]; + +if (epp >0 && cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ){
drivers/cpufreq/amd-pstate.c
Quoted 12 lines
drivers/cpufreq/amd-pstate.c +10
-0+pr_debug ("EPP cannot be set under performance policy\n" ); + return -EBUSY; + } + + ret =amd_pstate_set_epp (cpudata, epp); + +return ret; +} +#endif +static inline int pstate_enable (bool enable) { return wrmsrl_safe(MSR_AMD_CPPC_ENABLE, enable); @@ -70,11+194,21
drivers/cpufreq/amd-pstate.c static inline int pstate_enable(bool enable)
Quoted 13 lines
@@ static inline int
pstate_enable(bool enable)static intcppc_enable(bool enable){drivers/cpufreq/amd-pstate.c +5
-0int cpu, ret =0 ; +struct cppc_perf_ctrls perf_ctrls;for_each_present_cpu (cpu) { ret =cppc_set_enable (cpu, enable);if (ret)return ret; + +/* Enable autonomous mode for EPP */ +if (!cppc_active) { +/* Set desired perf as zero to allow EPP firmware control */
drivers/cpufreq/amd-pstate.c static void amd_pstate_boost_init(struct
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +5
-0+ perf_ctrls.desired_perf =0 ; + ret =cppc_set_perf (cpu, &perf_ctrls); +if (ret) +return ret; + } }return ret;@@ -417,7 +551,7 @@ static void amd_pstate_boost_init(struct
amd_cpudata*cpudata)Quoted 9 lines
drivers/cpufreq/amd-pstate.c +1
-1return ; cpudata->boost_supported = true; - amd_pstate_driver.boost_enabled = true; + default_pstate_driver->boost_enabled = true; } static void amd_perf_ctl_reset(unsigned int cpu) @@ -591,10 +725,61@@ static
ssize_tshow_amd_pstate_highest_perf(structcpufreq_policy*policy,
Quoted 127 lines
drivers/cpufreq/amd-pstate.c +114
-0return sprintf (&buf[0 ],"%u\n" , perf); } +static ssize_t show_energy_performance_available_preferences ( +struct cpufreq_policy *policy,char *buf) { +int i =0 ; +int ret =0 ; + +while (energy_perf_strings[i] !=NULL ) + ret +=sysfs_emit (buf,"%s" , energy_perf_strings[i++]); + + ret +=sysfs_emit (buf,"\n" ); + +return ret; +} + +static ssize_t store_energy_performance_preference ( +struct cpufreq_policy *policy,const char *buf,size_t count) { +struct amd_cpudata *cpudata = policy->driver_data; +char str_preference[21 ]; +ssize_t ret; + + ret =sscanf (buf,"%20s" , str_preference); +if (ret !=1 ) +return -EINVAL ; + + ret =match_string (energy_perf_strings,-1 , str_preference); +if (ret <0 ) +return -EINVAL ; + +mutex_lock (&amd_pstate_limits_lock); + ret =amd_pstate_set_energy_pref_index (cpudata, ret); +mutex_unlock (&amd_pstate_limits_lock); + +return ret ?: count; +} + +static ssize_t show_energy_performance_preference ( +struct cpufreq_policy *policy,char *buf) { +struct amd_cpudata *cpudata = policy->driver_data; +int preference; + + preference =amd_pstate_get_energy_pref_index (cpudata); +if (preference <0 ) +return preference; + +return sysfs_emit (buf,"%s\n" , energy_perf_strings[preference]); } +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);cpufreq_freq_attr_ro (amd_pstate_highest_perf); +cpufreq_freq_attr_rw (energy_performance_preference); +cpufreq_freq_attr_ro (energy_performance_available_preferences);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,@@ -603,6 +788,429 @@ static struct freq_attr *amd_pstate_attr[] = { NULL, }; +static struct freq_attr *amd_pstate_epp_attr[] = { + &amd_pstate_max_freq, + &amd_pstate_lowest_nonlinear_freq, + &amd_pstate_highest_perf, + &energy_performance_preference, + &energy_performance_available_preferences, +NULL , +}; + +static inline void update_boost_state (void ) { +u64 misc_en; +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[0 ]; +rdmsrl (MSR_K7_HWCR , misc_en); + global_params.cppc_boost_disabled = misc_en &BIT_ULL (25 ); } + +static bool amd_pstate_acpi_pm_profile_server (void ) +{ +if (acpi_gbl_FADT.preferred_profile ==PM_ENTERPRISE_SERVER || + acpi_gbl_FADT.preferred_profile ==PM_PERFORMANCE_SERVER ) +return true; + +return false; +} + +static int amd_pstate_init_cpu (unsigned int cpunum) { +struct amd_cpudata *cpudata; + + cpudata = all_cpu_data[cpunum]; +if (!cpudata) { + cpudata =kzalloc (sizeof (*cpudata),GFP_KERNEL ); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data[cpunum], cpudata); + + cpudata->cpu = cpunum; + +if (cppc_active) { +if (amd_pstate_acpi_pm_profile_server ()) + cppc_boost = true; + } + + } + cpudata->epp_powersave = -EINVAL ; + cpudata->epp_policy =0 ; +pr_debug ("controlling: cpu %d\n" , cpunum); +return 0 ; +} + +static int __amd_pstate_cpu_init (struct cpufreq_policy *policy) { +int min_freq, max_freq, nominal_freq, lowest_nonlinear_freq, ret; +struct amd_cpudata *cpudata; +struct device *dev; +int rc; +u64 value; + + rc =amd_pstate_init_cpu (policy->cpu); +if (rc) +return rc; + + cpudata = all_cpu_data[policy->cpu]; + + dev =get_cpu_device (policy->cpu); +if (!dev) + goto free_cpudata1; +drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 867
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ rc =amd_pstate_init_perf (cpudata); +if (rc) + goto free_cpudata1; + + min_freq =amd_get_min_freq (cpudata); + max_freq =amd_get_max_freq (cpudata); + nominal_freq =amd_get_nominal_freq (cpudata); + lowest_nonlinear_freq =amd_get_lowest_nonlinear_freq (cpudata); +if (min_freq <0 || max_freq <0 || min_freq > max_freq) { + dev_err(dev, "min_freq(%d) or max_freq(%d) value isincorrect\n",
Quoted 22 lines
drivers/cpufreq/amd-pstate.c +22
-0+ min_freq, max_freq); + ret = -EINVAL ; + goto free_cpudata1; + } + + policy->min = min_freq; + policy->max = max_freq; + + policy->cpuinfo.min_freq = min_freq; + policy->cpuinfo.max_freq = max_freq; +/* It will be updated by governor */ + policy->cur = policy->cpuinfo.min_freq; + +/* Initial processor data capability frequencies */ + cpudata->max_freq = max_freq; + cpudata->min_freq = min_freq; + cpudata->nominal_freq = nominal_freq; + cpudata->lowest_nonlinear_freq = lowest_nonlinear_freq; + + policy->driver_data = cpudata; + +update_boost_state ();drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ cpudata->epp_cached =amd_pstate_get_epp (cpudata, value); + + policy->min = policy->cpuinfo.min_freq; + policy->max = policy->cpuinfo.max_freq; + +if (boot_cpu_has (X86_FEATURE_CPPC )) + policy->fast_switch_possible = true; + +if (boot_cpu_has (X86_FEATURE_CPPC )) { + ret = rdmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ,&value);
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 5 lines
drivers/cpufreq/amd-pstate.c +5
-0+if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_req_cached, value); + + ret = rdmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_CAP1,&value);
Quoted 12 lines
drivers/cpufreq/amd-pstate.c +12
-0+if (ret) +return ret; +WRITE_ONCE (cpudata->cppc_cap1_cached, value); + } +amd_pstate_boost_init (cpudata); + +return 0 ; + +free_cpudata1: +kfree (cpudata); +return ret; +}drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ +static int amd_pstate_epp_cpu_init (struct cpufreq_policy *policy) { +int ret; + + ret =__amd_pstate_cpu_init (policy); +if (ret) +return ret; +/* +* Set the policy to powersave to provide a valid fallback value in case +* the default cpufreq governor is neither powersave nor performance.
Quoted 42 lines
drivers/cpufreq/amd-pstate.c +42
-0+*/ + policy->policy =CPUFREQ_POLICY_POWERSAVE ; + +return 0 ; +} + +static int amd_pstate_epp_cpu_exit (struct cpufreq_policy *policy) { +pr_debug ("CPU %d exiting\n" , policy->cpu); + policy->fast_switch_possible = false; +return 0 ; +} + +static void amd_pstate_update_max_freq (unsigned int cpu) { +struct cpufreq_policy *policy = policy =cpufreq_cpu_get (cpu); + +if (!policy) +return ; + +refresh_frequency_limits (policy); +cpufreq_cpu_put (policy); +} + +static void amd_pstate_epp_update_limits (unsigned int cpu) { +mutex_lock (&amd_pstate_driver_lock); +update_boost_state (); +if (global_params.cppc_boost_disabled) { +for_each_possible_cpu (cpu) +amd_pstate_update_max_freq (cpu); + }else { +cpufreq_update_policy (cpu); + } +mutex_unlock (&amd_pstate_driver_lock); +} + +static int cppc_boost_hold_time_ns =3 *NSEC_PER_MSEC ; + +static inline void amd_pstate_boost_up (struct amd_cpudata *cpudata) { +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u32 max_limit = (hwp_req &0xff ); +u32 min_limit = (hwp_req &0xff00 ) >>8 ; +u32 boost_level1;drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ +/* If max and min are equal or already at max, nothing to boost */ +if (max_limit == min_limit) +return ; + +/* Set boost max and min to initial value */ +if (!cpudata->cppc_boost_min) + cpudata->cppc_boost_min = min_limit; + + boost_level1 = ((AMD_CPPC_NOMINAL_PERF(hwp_cap) +
min_limit) >> 1);drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +4
-0+ +if (cpudata->cppc_boost_min < boost_level1) + cpudata->cppc_boost_min = boost_level1; + else if (cpudata->cppc_boost_min <
AMD_CPPC_NOMINAL_PERF(hwp_cap))drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 983
Quoted 1 line
drivers/cpufreq/amd-pstate.c +1
-0+ cpudata->cppc_boost_min =
AMD_CPPC_NOMINAL_PERF(hwp_cap);drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 984
Quoted 1 line
drivers/cpufreq/amd-pstate.c +1
-0+ else if (cpudata->cppc_boost_min ==
AMD_CPPC_NOMINAL_PERF(hwp_cap))Quoted 21 lines
drivers/cpufreq/amd-pstate.c +15
-0+ cpudata->cppc_boost_min = max_limit; + else + return; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (cpudata->cppc_boost_min); +wrmsrl (MSR_AMD_CPPC_REQ , hwp_req); + cpudata->last_update = cpudata->sample.time; } + +static inline void amd_pstate_boost_down (struct amd_cpudata *cpudata) +{ +bool expired; + +if (cpudata->cppc_boost_min) { + expired = time_after64(cpudata->sample.time, cpudata-
last_update+drivers/cpufreq/amd-pstate.c +4
-0+ cppc_boost_hold_time_ns); + +if (expired) { + wrmsrl(MSR_AMD_CPPC_REQ, cpudata-
cppc_req_cached);drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 7 lines
drivers/cpufreq/amd-pstate.c +7
-0+ cpudata->cppc_boost_min =0 ; + } + } + + cpudata->last_update = cpudata->sample.time; } + +static inline void amd_pstate_boost_update_util(struct amd_cpudata*cpudata,
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +9
-0+ u64 time) +{ + cpudata->sample.time = time; +if (smp_processor_id () != cpudata->cpu) +return ; + +if (cpudata->sched_flags &SCHED_CPUFREQ_IOWAIT ) { +bool do_io = false; +drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ cpudata->sched_flags =0 ; +/* +* Set iowait_boost flag and update time. Since IO WAIT flag +* is set all the time, we can't just conclude that there is +* some IO bound activity is scheduled on this CPU with just +* one occurrence. If we receive at least two in two +* consecutive ticks, then we treat as boost candidate. +* This is leveraged from Intel Pstate driver. +*/ + if (time_before64(time, cpudata->last_io_update + 2 *
TICK_NSEC))drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 13 lines
drivers/cpufreq/amd-pstate.c +13
-0+ do_io = true; + + cpudata->last_io_update = time; + +if (do_io) +amd_pstate_boost_up (cpudata); + + }else { +amd_pstate_boost_down (cpudata); + } +} + +static inline void amd_pstate_cppc_update_hook(struct update_util_data*data,
Quoted 26 lines
drivers/cpufreq/amd-pstate.c +26
-0+ u64 time, unsigned int flags) +{ +struct amd_cpudata *cpudata =container_of (data, + struct amd_cpudata, update_util); + + cpudata->sched_flags |= flags; + +if (smp_processor_id () == cpudata->cpu) +amd_pstate_boost_update_util (cpudata, time); } + +static void amd_pstate_clear_update_util_hook (unsigned int cpu) { +struct amd_cpudata *cpudata = all_cpu_data[cpu]; + +if (!cpudata->update_util_set) +return ; + +cpufreq_remove_update_util_hook (cpu); + cpudata->update_util_set = false; +synchronize_rcu (); +} + +static void amd_pstate_set_update_util_hook (unsigned int cpu_num) { +struct amd_cpudata *cpudata = all_cpu_data[cpu_num]; + +if (!cppc_boost) { +if (cpudata->update_util_set)drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 1095
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+amd_pstate_clear_update_util_hook (cpudata->cpu); +return ; + } + +if (cpudata->update_util_set) +return ; + + cpudata->sample.time =0 ; + cpufreq_add_update_util_hook(cpu_num, &cpudata->update_util, +amd_pstate_cppc_update_hook);Quoted 80 lines
drivers/cpufreq/amd-pstate.c +80
-0+ cpudata->update_util_set = true; +} + +static void amd_pstate_epp_init (unsigned int cpu) { +struct amd_cpudata *cpudata = all_cpu_data[cpu]; +u32 max_perf, min_perf; +u64 value; +s16 epp; +int ret; + + max_perf =READ_ONCE (cpudata->highest_perf); + min_perf =READ_ONCE (cpudata->lowest_perf); + + value =READ_ONCE (cpudata->cppc_req_cached); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) + min_perf = max_perf; + +/* Initial min/max values for CPPC Performance Controls Register */ + value &= ~AMD_CPPC_MIN_PERF (~0L ); + value |=AMD_CPPC_MIN_PERF (min_perf); + + value &= ~AMD_CPPC_MAX_PERF (~0L ); + value |=AMD_CPPC_MAX_PERF (max_perf); + +/* CPPC EPP feature require to set zero to the desire perf bit */ + value &= ~AMD_CPPC_DES_PERF (~0L ); + value |=AMD_CPPC_DES_PERF (0 ); + +if (cpudata->epp_policy == cpudata->policy) + goto skip_epp; + + cpudata->epp_policy = cpudata->policy; + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { + epp =amd_pstate_get_epp (cpudata, value); + cpudata->epp_powersave = epp; +if (epp <0 ) + goto skip_epp; +/* force the epp value to be zero for performance policy */ + epp =0 ; + }else { +if (cpudata->epp_powersave <0 ) + goto skip_epp; +/* Get BIOS pre-defined epp value */ + epp =amd_pstate_get_epp (cpudata, value); +if (epp) + goto skip_epp; + epp = cpudata->epp_powersave; + } +/* Set initial EPP value */ +if (boot_cpu_has (X86_FEATURE_CPPC )) { + value &= ~GENMASK_ULL (31 ,24 ); + value |= (u64 )epp <<24 ; + } + +skip_epp: +WRITE_ONCE (cpudata->cppc_req_cached, value); + ret =wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); +if (!ret) + cpudata->epp_cached = epp; +} + +static void amd_pstate_set_max_limits (struct amd_cpudata *cpudata) { +u64 hwp_cap =READ_ONCE (cpudata->cppc_cap1_cached); +u64 hwp_req =READ_ONCE (cpudata->cppc_req_cached); +u32 max_limit = (hwp_cap >>24 ) &0xff ; + + hwp_req &= ~AMD_CPPC_MIN_PERF (~0L ); + hwp_req |=AMD_CPPC_MIN_PERF (max_limit); +wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , hwp_req); } + +static int amd_pstate_epp_set_policy (struct cpufreq_policy *policy) { +struct amd_cpudata *cpudata; + +if (!policy->cpuinfo.max_freq) +return -ENODEV ; + +pr_debug ("set_policy: cpuinfo.max %u policy->max %u\n" , + policy->cpuinfo.max_freq, policy->max);
Quoted 8 lines
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 1181
Quoted 5 lines
drivers/cpufreq/amd-pstate.c +5
-0+ + cpudata = all_cpu_data[policy->cpu]; + cpudata->policy = policy->policy; + +if (boot_cpu_has (X86_FEATURE_CPPC )) {
X86_FEATURE_CPPCindicated the MSR support, but I believe the share memory CPU also has the EPP, right?
Yes, the shared memory system which are using below preferred profile will add the util hook with another patchset. Current I would like to add this to MSR systems in this patchset as tight schedule.
if (acpi_gbl_FADT.preferred_profile == PM_ENTERPRISE_SERVER ||
acpi_gbl_FADT.preferred_profile == PM_PERFORMANCE_SERVER)Quoted 10 lines
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 1188
Quoted 8 lines
drivers/cpufreq/amd-pstate.c +7
-0+mutex_lock (&amd_pstate_limits_lock); + +if (cpudata->policy ==CPUFREQ_POLICY_PERFORMANCE ) { +amd_pstate_clear_update_util_hook (policy->cpu); +amd_pstate_set_max_limits (cpudata); + }else { +amd_pstate_set_update_util_hook (policy->cpu);May I know why amd processors also needs to set and update util hook?
Like intel already implemented this scheduler hook, it helps to improve the I/O performance, it is not enabled by default for Client CPU.
Quoted 8 lines
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 899
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +3
-0+ } + +if (boot_cpu_has (X86_FEATURE_CPPC ))I am confused why if (
boot_cpu_has(X86_FEATURE_CPPC)is still inside of a if (boot_cpu_has(X86_FEATURE_CPPC)).
Fixed in V7.
Quoted 172 lines
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = { · line 1201
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+amd_pstate_epp_init (policy->cpu); + +mutex_unlock (&amd_pstate_limits_lock); + } + +return 0 ; +} + +static void amd_pstate_verify_cpu_policy (struct amd_cpudata *cpudata, +struct cpufreq_policy_data *policy){
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +8
-0+update_boost_state (); +cpufreq_verify_within_cpu_limits (policy); +} + +static int amd_pstate_epp_verify_policy (struct cpufreq_policy_data +*policy) { +amd_pstate_verify_cpu_policy (all_cpu_data[policy->cpu], policy); + pr_debug("policy_max =%d, policy_min=%d\n", policy->max, policy-min);
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_attr[] = {
Quoted 5 lines
drivers/cpufreq/amd-pstate.c +3
-0+return 0 ; +} +static struct cpufreq_driver amd_pstate_driver = { .flags = CPUFREQ_CONST_LOOPS |
CPUFREQ_NEED_UPDATE_LIMITS,drivers/cpufreq/amd-pstate.c static struct cpufreq_driver amd_pstate_driver =
Quoted 2 lines
drivers/cpufreq/amd-pstate.c +0
-0.verify = amd_pstate_verify,@@ -616,8 +1224,20 @@ static struct cpufreq_driver amd_pstate_driver ={
Quoted 9 lines
drivers/cpufreq/amd-pstate.c +6
-0.attr = amd_pstate_attr, }; +static struct cpufreq_driver amd_pstate_epp_driver = { + .flags =CPUFREQ_CONST_LOOPS , + .verify = amd_pstate_epp_verify_policy, + .setpolicy = amd_pstate_epp_set_policy, + .init = amd_pstate_epp_cpu_init, + .exit = amd_pstate_epp_cpu_exit,drivers/cpufreq/amd-pstate.c static struct cpufreq_driver amd_pstate_driver = {
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +6
-0+ .update_limits = amd_pstate_epp_update_limits, + .name = "amd_pstate_epp", + .attr = amd_pstate_epp_attr, +}; +static int __init amd_pstate_init (void ) { +static struct amd_cpudata **cpudata;int ret; if (boot_cpu_data.x86_vendor != X86_VENDOR_AMD) @@ -644,7+1264,8 @@
drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void)
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +0
-0static int __init amd_pstate_init (void )drivers/cpufreq/amd-pstate.c +0
-0/* capability check */ if (boot_cpu_has (X86_FEATURE_CPPC )) { pr_debug("AMD CPPC MSR based functionality issupported\n");
drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void)
Quoted 3 lines
drivers/cpufreq/amd-pstate.c +2
-1- amd_pstate_driver.adjust_perf = amd_pstate_adjust_perf; +if (!cppc_active) + default_pstate_driver->adjust_perf =
amd_pstate_adjust_perf;drivers/cpufreq/amd-pstate.c
Quoted 2 lines
drivers/cpufreq/amd-pstate.c +0
-0}else { pr_debug("AMD CPPC shared memory based functionality issupported\n");
Quoted 1 line
static_call_update(amd_pstate_enable, cppc_enable); @@ -652,6
Quoted 2 lines
+1273,10 @@ static int
__initamd_pstate_init(void)
static_call_update(amd_pstate_update_perf,
cppc_update_perf);Quoted 10 lines
drivers/cpufreq/amd-pstate.c +4
-0} + cpudata =vzalloc (array_size (sizeof (void *),num_possible_cpus ())); +if (!cpudata) +return -ENOMEM ; +WRITE_ONCE (all_cpu_data, cpudata);/* enable amd pstate feature */ ret =amd_pstate_enable (true);if (ret) {drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void) · line 664
Quoted 7 lines
drivers/cpufreq/amd-pstate.c +1
-2@@ -659,9 +1284,9 @@ static int __init amd_pstate_init(void)return ret; } - ret =cpufreq_register_driver (&amd_pstate_driver); + ret =cpufreq_register_driver (default_pstate_driver);if (ret) - pr_err("failed to register amd_pstate_driver withreturn %d\n",
drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void) · line 1289
Quoted 1 line
drivers/cpufreq/amd-pstate.c +1
-0+ pr_err("failed to register amd pstate driver withreturn %d\n",
Quoted 41 lines
drivers/cpufreq/amd-pstate.c +7
-1ret);return ret;@@ -676,8 +1301,14 @@ static int __init amd_pstate_param(char *str)if (!strcmp (str,"disable" )) { cppc_load =0 ;pr_info ("driver is explicitly disabled\n" ); - }else if (!strcmp (str,"passive" )) + }else if (!strcmp (str,"passive" )) { cppc_load =1 ; + default_pstate_driver = &amd_pstate_driver; + }else if (!strcmp (str,"active" )) { + cppc_active =1 ; + cppc_load =1 ; + default_pstate_driver = &amd_pstate_epp_driver; + }return 0 ; }include/linux/amd-pstate.h +1
-0@@ -25,6 +25,7 @@ struct amd_aperf_mperf {u64 aperf;u64 mperf;u64 tsc; +u64 time; };/** @@ -47,6 +48,18 @@ struct amd_aperf_mperf {* @prev: Last Aperf/Mperf/tsc count value read from register * @freq: current cpu frequency value * @boost_supported: check whether the Processor or SBIOS supports boost mode
+ * @epp_powersave: Last saved CPPC energy performance preferenceinclude/linux/amd-pstate.h +4
-0+ when policy switched to performance + * @epp_policy: Last saved policy used to set energy-performance +preference + * @epp_cached: Cached CPPC energy-performance preference valueinclude/linux/amd-pstate.h struct amd_aperf_mperf {
Quoted 10 lines
include/linux/amd-pstate.h +8
-0+* @policy: Cpufreq policy value +* @sched_flags: Store scheduler flags for possible cross CPU update +* @update_util_set: CPUFreq utility callback is set +* @last_update: Time stamp of the last performance state update +* @cppc_boost_min: Last CPPC boosted min performance state +* @cppc_cap1_cached: Cached value of the last CPPC Capabilities MSR +* @update_util: Cpufreq utility callback information +* @sample: the stored performance sample * * The amd_cpudata is key private data for each CPU thread in AMD P- State, and
Quoted 1 line
* represents all the attributes and goals that AMD P-State requests at
runtime.
Quoted 32 lines
include/linux/amd-pstate.h +22
-1@@ -72,6 +85,28 @@ struct amd_cpudata {u64 freq;bool boost_supported; + +/* EPP feature related attributes*/ +s16 epp_powersave; +s16 epp_policy; +s16 epp_cached; +u32 policy; +u32 sched_flags; +bool update_util_set; +u64 last_update; +u64 last_io_update; +u32 cppc_boost_min; +u64 cppc_cap1_cached; +struct update_util_data update_util; + struct amd_aperf_mperf sample; +}; + +/** +* struct amd_pstate_params - global parameters for the performance +control +* @ cppc_boost_disabled wheher the core performance boost disabled +*/ struct amd_pstate_params { +bool cppc_boost_disabled; };#endif /* _LINUX_AMD_PSTATE_H */ --2.34.1
Perry Yuan
reviewerPATCH v6 5/11 cpufreq: amd_pstate: implement amd pstate cpu online and offline callback
In reply to Perry YuanFrom: Perry Yuan <[email protected]>
Adds online and offline driver callback support to allow cpu cores go offline and help to restore the previous working states when core goes back online later for EPP driver mode.
--- drivers/cpufreq/amd-pstate.c | 89 ++++++++++++++++++++++++++++++++++++ include/linux/amd-pstate.h | 1 + 2 files changed, 90 insertions(+)
drivers/cpufreq/amd-pstate.c +89 -0
@@ -1197,6 +1197,93 @@ static int amd_pstate_epp_set_policy(struct cpufreq_policy *policy)return 0 ; } +static void amd_pstate_epp_reenable (struct amd_cpudata *cpudata) +{ +struct cppc_perf_ctrls perf_ctrls; +u64 value, max_perf; +int ret; + + ret =amd_pstate_enable (true); +if (ret) +pr_err ("failed to enable amd pstate during resume, return %d\n" , ret); + + value =READ_ONCE (cpudata->cppc_req_cached); + max_perf =READ_ONCE (cpudata->highest_perf); + +if (boot_cpu_has (X86_FEATURE_CPPC )) { +wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); + }else { + perf_ctrls.max_perf = max_perf; + perf_ctrls.energy_perf =AMD_CPPC_ENERGY_PERF_PREF (cpudata->epp_cached); +cppc_set_perf (cpudata->cpu, &perf_ctrls); + } +} + +static int amd_pstate_epp_cpu_online (struct cpufreq_policy *policy) +{ +struct amd_cpudata *cpudata = all_cpu_data[policy->cpu]; + +pr_debug ("AMD CPU Core %d going online\n" , cpudata->cpu); + +if (cppc_active) { +amd_pstate_epp_reenable (cpudata); + cpudata->suspended = false; + } + +return 0 ; +} + +static void amd_pstate_epp_offline (struct cpufreq_policy *policy) +{ +struct amd_cpudata *cpudata = all_cpu_data[policy->cpu]; +struct cppc_perf_ctrls perf_ctrls; +int min_perf; +u64 value; + + min_perf =READ_ONCE (cpudata->lowest_perf); + value =READ_ONCE (cpudata->cppc_req_cached); + +mutex_lock (&amd_pstate_limits_lock); +if (boot_cpu_has (X86_FEATURE_CPPC )) { + cpudata->epp_policy =CPUFREQ_POLICY_UNKNOWN ; + +/* Set max perf same as min perf */ + value &= ~AMD_CPPC_MAX_PERF (~0L ); + value |=AMD_CPPC_MAX_PERF (min_perf); + value &= ~AMD_CPPC_MIN_PERF (~0L ); + value |=AMD_CPPC_MIN_PERF (min_perf); +wrmsrl_on_cpu (cpudata->cpu,MSR_AMD_CPPC_REQ , value); + }else { + perf_ctrls.desired_perf =0 ; + perf_ctrls.max_perf = min_perf; + perf_ctrls.energy_perf =AMD_CPPC_ENERGY_PERF_PREF (HWP_EPP_POWERSAVE ); +cppc_set_perf (cpudata->cpu, &perf_ctrls); + } +mutex_unlock (&amd_pstate_limits_lock); +} + +static int amd_pstate_cpu_offline (struct cpufreq_policy *policy) +{ +struct amd_cpudata *cpudata = all_cpu_data[policy->cpu]; + +pr_debug ("AMD CPU Core %d going offline\n" , cpudata->cpu); + +if (cpudata->suspended) +return 0 ; + +if (cppc_active) +amd_pstate_epp_offline (policy); + +return 0 ; +} + +static int amd_pstate_epp_cpu_offline (struct cpufreq_policy *policy) +{ +amd_pstate_clear_update_util_hook (policy->cpu); + +return amd_pstate_cpu_offline (policy); +} +static void amd_pstate_verify_cpu_policy (struct amd_cpudata *cpudata,struct cpufreq_policy_data *policy) {
@@ -1231,6 +1318,8 @@ static struct cpufreq_driver amd_pstate_epp_driver = { .init = amd_pstate_epp_cpu_init, .exit = amd_pstate_epp_cpu_exit, .update_limits = amd_pstate_epp_update_limits, + .offline = amd_pstate_epp_cpu_offline, + .online = amd_pstate_epp_cpu_online, .name = "amd_pstate_epp", .attr = amd_pstate_epp_attr, };
include/linux/amd-pstate.h +1 -0
@@ -99,6 +99,7 @@ struct amd_cpudata {u64 cppc_cap1_cached;struct update_util_data update_util;struct amd_aperf_mperf sample; +bool suspended; };/**
Signature · 1 line
2.34.1
Perry Yuan
reviewerPATCH v6 6/11 cpufreq: amd-pstate: implement suspend and resume callbacks
In reply to Perry YuanFrom: Perry Yuan <[email protected]>
add suspend and resume support for the AMD processors by amd_pstate_epp driver instance.
When the CPPC is suspended, EPP driver will set EPP profile to 'power' profile and set max/min perf to lowest perf value.
When resume happens, it will restore the MSR registers with previous cached value.
--- drivers/cpufreq/amd-pstate.c | 40 ++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+)
drivers/cpufreq/amd-pstate.c +40 -0
@@ -1284,6 +1284,44 @@ static int amd_pstate_epp_cpu_offline(struct cpufreq_policy *policy)return amd_pstate_cpu_offline (policy); } +static int amd_pstate_epp_suspend (struct cpufreq_policy *policy) +{ +struct amd_cpudata *cpudata = all_cpu_data[policy->cpu]; +int ret; + +/* avoid suspending when EPP is not enabled */ +if (!cppc_active) +return 0 ; + +/* set this flag to avoid setting core offline*/ + cpudata->suspended = true; + +/* disable CPPC in lowlevel firmware */ + ret =amd_pstate_enable (false); +if (ret) +pr_err ("failed to suspend, return %d\n" , ret); + +return 0 ; +} + +static int amd_pstate_epp_resume (struct cpufreq_policy *policy) +{ +struct amd_cpudata *cpudata = all_cpu_data[policy->cpu]; + +if (cpudata->suspended) { +mutex_lock (&amd_pstate_limits_lock); + +/* enable amd pstate from suspend state*/ +amd_pstate_epp_reenable (cpudata); + +mutex_unlock (&amd_pstate_limits_lock); + + cpudata->suspended = false; + } + +return 0 ; +} +static void amd_pstate_verify_cpu_policy (struct amd_cpudata *cpudata,struct cpufreq_policy_data *policy) {
@@ -1320,6 +1358,8 @@ static struct cpufreq_driver amd_pstate_epp_driver = { .update_limits = amd_pstate_epp_update_limits, .offline = amd_pstate_epp_cpu_offline, .online = amd_pstate_epp_cpu_online, + .suspend = amd_pstate_epp_suspend, + .resume = amd_pstate_epp_resume, .name = "amd_pstate_epp", .attr = amd_pstate_epp_attr, };
Signature · 1 line
2.34.1
Perry Yuan
reviewerPATCH v6 7/11 cpufreq: amd-pstate: add frequency dynamic boost sysfs control
In reply to Perry YuanFrom: Perry Yuan <[email protected]>
Add one sysfs entry to control the CPU cores frequency boost state The attribute file can allow user to set max performance boosted or keeping at normal perf level.
--- drivers/cpufreq/amd-pstate.c | 66 ++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 2 deletions(-)
drivers/cpufreq/amd-pstate.c +64 -2
@@ -774,12 +774,46 @@ static ssize_t show_energy_performance_preference(return sysfs_emit (buf,"%s\n" , energy_perf_strings[preference]); } +static void amd_pstate_update_policies (void ) +{ +int cpu; + +for_each_possible_cpu (cpu) +cpufreq_update_policy (cpu); +} + +static ssize_t show_boost (struct kobject *kobj, +struct kobj_attribute *attr,char *buf) +{ +return sysfs_emit (buf,"%u\n" , cppc_boost); +} + +static ssize_t store_boost (struct kobject *a, +struct kobj_attribute *b, +const char *buf,size_t count) +{ +bool new_state; +int ret; + + ret =kstrtobool (buf, &new_state); +if (ret) +return -EINVAL ; + +mutex_lock (&amd_pstate_driver_lock); + cppc_boost = !!new_state; +amd_pstate_update_policies (); +mutex_unlock (&amd_pstate_driver_lock); + +return count; +} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);cpufreq_freq_attr_ro (amd_pstate_highest_perf);cpufreq_freq_attr_rw (energy_performance_preference);cpufreq_freq_attr_ro (energy_performance_available_preferences); +define_one_global_rw (boost);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,
@@ -797,6 +831,15 @@ static struct freq_attr *amd_pstate_epp_attr[] = { NULL, }; +static struct attribute *pstate_global_attributes[] = { + &boost.attr, +NULL +}; + +static const struct attribute_group amd_pstate_global_attr_group = { + .attrs = pstate_global_attributes, +}; +static inline void update_boost_state (void ) {u64 misc_en;
@@ -1415,9 +1458,28 @@ static int __init amd_pstate_init(void) ret =cpufreq_register_driver (default_pstate_driver);if (ret) -pr_err ("failed to register amd pstate driver with return %d\n" , - ret); +pr_err ("failed to register driver with return %d\n" , ret); + + amd_pstate_kobj =kobject_create_and_add ("amd-pstate" , &cpu_subsys.dev_root->kobj); +if (!amd_pstate_kobj) { + ret = -EINVAL ; +pr_err ("global sysfs registration failed.\n" ); + goto kobject_free; + } + + ret =sysfs_create_group (amd_pstate_kobj, &amd_pstate_global_attr_group); +if (ret) { +pr_err ("sysfs attribute export failed with error %d.\n" , ret); + goto global_attr_free; + } + +return ret; +global_attr_free: +kobject_put (amd_pstate_kobj); +kobject_free: +kfree (cpudata); +cpufreq_unregister_driver (default_pstate_driver);return ret; }device_initcall (amd_pstate_init);
Signature · 1 line
2.34.1
Limonciello, Mario
maintainerRe: [PATCH v6 07/11] cpufreq: amd-pstate: add frequency dynamic boost sysfs control
Quoted 63 lines · Perry Yuan
From: Perry Yuan <[email protected]>
Add one sysfs entry to control the CPU cores frequency boost state The attribute file can allow user to set max performance boosted or keeping at normal perf level.
Signed-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/amd-pstate.c | 66 ++++++++++++++++++++++++++++++++++-- 1 file changed, 64 insertions(+), 2 deletions(-)drivers/cpufreq/amd-pstate.c +34
-0@@ -774,12 +774,46 @@ static ssize_t show_energy_performance_preference(return sysfs_emit (buf,"%s\n" , energy_perf_strings[preference]); } +static void amd_pstate_update_policies (void ) +{ +int cpu; + +for_each_possible_cpu (cpu) +cpufreq_update_policy (cpu); +} + +static ssize_t show_boost (struct kobject *kobj, +struct kobj_attribute *attr,char *buf) +{ +return sysfs_emit (buf,"%u\n" , cppc_boost); +} + +static ssize_t store_boost (struct kobject *a, +struct kobj_attribute *b, +const char *buf,size_t count) +{ +bool new_state; +int ret; + + ret =kstrtobool (buf, &new_state); +if (ret) +return -EINVAL ; + +mutex_lock (&amd_pstate_driver_lock); + cppc_boost = !!new_state; +amd_pstate_update_policies (); +mutex_unlock (&amd_pstate_driver_lock); + +return count; +} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);cpufreq_freq_attr_ro (amd_pstate_highest_perf);cpufreq_freq_attr_rw (energy_performance_preference);cpufreq_freq_attr_ro (energy_performance_available_preferences); +define_one_global_rw (boost);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_epp_attr[] = { · line 835
Quoted 5 lines
drivers/cpufreq/amd-pstate.c +2
-0@@ -797,6 +831,15 @@ static struct freq_attr *amd_pstate_epp_attr[] = { NULL, }; +static struct attribute *pstate_global_attributes[] = { + &boost.attr,
Make sure you update the documentation for the new sysfs attribute.
Quoted 41 lines
drivers/cpufreq/amd-pstate.c +28
-2+ NULL +}; + +static const struct attribute_group amd_pstate_global_attr_group = { + .attrs = pstate_global_attributes, +}; +static inline void update_boost_state (void ) {u64 misc_en;@@ -1415,9 +1458,28 @@ static int __init amd_pstate_init(void) ret =cpufreq_register_driver (default_pstate_driver);if (ret) -pr_err ("failed to register amd pstate driver with return %d\n" , - ret); +pr_err ("failed to register driver with return %d\n" , ret); + + amd_pstate_kobj =kobject_create_and_add ("amd-pstate" , &cpu_subsys.dev_root->kobj); +if (!amd_pstate_kobj) { + ret = -EINVAL ; +pr_err ("global sysfs registration failed.\n" ); + goto kobject_free; + } + + ret =sysfs_create_group (amd_pstate_kobj, &amd_pstate_global_attr_group); +if (ret) { +pr_err ("sysfs attribute export failed with error %d.\n" , ret); + goto global_attr_free; + } + +return ret; +global_attr_free: +kobject_put (amd_pstate_kobj); +kobject_free: +kfree (cpudata); +cpufreq_unregister_driver (default_pstate_driver);return ret; }device_initcall (amd_pstate_init);
Yuan, Perry
reviewerRE: [PATCH v6 07/11] cpufreq: amd-pstate: add frequency dynamic boost sysfs control
[AMD Official Use Only - General]
Quoted 80 lines
-----Original Message-----
From: Limonciello, Mario <[email protected]>
Sent: Saturday, December 3, 2022 12:00 AM
To: Yuan, Perry <[email protected]>; [email protected]; Huang, Ray <[email protected]>; [email protected]
Cc: Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH v6 07/11] cpufreq: amd-pstate: add frequency dynamic boost sysfs controlQuoted 9 lines · Perry Yuan
From: Perry Yuan <[email protected]>
Add one sysfs entry to control the CPU cores frequency boost state The attribute file can allow user to set max performance boosted or keeping at normal perf level.
Signed-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/amd-pstate.c | 66++++++++++++++++++++++++++++++++++--
Quoted 4 lines
1 file changed, 64 insertions(+), 2 deletions(-)(quoted diff) +0
-0
b/drivers/cpufreq/amd-pstate.cindexb3a82cee2e83..6936df6e8642100644
drivers/cpufreq/amd-pstate.c static ssize_t
Quoted 3 lines
drivers/cpufreq/amd-pstate.c +0
-0@@ -774,12 +774,46 @@ static ssize_tshow_energy_performance_preference(
Quoted 46 lines
drivers/cpufreq/amd-pstate.c +30
-0return sysfs_emit (buf,"%s\n" , energy_perf_strings[preference]); } +static void amd_pstate_update_policies (void ) { +int cpu; + +for_each_possible_cpu (cpu) +cpufreq_update_policy (cpu); +} + +static ssize_t show_boost (struct kobject *kobj, +struct kobj_attribute *attr,char *buf) { +return sysfs_emit (buf,"%u\n" , cppc_boost); } + +static ssize_t store_boost (struct kobject *a, +struct kobj_attribute *b, +const char *buf,size_t count) { +bool new_state; +int ret; + + ret =kstrtobool (buf, &new_state); +if (ret) +return -EINVAL ; + +mutex_lock (&amd_pstate_driver_lock); + cppc_boost = !!new_state; +amd_pstate_update_policies (); +mutex_unlock (&amd_pstate_driver_lock); + +return count; +} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);cpufreq_freq_attr_ro (amd_pstate_highest_perf);cpufreq_freq_attr_rw (energy_performance_preference);cpufreq_freq_attr_ro (energy_performance_available_preferences); +define_one_global_rw (boost);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,@@ -797,6 +831,15 @@ static struct freq_attr *amd_pstate_epp_attr[] = { NULL, };
Quoted 5 lines
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_epp_attr[] = { · line 835
Quoted 2 lines
drivers/cpufreq/amd-pstate.c +2
-0+static struct attribute *pstate_global_attributes[] = { + &boost.attr,Make sure you update the documentation for the new sysfs attribute.
Indeed , I missed to update the sysfs docs for this . Will update kernel doc in V7 soon.
Perry.
Quoted 44 lines
Quoted 11 lines
drivers/cpufreq/amd-pstate.c +7
-0+ NULL +}; + +static const struct attribute_group amd_pstate_global_attr_group = { + .attrs = pstate_global_attributes, +}; +static inline void update_boost_state (void ) {u64 misc_en;drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void) · line 1418
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +0
-1@@ -1415,9 +1458,28 @@ static int __init amd_pstate_init(void) ret =cpufreq_register_driver (default_pstate_driver);if (ret) - pr_err("failed to register amd pstate driver withreturn %d\n",
drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void)
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +3
-1- ret); +pr_err ("failed to register driver with return %d\n" , ret); + + amd_pstate_kobj = kobject_create_and_add("amd-pstate",
&cpu_subsys.dev_root->kobj);drivers/cpufreq/amd-pstate.c static int __init amd_pstate_init(void)
Quoted 7 lines
drivers/cpufreq/amd-pstate.c +7
-0+if (!amd_pstate_kobj) { + ret = -EINVAL ; +pr_err ("global sysfs registration failed.\n" ); + goto kobject_free; + } + + ret = sysfs_create_group(amd_pstate_kobj,
&amd_pstate_global_attr_group);Quoted 15 lines
drivers/cpufreq/amd-pstate.c +11
-0+if (ret) { +pr_err ("sysfs attribute export failed with error %d.\n" , ret); + goto global_attr_free; + } + +return ret; +global_attr_free: +kobject_put (amd_pstate_kobj); +kobject_free: +kfree (cpudata); +cpufreq_unregister_driver (default_pstate_driver);return ret; }device_initcall (amd_pstate_init);
Perry Yuan
reviewerPATCH v6 8/11 cpufreq: amd_pstate: add driver working mode status sysfs entry
In reply to Perry YuanFrom: Perry Yuan <[email protected]>
While amd-pstate driver was loaded with specific driver mode, it will need to check which mode is enabled for the pstate driver,add this sysfs entry to show the current status
$ cat /sys/devices/system/cpu/amd-pstate/status active
--- drivers/cpufreq/amd-pstate.c | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)
drivers/cpufreq/amd-pstate.c +44 -0
@@ -66,6 +66,8 @@ static bool cppc_active;static int cppc_load__initdata ;static struct cpufreq_driver *default_pstate_driver; +static struct cpufreq_driver amd_pstate_epp_driver; +static struct cpufreq_driver amd_pstate_driver;static struct amd_cpudata **all_cpu_data;static struct amd_pstate_params global_params;
@@ -807,6 +809,46 @@ static ssize_t store_boost(struct kobject *a,return count; } +static ssize_t amd_pstate_show_status (char *buf) +{ +if (!default_pstate_driver) +return sysfs_emit (buf,"off\n" ); + +return sysfs_emit (buf,"%s\n" , default_pstate_driver == &amd_pstate_epp_driver ? +"active" :"passive" ); +} + +static int amd_pstate_update_status (const char *buf,size_t size) +{ +/* FIXME! */ +return -EOPNOTSUPP ; +} + +static ssize_t show_status (struct kobject *kobj, +struct kobj_attribute *attr,char *buf) +{ +ssize_t ret; + +mutex_lock (&amd_pstate_driver_lock); + ret =amd_pstate_show_status (buf); +mutex_unlock (&amd_pstate_driver_lock); + +return ret; +} + +static ssize_t store_status (struct kobject *a,struct kobj_attribute *b, +const char *buf,size_t count) +{ +char *p =memchr (buf,'\n' , count); +int ret; + +mutex_lock (&amd_pstate_driver_lock); + ret =amd_pstate_update_status (buf, p ? p - buf : count); +mutex_unlock (&amd_pstate_driver_lock); + +return ret <0 ? ret : count; +} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);
@@ -814,6 +856,7 @@ cpufreq_freq_attr_ro(amd_pstate_highest_perf);cpufreq_freq_attr_rw (energy_performance_preference);cpufreq_freq_attr_ro (energy_performance_available_preferences);define_one_global_rw (boost); +define_one_global_rw (status);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,
@@ -833,6 +876,7 @@ static struct freq_attr *amd_pstate_epp_attr[] = {static struct attribute *pstate_global_attributes[] = { &boost.attr, + &status.attr,NULL };
Signature · 1 line
2.34.1
Limonciello, Mario
maintainerRe: [PATCH v6 08/11] cpufreq: amd_pstate: add driver working mode status sysfs entry
Quoted 3 lines · Perry Yuan
From: Perry Yuan <[email protected]>
While amd-pstate driver was loaded with specific driver mode, it will
The *driver* doesn't need to check which mode is enabled from the sysfs file, but userspace may want to check this. I think you should reword this accordingly in the commit message.
Quoted 32 lines
need to check which mode is enabled for the pstate driver,add this sysfs entry to show the current status
$ cat /sys/devices/system/cpu/amd-pstate/status activeSigned-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/amd-pstate.c | 44 ++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+)drivers/cpufreq/amd-pstate.c +6
-0@@ -66,6 +66,8 @@ static bool cppc_active;static int cppc_load__initdata ;static struct cpufreq_driver *default_pstate_driver; +static struct cpufreq_driver amd_pstate_epp_driver; +static struct cpufreq_driver amd_pstate_driver;static struct amd_cpudata **all_cpu_data;static struct amd_pstate_params global_params;@@ -807,6 +809,46 @@ static ssize_t store_boost(struct kobject *a,return count; } +static ssize_t amd_pstate_show_status (char *buf) +{ +if (!default_pstate_driver) +return sysfs_emit (buf,"off\n" );
drivers/cpufreq/amd-pstate.c static ssize_t store_boost(struct kobject *a, · line 825
Quoted 10 lines
drivers/cpufreq/amd-pstate.c +10
-0+ +return sysfs_emit (buf,"%s\n" , default_pstate_driver == &amd_pstate_epp_driver ? +"active" :"passive" ); +} + +static int amd_pstate_update_status (const char *buf,size_t size) +{ +/* FIXME! */ +return -EOPNOTSUPP ; +}
Why not just fix this as part of the series? It should be no different than unloading the driver and reloading it in the appropriate mode, right?
Is this going to be a short term FIXME/TODO or a long term? If it's long term, it might be better to just make the attribute ro and and have just the show callback. Then when you're ready to make it rw you can add the store callback, change it from ro to rw and update documentation at that time.
Quoted 38 lines
drivers/cpufreq/amd-pstate.c +27
-0+ +static ssize_t show_status (struct kobject *kobj, +struct kobj_attribute *attr,char *buf) +{ +ssize_t ret; + +mutex_lock (&amd_pstate_driver_lock); + ret =amd_pstate_show_status (buf); +mutex_unlock (&amd_pstate_driver_lock); + +return ret; +} + +static ssize_t store_status (struct kobject *a,struct kobj_attribute *b, +const char *buf,size_t count) +{ +char *p =memchr (buf,'\n' , count); +int ret; + +mutex_lock (&amd_pstate_driver_lock); + ret =amd_pstate_update_status (buf, p ? p - buf : count); +mutex_unlock (&amd_pstate_driver_lock); + +return ret <0 ? ret : count; +} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);@@ -814,6 +856,7 @@ cpufreq_freq_attr_ro(amd_pstate_highest_perf);cpufreq_freq_attr_rw (energy_performance_preference);cpufreq_freq_attr_ro (energy_performance_available_preferences);define_one_global_rw (boost); +define_one_global_rw (status);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_epp_attr[] = { · line 879
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +1
-0@@ -833,6 +876,7 @@ static struct freq_attr *amd_pstate_epp_attr[] = {static struct attribute *pstate_global_attributes[] = { &boost.attr, + &status.attr,
In the series I didn't see a matching Documentation update for the new sysfs file, can you please add one?
Quoted 3 lines
drivers/cpufreq/amd-pstate.c +0
-0NULL };
Yuan, Perry
reviewerRE: [PATCH v6 08/11] cpufreq: amd_pstate: add driver working mode status sysfs entry
[AMD Official Use Only - General]
Hi Mario.
Quoted 58 lines
-----Original Message-----
From: Limonciello, Mario <[email protected]>
Sent: Friday, December 2, 2022 11:57 PM
To: Yuan, Perry <[email protected]>; [email protected]; Huang, Ray <[email protected]>; [email protected]
Cc: Sharma, Deepak <[email protected]>; Fontenot, Nathan <[email protected]>; Deucher, Alexander <[email protected]>; Huang, Shimmer <[email protected]>; Du, Xiaojian <[email protected]>; Meng, Li (Jassmine) <[email protected]>; Karny, Wyes <[email protected]>; [email protected]; [email protected]
Subject: Re: [PATCH v6 08/11] cpufreq:amd_pstate: add driver working mode status sysfs entryQuoted 3 lines · Perry Yuan
From: Perry Yuan <[email protected]>
While amd-pstate driver was loaded with specific driver mode, it will
The *driver* doesn't need to check which mode is enabled from the sysfs file, but userspace may want to check this. I think you should reword this accordingly in the commit message.
Quoted 9 lines
need to check which mode is enabled for the pstate driver,add this sysfs entry to show the current status
$ cat /sys/devices/system/cpu/amd-pstate/status activeSigned-off-by Perry Yuan <[email protected]>--- drivers/cpufreq/amd-pstate.c | 44++++++++++++++++++++++++++++++++++++
Quoted 16 lines
1 file changed, 44 insertions(+)(quoted diff) +0
-0
b/drivers/cpufreq/amd-pstate.cindex6936df6e8642..7f748a579023100644drivers/cpufreq/amd-pstate.c +2
-0@@ -66,6 +66,8 @@ static bool cppc_active;static int cppc_load__initdata ;static struct cpufreq_driver *default_pstate_driver; +static struct cpufreq_driver amd_pstate_epp_driver;static struct +cpufreq_driver amd_pstate_driver;static struct amd_cpudata **all_cpu_data;static struct amd_pstate_params global_params;drivers/cpufreq/amd-pstate.c static ssize_t store_boost(struct kobject *a, · line 816
Quoted 8 lines
drivers/cpufreq/amd-pstate.c +5
-0@@ -807,6 +809,46 @@ static ssize_t store_boost(struct kobject *a,return count; } +static ssize_t amd_pstate_show_status (char *buf) { +if (!default_pstate_driver) +return sysfs_emit (buf,"off\n" ); + + return sysfs_emit(buf, "%s\n", default_pstate_driver ==
&amd_pstate_epp_driver?
Quoted 10 lines
drivers/cpufreq/amd-pstate.c static ssize_t store_boost(struct kobject *a, · line 825
Quoted 7 lines
drivers/cpufreq/amd-pstate.c +7
-0+ "active" : "passive"); +} + +static int amd_pstate_update_status (const char *buf,size_t size) { +/* FIXME! */ +return -EOPNOTSUPP ; +}Why not just fix this as part of the series? It should be no different than unloading the driver and reloading it in the appropriate mode, right?
There is one kernel hang issue for the amd-pstate driver when unloading it before this. I have added one fix patch for this in V7, and added the driver mode switching code as well. The driver mode can be switched now.
Perry.
Quoted 6 lines
Is this going to be a short term FIXME/TODO or a long term? If it's long term, it might be better to just make the attribute ro and and have just the show callback. Then when you're ready to make it rw you can add the store callback, change it from ro to rw and update documentation at that time.
Fixed in V7. It is working well now.
Quoted 39 lines
Quoted 39 lines
drivers/cpufreq/amd-pstate.c +27
-0+ +static ssize_t show_status (struct kobject *kobj, +struct kobj_attribute *attr,char *buf) +{ +ssize_t ret; + +mutex_lock (&amd_pstate_driver_lock); + ret =amd_pstate_show_status (buf); +mutex_unlock (&amd_pstate_driver_lock); + +return ret; +} + +static ssize_t store_status (struct kobject *a,struct kobj_attribute *b, +const char *buf,size_t count) +{ +char *p =memchr (buf,'\n' , count); +int ret; + +mutex_lock (&amd_pstate_driver_lock); + ret =amd_pstate_update_status (buf, p ? p - buf : count); +mutex_unlock (&amd_pstate_driver_lock); + +return ret <0 ? ret : count; +} +cpufreq_freq_attr_ro (amd_pstate_max_freq);cpufreq_freq_attr_ro (amd_pstate_lowest_nonlinear_freq);@@ -814,6 +856,7 @@ cpufreq_freq_attr_ro(amd_pstate_highest_perf);cpufreq_freq_attr_rw (energy_performance_preference);cpufreq_freq_attr_ro (energy_performance_available_preferences);define_one_global_rw (boost); +define_one_global_rw (status);static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq,@@ -833,6 +876,7 @@ static struct freq_attr *amd_pstate_epp_attr[] = {
Quoted 6 lines
drivers/cpufreq/amd-pstate.c static struct freq_attr *amd_pstate_epp_attr[] = { · line 879
Quoted 3 lines
drivers/cpufreq/amd-pstate.c +1
-0static struct attribute *pstate_global_attributes[] = { &boost.attr, + &status.attr,In the series I didn't see a matching Documentation update for the new sysfs file, can you please add one?
Added in V7.
Please help to take a look
Quoted 4 lines
Quoted 4 lines
drivers/cpufreq/amd-pstate.c +0
-0NULL };
Perry Yuan
reviewerPATCH v6 9/11 Documentation: amd-pstate: add amd pstate driver mode introduction
In reply to Perry YuanFrom: Perry Yuan <[email protected]>
Introduce ``amd-pstate`` CPPC has two operation modes:
* CPPC Autonomous (active) mode
* CPPC non-autonomous (passive) mode.
active mode and passive mode can be chosen by different kernel parameters.
--- Documentation/admin-guide/pm/amd-pstate.rst | 26 +++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-)
Documentation/admin-guide/pm/amd-pstate.rst +24 -2
@@ -299,8 +299,30 @@ module which supports the new AMD P-States mechanism on most of the future AMD platforms. The AMD P-States mechanism is the more performance and energy efficiency frequency management method on AMD processors. -Kernel Module Options for ``amd-pstate`` -========================================= + +AMD Pstate Driver Operation Modes +================================= + +``amd_pstate`` CPPC has two operation modes: CPPC Autonomous(active) mode and +CPPC non-autonomous(passive) mode. +active mode and passive mode can be chosen by different kernel parameters. +When in Autonomous mode, CPPC ignores requests done in the Desired Performance +Target register and takes into account only the values set to the Minimum requested +performance, Maximum requested performance, and Energy Performance Preference +registers. When Autonomous is disabled, it only considers the Desired Performance Target. + +Active Mode +------------ + +``amd_pstate=active`` + +This is the low-level firmware control mode which is implemented by ``amd_pstate_epp`` +driver with ``amd_pstate=active`` passed to the kernel in the command line. +In this mode, ``amd_pstate_epp`` driver provides a hint to the hardware if software +wants to bias toward performance (0x0) or energy efficiency (0xff) to the CPPC firmware. +then CPPC power algorithm will calculate the runtime workload and adjust the realtime +cores frequency according to the power supply and thermal, core voltage and some other +hardware conditions. Passive Mode ------------
Signature · 1 line
2.34.1
Perry Yuan
reviewerPATCH v6 10/11 Documentation: introduce amd pstate active mode kernel command line options
In reply to Perry YuanAMD Pstate driver support another firmware based autonomous mode with "amd_pstate=active" added to the kernel command line. In autonomous mode SMU firmware decides frequencies at 1 ms timescale based on workload utilization, usage in other IPs, infrastructure limits such as power, thermals and so on.
--- Documentation/admin-guide/kernel-parameters.txt | 7 +++++++ 1 file changed, 7 insertions(+)
Documentation/admin-guide/kernel-parameters.txt +7 -0
@@ -6970,3 +6970,10 @@ management firmware translates the requests into actual hardware states (core frequency, data fabric and memory clocks etc.) + active + Use amd_pstate_epp driver instance as the scaling driver, + driver provides a hint to the hardware if software wants + to bias toward performance (0x0) or energy efficiency (0xff) + to the CPPC firmware. then CPPC power algorithm will + calculate the runtime workload and adjust the realtime cores + frequency.
Signature · 1 line
2.34.1
Perry Yuan
reviewerPATCH v6 11/11 cpufreq: amd_pstate: convert sprintf with sysfs_emit()
In reply to Perry Yuanreplace the sprintf with a more generic sysfs_emit function
No potential function impact
--- drivers/cpufreq/amd-pstate.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/cpufreq/amd-pstate.c +3 -3
@@ -696,7 +696,7 @@ static ssize_t show_amd_pstate_max_freq(struct cpufreq_policy *policy,if (max_freq <0 )return max_freq; -return sprintf (&buf[0 ],"%u\n" , max_freq); +return sysfs_emit (buf,"%u\n" , max_freq); } static ssize_t show_amd_pstate_lowest_nonlinear_freq(struct cpufreq_policy *policy,
@@ -709,7 +709,7 @@ static ssize_t show_amd_pstate_lowest_nonlinear_freq(struct cpufreq_policy *poliif (freq <0 )return freq; -return sprintf (&buf[0 ],"%u\n" , freq); +return sysfs_emit (buf,"%u\n" , freq); }/*
@@ -724,7 +724,7 @@ static ssize_t show_amd_pstate_highest_perf(struct cpufreq_policy *policy, perf =READ_ONCE (cpudata->highest_perf); -return sprintf (&buf[0 ],"%u\n" , perf); +return sysfs_emit (buf,"%u\n" , perf); } static ssize_t show_energy_performance_available_preferences(
Signature · 1 line
2.34.1