From: Mario Limonciello <superm1@kernel.org>
To: Alexey Zagorodnikov <xglooom@gmail.com>,
platform-driver-x86@vger.kernel.org
Cc: "Shyam Sundar S K" <Shyam-sundar.S-k@amd.com>,
"Hans de Goede" <hansg@kernel.org>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/1] platform/x86/amd/pmf: Added a module parameter to disable the Smart PC function
Date: Wed, 21 Jan 2026 12:34:29 -0600 [thread overview]
Message-ID: <8d83da95-07e7-4e4e-b508-fa194c31490f@kernel.org> (raw)
In-Reply-To: <20260121143519.12318-1-xglooom@gmail.com>
On 1/21/26 8:35 AM, Alexey Zagorodnikov wrote:
> Addresses a low power limits issue on HP ZBook Ultra G1a [1]
>
No need to have the [1] in the subject IMV.
> If vendor firmware capped APU power limits with 3rd-party AC adapters,
> the user can disable the Smart PC function via the module parameter
>
> Link: https://gitlab.freedesktop.org/drm/amd/-/issues/4868 [1]
> Signed-off-by: Alexey Zagorodnikov <xglooom@gmail.com>
> ---
LGTM though otherwise.
Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org>
> drivers/platform/x86/amd/pmf/core.c | 18 +++++++++++++-----
> 1 file changed, 13 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/platform/x86/amd/pmf/core.c b/drivers/platform/x86/amd/pmf/core.c
> index 8fc293c9c5380..ee7b3adc63a02 100644
> --- a/drivers/platform/x86/amd/pmf/core.c
> +++ b/drivers/platform/x86/amd/pmf/core.c
> @@ -53,6 +53,10 @@ static bool force_load;
> module_param(force_load, bool, 0444);
> MODULE_PARM_DESC(force_load, "Force load this driver on supported older platforms (experimental)");
>
> +static bool smart_pc_support = true;
> +module_param(smart_pc_support, bool, 0444);
> +MODULE_PARM_DESC(smart_pc_support, "Smart PC Support (default = true)");
> +
> static int amd_pmf_pwr_src_notify_call(struct notifier_block *nb, unsigned long event, void *data)
> {
> struct amd_pmf_dev *pmf = container_of(nb, struct amd_pmf_dev, pwr_src_notifier);
> @@ -362,11 +366,15 @@ static void amd_pmf_init_features(struct amd_pmf_dev *dev)
> dev_dbg(dev->dev, "SPS enabled and Platform Profiles registered\n");
> }
>
> - amd_pmf_init_smart_pc(dev);
> - if (dev->smart_pc_enabled) {
> - dev_dbg(dev->dev, "Smart PC Solution Enabled\n");
> - /* If Smart PC is enabled, no need to check for other features */
> - return;
> + if (smart_pc_support) {
> + amd_pmf_init_smart_pc(dev);
> + if (dev->smart_pc_enabled) {
> + dev_dbg(dev->dev, "Smart PC Solution Enabled\n");
> + /* If Smart PC is enabled, no need to check for other features */
> + return;
> + }
> + } else {
> + dev->smart_pc_enabled = false;
> }
>
> if (is_apmf_func_supported(dev, APMF_FUNC_AUTO_MODE)) {
next prev parent reply other threads:[~2026-01-21 18:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 14:35 [PATCH 1/1] platform/x86/amd/pmf: Added a module parameter to disable the Smart PC function Alexey Zagorodnikov
2026-01-21 18:34 ` Mario Limonciello [this message]
2026-01-26 14:30 ` Ilpo Järvinen
-- strict thread matches above, loose matches on Subject: below --
2026-01-19 20:20 Alexey Zagorodnikov
2026-01-19 21:00 ` Mario Limonciello
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=8d83da95-07e7-4e4e-b508-fa194c31490f@kernel.org \
--to=superm1@kernel.org \
--cc=Shyam-sundar.S-k@amd.com \
--cc=hansg@kernel.org \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=platform-driver-x86@vger.kernel.org \
--cc=xglooom@gmail.com \
/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 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.