Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3353533pxb; Mon, 9 Nov 2020 09:01:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJwACg/U4WieF+hNm17UTmg6b41DRgl3CnMRYkF3aBow/bxBO89FnEVZvBedaXmHCOS/OqFR X-Received: by 2002:aa7:d890:: with SMTP id u16mr16380220edq.159.1604941300881; Mon, 09 Nov 2020 09:01:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604941300; cv=none; d=google.com; s=arc-20160816; b=z3r++hoClj5oWZYjVTY9sZUqc2kgHf1xAqW9JbpTwoGIYBCHA+YJtNMn1us6JptDET Oneqq/OEcznqcaPrVsehs7ZP8lny3hHxoOnt+zlmHn2UQJPxJwq5LOxk8FSc9yFkEbJC OD/eBcM0iUKuErb2cg6n6hZglnRxLocpH5zZe1nCRTeKPwv3fi0uHARRflI24NANTU+o z809LA36aDyZq3vMnkNtLPzj6tBxaqh5tuvCnN9G7lBet0ADNJ6FjMW62nWjQKEaG5oL nJFn+9nrHRveCo55DppolQNhAv+cSg2bRbwvZd1GzyUZ+HsqoN8/OIOcFNQwVFQXm+Z1 HWgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=13vNqbnBexHbgE3/I4qnj2t0UpAsRwQNekZhz21kKWI=; b=Qh6PiPtXAO4fTaX09k7a+5WR9zxKLVV4HczWFo5lVaVk1JGseWNT2v9shuEQQvRuHP 2EFo3oOuY37c3BhJ6sHYM7WccLpKqeoblmJu5DxQiWzjuqpR/801Z9RLKAZqTGKlWz5s F5R0crrY/59QdpUUX3dCejSDD7mp7SH8Xt8cSTuRs9jhp+8gxsZalrlXQahqrZqIh897 a7rgARuHX8Hr+5s+pIqA7n1Rawi4h8za2NQn4XHsceZso7S4et9lgFZbEVAENCEBsSaY +72TaMPzcYlkyzEE3WLKNKUh3qjubN5PIQY5jz8dyMTQN2ut2Yj+jmbsdt8eY4/yu4EL /+4w== 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 j10si7489387edt.142.2020.11.09.09.01.16; Mon, 09 Nov 2020 09:01:40 -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; 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 S1730900AbgKIQ5M (ORCPT + 99 others); Mon, 9 Nov 2020 11:57:12 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:61960 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731115AbgKIQ5L (ORCPT ); Mon, 9 Nov 2020 11:57:11 -0500 Received: from 89-64-87-89.dynamic.chello.pl (89.64.87.89) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.520) id 0c50821bbb1939c8; Mon, 9 Nov 2020 17:57:09 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: "Rafael J. Wysocki" , Viresh Kumar , Srinivas Pandruvada , Zhang Rui , LKML , Doug Smythies Subject: [PATCH v2 0/4] cpufreq: intel_pstate: Handle powersave governor correctly in the passive mode with HWP Date: Mon, 09 Nov 2020 17:49:49 +0100 Message-ID: <13269660.K2JYd4sGFX@kreacher> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, 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. Thanks!