Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp854875lqo; Fri, 10 May 2024 18:49:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWR+X5YHwXSGJuZYjFgQa9VVMic31VV2eBS26DdgXWoZ9c3l6BDhOuyiwtpMCIiPSju8z9N65p8f4I1XFQ3HCY80AqFEBzZku7dLkffTw== X-Google-Smtp-Source: AGHT+IHDMdbuALVzY9r01nSW0ZMzRlOKzwdJ4JZ27WZibIORvS5F2o+Yab8y5mrqlTOgTsg8dOuN X-Received: by 2002:a05:622a:19a2:b0:43a:bcd9:5d5d with SMTP id d75a77b69052e-43dfdaab848mr41970351cf.19.1715392181710; Fri, 10 May 2024 18:49:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715392181; cv=pass; d=google.com; s=arc-20160816; b=OyKR8QpV8qidh089KpUnQSI8NRMGe+82anOZC3e23YvwJMjL93GlrpiZeeRXZYz6hf Awm/RFg7B2urXytepbwKRD4AupmQTje3CgRiBQI2uQNsE4oSntxU4WMyLsXwzFJgRfsd QLtp6NEZYQcguzkyV6Guuup7JIFi1hYek/dq8NTv3cWL+S1EHOdEmEL9qyPZEDJO9s1N 20/nS2MJsbEAXYwWwMSz+c3AT87KcklCSDsW0hah6Go03q1iJVim8B9bu6YInkVVj1Eb AH8033a46ZhgiFzknN8gQ8X2uRPE9+l39a7g+jCJ7xYfTAcc3fIHb0CHWvqW1LctJywC qajw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:cc:to:subject:from:date :feedback-id:dkim-signature:dkim-signature; bh=ocGjqcakjU5+Ytvyo0/yI73nxxOTe7gkTsRT02X55Ls=; fh=76blb5wjVuOQG/y4s4LyDUW7V8DbOMAA6IPoiq7Et7I=; b=qq14ZunYNiL6HIMuqLAKS/yxiorgSTFgjHDoMp2wVhE93kHtRaLoQuY++t5BcS6hW5 +3eo8cggdpoNmY1FbrkDoK3rf/o6HdlITgU1PAdkY5gxKnyE5YpVBwsrb0OnD/eIh/b8 HRSM5jV00GjRVjgrVGmoTvC19SO84UO26yA5PeB042BJC8c2amY95FnqeVDQvJya5b+R 1FSxNAG9StN1oxv1hrKktS/74WebPlVpLsOiicXJETVzjm2Liv+qYWD6yYh3YwDomBjn tfhyntVby6CLV1d3TKaj2mRv29qhgjRO+t9vLjtAyAWSpoI5vyZb+1UBJ15EjNg75Qot cVTA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lyndeno.ca header.s=fm2 header.b=Jo4bop5j; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="ct/TTj0a"; arc=pass (i=1 spf=pass spfdomain=lyndeno.ca dkim=pass dkdomain=lyndeno.ca dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=lyndeno.ca); spf=pass (google.com: domain of linux-kernel+bounces-176363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176363-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lyndeno.ca Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43df56d4f9csi31797211cf.703.2024.05.10.18.49.41 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 18:49:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-176363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lyndeno.ca header.s=fm2 header.b=Jo4bop5j; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b="ct/TTj0a"; arc=pass (i=1 spf=pass spfdomain=lyndeno.ca dkim=pass dkdomain=lyndeno.ca dkim=pass dkdomain=messagingengine.com dmarc=pass fromdomain=lyndeno.ca); spf=pass (google.com: domain of linux-kernel+bounces-176363-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-176363-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lyndeno.ca Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3D3891C217A8 for ; Sat, 11 May 2024 01:49:41 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 70DBB14A8E; Sat, 11 May 2024 01:49:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=lyndeno.ca header.i=@lyndeno.ca header.b="Jo4bop5j"; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b="ct/TTj0a" Received: from wfout8-smtp.messagingengine.com (wfout8-smtp.messagingengine.com [64.147.123.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A46AE11184; Sat, 11 May 2024 01:49:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=64.147.123.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715392168; cv=none; b=HRK2XC/+ziSMrkp7Qq8XcdPWMWe3zTGsB7U5Yw07OlVPwwq4mh0xAQcqyOzA8yNrIYIXLkAKF68+7zEy7vaPnF5i+QvrlCmh/hl3Qm/fpL8kSVAIlppYeDDt6/eO3VyXJUdhexK/lUOfEdth1J7HN3L1xH0N0fhCJZUGPLuQMCw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715392168; c=relaxed/simple; bh=S7WwEQQOLsNIt17Nax//c7rebtZYboLt0RIkp+0V6qU=; h=Date:From:Subject:To:Cc:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=moPf+nHvWsAKzNy0L2h3EmP+BqP8vwBEVjdYTN3S0bhaKBuFMmJ+CcyIfDdHw9HtiYWy/XtYPRc9tCdw3jeEA2t2rmgdKt+b3MMKQO79BwuzeaE96n+bM+oifF16sSUWtrLMOxkD9mBGrgn3204c6ijIlHPf47kl3EbH6DFSoLA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lyndeno.ca; spf=pass smtp.mailfrom=lyndeno.ca; dkim=pass (2048-bit key) header.d=lyndeno.ca header.i=@lyndeno.ca header.b=Jo4bop5j; dkim=pass (2048-bit key) header.d=messagingengine.com header.i=@messagingengine.com header.b=ct/TTj0a; arc=none smtp.client-ip=64.147.123.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lyndeno.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lyndeno.ca Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfout.west.internal (Postfix) with ESMTP id 873261C000E7; Fri, 10 May 2024 21:49:24 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Fri, 10 May 2024 21:49:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lyndeno.ca; h=cc :cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm2; t=1715392163; x=1715478563; bh=ocGjqcakjU 5+Ytvyo0/yI73nxxOTe7gkTsRT02X55Ls=; b=Jo4bop5jUsRKcgqfYDiYcIv1ag KPHdKi9434vRBrW58z0GQiLd0qjMdMHQkfElB2DbhcrPZ6ZGq4bASfgO2s7tK3uL 70hG/0yewzM2zFz54KICy/hs0OBnewydn1Em0PeEDzlXbvSCIkyAGI5nSSCq2atQ 4bl8xvK6xiFhXW0hHqQLZifpCyQ9AGv81Mjgd+xjuShzZr5SXblt+2uBR2fM/AMj eQ0qoT+VqOt3WtxDxHpAWBt+mcqYm/TanTrttczRr+Kb1q5hDuTrO8J4pYLfdSeR dKaKEsyWqghRR4cdP5Pe8dp3zzY8hufWl0CaVP392d7DgF70khZrpWioOsOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; t=1715392163; x=1715478563; bh=ocGjqcakjU5+Ytvyo0/yI73nxxOT e7gkTsRT02X55Ls=; b=ct/TTj0aL6y1O9TeNI6yoCk45tfTG/OhPni3PEMPGBTe 87ec6Y0CMQWUnnP/nPnJD/O/RiO4/dyvwPaXvl+VJBCXvbiSpEiljLj7YGLdYWeg k/pNdcTCCjS8G0FkN/rc8TTXASWxVZvGf4QkFwra913OYZUbMdfsjLvVSBR2I4e6 UNVNZAsKnEP2khlY9vdeNG645kdNHVZb8kxoy+DQAWj2hgjLBje/o/eL6TbgFKPn 4WAy337rVfsBrPh/oKzbFuZBikic7vFs3HxqboXsGP9lTUjG4AAKRFCPQKlByFcj iW3t5hlCaOaVw54BwFmjtOweNg0713mYYhiyzlbRbw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrvdefledghedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhuffvvefkjghfofggtgesthdtredtredtvdenucfhrhhomhepnfihnhgu ohhnucfurghntghhvgcuoehlshgrnhgthhgvsehlhihnuggvnhhordgtrgeqnecuggftrf grthhtvghrnhepfefgheevfeeugedtjedugfeitedvuddvjeegffegfefhtefgvedutdfh geekueehnecuffhomhgrihhnpehfrhgvvgguvghskhhtohhprdhorhhgnecuvehluhhsth gvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheplhhsrghntghhvgeslhih nhguvghnohdrtggr X-ME-Proxy: Feedback-ID: i1719461a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 10 May 2024 21:49:17 -0400 (EDT) Date: Fri, 10 May 2024 19:49:09 -0600 From: Lyndon Sanche Subject: Re: [PATCH v5] platform/x86: dell-laptop: Implement platform_profile To: "Shen, Yijun" Cc: Mario Limonciello , Pali =?iso-8859-1?b?Um9o4XI=?= , Armin Wolf , srinivas.pandruvada@linux.intel.com, Ilpo =?iso-8859-1?q?J=E4rvinen?= , kernel test robot , Hans de Goede , Matthew Garrett , Jonathan Corbet , Heiner Kallweit , Vegard Nossum , platform-driver-x86@vger.kernel.org, LKML , Dell Client Kernel Message-Id: In-Reply-To: References: <20240425172758.67831-1-lsanche@lyndeno.ca> <20240501215829.4991-2-lsanche@lyndeno.ca> X-Mailer: geary/44.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed On Thu, May 9 2024 at 09:10:51 AM -06:00:00, Lyndon Sanche wrote: > On Wed, May 8, 2024, at 8:24 AM, Shen, Yijun wrote: >> Hi Lyndon, >> >> Thanks for working on this patch. >> >> >> Dell side has an initial testing with this patch on some laptops, >> it >> looks good. While changing the platform profile: >> 1. The corresponding USTT option in BIOS will be changed. >> 2. thermald will not be impacted. The related PSVT and ITMT will be >> loaded. >> Some Dell DTs does not have the USTT, Dell'll have a check if >> nothing >> is broken. >> >> Additional, with this patch, follow behavior is found: >> 1. For example, the platform profile is quiet. >> 2. Reboot the system and change the USTT to performance. >> 3. Boot to desktop, the platform profile is "quiet", the USTT will >> be >> changed back to "quiet". >> This looks like not a proper user experience. The platform profile >> should honor the BIOS setting, aka, the platform profile should be >> switched to "performance". > > Hello: > > Thank you for your email. This is definitely undesirable behaviour, I > will have a look at the code to see why this is happening. Does it > always revert to quiet on boot, or always the mode that you had > switched to prior to reboot? > > Do you happen to have power-profiles-daemon or something similar > running? My understanding is it remembers profiles across reboots, > this could potentially also revert the profile back to what it was. > See this release for details: > https://gitlab.freedesktop.org/upower/power-profiles-daemon/-/releases/0.9.0 > > I will assume there is a bug in my code at this point. I will test > with and without ppd running on my system to see if it changes across > reboots. > > Are USTT settings exposed in your BIOS configuration menu? On my > laptop they are not and I have to use smbios-thermal-ctl. > > Thank you, > > Lyndon Hi Yijun: I tested this on my computer (XPS 9560). I do not have access to the USTT settings in the BIOS screen so to substitute that, I booted without the patch and set the USTT manually using smbios-thermal-ctl. Here are my findings: Scenario #1: Without power-profiles-daemon (ppd) running 1. Boot with patch, set platform_profile to quiet 2. Boot without patch applied (no platform_profile) - smbios-thermal-ctl confirms USTT is set to quiet - use smbios-thermal-ctl to set USTT to performance - confirm set to performance 3. Boot with patch again - platform_profile is set to performance Scenario #2: With ppd running 1. Boot with patch, set platform_profile to performance with ppd - Confirm platform_profile is performance 2. Boot without patch applied (no platform_profile) - smbios-thermal-ctl confirms USTT is set to performance - ppd reverts to balanced (only controlling intel_pstate in this case) - use smbios-thermal-ctl to set USTT to quiet - confirm set to quiet 3. Boot with patch again - platform_profile and ppd is set to performance In my case, the setting in the smbios is honored if it was switched with another method. When using a userspace program that manipulates the platform_profile, the program seems to remember the previous state and switch to that. So I do not think there is a bug in this patch related to this issue, at least in my case. Please let me know if you have any questions. Thanks, Lyndon