Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp4329351pxb; Tue, 10 Nov 2020 13:42:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyqnCXsNywe0nSOSE7VZ2DXJAHRZCrscKRxerBaYkgQOSngQP1TRXqoxDvLG9AkLQ4Pab4B X-Received: by 2002:a05:6402:38f:: with SMTP id o15mr18775334edv.73.1605044574118; Tue, 10 Nov 2020 13:42:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605044574; cv=none; d=google.com; s=arc-20160816; b=qC0SFCHNOdNzL/+DPNETAl/i0sYSfMtlJEQz4lb4Atg+TX/ARaiFMvNsXaL2yaauxG wZzLJsLOXamimD9KwHFlJfJB7uGw5z4FTlnmeGYeoS1ii4NEE5OJ4cf3oKoM+iqWro/L YtGsceafsP59UEM9thPmd1pI02M7Y5/6schvRMdYtfQ2f5UCFmBlstAv9jWf/hLuNPLj 8txYtMKuG0dVN+q/A2erI3vy+uPg1pUFlW/RddrqSmmOpE4lrL+/C7G69c94B8yRk30Q 7XhtXAskZ62uh6phq5IUAQTQ9puBGeGNn1jLq9/xIVoVE6GO1huLqvClZWZcBfeYbcK1 LYZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:content-language :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=6RjS39imp4A53kCw78FIMCvUMdoDh1IXVgnkUAf3UMg=; b=zQ+sx+P9WSbKphmNFI+5XgT3dq+trklkpMlH1I9aJDLiixq/5BUMflN1SNXYExeU2W Z/GCDv3gPEEtIavBZ2nSsIgPNu8zxSCqAgRdVczpd1CJ9mHe7xeooe7P2tV+38/aPlkJ YmGXe23X8KqFz3JZ96JN2Q8v47ovRhT0udbjhCqSSi+3cl1TKO/r5RfACkXEpxE/WT1Z QQzcq/qffIE75YEsFoA4IUMkg1HBbLyHt2GZB55XfO3ulcqQT6apPCi6lA5SCYOMUtfJ NeCk/FH1dD1TK628iuXg37OEGBURNBCuudGq21/H6CrZYBZr3i6+irc9qWCVuR4n19Cp YGmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=T1z9fXpq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m6si10476699ejc.527.2020.11.10.13.42.18; Tue, 10 Nov 2020 13:42:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=T1z9fXpq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=telus.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726467AbgKJVjG (ORCPT + 99 others); Tue, 10 Nov 2020 16:39:06 -0500 Received: from cmta16.telus.net ([209.171.16.89]:51068 "EHLO cmta16.telus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731919AbgKJVhH (ORCPT ); Tue, 10 Nov 2020 16:37:07 -0500 Received: from dougxps ([173.180.45.3]) by cmsmtp with SMTP id cbK1kTpijRYCLcbK2kWwMz; Tue, 10 Nov 2020 14:37:04 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1605044224; bh=6RjS39imp4A53kCw78FIMCvUMdoDh1IXVgnkUAf3UMg=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=T1z9fXpqwau1NgKWRAOiyB6Jic4n6eTuEhjfajeNFNnsNIpSL6z8jdS8TWAffHbo0 X2nMsgeAOKfnyXU2Ewy49CcCiNWCY4qyA49zxNbGFfXRfR5w6nseFSYISaZXPzAzVr LKblQPFZ3ikvoVhAjX9Qif3Nrh/ewGIUHEzm1ltFkpCqpXcmXrGcpWglDuY5IidxI8 eiS8YbNtnRe74M7cE9sR1A3/DyKOjygZuc7lUTSTgSIB0TYpkfn+3xPQIoBo3gb8M/ /tlCBuFRZ7EiGtAFpMd2DMcQQAcpOqpbAqiMZ0OQARDTpUa/lTBjphzbjlmZbzVm6g 4r7EgtmuEkfeQ== X-Telus-Authed: none X-Authority-Analysis: v=2.4 cv=ReVVt3hv c=1 sm=1 tr=0 ts=5fab0800 a=ZeVyObKPoMU90SgYCeSZ1g==:117 a=ZeVyObKPoMU90SgYCeSZ1g==:17 a=Pyq9K9CWowscuQLKlpiwfMBGOR0=:19 a=kj9zAlcOel0A:10 a=acWEPiQgkH2VWHeUEa0A:9 a=CjuIK1q_8ugA:10 From: "Doug Smythies" To: "'Rafael J. Wysocki'" Cc: "'Rafael J. Wysocki'" , "'Viresh Kumar'" , "'Srinivas Pandruvada'" , "'Zhang Rui'" , "'LKML'" , "'Linux PM'" References: <13269660.K2JYd4sGFX@kreacher> <11312387.r5AVKgp8zO@kreacher> In-Reply-To: <11312387.r5AVKgp8zO@kreacher> Subject: RE: [PATCH v3 0/4] cpufreq: intel_pstate: Handle powersave governor correctly in the passive mode with HWP Date: Tue, 10 Nov 2020 13:37:00 -0800 Message-ID: <000d01d6b7a9$a1abdf80$e5039e80$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-ca Thread-Index: Ada3huWgkL5djedHQomhtWyn688yUAAH3TGw X-CMAE-Envelope: MS4xfLVijRtsDugUe7KJYTX4tlRXrQiAD2LZuGJtWUE4edhXcSDDU8MwGOxBF9r2xHeamcjZQEm5oq7cEedqNVNzzq9nKj3Q9BoVkia2PU1DiFKS51N9eWUz dZnlpkCCMVUAisZO8mAIyf3VcZ7hUdXVy/RXJVzjkoK5yOrMLHaxA1PTnP8KaVLmKFDN2WMGlKsO5U69GbV+spCJYnfYRxqNti5+HreC3GsNfe3ut3icCEjy MIDCC1G3xg7OBwETGleeAJYfNGss/A/v0r3G6RiIHqZWSeI5AffnVQDI2weh40yhl9wzLXxrrsmNJh79xZvSQ/P5fQ73lY5FxfggjFAArSpUrjrsNlz4uAa7 K9cDJMJWfZan+ac35aQWelmglUJyDYzAWvbIuIs1rP3IFn3vbEw= Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020.11.10 09:22 Rafael J. Wysocki wrote: > On Monday, November 9, 2020 5:49:49 PM CET Rafael J. Wysocki wrote: >> >> Even after the changes made very recently, the handling of the powersave >> governor is not exactly as expected when intel_pstate operates in the >> "passive" mode with HWP enabled. >> >> Namely, in that case HWP is not limited to the policy min frequency, but it >> can scale the frequency up to the policy max limit and it cannot be constrained >> currently, because there are no provisions for that in the framework. >> >> To address that, patches [1-3/4] add a new governor flag to indicate that this >> governor wants the target frequency to be set to the exact value passed to the >> driver, if possible, and change the powersave and performance governors to have >> that flag set. >> >> The last patch makes intel_pstate take that flag into account when programming >> the HWP Request MSR. > > The v3 simply uses different names for the new governor flags. Thank you. I tested v2, with positive results, as reported for v1. I do not have time to re-test v3. My input is to also default this flag to be set for the userspace and ondemand governors. userspace: I tested with and without this flag set, and the flag is needed if the user expects the scaling_setspeed to be enforced. Disclaimer: I don't normally actually use the userspace governor. ondemand: from my tests, the ondemand response more closely mimics acpi-ondemand with the flag set. Power consumption has been better for the limited testing done. However, it is also a function of work/sleep frequency for periodic workflows and a function of INTEL_CPUFREQ_TRANSITION_DELAY_HWP. I am saying that my ability to support the suggestion to default to setting the flag is a little weak. ... Doug