[PATCH] cpufreq: amd-pstate: adjust min/max limit perf

2024-02-26 Thread Meng Li
The min/max limit perf values calculated based on frequency may exceed the reasonable range of perf(highest perf, lowest perf). Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/drivers/cpufreq/amd

[PATCH] cpufreq/amd-pstate: fix setting policy current frequency value

2024-02-26 Thread Meng Li
When scaling min/max freq values were being setted, the value of policy->cur need to update. Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 17 - 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstat

RE: [PATCH] [PATCH] amd_pstate: fix erroneous highest_perf value on some CPUs

2024-02-19 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Lucas: > -Original Message- > From: Lucas Lee Jing Yi > Sent: Monday, February 19, 2024 12:11 AM > To: raf...@kernel.org > Cc: Yuan, Perry ; Du, Xiaojian > ; Deucher, Alexander > ; b...@alien8.de; Sharma, Deepak > ; Meng, L

[RESEND PATCH] selftests/overlayfs: fix compilation error in overlayfs

2024-02-19 Thread Meng Li
/mount.h has to be included before linux/mount.h. Signed-off-by: Meng Li --- tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/filesystems/overlayfs/dev_in_maps.c b/tools/testing/selftests

RE: [PATCH V14 0/7] amd-pstate preferred core

2024-02-18 Thread Meng, Li (Jassmine)
r, Alexander > ; b...@alien8.de; Sharma, Deepak > ; Meng, Li (Jassmine) ; > linux-a...@vger.kernel.org; linux-ker...@vger.kernel.org; linux- > kselft...@vger.kernel.org; linux...@vger.kernel.org; Limonciello, Mario > ; Fontenot, Nathan > ; oleksa...@natalenko.name; > rafael.j.wyso...@i

[PATCH] Fix the warning of amd-pstate.rst.

2024-02-04 Thread Meng Li
Title under line too short Signed-off-by: Meng Li --- Documentation/admin-guide/pm/amd-pstate.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst index 0a3aa6b8ffd5..1e0d101b020a

[PATCH V14 7/7] Documentation: introduce amd-pstate preferrd core mode kernel command line options

2024-01-19 Thread Meng Li
amd-pstate driver support enable/disable preferred core. Default enabled on platforms supporting amd-pstate preferred core. Disable amd-pstate preferred core with "amd_prefcore=disable" added to the kernel command line. Signed-off-by: Meng Li Reviewed-by: Mario Limonciello Reviewe

