RE: RE: [PATCH v5] platform/x86: dell-laptop: Implement platform_profile
From: Shen, Yijun
Date: Sat May 11 2024 - 11:07:15 EST
Internal Use - Confidential
+AD4- -----Original Message-----
+AD4- From: Mario Limonciello +ADw-mario.limonciello+AEA-amd.com+AD4-
+AD4- Sent: Wednesday, May 8, 2024 11:53 PM
+AD4- To: Shen, Yijun +ADw-Yijun+AF8-Shen+AEA-Dell.com+AD4AOw- Lyndon Sanche
+AD4- +ADw-lsanche+AEA-lyndeno.ca+AD4-
+AD4- Cc: pali+AEA-kernel.org+ADs- W+AF8-Armin+AEA-gmx.de+ADs-
+AD4- srinivas.pandruvada+AEA-linux.intel.com+ADs- ilpo.jarvinen+AEA-linux.intel.com+ADs-
+AD4- lkp+AEA-intel.com+ADs- Hans de Goede +ADw-hdegoede+AEA-redhat.com+AD4AOw- Matthew Garrett
+AD4- +ADw-mjg59+AEA-srcf.ucam.org+AD4AOw- Jonathan Corbet +ADw-corbet+AEA-lwn.net+AD4AOw- Heiner Kallweit
+AD4- +ADw-hkallweit1+AEA-gmail.com+AD4AOw- Vegard Nossum +ADw-vegard.nossum+AEA-oracle.com+AD4AOw-
+AD4- platform-driver-x86+AEA-vger.kernel.org+ADs- linux-kernel+AEA-vger.kernel.org+ADs- Dell Client
+AD4- Kernel +ADw-Dell.Client.Kernel+AEA-dell.com+AD4-
+AD4- Subject: Re: RE: +AFs-PATCH v5+AF0- platform/x86: dell-laptop: Implement
+AD4- platform+AF8-profile
+AD4-
+AD4-
+AD4- +AFs-EXTERNAL EMAIL+AF0-
+AD4-
+AD4- On 5/8/2024 09:24, Shen, Yijun wrote:
+AD4- +AD4- Hi Lyndon,
+AD4- +AD4-
+AD4- +AD4- Thanks for working on this patch.
+AD4- +AD4-
+AD4- +AD4APg-
+AD4- +AD4- Dell side has an initial testing with this patch on some laptops, it looks
+AD4- good. While changing the platform profile:
+AD4- +AD4- 1. The corresponding USTT option in BIOS will be changed.
+AD4- +AD4- 2. thermald will not be impacted. The related PSVT and ITMT will be loaded.
+AD4- +AD4- Some Dell DTs does not have the USTT, Dell'll have a check if nothing is
+AD4- broken.
+AD4-
+AD4- Hi Alex+ACE-
+AD4-
+AD4- Have you had a check both on both your AMD laptops and workstations too,
+AD4- or just the Intel ones? I think it would be good to make sure it's getting the
+AD4- correct experience in both cases.
+AD4-
Hi Mario,
I've a check for this, for both laptop and workstation, the dell+AF8-laptop module will not be loaded. So, AMD platform will not be impacted by this patch series.
Follow is one example output with workstation.
+ACM-lsmod +AHw- grep dell
dell+AF8-wmi 28672 0
dell+AF8-smbios 32768 1 dell+AF8-wmi
dcdbas 20480 1 dell+AF8-smbios
dell+AF8-wmi+AF8-descriptor 20480 2 dell+AF8-wmi,dell+AF8-smbios
sparse+AF8-keymap 12288 1 dell+AF8-wmi
ledtrig+AF8-audio 12288 3 snd+AF8-ctl+AF8-led,snd+AF8-hda+AF8-codec+AF8-generic,dell+AF8-wmi
video 73728 2 dell+AF8-wmi,nvidia+AF8-modeset
wmi 40960 5 video,dell+AF8-wmi,wmi+AF8-bmof,dell+AF8-smbios,dell+AF8-wmi+AF8-descriptor
+AD4- +AD4-
+AD4- +AD4- Additional, with this patch, follow behavior is found:
+AD4- +AD4- 1. For example, the platform profile is quiet.
+AD4- +AD4- 2. Reboot the system and change the USTT to performance.
+AD4- +AD4- 3. Boot to desktop, the platform profile is +ACI-quiet+ACI-, the USTT will be
+AD4- changed back to +ACI-quiet+ACI-.
+AD4- +AD4- This looks like not a proper user experience. The platform profile should
+AD4- honor the BIOS setting, aka, the platform profile should be switched to
+AD4- +ACI-performance+ACI-.
+AD4- +AD4-
+AD4-
+AD4- I agree, this sounds like the initial profile needs to be read from the BIOS
+AD4- settings too.
+AD4-
+AD4- Furthermore I wanted to ask is there also a WMI setting that corresponds to
+AD4- this that dell-wmi-sysman offers?
Yes, Mario, you're right. This thermal setting could also be toggled by dell-wmi-sysman.
But, for the Dell consumer AMD laptops, like Alienware, the BIOS is another variant which is different with the workstation one.
With this variant BIOS, there is no USTT and also no dell+AF8-wmi/dell-wmi-sysman.
+AD4- I'm wondering if both should be probed in case the SMBIOS one goes away one day.
Yep, I think this is a good suggestion.
+AD4-
+AD4- It seems like maybe ThermalManagement corresponds. There was some test
+AD4- data in fwupd for it:
+AD4-
+AD4- https://urldefense.com/v3/+AF8AXw-https://github.com/fwupd/fwupd/tree/main/lib
+AD4- fwupdplugin/tests/bios-attrs/dell-xps13-9310/dell-wmi-
+AD4- sysman/attributes/ThermalManagement+AF8AXwA7ACEAIQ-LpKI+ACE-iyfGSyfnGxLymc-
+AD4- cEg93dfcnBIOtTJbfmCckZlj46eGqvJ+AF8-pHJ7WqFZ7-
+AD4- zrklKWKkZifqNgJ13LFm6wuz2UlzYqMPXciVw+ACQ- +AFs-github+AFs-.+AF0-com+AF0-