All of lore.kernel.org
 help / color / mirror / Atom feed
* [Suggested-by:Shuah Khan Patch 0/1] iAdd explanation for
@ 2022-09-01 14:33 Meng Li
  2022-09-01 14:33 ` [Suggested-by:Shuah Khan Patch 1/1] cpufreq: amd-pstate: Add explanation for X86_AMD_PSTATE_UT Meng Li
  0 siblings, 1 reply; 3+ messages in thread
From: Meng Li @ 2022-09-01 14:33 UTC (permalink / raw)
  To: Shuah Khan, Huang Rui, linux-pm
  Cc: Rafael J . Wysocki, Nathan Fontenot, Deepak Sharma, Alex Deucher,
	Mario Limonciello, Jinzhou Su, Perry Yuan, Xiaojian Du,
	Viresh Kumar, Borislav Petkov, linux-kernel, Meng Li

Hi all:

According to Shuah's review comments, add a new patches for expain
X86_AMD_PSTATE_UT.

amd-pstate-ut can be modprobed even without amd-pstate module.
When the comparison test is performed, it can load other module
like acpi-cpufreq to test cases, then compare the test results.
When only the test for amd-pstate is performed, it can tell the
users they loaded a wrong module like acpi-cpufreq.

Thanks,
Jasmine

Meng Li (1):
  cpufreq: amd-pstate: Add explanation for X86_AMD_PSTATE_UT

 drivers/cpufreq/Kconfig.x86 | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Suggested-by:Shuah Khan Patch 1/1] cpufreq: amd-pstate: Add explanation for X86_AMD_PSTATE_UT
  2022-09-01 14:33 [Suggested-by:Shuah Khan Patch 0/1] iAdd explanation for Meng Li
@ 2022-09-01 14:33 ` Meng Li
  2022-09-01 15:47   ` Shuah Khan
  0 siblings, 1 reply; 3+ messages in thread
From: Meng Li @ 2022-09-01 14:33 UTC (permalink / raw)
  To: Shuah Khan, Huang Rui, linux-pm
  Cc: Rafael J . Wysocki, Nathan Fontenot, Deepak Sharma, Alex Deucher,
	Mario Limonciello, Jinzhou Su, Perry Yuan, Xiaojian Du,
	Viresh Kumar, Borislav Petkov, linux-kernel, Meng Li

This kernel module is used for testing. It's safe to say M here.
It can be modprobed even without amd-pstate module.
When the comparison test is performed, it can load other module
like acpi-cpufreq to test cases, then compare the test  results.
When only the test for amd-pstate is performed, it can tell the
users they loaded a wrong module like acpi-cpufreq.

Signed-off-by: Meng Li <li.meng@amd.com>
---
 drivers/cpufreq/Kconfig.x86 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/drivers/cpufreq/Kconfig.x86 b/drivers/cpufreq/Kconfig.x86
index fdd819069d72..fd1582716c58 100644
--- a/drivers/cpufreq/Kconfig.x86
+++ b/drivers/cpufreq/Kconfig.x86
@@ -58,6 +58,12 @@ config X86_AMD_PSTATE_UT
 	help
 	  This kernel module is used for testing. It's safe to say M here.
 
+	  It can be modprobed even without amd-pstate module.
+	  When the comparison test is performed, it can load other module
+	  like acpi-cpufreq to test cases, then compare the test results.
+	  When only the test for amd-pstate is performed, it can tell the
+	  users they loaded a wrong module like acpi-cpufreq.
+
 config X86_ACPI_CPUFREQ
 	tristate "ACPI Processor P-States driver"
 	depends on ACPI_PROCESSOR
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [Suggested-by:Shuah Khan Patch 1/1] cpufreq: amd-pstate: Add explanation for X86_AMD_PSTATE_UT
  2022-09-01 14:33 ` [Suggested-by:Shuah Khan Patch 1/1] cpufreq: amd-pstate: Add explanation for X86_AMD_PSTATE_UT Meng Li
@ 2022-09-01 15:47   ` Shuah Khan
  0 siblings, 0 replies; 3+ messages in thread
From: Shuah Khan @ 2022-09-01 15:47 UTC (permalink / raw)
  To: Meng Li, Huang Rui, linux-pm
  Cc: Rafael J . Wysocki, Nathan Fontenot, Deepak Sharma, Alex Deucher,
	Mario Limonciello, Jinzhou Su, Perry Yuan, Xiaojian Du,
	Viresh Kumar, Borislav Petkov, linux-kernel, Shuah Khan

On 9/1/22 08:33, Meng Li wrote:
> This kernel module is used for testing. It's safe to say M here.
> It can be modprobed even without amd-pstate module.
> When the comparison test is performed, it can load other module
> like acpi-cpufreq to test cases, then compare the test  results.
> When only the test for amd-pstate is performed, it can tell the
> users they loaded a wrong module like acpi-cpufreq.
> 
> Signed-off-by: Meng Li <li.meng@amd.com>
> ---
>   drivers/cpufreq/Kconfig.x86 | 6 ++++++
>   1 file changed, 6 insertions(+)
> 
> diff --git a/drivers/cpufreq/Kconfig.x86 b/drivers/cpufreq/Kconfig.x86
> index fdd819069d72..fd1582716c58 100644
> --- a/drivers/cpufreq/Kconfig.x86
> +++ b/drivers/cpufreq/Kconfig.x86
> @@ -58,6 +58,12 @@ config X86_AMD_PSTATE_UT
>   	help
>   	  This kernel module is used for testing. It's safe to say M here.
>   
> +	  It can be modprobed even without amd-pstate module.

It can also be built-in without X86_AMD_PSTATE enabled.
I would rephrase this as:

This config option can be enabled without X86_AMD_PSTATE enabled.

Also change the information below to sat enabled as opposed to module
as both these options can be built-in

> +	  When the comparison test is performed, it can load other module
> +	  like acpi-cpufreq to test cases, then compare the test results.
> +	  When only the test for amd-pstate is performed, it can tell the
> +	  users they loaded a wrong module like acpi-cpufreq.
> +
>   config X86_ACPI_CPUFREQ
>   	tristate "ACPI Processor P-States driver"
>   	depends on ACPI_PROCESSOR

Thank you - In addition to this patch please make change to the test
script as well when it fails detecting that X86_AMD_PSTATE is disabled
to say what user has to do to run the test.

This run-time message will be helpful to users.

thanks,
-- Shuah

  

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-09-01 15:47 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-01 14:33 [Suggested-by:Shuah Khan Patch 0/1] iAdd explanation for Meng Li
2022-09-01 14:33 ` [Suggested-by:Shuah Khan Patch 1/1] cpufreq: amd-pstate: Add explanation for X86_AMD_PSTATE_UT Meng Li
2022-09-01 15:47   ` Shuah Khan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.