Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2845123pxu; Mon, 14 Dec 2020 12:15:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHhraa9oaEu2Wcd8xG5PaG5AQBXj5ox0u2/zTSLxhaO2AteA80awwlpJ0AK4NSEB/V1ESa X-Received: by 2002:a17:906:3102:: with SMTP id 2mr24004074ejx.135.1607976955919; Mon, 14 Dec 2020 12:15:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607976955; cv=none; d=google.com; s=arc-20160816; b=Pb3glO4e3vWkQYVrwFTFfQs/9f/VLWSM9l/82pFrN4h/b/7oqj0Bi8Hv8DauNyOX1/ JnfAs0hVKHpzVn9XOKnGWfvacpeLKgLcYqb5PyYrYAVj9HA7x0kwkzFnZDjRPSA9QeB1 M/fi/ly62LXpm/2ui2ke11VrIUaagcDBpOQtBHuy/a70ud2spMvYE0eZyuWF081Hu/iR 0n9OsI4GeNieB52azG/Q4/YuPAAgz0fVdN89WEoAnvlC+AQPMerS0FHNr9Oceb8VA0Tg kyBVWNVB+4czWtYzmGZJo29eMZG8wGB+HNjyKJw0QdrGfywZG9gDHSZPTria0CYBvaJf w4ug== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=h0LIIBEjfo8J+LoRwUyCfbmXn+Q2zlVQl1R5Sg80Q3M=; b=IiA+udCtwOPe/SQnWKUfO1zJNLHGbYFaFZyB/v8ssGCv9yBgnLXtf/aizlaTgGavuv JxDExrCRDPG0MiZLgd85ypUSg+G0ukoZVAnMovIIBrzepZd7zUvjMYW2kqvZPxQZVPr+ d3wjLYeunkCnqJHArKSW3ATSh6HXmyypNWzEwhHneyw/HlJ1ERGJ5l5Vk5bLkmqk6ni1 PpGG9aqZniXYAG1X7e9/UcX/nnuWQSbMY4J8j4wVIqEhH2MLfkEUt50aJihCMApVjGn6 4FYx0fhRgcoqcLIl9vP2ahhK86GxBF2NbJnCpqYn1hjsOaSMNVHUgP3pW6oa3wgoul+q zc5Q== 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 y7si11438570edp.7.2020.12.14.12.15.33; Mon, 14 Dec 2020 12:15:55 -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 S2503046AbgLNUL3 (ORCPT + 99 others); Mon, 14 Dec 2020 15:11:29 -0500 Received: from cloudserver094114.home.pl ([79.96.170.134]:49774 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2502867AbgLNUKm (ORCPT ); Mon, 14 Dec 2020 15:10:42 -0500 Received: from 89-77-60-66.dynamic.chello.pl (89.77.60.66) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.530) id b3bf987f1bf494ed; Mon, 14 Dec 2020 21:09:41 +0100 From: "Rafael J. Wysocki" To: Linux PM Cc: LKML , Viresh Kumar , Srinivas Pandruvada , Peter Zijlstra , Doug Smythies , Giovanni Gherdovich Subject: [PATCH v2 0/3] cpufreq: Allow drivers to receive more information from the governor Date: Mon, 14 Dec 2020 21:01:52 +0100 Message-ID: <3827230.0GnL3RTcl1@kreacher> In-Reply-To: <20360841.iInq7taT2Z@kreacher> References: <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, 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. Thanks!