Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2524686pxu; Mon, 7 Dec 2020 08:42:39 -0800 (PST) X-Google-Smtp-Source: ABdhPJw0a26Bj6lf83yLXHAK7nhn8g0hkQdBZXDw3MyAaFYrY6mw7goHacGdpgu1D3mSGN5NoMN/ X-Received: by 2002:a17:906:17d1:: with SMTP id u17mr19232292eje.6.1607359359597; Mon, 07 Dec 2020 08:42:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607359359; cv=none; d=google.com; s=arc-20160816; b=bRlrVHcwJ7pl+exG4z0mPInTmGnx1LrPcoezMpkz1qGPwygk/fV5klFiNPr/d8PwQ1 MyXWq9TtC3cyiJDQThtEqwHyXMJJQxnqLTPYmbgGUHLRNDa0zufo6ydNN3E/fOhkIOEV yvDpnwUwmbP2SwpKS9M5gD0pPu3jjd+eAjQMs4BmsHKvgnLpcG3VYcf5Q1sAz9x71qUl pF3FMZkRv0NgawnR495n4//QbeEHvAb4dr6g6a0ePErWuV9dksHEh5U3yW5pLSN6snuF mYFUEXIu7NlZIt46yxnYCwqRwKKiFWxg8qXSzghF8a/mN32fYJ5FH9wVXsT48vU2E3KR R+mg== 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=R2Hemv/IMNX/f4pbfPCPLMsZwumNiZqkp9qu/RVpu5U=; b=J7HzKabzxFC83E08kewePL2BOgwAK8IlMDAfqvLTEcIMrGm6iHd2GIa1c15EAQFCfc Agsfuk6u74jQ75uxWmQUvLi+BKVLG0VpUxNd3BBkNXwcH53cjnd0J6fIPm9+vad+mSAp si66YEcsvVMf+81XdD2oxzKiCzM/aq+HWldJlZbqfBOQWaJQo3oIFTtIWq0OMQhodj7a CM9/WMKmBIO5xwYL2vBbM66jCRlxtJDrUpgQ6jHa1cfFhLptgTByyNqdvAPFIGPdtzAz nBy7SMndgW0RCs75BUAbKAmueajEm+OSZ8gfhVEyBDeHyFnGaJ6xJoV/sXAy9gZkTzwi SUDQ== 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 a23si8817030edn.292.2020.12.07.08.41.55; Mon, 07 Dec 2020 08:42:39 -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 S1727846AbgLGQkg (ORCPT + 99 others); Mon, 7 Dec 2020 11:40:36 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:44414 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727135AbgLGQkf (ORCPT ); Mon, 7 Dec 2020 11:40:35 -0500 Received: from 89-64-79-106.dynamic.chello.pl (89.64.79.106) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.530) id c811ea54e7d6c95c; Mon, 7 Dec 2020 17:39:53 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Viresh Kumar , Srinivas Pandruvada , Peter Zijlstra , Doug Smythies , Giovanni Gherdovich Subject: [PATCH v1 0/4] cpufreq: Allow drivers to receive more information from the governor Date: Mon, 07 Dec 2020 17:25:38 +0100 Message-ID: <20360841.iInq7taT2Z@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, This is based on the RFC posted a few days ago: https://lore.kernel.org/linux-pm/1817571.2o5Kk4Ohv2@kreacher/ The majority of the original cover letter still applies, so let me quote it here: Using intel_pstate in the passive mode with HWP enabled, in particular under the schedutil governor, is still kind of problematic, because it has to assume that it should not allow the frequency to fall below the one requested by the governor. For this reason, it translates the target frequency into HWP.REQ.MIN which generally causes the processor to run a bit too fast. Moreover, this allows the HWP algorithm to use any frequency between the target one and HWP.REQ.MAX that corresponds to the policy max limit and some workloads cause it to go for the max turbo frequency prematurely which hurts energy- efficiency without improving performance, even though the schedutil governor itself would not allow the frequency to ramp up so fast. This patch series attempts to improve the situation by introducing a new driver callback allowing the driver to receive more information from the governor. In particular, this allows the min (required) and target (desired) performance levels to be passed to it and those can be used to give better hints to the hardware. There are two additional schedutil patches this time (IMO they kind of make sense without the other two, even though the first one increases the amount of memory used by schedutil) and patches [2-3/4] correspond to the two patches in the RFC, respectively. Please refer to the patch changelogs for details. Thanks!