From: "Gautham R. Shenoy" <gautham.shenoy@amd.com>
To: "Mario Limonciello (AMD)" <superm1@kernel.org>
Cc: Perry Yuan <perry.yuan@amd.com>,
"open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)"
<linux-kernel@vger.kernel.org>,
"open list:CPU FREQUENCY SCALING FRAMEWORK"
<linux-pm@vger.kernel.org>
Subject: Re: [PATCH v6 2/5] cpufreq/amd-pstate: add kernel command line to override dynamic epp
Date: Tue, 31 Mar 2026 22:31:30 +0530 [thread overview]
Message-ID: <acv96kz8bdTAv5zj@BLRRASHENOY1.amd.com> (raw)
In-Reply-To: <20260329203811.2590633-3-superm1@kernel.org>
Hello Mario,
On Sun, Mar 29, 2026 at 03:38:08PM -0500, Mario Limonciello (AMD) wrote:
> Add `amd_dynamic_epp=enable` and `amd_dynamic_epp=disable` to override
> the kernel configuration option `CONFIG_X86_AMD_PSTATE_DYNAMIC_EPP`
> locally.
>
> Signed-off-by: Mario Limonciello (AMD) <superm1@kernel.org>
This looks good to me.
Reviewed-by: Gautham R. Shenoy <gautham.shenoy@amd.com>
--
Thanks and Regards
gautham.
> ---
> v5->v6:
> * Fix the amd_dynamic_epp kernel parameter name in amd-pstate.rst
> ---
> Documentation/admin-guide/kernel-parameters.txt | 7 +++++++
> Documentation/admin-guide/pm/amd-pstate.rst | 7 +++++++
> drivers/cpufreq/amd-pstate.c | 11 +++++++++++
> 3 files changed, 25 insertions(+)
>
> diff --git a/Documentation/admin-guide/kernel-parameters.txt b/Documentation/admin-guide/kernel-parameters.txt
> index 03a550630644f..9552819051cd8 100644
> --- a/Documentation/admin-guide/kernel-parameters.txt
> +++ b/Documentation/admin-guide/kernel-parameters.txt
> @@ -493,6 +493,13 @@ Kernel parameters
> disable
> Disable amd-pstate preferred core.
>
> + amd_dynamic_epp=
> + [X86]
> + disable
> + Disable amd-pstate dynamic EPP.
> + enable
> + Enable amd-pstate dynamic EPP.
> +
> amijoy.map= [HW,JOY] Amiga joystick support
> Map of devices attached to JOY0DAT and JOY1DAT
> Format: <a>,<b>
> diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst
> index 0e4355fe13558..210207d301aa5 100644
> --- a/Documentation/admin-guide/pm/amd-pstate.rst
> +++ b/Documentation/admin-guide/pm/amd-pstate.rst
> @@ -474,6 +474,13 @@ For systems that support ``amd-pstate`` preferred core, the core rankings will
> always be advertised by the platform. But OS can choose to ignore that via the
> kernel parameter ``amd_prefcore=disable``.
>
> +``amd_dynamic_epp``
> +
> +When AMD pstate is in auto mode, dynamic EPP will control whether the kernel
> +autonomously changes the EPP mode. The default is configured by
> +``CONFIG_X86_AMD_PSTATE_DYNAMIC_EPP`` but can be explicitly enabled with
> +``amd_dynamic_epp=enable`` or disabled with ``amd_dynamic_epp=disable``.
> +
> User Space Interface in ``sysfs`` - General
> ===========================================
>
> diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c
> index 2e3fb1fd280a0..e96f1da5c7b38 100644
> --- a/drivers/cpufreq/amd-pstate.c
> +++ b/drivers/cpufreq/amd-pstate.c
> @@ -2224,8 +2224,19 @@ static int __init amd_prefcore_param(char *str)
> return 0;
> }
>
> +static int __init amd_dynamic_epp_param(char *str)
> +{
> + if (!strcmp(str, "disable"))
> + dynamic_epp = false;
> + if (!strcmp(str, "enable"))
> + dynamic_epp = true;
> +
> + return 0;
> +}
> +
> early_param("amd_pstate", amd_pstate_param);
> early_param("amd_prefcore", amd_prefcore_param);
> +early_param("amd_dynamic_epp", amd_dynamic_epp_param);
>
> MODULE_AUTHOR("Huang Rui <ray.huang@amd.com>");
> MODULE_DESCRIPTION("AMD Processor P-state Frequency Driver");
> --
> 2.43.0
>
next prev parent reply other threads:[~2026-03-31 17:01 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-29 20:38 [PATCH v6 0/5] amd-pstate Dynamic EPP and raw EPP Mario Limonciello (AMD)
2026-03-29 20:38 ` [PATCH v6 1/5] cpufreq/amd-pstate: Add dynamic energy performance preference Mario Limonciello (AMD)
2026-03-31 16:59 ` Gautham R. Shenoy
2026-03-29 20:38 ` [PATCH v6 2/5] cpufreq/amd-pstate: add kernel command line to override dynamic epp Mario Limonciello (AMD)
2026-03-31 17:01 ` Gautham R. Shenoy [this message]
2026-03-29 20:38 ` [PATCH v6 3/5] cpufreq/amd-pstate: Add support for platform profile class Mario Limonciello (AMD)
2026-03-31 17:02 ` Gautham R. Shenoy
2026-03-29 20:38 ` [PATCH v6 4/5] cpufreq/amd-pstate: Add support for raw EPP writes Mario Limonciello (AMD)
2026-03-31 17:10 ` Gautham R. Shenoy
2026-03-31 18:48 ` Mario Limonciello
2026-03-29 20:38 ` [PATCH v6 5/5] cpufreq/amd-pstate-ut: Add a unit test for raw EPP Mario Limonciello (AMD)
2026-03-31 17:17 ` Gautham R. Shenoy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=acv96kz8bdTAv5zj@BLRRASHENOY1.amd.com \
--to=gautham.shenoy@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=perry.yuan@amd.com \
--cc=superm1@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox