From: Shyam Sundar S K <Shyam-sundar.S-k@amd.com>
To: "Lyndon Sanche" <lsanche@lyndeno.ca>,
"Hans de Goede" <hdegoede@redhat.com>,
"Ilpo Järvinen" <ilpo.jarvinen@linux.intel.com>
Cc: platform-driver-x86@vger.kernel.org, Patil.Reddy@amd.com,
Mario Limonciello <mario.limonciello@amd.com>,
Yijun Shen <Yijun.Shen@dell.com>
Subject: Re: [PATCH] platform/x86/dell: Set USTT mode according to BIOS after reboot
Date: Tue, 16 Sep 2025 15:28:10 +0530 [thread overview]
Message-ID: <5f425e5f-5428-488a-911c-2be61302bc90@amd.com> (raw)
In-Reply-To: <9fac1d5b-9ee0-4867-bf2b-1f4128c1f17a@app.fastmail.com>
Hi Lyndon,
On 9/16/2025 00:24, Lyndon Sanche wrote:
> On Mon, Sep 15, 2025, at 3:41 AM, Shyam Sundar S K wrote:
>> After a reboot, if the user changes the thermal setting in the BIOS, the
>> BIOS applies this change. However, the current `dell-pc` driver does not
>> recognize the updated USTT value, resulting in inconsistent thermal
>> profiles between Windows and Linux.
>>
>> To ensure alignment with Windows behavior, the proposed change involves
>> reading the current USTT setting during driver initialization and updating
>> the dell-pc USTT profile accordingly whenever a change is detected.
>
> Hello:
>
> Thank you for the patch. I think I need help understanding why this is not working currently, as this is implemented in the thermal_get_mode functionality.
Okay. Let me elaborate:
There are scenarios where the Dell BIOS needs to send specific events
to the AMD PMF driver. The `amd_pmf` driver registers a handler with
the ACPI subsystem to listen for these events, which should originate
from the `dell_pc` driver. However, during probe time, the `dell_pc`
driver lacks awareness of any changes to the USTT value. As a result,
it may report outdated USTT data, leading to incorrect thermal
configurations.
Further debug revealed that Windows adjust to changes in USTT and
behave accordingly.
To align with Windows behavior, we now read the current USTT value
during the `dell_pc` driver's probe phase. This ensures that any
updates are captured, enabling the `amd_pmf` driver to receive
accurate information through the ACPI events it listens to.
>
> This change, upon my first read, seems to read the mode from the BIOS and then write what it read back to the BIOS. Is my understanding correct?
Yes, via the dell_smbios_*() calls.
> I do not have a computer where I can change the mode from the BIOS, so I cannot test that specific case.
Okay. Alex (Cc'ed) from Dell has tested this on Multiple platforms.
> What does the platform_profile get set to on boot without this patch?
"custom"
Thanks,
Shyam
next prev parent reply other threads:[~2025-09-16 9:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-15 9:41 [PATCH] platform/x86/dell: Set USTT mode according to BIOS after reboot Shyam Sundar S K
2025-09-15 18:54 ` Lyndon Sanche
2025-09-16 9:58 ` Shyam Sundar S K [this message]
2025-09-15 19:00 ` Mario Limonciello
2025-09-16 9:59 ` Shyam Sundar S K
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=5f425e5f-5428-488a-911c-2be61302bc90@amd.com \
--to=shyam-sundar.s-k@amd.com \
--cc=Patil.Reddy@amd.com \
--cc=Yijun.Shen@dell.com \
--cc=hdegoede@redhat.com \
--cc=ilpo.jarvinen@linux.intel.com \
--cc=lsanche@lyndeno.ca \
--cc=mario.limonciello@amd.com \
--cc=platform-driver-x86@vger.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