Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3079551pxu; Mon, 14 Dec 2020 20:22:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyWgMNAwKbSl2OhbD52+rE677cHRkWukyjV22zStXHDy9cXVaT56oFQV48yIyZrFbjVMyjC X-Received: by 2002:a17:906:724b:: with SMTP id n11mr11956854ejk.225.1608006156508; Mon, 14 Dec 2020 20:22:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608006156; cv=none; d=google.com; s=arc-20160816; b=zewHZC3+HbkxGaVGvdBw8MOBKDdUPDJnY0rZX/+wTalf0+4Qs1jXfeeF7XRPNLdVEJ PLC3MGqNPz5LA5gZv7+ScKpQhPmazpdvhqQNfHicv+3XTSAxpiRXrfoLm7nXZB9zhNcV nj9Gw5g+Mk5HiWiBpdkfJF20S0y1rz4zevnZCyBi+ilBKIgdhIljGkDfAXW2022Dx1Lr 8cht0Smtpy2Sz7RRPzSqpLFZ+bGFoPlq9LnfdjXDfTKqGYkLd30GPwVNjylnKXgFCprk SaGlbgOKluyqoNmkj36wmuGxCrp33GojfffcyuTXnO8v5/MYl7ved5hvmLdTiCeJiha8 Am+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=CqQxEjBsAi+jtGHEEbw5bAKcGSsoEFK1eZykSZqb/as=; b=vmMjG8GNwIA9iSe2PYiUtlZvxOyrlL3PkyYypidKCQHPteagUaLPxx/Qfm/WEF84Hk pH3DV6a1cYnsglGU9uYyfWS1JSzdJCykC7XZzRyZcZBdyTj1Jr0L97ANTgSqRBoYHqHA lBNIAqE2jseMTDgdAfsTSt8dS3e+dlUAS4SX5e+ZmykJu6RWmPzPTf0wlLug3UiEQVHr dQCyu7cepbDZFykOMSY8PmbQ/M/M8a17OGjuvEYNhSBYPicofnLzVS66Z8I5V+jNo5IH DMTFQPAYlzFzOe/q2wCdTLCNXgJaruuwU1KjfurcVoR2tjPGdWSgL9dynDyia0dKG1d5 OKhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IIyUsOKv; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e26si280790ejc.540.2020.12.14.20.22.12; Mon, 14 Dec 2020 20:22:36 -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 header.i=@linaro.org header.s=google header.b=IIyUsOKv; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725973AbgLOERp (ORCPT + 99 others); Mon, 14 Dec 2020 23:17:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725385AbgLOERm (ORCPT ); Mon, 14 Dec 2020 23:17:42 -0500 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0930EC0617A7 for ; Mon, 14 Dec 2020 20:16:56 -0800 (PST) Received: by mail-pj1-x1043.google.com with SMTP id w1so360490pjc.0 for ; Mon, 14 Dec 2020 20:16:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=CqQxEjBsAi+jtGHEEbw5bAKcGSsoEFK1eZykSZqb/as=; b=IIyUsOKveGEHhLShknJRFtJYnFflnuy9g9DTmJ973OzdLTEUpFXGgFoEmjX7sNw/EE f510xfphwQnV5Bf4yk0bJMBjLO/LDjVCTMQDR0o10z6sZCn7FpTwMkaXjfbppB7DNZAm Ru+9gu8Pm3DueFvB7ealoarROnht3SeCBh59V3awVNezmntSAiebv2eFZiUdVQ0AjjoR h8SBlJWj+n0FzJAPZ1niSkGTqzjqDv/NG3/iTDS4ViDiAGsnvBsiIf5ygHL5rdyKzTGm UWwNViAG4cIk33U+0n1q8RGQDo9Wyn3HvH1xY0bHoeHJd+n3/HdwcQOOpB1q97k0xEiu ZcWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=CqQxEjBsAi+jtGHEEbw5bAKcGSsoEFK1eZykSZqb/as=; b=IMu9JUwuMHAsePzFOMdRhm/TRtzIPcbMUlGSd6YO5+8eUDplHuMo9iz/Txu+OdVWWV N4eWOUO7Fv+Q2lHZ3yvAZor0jiHGca+X3X8M0NyOtZA+mHGE7R/W1C+l1Hp8QuYWXrqk WGGLd5OXUL0mG4BV9BlVohnMjoV9dZt/Q4XYmBZbDqZhkHy1KLSVAVdmmXOWqlVoMqR8 ZPYsyI5dxV0MKy/L/79Y1w9WnSC3QDCZLHfPZjvX6AUFh9/jSGfQWGpWxc8U56atu/Ww cXoWo647C/HjSMsjxt+S/xhHUGXCgUl1uOdaY0kjtrQtBYgm4vVjZtC0GNLr6BQALfOk MNxQ== X-Gm-Message-State: AOAM5315FiWdD2V1dMrazxZiyQjjlwKJJN/4DtWZC4AhEzBbvVUNFHeh mI0lhAqexUkkwPRlqZsJwtpoUw== X-Received: by 2002:a17:90a:fd08:: with SMTP id cv8mr27831626pjb.29.1608005815515; Mon, 14 Dec 2020 20:16:55 -0800 (PST) Received: from localhost ([122.172.20.109]) by smtp.gmail.com with ESMTPSA id y6sm252212pjl.0.2020.12.14.20.16.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Dec 2020 20:16:54 -0800 (PST) Date: Tue, 15 Dec 2020 09:46:51 +0530 From: Viresh Kumar To: "Rafael J. Wysocki" Cc: Linux PM , LKML , Srinivas Pandruvada , Peter Zijlstra , Doug Smythies , Giovanni Gherdovich Subject: Re: [PATCH v2 0/3] cpufreq: Allow drivers to receive more information from the governor Message-ID: <20201215041651.da3ii74xuc5orddp@vireshk-i7> References: <20360841.iInq7taT2Z@kreacher> <3827230.0GnL3RTcl1@kreacher> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3827230.0GnL3RTcl1@kreacher> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 14-12-20, 21:01, Rafael J. Wysocki wrote: > Hi, > > The timing of this is not perfect (sorry about that), but here's a refresh > of this series. > > The majority of the previous cover letter still applies: > > On Monday, December 7, 2020 5:25:38 PM CET Rafael J. Wysocki wrote: > > > > This is based on the RFC posted a few days ago: > > > > https://lore.kernel.org/linux-pm/1817571.2o5Kk4Ohv2@kreacher/ > > > > 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. > > In this second revision there are three patches (one preparatory patch for > schedutil that hasn't changed since the v1, the introduction of the new > callback and schedutil changes in patch [2/3] and the intel_pstate changes > in patch [3/3] that are the same as before. > > Please see patch changelogs for details. Acked-by: Viresh Kumar -- viresh