Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2868687pxk; Sun, 6 Sep 2020 17:19:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyls2USUOtrFNPSJ22dFDM8ebwrttAyjqleXDu0giP2pCWFCsj6pT2tthqZDflOssAoOZzB X-Received: by 2002:a50:cd5d:: with SMTP id d29mr20082377edj.318.1599437987860; Sun, 06 Sep 2020 17:19:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599437987; cv=none; d=google.com; s=arc-20160816; b=BNtPQhiXJlW9jSoc0nA59T3CeuWrRiEU9bWfy2Kx9UJIo3HyOXpJqnhNLy7sjceSTu JyEa+h9Lkg0WShvHqp8Bn9oEz2TB/OBYfV5qulrhD6GjThuiNgflUX+v+rC5CO6sM7VI 3em8/Ns9uZTie4D+e47jSaAEdB8v2ggilSxFONaLiguJyxcVUR0Fzdp6XJFIWiDsXjoD GIYdYbEBSTT1xz+mzE3FCfDg5eOLyBquvruAECeRlFSrIQFqr5KawGTcOe4cagzIzalX fTjc+YEwD+15MyWSNNmcYLKt5qliPiKyR91MvJhjDABDg4OUU0Y3Q+llu8FONEqWOVHg h6Bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=6f5D6BntBLDfIBY82JWUrBrCSFl5V3/wNPJtcHK/pHg=; b=WrYPvmXuLUcwhKEcqUz1BFTLnfhj/EGdXVxgB+6zcvOWBKZEnJ8VYbxzMDmBm5nfSA /H7IcNwritmh7+a9qxyf9DH0JuwKvA/0w+GC9ffAkFRAJNJKHiF0uopjDYRIiXfqHC5P 6hrtkr7xAXBhu98+HxeaHyuJALDdMtH987wzimLfTCJ8yLTGtShpeojs8dBkdQcRUslb eXuCVltIgC87d+JZp/sWy0z2z1AYwairrjUTfgct79OSsY19ZK2T4XZXCP3wzxGRAJJS O1UtBx8C4hemhmL/uvS2HpFI7L+kyLhaQE8/4d+AG3FXEH3y4RwSZ7ndmYSezOfPLris r/Sg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=kC8Xt+UW; 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 k3si9931403eds.225.2020.09.06.17.19.25; Sun, 06 Sep 2020 17:19:47 -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; dkim=pass (test mode) header.i=@telus.net header.s=neo header.b=kC8Xt+UW; 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 S1726637AbgIGAQl (ORCPT + 99 others); Sun, 6 Sep 2020 20:16:41 -0400 Received: from cmta18.telus.net ([209.171.16.91]:41718 "EHLO cmta18.telus.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726537AbgIGAQk (ORCPT ); Sun, 6 Sep 2020 20:16:40 -0400 Received: from dougxps ([173.180.45.4]) by cmsmtp with SMTP id F4plkpO5iiMStF4pnk1gM8; Sun, 06 Sep 2020 18:16:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telus.net; s=neo; t=1599437798; bh=6f5D6BntBLDfIBY82JWUrBrCSFl5V3/wNPJtcHK/pHg=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=kC8Xt+UWxFS7tqq8znBSolSAkZ7ryjbHauCRJholmIHuOJhuvT4LBAfnPByWi8PXM Fj4H8zj9OGpjmamWesFy0kbkiiwSOx0z9kk3CAlJcrm7NC6ObKrJJv8VSNh2b29e6I jzKHTCt+27xnzZrOCbIPQX84/rhTccngzBAE3ZQEfcFiYbydBnItlRMNyCPJj5Lbm8 8Mh7KBWfX4mlFblSiMBdeO51cuwDEwhY4AZb+iJh/paeTQVldI7zXCDt3seTp0UXQN ol++HF6egTP5Go6SNT8W4gTF9DdqkrPo8yoEsYY0uMmuO/DtOp8qXvCgiD2Zx6Q97L AeiRc/eKWvNiQ== X-Telus-Authed: none X-Authority-Analysis: v=2.3 cv=X7os11be c=1 sm=1 tr=0 a=zJWegnE7BH9C0Gl4FFgQyA==:117 a=zJWegnE7BH9C0Gl4FFgQyA==:17 a=Pyq9K9CWowscuQLKlpiwfMBGOR0=:19 a=kj9zAlcOel0A:10 a=NUCYY5ABiiWEOdNnIBYA:9 a=CjuIK1q_8ugA:10 From: "Doug Smythies" To: "'Rafael J. Wysocki'" Cc: "'Linux Documentation'" , "'LKML'" , "'Peter Zijlstra'" , "'Srinivas Pandruvada'" , "'Giovanni Gherdovich'" , "'Francisco Jerez'" , "'Viresh Kumar'" , "'Linux PM'" References: <4981405.3kqTVLv5tO@kreacher> <1709487.Bxjb1zNRZM@kreacher> <3226770.pJcYkdRNc2@kreacher> <122847018.uQ7iJ9lzrg@kreacher> <000901d674da$4521bda0$cf6538e0$@net> In-Reply-To: <000901d674da$4521bda0$cf6538e0$@net> Subject: RE: [PATCH v7] cpufreq: intel_pstate: Implement passive mode with HWP enabled Date: Sun, 6 Sep 2020 17:16:32 -0700 Message-ID: <000401d684ac$26ee4880$74cad980$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AdZsF+Ny9o2RVgG1QuO4ZJYAcV1MWgIFjVRQA3cqLPA= Content-Language: en-ca X-CMAE-Envelope: MS4wfCZvXPEvELx7qhybaoshebBIm6qp8gVxi6FxeGfTzSxZzoG52v1iLvek6iZjvzw9WJO5JYAkmINNOeLPU8AGJS0C74uVY0VfDfh4TVPVabbVwfcUGCQt YZtwvFRoQSFJeWxodlaRaK2Dj8XlYt0N4GJzPNNiTiz0aCXQ2tAy1JLZqVoBoCbIdYpjZ8XuUB1gI7kULWd79kNhgW6ciKL9e2HHsNDguVUgzN+nLso0ComW 5IyHx8Vd7ojxTxTu7wjbHTSIjO18g840WNR/+/hg+AF7HyGI8abFWu7I6LRocBNsIvfaFk2ErV1jygffRw+7eMGcy8NCDAoIb1FuKURSUYKg527+lKkYqLXg xVG+5vSofK7kuNJ5C3lo3bGN8YR321R5/KjhxedLmsAWGaAjmIjSPKHj5xIZ1tmnVrf3f7XmWPjGjEESzliSrvnBQHijBv4QS9dtMe0zzdr2Y7GKdcY= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rafael, On 2020.08.17 14:06 Doug Smythies wrote: > On 2020.08.06 05:04 Rafael J. Wysocki wrote: > > > Allow intel_pstate to work in the passive mode with HWP enabled and > > make it set the HWP minimum performance limit (HWP floor) to the > > P-state value given by the target frequency supplied by the cpufreq > > governor, so as to prevent the HWP algorithm and the CPU scheduler > > from working against each other, at least when the schedutil governor > > is in use, and update the intel_pstate documentation accordingly. > ... > > powersave governor: > acpi-cpufreq: good > intel_cpufreq hwp: bad > intel_cpufreq no hwp: good It occurs to me that my expectations as to what is meant by "powersave" might not agree with yours. For the powersave governor, this is what we have now: intel_cpufreq hwp == intel_pstate hwp intel_cpufreq no hwp == acpi-cpufreq == always minimum freq intel_pstate no hwp ~= acpi-cpufreq/ondemand Is that your understanding/intention? My expectation was/is: intel_cpufreq hwp == intel_cpufreq no hwp == acpi-cpufreq == always minimum freq intel_pstate no hwp ~= acpi-cpufreq/ondemand intel_pstate hwp == Unique. Say, extremely course version of ondemand. ... Doug