RE: [PATCH v5] platform/x86: dell-laptop: Implement platform_profile

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Internal Use - Confidential
+AD4- -----Original Message-----
+AD4- From: Lyndon Sanche +ADw-lsanche+AEA-lyndeno.ca+AD4-
+AD4- Sent: Saturday, May 11, 2024 9:49 AM
+AD4- To: Shen, Yijun +ADw-Yijun+AF8-Shen+AEA-Dell.com+AD4-
+AD4- Cc: Mario Limonciello +ADw-mario.limonciello+AEA-amd.com+AD4AOw- Pali Roh+AOE-r
+AD4- +ADw-pali+AEA-kernel.org+AD4AOw- Armin Wolf +ADw-W+AF8-Armin+AEA-gmx.de+AD4AOw-
+AD4- srinivas.pandruvada+AEA-linux.intel.com+ADs- Ilpo J+AOQ-rvinen
+AD4- +ADw-ilpo.jarvinen+AEA-linux.intel.com+AD4AOw- kernel test robot +ADw-lkp+AEA-intel.com+AD4AOw- Hans de
+AD4- Goede +ADw-hdegoede+AEA-redhat.com+AD4AOw- Matthew Garrett +ADw-mjg59+AEA-srcf.ucam.org+AD4AOw-
+AD4- 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- LKML +ADw-linux-kernel+AEA-vger.kernel.org+AD4AOw-
+AD4- Dell Client Kernel +ADw-Dell.Client.Kernel+AEA-dell.com+AD4-
+AD4- Subject: Re: +AFs-PATCH v5+AF0- platform/x86: dell-laptop: Implement platform+AF8-profile
+AD4-
+AD4-
+AD4- +AFs-EXTERNAL EMAIL+AF0-
+AD4-
+AD4-
+AD4-
+AD4- On Thu, May 9 2024 at 09:10:51 AM -06:00:00, Lyndon Sanche
+AD4- +ADw-lsanche+AEA-lyndeno.ca+AD4- wrote:
+AD4- +AD4- On Wed, May 8, 2024, at 8:24 AM, Shen, Yijun wrote:
+AD4- +AD4APg-  Hi Lyndon,
+AD4- +AD4APg-
+AD4- +AD4APg-   Thanks for working on this patch.
+AD4- +AD4APg-
+AD4- +AD4APg-
+AD4- +AD4APg-   Dell side has an initial testing with this patch on some laptops,
+AD4- +AD4APg- it  looks good. While changing the platform profile:
+AD4- +AD4APg-  1. The corresponding USTT option in BIOS will be changed.
+AD4- +AD4APg-  2. thermald will not be impacted. The related PSVT and ITMT will be
+AD4- +AD4APg- loaded.
+AD4- +AD4APg-   Some Dell DTs does not have the USTT, Dell'll have a check if
+AD4- +AD4APg- nothing  is broken.
+AD4- +AD4APg-
+AD4- +AD4APg-    Additional, with this patch, follow behavior is found:
+AD4- +AD4APg-   1. For example, the platform profile is quiet.
+AD4- +AD4APg-   2. Reboot the system and change the USTT to performance.
+AD4- +AD4APg-   3. Boot to desktop, the platform profile is +ACI-quiet+ACI-, the USTT will
+AD4- +AD4APg- be  changed back to +ACI-quiet+ACI-.
+AD4- +AD4APg-   This looks like not a proper user experience. The platform profile
+AD4- +AD4APg- should honor the BIOS setting, aka, the platform profile should be
+AD4- +AD4APg- switched to +ACI-performance+ACI-.
+AD4- +AD4-
+AD4- +AD4- Hello:
+AD4- +AD4-
+AD4- +AD4- Thank you for your email. This is definitely undesirable behaviour, I
+AD4- +AD4- will have a look at the code to see why this is happening. Does it
+AD4- +AD4- always revert to quiet on boot, or always the mode that you had
+AD4- +AD4- switched to prior to reboot?
+AD4- +AD4-
+AD4- +AD4- Do you happen to have power-profiles-daemon or something similar
+AD4- +AD4- running? My understanding is it remembers profiles across reboots,
+AD4- +AD4- this could potentially also revert the profile back to what it was.
+AD4- +AD4- See this release for details:
+AD4- +AD4- https://urldefense.com/v3/+AF8AXw-https://gitlab.freedesktop.org/upower/powe
+AD4- +AD4- r-profiles-daemon/-/releases/0.9.0+AF8AXwA7ACEAIQ-LpKI+ACE-jUAEHb-9foumkcmPlEKD6tnQrZ
+AD4- +AD4- sqjB1sXdPDsYvH2fJ-gPV6G35MUtDW4q3xhlJ4IeLcIgmVpb3ztXqaOg8+ACQ-
+AD4- +AD4- +AFs-gitlab+AFs-.+AF0-freedesktop+AFs-.+AF0-org+AF0-
+AD4- +AD4-
+AD4- +AD4- I will assume there is a bug in my code at this point. I will test
+AD4- +AD4- with and without ppd running on my system to see if it changes across
+AD4- +AD4- reboots.
+AD4- +AD4-
+AD4- +AD4- Are USTT settings exposed in your BIOS configuration menu? On my
+AD4- +AD4- laptop they are not and I have to use smbios-thermal-ctl.
+AD4- +AD4-
+AD4- +AD4- Thank you,
+AD4- +AD4-
+AD4- +AD4- Lyndon
+AD4-
+AD4- Hi Yijun:
+AD4-
+AD4- I tested this on my computer (XPS 9560). I do not have access to the USTT
+AD4- settings in the BIOS screen so to substitute that, I booted without the patch
+AD4- and set the USTT manually using smbios-thermal-ctl.
+AD4- Here are my findings:
+AD4-
+AD4- Scenario +ACM-1: Without power-profiles-daemon (ppd) running
+AD4-
+AD4- 1. Boot with patch, set platform+AF8-profile to quiet 2. Boot without patch applied
+AD4- (no platform+AF8-profile)
+AD4-  - smbios-thermal-ctl confirms USTT is set to quiet
+AD4-  - use smbios-thermal-ctl to set USTT to performance
+AD4-  - confirm set to performance
+AD4- 3. Boot with patch again
+AD4-  - platform+AF8-profile is set to performance
+AD4-
+AD4- Scenario +ACM-2: With ppd running
+AD4- 1. Boot with patch, set platform+AF8-profile to performance with ppd
+AD4-  - Confirm platform+AF8-profile is performance 2. Boot without patch applied (no
+AD4- platform+AF8-profile)
+AD4-  - smbios-thermal-ctl confirms USTT is set to performance
+AD4-  - ppd reverts to balanced (only controlling intel+AF8-pstate in this case)
+AD4-  - use smbios-thermal-ctl to set USTT to quiet
+AD4-  - confirm set to quiet
+AD4- 3. Boot with patch again
+AD4-  - platform+AF8-profile and ppd is set to performance
+AD4-
+AD4- In my case, the setting in the smbios is honored if it was switched with
+AD4- another method. When using a userspace program that manipulates the
+AD4- platform+AF8-profile, the program seems to remember the previous state and
+AD4- switch to that.
+AD4-
+AD4- So I do not think there is a bug in this patch related to this issue, at least in my
+AD4- case. Please let me know if you have any questions.
+AD4-
+AD4- Thanks,
+AD4-
+AD4- Lyndon
+AD4-
+AD4-
+AD4-
Hi Lyndon,

 I've made a video recorder of the issue: https://dell.box.com/s/3f3znz1z8c6htbcll9juj6tyyu0zvvut
 My test environment is that I freshly installed the Fedora 40 and will not do any online updates. Then install the kernel with the v5 patch applied.

 XPS 9560 is a pretty old system which is RTS with 2017. No USTT setting in the BIOS is expected.
 I've a check that the Dell system, at least shipped from 2022, the USTT setting will be valid in the BIOS. The system used in above link, it is Latitude 7350 which is shipped by 2024 April.

 I think the key point to duplicate of this issue that, the USTT needs to be changed under BIOS but not under the Linux OS.

Thanks







[Index of Archives]     [Linux Kernel Development]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux