Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1553969pxa; Thu, 6 Aug 2020 10:08:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyeD7Z8MwpVNkAV5dNw8KwTaE+jfYByV2Mi3niMBMxcXTyugQrnaG95SF7sAl52kYOVn4PD X-Received: by 2002:a17:906:36c2:: with SMTP id b2mr4957280ejc.238.1596733709290; Thu, 06 Aug 2020 10:08:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596733709; cv=none; d=google.com; s=arc-20160816; b=e+sTd/zlvEutIEipS+jtPDS1Njl1LMNTxH92Pdz631h6GEGAjBz7xEfoPf2yVdrg55 h8w9T6aIwfqUuZoMdgkMhrqhxSJtSAMmCEh7abgsqvGNgwtoqqW4be+8/g0KFPJRd3X5 0QL8d5rnqWNj2+IsOFLdX6/1rMnoE7rs6qyIIbHP8D1MHqGPdKqRenhhq2dpIVqoJcvY o/6ZnkcEUk8nBFnV24kKYleL+N8xnLvhMLTgU1TwlVracAieV4dDoXxuGEOizgaiclRv Ms0BUNDV4XbKT+8QIJXmwTBs4NIfV3YwmYvVol+74jxfsUnP6xSA8xwljVh0LFLAbnUw gEsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=AePFXupjiTvCyWBkQdgL+cCltt9PpzRjZ8YSSoYkqbY=; b=XJui5SQOkdm1c3QOT0etxCQvQQpAy9NQ9KaTDASsWd+AMLq29e+OO5eflFUoFdtCEG 2XeFY04AfcQUZBngazIK9x/pvTYvphPlsxYCmwvNvUPkzeQHGWsCakgong19UwhfP+TM vzJhePeK8kAlrYYok5Lwk9bwMA3h09kKRN9V9ZdICOGuq8oS7GS5W4ThERluFctgvDpG y/HoxCmY80gFuxAQ/keBy6XW+0DJcZKmPEQzvGyWtMiOeiXB/i179sa4doQmnq6Hn0ki lqbXVVPQiwBIOvC+k+kGPlrsyPUUIa5fIbr39HN2WFH+iM5FKOSR8RX7Tn1a+mx+wR22 Rffg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dn20si5462536ejc.409.2020.08.06.10.08.06; Thu, 06 Aug 2020 10:08:29 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729491AbgHFRHs (ORCPT + 99 others); Thu, 6 Aug 2020 13:07:48 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:63876 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729728AbgHFRGl (ORCPT ); Thu, 6 Aug 2020 13:06:41 -0400 Received: from 89-64-86-116.dynamic.chello.pl (89.64.86.116) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.415) id a0952d0a893f35a5; Thu, 6 Aug 2020 13:39:54 +0200 From: "Rafael J. Wysocki" To: Doug Smythies Cc: "'Rafael J. Wysocki'" , 'Linux Documentation' , 'LKML' , 'Peter Zijlstra' , 'Srinivas Pandruvada' , 'Giovanni Gherdovich' , 'Francisco Jerez' , 'Linux PM' Subject: Re: [PATCH] cpufreq: intel_pstate: Implement passive mode with HWP enabled Date: Thu, 06 Aug 2020 13:39:53 +0200 Message-ID: <5275102.Ez0hqPNOlg@kreacher> In-Reply-To: <004601d66bb6$199ce1a0$4cd6a4e0$@net> References: <3955470.QvD6XneCf3@kreacher> <2418846.A4mPlhI7ni@kreacher> <004601d66bb6$199ce1a0$4cd6a4e0$@net> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thursday, August 6, 2020 7:54:47 AM CEST Doug Smythies wrote: > On 2020.08.03 10:09 Rafael J. Wysocki wrote: > > On Sunday, August 2, 2020 5:17:39 PM CEST Doug Smythies wrote: > > > On 2020.07.19 04:43 Rafael J. Wysocki wrote: > > > > On Fri, Jul 17, 2020 at 3:37 PM Doug Smythies wrote: > > > > > On 2020.07.16 05:08 Rafael J. Wysocki wrote: > > > > > > On Wed, Jul 15, 2020 at 10:39 PM Doug Smythies wrote: > > > > > >> On 2020.07.14 11:16 Rafael J. Wysocki wrote: > > > > > >> > > > > > > >> > From: Rafael J. Wysocki > > > > > >> ... > > > > > >> > Since the passive mode hasn't worked with HWP at all, and it is not going to > > > > > >> > the default for HWP systems anyway, I don't see any drawbacks related to making > > > > > >> > this change, so I would consider this as 5.9 material unless there are any > > > > > >> > serious objections. > > > > > >> > > > > > >> Good point. > > > > > > > > > > Actually, for those users that default to passive mode upon boot, > > > > > this would mean they would find themselves using this. > > > > > Also, it isn't obvious, from the typical "what driver and what governor" > > > > > inquiry. > > > > > > > > So the change in behavior is that after this patch > > > > intel_pstate=passive doesn't imply no_hwp any more. > > > > > > > > That's a very minor difference though and I'm not aware of any adverse > > > > effects it can cause on HWP systems anyway. > > > > > > My point was, that it will now default to something where > > > testing has not been completed. > > > > > > > The "what governor" is straightforward in the passive mode: that's > > > > whatever cpufreq governor has been selected. > > > > > > I think you might have missed my point. > > > From the normal methods of inquiry one does not know > > > if HWP is being used or not. Why? Because with > > > or without HWP one gets the same answers under: > > > > > > /sys/devices/system/cpu/cpu*/cpufreq/scaling_driver > > > /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor > > > > Yes, but this is also the case in the active mode, isn't it? > > Yes, fair enough. > But we aren't changing what it means by default > between kernel 5.8 and 5.9-rc1. No, we aren't. The only (expected) change is when booting with intel_pstate=passive and without intel_pstate=no_hwp in the command line. Which should be easy enough to address by adding intel_pstate=no_hwp to the command line in 5.9-rc1 and later (to achieve the same behavior after a fresh boot). Cheers!