[PATCH V14 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2024-01-19 Thread Meng Li
: Meng Li --- Documentation/admin-guide/pm/amd-pstate.rst | 59 - 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst index 9eb26014d34b..0a3aa6b8ffd5 100644 --- a/Documentation

[PATCH V14 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2024-01-19 Thread Meng Li
-by: Huang Rui Reviewed-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 52 include/linux/amd-pstate.h | 6 + 2 files changed, 58 insertions(+) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index

[PATCH V14 4/7] cpufreq: Add a notification message that the highest perf has changed

2024-01-19 Thread Meng Li
Rui Reviewed-by: Perry Yuan Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html#processor-device-notification-values --- drivers/acpi/processor_driver.c | 6 ++ include/linux/cpufreq.h | 1 + 2 files changed, 7 insertions(+) diff --git

[PATCH V14 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2024-01-19 Thread Meng Li
preferred core featue. Tested-by: Oleksandr Natalenko Reviewed-by: Huang Rui Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Co-developed-by: Perry Yuan Signed-off-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 131

[PATCH V14 2/7] ACPI: CPPC: Add get the highest performance cppc control

2024-01-19 Thread Meng Li
. Also see the Link below. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Wyes Karny Reviewed-by: Perry Yuan Acked-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html?highlight=cppc#highest

[PATCH V14 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2024-01-19 Thread Meng Li
: Meng Li Acked-by: Borislav Petkov (AMD) --- arch/x86/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 53f2e7797b1d..8dfb08ceb6ec 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1051,8 +1051,9 @@ config SCHED_MC

[PATCH V14 0/7] amd-pstate preferred core

2024-01-19 Thread Meng Li
all online CPUs - - Use a single variable to represent the status of preferred core. - Documentation: - - Default enabled preferred core. - Documentation: amd-pstate: - - Modify inappropriate descriptions. - - Default enabled preferred core. - - Use a single variable to represent the status of p

[PATCH V13 7/7] Documentation: introduce amd-pstate preferrd core mode kernel command line options

2024-01-12 Thread Meng Li
amd-pstate driver support enable/disable preferred core. Default enabled on platforms supporting amd-pstate preferred core. Disable amd-pstate preferred core with "amd_prefcore=disable" added to the kernel command line. Signed-off-by: Meng Li Reviewed-by: Mario Limonciello Reviewe

[PATCH V13 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2024-01-12 Thread Meng Li
: Meng Li --- Documentation/admin-guide/pm/amd-pstate.rst | 59 - 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst index 1cf40f69278c..0b832ff529db 100644 --- a/Documentation

[PATCH V13 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2024-01-12 Thread Meng Li
-by: Huang Rui Reviewed-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 52 include/linux/amd-pstate.h | 6 + 2 files changed, 58 insertions(+) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index

[PATCH V13 4/7] cpufreq: Add a notification message that the highest perf has changed

2024-01-12 Thread Meng Li
Rui Reviewed-by: Perry Yuan Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html#processor-device-notification-values --- drivers/acpi/processor_driver.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/acpi/processor_driver.c b

[PATCH V13 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2024-01-12 Thread Meng Li
preferred core featue. Tested-by: Oleksandr Natalenko Reviewed-by: Huang Rui Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Co-developed-by: Perry Yuan Signed-off-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 131

[PATCH V13 2/7] ACPI: CPPC: Add get the highest performance cppc control

2024-01-12 Thread Meng Li
. Also see the Link below. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Wyes Karny Reviewed-by: Perry Yuan Acked-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html?highlight=cppc#highest

[PATCH V13 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2024-01-12 Thread Meng Li
: Meng Li Acked-by: Borislav Petkov (AMD) --- arch/x86/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 1566748f16c4..4fd69cd4241a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1054,8 +1054,9 @@ config SCHED_MC

[PATCH V13 0/7] amd-pstate preferred core

2024-01-12 Thread Meng Li
- Documentation: - - Default enabled preferred core. - Documentation: amd-pstate: - - Modify inappropriate descriptions. - - Default enabled preferred core. - - Use a single variable to represent the status of preferred core. *** BLURB HERE *** Meng Li (7): x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO f

RE: [PATCH V12 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2024-01-11 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Petkov: > -Original Message- > From: Borislav Petkov > Sent: Wednesday, January 10, 2024 6:04 PM > To: Meng, Li (Jassmine) > Cc: Rafael J . Wysocki ; Huang, Ray > ; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; x..

RE: [PATCH V12 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2024-01-09 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Petkov: > -Original Message- > From: Borislav Petkov > Sent: Tuesday, January 9, 2024 6:45 PM > To: Meng, Li (Jassmine) > Cc: Rafael J . Wysocki ; Huang, Ray > ; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; x..

RE: [PATCH V12 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-12-27 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Raphael: > -Original Message- > From: Rafael J. Wysocki > Sent: Thursday, December 28, 2023 1:04 AM > To: Meng, Li (Jassmine) > Cc: Rafael J. Wysocki ; Rafael J . Wysocki > ; Huang, Ray ; linux- > p...@vger.kernel.org; linux-k

RE: [PATCH V12 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-12-26 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Rafael: > -Original Message- > From: Meng, Li (Jassmine) > Sent: Tuesday, December 26, 2023 4:27 PM > To: Rafael J. Wysocki > Cc: Rafael J . Wysocki ; Huang, Ray > ; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; x..

RE: [PATCH V12 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-12-26 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Rafael: > -Original Message- > From: Rafael J. Wysocki > Sent: Tuesday, December 12, 2023 9:44 PM > To: Meng, Li (Jassmine) > Cc: Rafael J . Wysocki ; Huang, Ray > ; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; x..

[PATCH V12 7/7] Documentation: introduce amd-pstate preferrd core mode kernel command line options

2023-12-04 Thread Meng Li
amd-pstate driver support enable/disable preferred core. Default enabled on platforms supporting amd-pstate preferred core. Disable amd-pstate preferred core with "amd_prefcore=disable" added to the kernel command line. Signed-off-by: Meng Li Reviewed-by: Mario Limonciello Reviewe

[PATCH V12 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2023-12-04 Thread Meng Li
: Meng Li --- Documentation/admin-guide/pm/amd-pstate.rst | 59 - 1 file changed, 57 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst index 1cf40f69278c..0b832ff529db 100644 --- a/Documentation

[PATCH V12 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-12-04 Thread Meng Li
-by: Huang Rui Reviewed-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 44 include/linux/amd-pstate.h | 6 + 2 files changed, 50 insertions(+) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index

[PATCH V12 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-12-04 Thread Meng Li
-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html#processor-device-notification-values --- drivers/acpi/processor_driver.c | 6 ++ drivers/cpufreq/cpufreq.c | 13 + include/linux/cpufreq.h | 5 + 3 files changed, 24

[PATCH V12 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-12-04 Thread Meng Li
preferred core featue. Tested-by: Oleksandr Natalenko Reviewed-by: Huang Rui Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Co-developed-by: Perry Yuan Signed-off-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 131

[PATCH V12 2/7] acpi: cppc: Add get the highest performance cppc control

2023-12-04 Thread Meng Li
Limonciello Reviewed-by: Wyes Karny Reviewed-by: Perry Yuan Acked-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html?highlight=cppc#highest-performance --- drivers/acpi/cppc_acpi.c | 13 + include/acpi

[PATCH V12 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2023-12-04 Thread Meng Li
: Meng Li --- arch/x86/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 3762f41bb092..3e57773f946a 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1054,8 +1054,9 @@ config SCHED_MC config SCHED_MC_PRIO bool

[PATCH V12 0/7] amd-pstate preferred core

2023-12-04 Thread Meng Li
riable to represent the status of preferred core. - Documentation: - - Default enabled preferred core. - Documentation: amd-pstate: - - Modify inappropriate descriptions. - - Default enabled preferred core. - - Use a single variable to represent the status of preferred core. Meng Li (7): x8

[PATCH V11 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2023-11-28 Thread Meng Li
Introduce amd-pstate preferred core. check preferred core state set by the kernel parameter: $ cat /sys/devices/system/cpu/amd-pstate/prefcore Tested-by: Oleksandr Natalenko Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li

[PATCH V11 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-11-28 Thread Meng Li
-by: Huang Rui Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 46 include/linux/amd-pstate.h | 6 + 2 files changed, 52 insertions(+) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index 74dcf63d75f9..88df6510dcc0

[PATCH V11 2/7] acpi: cppc: Add get the highest performance cppc control

2023-11-28 Thread Meng Li
Limonciello Reviewed-by: Wyes Karny Acked-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html?highlight=cppc#highest-performance --- drivers/acpi/cppc_acpi.c | 13 + include/acpi/cppc_acpi.h | 5 + 2 files

[PATCH V11 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-11-28 Thread Meng Li
ACPI 6.5 section 8.4.6.1.1.1 specifies that Notify event 0x85 can be emmitted to cause the the OSPM to re-evaluate the highest performance register. Add support for this event. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li Link

[PATCH V11 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2023-11-28 Thread Meng Li
amd-pstate driver also uses SCHED_MC_PRIO, so decouple the requirement of CPU_SUP_INTEL from the dependencies to allow compilation in kernels without Intel CPU support. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li --- arch/x86

[PATCH V11 0/7] amd-pstate preferred core

2023-11-28 Thread Meng Li
: - - Init the priorities of all online CPUs - - Use a single variable to represent the status of preferred core. - Documentation: - - Default enabled preferred core. - Documentation: amd-pstate: - - Modify inappropriate descriptions. - - Default enabled preferred core. - - Use a single variable to rep

RE: [PATCH V10 0/7] amd-pstate preferred core

2023-11-13 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi all: Do you have any other review comments? Hi Rafael: If there are no other issues, can you merge it to linux-next? > -Original Message- > From: Meng, Li (Jassmine) > Sent: Monday, October 30, 2023 2:34 PM > To: Rafael J . Wysocki

RE: [PATCH V10 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-11-06 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi perry: > -Original Message- > From: Yuan, Perry > Sent: Thursday, November 2, 2023 5:06 PM > To: Meng, Li (Jassmine) ; Rafael J . Wysocki > ; Huang, Ray > Cc: linux...@vger.kernel.org; linux-ker...@vger.kernel.org; > x..

[PATCH V10 7/7] Documentation: introduce amd-pstate preferrd core mode kernel command line options

2023-10-29 Thread Meng Li
amd-pstate driver support enable/disable preferred core. Default enabled on platforms supporting amd-pstate preferred core. Disable amd-pstate preferred core with "amd_prefcore=disable" added to the kernel command line. Signed-off-by: Meng Li Reviewed-by: Mario Limonciello Reviewe

[PATCH V10 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2023-10-29 Thread Meng Li
Introduce amd-pstate preferred core. check preferred core state set by the kernel parameter: $ cat /sys/devices/system/cpu/amd-pstate/prefcore Tested-by: Oleksandr Natalenko Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li

[PATCH V10 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-10-29 Thread Meng Li
-by: Huang Rui Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 46 include/linux/amd-pstate.h | 6 + 2 files changed, 52 insertions(+) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index 2033e5e70017..1be33f926678

[PATCH V10 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-10-29 Thread Meng Li
ACPI 6.5 section 8.4.6.1.1.1 specifies that Notify event 0x85 can be emmitted to cause the the OSPM to re-evaluate the highest performance register. Add support for this event. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li Link

[PATCH V10 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-29 Thread Meng Li
preferred core featue. Tested-by: Oleksandr Natalenko Reviewed-by: Huang Rui Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Co-developed-by: Perry Yuan Signed-off-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 141

[PATCH V10 2/7] acpi: cppc: Add get the highest performance cppc control

2023-10-29 Thread Meng Li
Limonciello Reviewed-by: Wyes Karny Acked-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html?highlight=cppc#highest-performance --- drivers/acpi/cppc_acpi.c | 13 + include/acpi/cppc_acpi.h | 5 + 2 files

[PATCH V10 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2023-10-29 Thread Meng Li
amd-pstate driver also uses SCHED_MC_PRIO, so decouple the requirement of CPU_SUP_INTEL from the dependencies to allow compilation in kernels without Intel CPU support. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li --- arch/x86

[PATCH V10 0/7] amd-pstate preferred core

2023-10-29 Thread Meng Li
n: - - Default enabled preferred core. - Documentation: amd-pstate: - - Modify inappropriate descriptions. - - Default enabled preferred core. - - Use a single variable to represent the status of preferred core. Meng Li (7): x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion. acpi: cppc: Add get

RE: [RESEND PATCH V9 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-17 Thread Meng, Li (Jassmine)
efcore_work); +} > -Original Message- > From: srinivas pandruvada > Sent: Tuesday, October 17, 2023 2:51 AM > To: Wysocki, Rafael J ; Peter Zijlstra > ; Meng, Li (Jassmine) > Cc: Huang, Ray ; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; x...@kernel.org;

RE: [RESEND PATCH V9 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-15 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Peter: > -Original Message- > From: Peter Zijlstra > Sent: Saturday, October 14, 2023 12:01 AM > To: Meng, Li (Jassmine) > Cc: Rafael J . Wysocki ; Huang, Ray > ; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; x..

RE: [RESEND PATCH V9 0/7] amd-pstate preferred core

2023-10-15 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Oleksandr: > -Original Message- > From: Oleksandr Natalenko > Sent: Friday, October 13, 2023 11:45 PM > To: Rafael J . Wysocki ; Huang, Ray > ; Meng, Li (Jassmine) > Cc: linux...@vger.kernel.org; linux-ker...@vger.kernel.org;

[RESEND PATCH V9 7/7] Documentation: introduce amd-pstate preferrd core mode kernel command line options

2023-10-12 Thread Meng Li
amd-pstate driver support enable/disable preferred core. Default enabled on platforms supporting amd-pstate preferred core. Disable amd-pstate preferred core with "amd_prefcore=disable" added to the kernel command line. Signed-off-by: Meng Li Reviewed-by: Mario Limonciello Reviewe

[RESEND PATCH V9 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-10-12 Thread Meng Li
ACPI 6.5 section 8.4.6.1.1.1 specifies that Notify event 0x85 can be emmitted to cause the the OSPM to re-evaluate the highest performance register. Add support for this event. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li Link

[RESEND PATCH V9 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2023-10-12 Thread Meng Li
Introduce amd-pstate preferred core. check preferred core state set by the kernel parameter: $ cat /sys/devices/system/cpu/amd-pstate/prefcore Tested-by: Oleksandr Natalenko Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li

[RESEND PATCH V9 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-10-12 Thread Meng Li
-by: Huang Rui Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 49 include/linux/amd-pstate.h | 6 + 2 files changed, 55 insertions(+) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index 6aae383990f1..3b054e3acba1

[RESEND PATCH V9 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-12 Thread Meng Li
preferred core featue. Tested-by: Oleksandr Natalenko Reviewed-by: Huang Rui Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Co-developed-by: Perry Yuan Signed-off-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 155

[RESEND PATCH V9 2/7] acpi: cppc: Add get the highest performance cppc control

2023-10-12 Thread Meng Li
Limonciello Reviewed-by: Wyes Karny Acked-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html?highlight=cppc#highest-performance --- drivers/acpi/cppc_acpi.c | 13 + include/acpi/cppc_acpi.h | 5 + 2 files

[RESEND PATCH V9 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2023-10-12 Thread Meng Li
amd-pstate driver also uses SCHED_MC_PRIO, so decouple the requirement of CPU_SUP_INTEL from the dependencies to allow compilation in kernels without Intel CPU support. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li --- arch/x86

[RESEND PATCH V9 0/7] amd-pstate preferred core

2023-10-12 Thread Meng Li
ed core. - Documentation: amd-pstate: - - Modify inappropriate descriptions. - - Default enabled preferred core. - - Use a single variable to represent the status of preferred core. Meng Li (7): x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion. acpi: cppc: Add get the highest

[PATCH V9 7/7] Documentation: introduce amd-pstate preferrd core mode kernel command line options

2023-10-12 Thread Meng Li
amd-pstate driver support enable/disable preferred core. Default enabled on platforms supporting amd-pstate preferred core. Disable amd-pstate preferred core with "amd_prefcore=disable" added to the kernel command line. Signed-off-by: Meng Li Reviewed-by: Mario Limonciello Reviewe

[PATCH V9 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2023-10-12 Thread Meng Li
Introduce amd-pstate preferred core. check preferred core state set by the kernel parameter: $ cat /sys/devices/system/cpu/amd-pstate/prefcore Tested-by: Oleksandr Natalenko Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li

[PATCH V9 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-10-12 Thread Meng Li
-by: Huang Rui Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 49 include/linux/amd-pstate.h | 6 + 2 files changed, 55 insertions(+) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index 58aa9ddff29e..7e37d0d40ebd

[PATCH V9 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-10-12 Thread Meng Li
ACPI 6.5 section 8.4.6.1.1.1 specifies that Notify event 0x85 can be emmitted to cause the the OSPM to re-evaluate the highest performance register. Add support for this event. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li Link

[PATCH V9 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-12 Thread Meng Li
preferred core featue. Tested-by: Oleksandr Natalenko Reviewed-by: Huang Rui Reviewed-by: Wyes Karny Reviewed-by: Mario Limonciello Co-developed-by: Perry Yuan Signed-off-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 155

[PATCH V9 2/7] acpi: cppc: Add get the highest performance cppc control

2023-10-12 Thread Meng Li
Limonciello Reviewed-by: Wyes Karny Acked-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html?highlight=cppc#highest-performance --- drivers/acpi/cppc_acpi.c | 13 + include/acpi/cppc_acpi.h | 5 + 2 files

[PATCH V9 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2023-10-12 Thread Meng Li
amd-pstate driver also uses SCHED_MC_PRIO, so decouple the requirement of CPU_SUP_INTEL from the dependencies to allow compilation in kernels without Intel CPU support. Tested-by: Oleksandr Natalenko Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li --- arch/x86

[PATCH V9 0/7] amd-pstate preferred core

2023-10-12 Thread Meng Li
ed core. - Documentation: amd-pstate: - - Modify inappropriate descriptions. - - Default enabled preferred core. - - Use a single variable to represent the status of preferred core. Meng Li (7): x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion. acpi: cppc: Add get the highest

RE: [PATCH V8 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-10 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Peter: > -Original Message- > From: Peter Zijlstra > Sent: Tuesday, October 10, 2023 6:36 PM > To: Meng, Li (Jassmine) > Cc: Rafael J . Wysocki ; Huang, Ray > ; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; x..

RE: [PATCH V8 0/7] amd-pstate preferred core

2023-10-09 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Oleksandr: > -Original Message- > From: Oleksandr Natalenko > Sent: Monday, October 9, 2023 9:00 PM > To: Rafael J . Wysocki ; Huang, Ray > ; Meng, Li (Jassmine) > Cc: linux...@vger.kernel.org; linux-ker...@vger.kernel.org; > x

RE: [PATCH V8 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-10-09 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Wyes: > -Original Message- > From: Karny, Wyes > Sent: Monday, October 9, 2023 2:19 PM > To: Meng, Li (Jassmine) > Cc: Karny, Wyes ; Rafael J . Wysocki > ; Huang, Ray ; linux- > p...@vger.kernel.org; linux-ker...@vger.kernel

RE: [PATCH V8 0/7] amd-pstate preferred core

2023-10-09 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Oleksandr: > -Original Message- > From: Oleksandr Natalenko > Sent: Monday, October 9, 2023 2:55 PM > To: Rafael J . Wysocki ; Huang, Ray > ; Meng, Li (Jassmine) > Cc: linux...@vger.kernel.org; linux-ker...@vger.kernel.org; > x

[PATCH V8 7/7] Documentation: introduce amd-pstate preferrd core mode kernel command line options

2023-10-08 Thread Meng Li
amd-pstate driver support enable/disable preferred core. Default enabled on platforms supporting amd-pstate preferred core. Disable amd-pstate preferred core with "amd_prefcore=disable" added to the kernel command line. Signed-off-by: Meng Li Reviewed-by: Mario Limonciello Reviewe

[PATCH V8 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2023-10-08 Thread Meng Li
Introduce amd-pstate preferred core. check preferred core state set by the kernel parameter: $ cat /sys/devices/system/cpu/amd-pstate/prefcore Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li --- Documentation/admin-guide/pm/amd-pstate.rst | 59

[PATCH V8 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-10-08 Thread Meng Li
ACPI 6.5 section 8.4.6.1.1.1 specifies that Notify event 0x85 can be emmitted to cause the the OSPM to re-evaluate the highest performance register. Add support for this event. Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5

[PATCH V8 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-10-08 Thread Meng Li
: Meng Li --- drivers/cpufreq/amd-pstate.c | 34 -- include/linux/amd-pstate.h | 6 ++ 2 files changed, 38 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index 6ac8939fce5a..d3369247c6c9 100644 --- a

[PATCH V8 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-10-08 Thread Meng Li
preferred core featue. Reviewed-by: Mario Limonciello Co-developed-by: Perry Yuan Signed-off-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 152 +++ include/linux/amd-pstate.h | 4 + 2 files changed, 140 insertions(+), 16 deletions

[PATCH V8 2/7] acpi: cppc: Add get the highest performance cppc control

2023-10-08 Thread Meng Li
Karny Acked-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html?highlight=cppc#highest-performance --- drivers/acpi/cppc_acpi.c | 13 + include/acpi/cppc_acpi.h | 5 + 2 files changed, 18 insertions(+) diff

[PATCH V8 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2023-10-08 Thread Meng Li
amd-pstate driver also uses SCHED_MC_PRIO, so decouple the requirement of CPU_SUP_INTEL from the dependencies to allow compilation in kernels without Intel CPU support. Reviewed-by: Mario Limonciello Reviewed-by: Huang Rui Signed-off-by: Meng Li --- arch/x86/Kconfig | 5 +++-- 1 file changed

[PATCH V8 0/7] amd-pstate preferred core

2023-10-08 Thread Meng Li
d-pstate: - - Modify inappropriate descriptions. - - Default enabled preferred core. - - Use a single variable to represent the status of preferred core. Meng Li (7): x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion. acpi: cppc: Add get the highest performance cppc control cpufreq: amd-psta

RE: [PATCH V7 0/7] amd-pstate preferred core

2023-09-21 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Natalenko and Mario: > -Original Message- > From: Limonciello, Mario > Sent: Thursday, September 21, 2023 4:12 AM > To: Oleksandr Natalenko ; Huang, Ray > ; Meng, Li (Jassmine) > Cc: linux...@vger.kernel.org; linux-ker...@vg

RE: [PATCH V7 0/7] amd-pstate preferred core

2023-09-18 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Mario: > -Original Message- > From: Limonciello, Mario > Sent: Tuesday, September 19, 2023 1:41 AM > To: Meng, Li (Jassmine) ; Rafael J . Wysocki > ; Huang, Ray > Cc: linux...@vger.kernel.org; linux-ker...@vger.kernel.org; > x..

[PATCH V7 7/7] Documentation: introduce amd-pstate preferrd core mode kernel command line options

2023-09-18 Thread Meng Li
amd-pstate driver support enable/disable preferred core. Default enabled on platforms supporting amd-pstate preferred core. Disable amd-pstate preferred core with "amd_prefcore=disable" added to the kernel command line. Signed-off-by: Meng Li Reviewed-by: Mario Limonciello Reviewe

[PATCH V7 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-09-18 Thread Meng Li
ACPI 6.5 section 8.4.6.1.1.1 specifies that Notify event 0x85 can be emmitted to cause the the OSPM to re-evaluate the highest performance register. Add support for this event. Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html#processor-device

[PATCH V7 0/7] amd-pstate preferred core

2023-09-18 Thread Meng Li
of preferred core. - Documentation: - - Default enabled preferred core. - Documentation: amd-pstate: - - Modify inappropriate descriptions. - - Default enabled preferred core. - - Use a single variable to represent the status of preferred core. Meng Li (7): x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the

[PATCH V7 3/7] cpufreq: amd-pstate: Enable amd-pstate preferred core supporting.

2023-09-18 Thread Meng Li
allow user to disable the preferred core. Reviewed-by: Mario Limonciello Co-developed-by: Perry Yuan Signed-off-by: Perry Yuan Signed-off-by: Meng Li --- drivers/cpufreq/amd-pstate.c | 163 +++ 1 file changed, 147 insertions(+), 16 deletions(-) diff --git a

[PATCH V7 1/7] x86: Drop CPU_SUP_INTEL from SCHED_MC_PRIO for the expansion.

2023-09-18 Thread Meng Li
amd-pstate driver also uses SCHED_MC_PRIO, so decouple the requirement of CPU_SUP_INTEL from the dependencies to allow compilation in kernels without Intel CPU support. Reviewed-by: Mario Limonciello Signed-off-by: Meng Li --- arch/x86/Kconfig | 5 +++-- 1 file changed, 3 insertions(+), 2

[PATCH V7 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core

2023-09-18 Thread Meng Li
Introduce amd-pstate preferred core. check preferred core state: $ cat /sys/devices/system/cpu/amd-pstate/prefcore Signed-off-by: Meng Li --- Documentation/admin-guide/pm/amd-pstate.rst | 58 - 1 file changed, 56 insertions(+), 2 deletions(-) diff --git a/Documentation

[PATCH V7 2/7] acpi: cppc: Add get the highest performance cppc control

2023-09-18 Thread Meng Li
Karny Acked-by: Huang Rui Signed-off-by: Meng Li Link: https://uefi.org/specs/ACPI/6.5/08_Processor_Configuration_and_Control.html?highlight=cppc#highest-performance --- drivers/acpi/cppc_acpi.c | 13 + include/acpi/cppc_acpi.h | 5 + 2 files changed, 18 insertions(+) diff

[PATCH V7 5/7] cpufreq: amd-pstate: Update amd-pstate preferred core ranking dynamically

2023-09-18 Thread Meng Li
Preferred core rankings can be changed dynamically by the platform based on the workload and platform conditions and accounting for thermals and aging. When this occurs, cpu priority need to be set. Signed-off-by: Meng Li Reviewed-by: Wyes Karny --- drivers/cpufreq/amd-pstate.c | 34

RE: [PATCH V5 4/7] cpufreq: Add a notification message that the highest perf has changed

2023-09-11 Thread Meng, Li (Jassmine)
[AMD Official Use Only - General] Hi Peter: > -Original Message- > From: Peter Zijlstra > Sent: Friday, September 8, 2023 9:24 PM > To: Meng, Li (Jassmine) > Cc: Rafael J . Wysocki ; Huang, Ray > ; linux...@vger.kernel.org; linux- > ker...@vger.kernel.org; x..