Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2087464ybg; Fri, 5 Jun 2020 05:25:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJALWBmHf6CXHdR0h4wrxeH4WwW7Cw9Qrx8bcvmcXVZzMs7gs4qA3Q6e/0cIsVxAFbw4fE X-Received: by 2002:a17:906:5418:: with SMTP id q24mr1512359ejo.266.1591359906993; Fri, 05 Jun 2020 05:25:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591359906; cv=none; d=google.com; s=arc-20160816; b=u4tU/iLwja6nLyoef9G0AToX/HYBvu6V7gbRGct34lla72tie8oQGvM5zl+IYfcm0b 9JLKsOUpkH2y+xjXmQKRT3HZ6keh9y0gpkqm4DFrF+NNqeIFs86YCD1uBwtb6clnp2lr rfz5pIAgcwOzu7x0nGTMUfzpKI9IKOrYoE8ZRkVpQ/mHfUOT6RtOmKmvj9lIcXbAZe1w rAwosM0PSWnx1ljShTWEtGh6E9GKSA6kuM5p7TYfOVuREK1NRgXSU1g0Kanc5OJziXdL PDchDUkImWw6e3IVI5z5FXnvIGUAla/0166LZMCRQ326AkG6wo+osk+Z6GL32Zwc+CY1 qe1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=mPWXKsqwL8hOgvzZkdc7ooHkJ32A3QWoyaocwxX1J/4=; b=H5VJPfhn9hvNmf2dr2RBRG+melOlgiJjqznu48cSQCg+jmQp5WCv2eUL1Q3V/9LwPj NFRDh/E7Y60UHNLjsu0AoCjrvKS7Nucm9Y66wo5K0umSaEwLqRaLKwN0xKYvy0gpm3xM oonW92neUVQZhn56lr9nxbYTlxx+gdyviX91ObRmgwtTEToKtYpFGbms1XASCU65J2ty aYWzG7dwusW5cQN1n9l20AtJouyyGXMmVxsq1FZpTsZvfy0iHzCHNjNSKQeUBV5WzD3U V/TjAhxAYsrKwlXj3lZ8aIWqEtEPdqK0X+V2BbO8qY63JmvGQuXHKixOGcdcyG6m2Nvj QrjQ== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si4056316edb.335.2020.06.05.05.24.43; Fri, 05 Jun 2020 05:25:06 -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; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726521AbgFEMWk (ORCPT + 99 others); Fri, 5 Jun 2020 08:22:40 -0400 Received: from mail-ot1-f68.google.com ([209.85.210.68]:46968 "EHLO mail-ot1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbgFEMWi (ORCPT ); Fri, 5 Jun 2020 08:22:38 -0400 Received: by mail-ot1-f68.google.com with SMTP id g7so6334541oti.13; Fri, 05 Jun 2020 05:22:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=mPWXKsqwL8hOgvzZkdc7ooHkJ32A3QWoyaocwxX1J/4=; b=iwnArzSaI7HfMoYylo2xGnXRpbMY8DZthcPrTmTlEqQMkM47QSXofSrofsJZY+uXzh o7yM6Odx/y68wlh0Doe9q1O3jhm1mTAwyoe3XSWbsfpjT2BqcaBNhJMfWb+x+xpIFGEX Cn+2bC/+6pq3YEu4Cr4imFnQKSXzgT22WI+PoT7hYDN+pnWa2XuHVo5/2IZDBERioJp5 mApcWeRuE4lmdp/t1EbGHZQczwoe2vIl9mMIGdSbSpIRumpIPi2HeWsZhA/TZxDLwJcb qUDvO+hJhYAJcXbcFFGLhUvOS9Fj1nnHK+5ju+cnCnGMSYB6S+ShvMoQMSGeKpitFpuS u97w== X-Gm-Message-State: AOAM532Qe1Lf0gKu5uKlhWHhY6/YIUEtN4oQQc7PJqV8IbNNIBplBToE u01+nO0/CPRFn7UdTUQqpkhjbdGG8mOqSxdLHhQ= X-Received: by 2002:a9d:5185:: with SMTP id y5mr6991224otg.118.1591359756787; Fri, 05 Jun 2020 05:22:36 -0700 (PDT) MIME-Version: 1.0 References: <1590804511-9672-1-git-send-email-wangxiongfeng2@huawei.com> <20200602051609.ahot4qv2nlb6yh3t@vireshk-i7> In-Reply-To: <20200602051609.ahot4qv2nlb6yh3t@vireshk-i7> From: "Rafael J. Wysocki" Date: Fri, 5 Jun 2020 14:22:25 +0200 Message-ID: Subject: Re: [PATCH v5 0/2] add SW BOOST support for CPPC To: Viresh Kumar , Xiongfeng Wang Cc: "Rafael J. Wysocki" , Souvik Chakravarty , Thanu.Rangarajan@arm.com, Sudeep Holla , Hanjun Guo , John Garry , Jonathan Cameron , Linux PM , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 2, 2020 at 7:16 AM Viresh Kumar wrote: > > On 30-05-20, 10:08, Xiongfeng Wang wrote: > > ACPI spec 6.2 section 8.4.7.1 provide the following two CPC registers. > > > > "Highest performance is the absolute maximum performance an individual > > processor may reach, assuming ideal conditions. This performance level > > may not be sustainable for long durations, and may only be achievable if > > other platform components are in a specific state; for example, it may > > require other processors be in an idle state. > > > > Nominal Performance is the maximum sustained performance level of the > > processor, assuming ideal operating conditions. In absence of an > > external constraint (power, thermal, etc.) this is the performance level > > the platform is expected to be able to maintain continuously. All > > processors are expected to be able to sustain their nominal performance > > state simultaneously." > > > > We can use Highest Performance as the max performance in boost mode and > > Nomial Performance as the max performance in non-boost mode. If the > > Highest Performance is greater than the Nominal Performance, we assume > > SW BOOST is supported. > > > > Changelog: > > > > v4 -> v5: > > add 'cpu_hotplug_lock' before calling '.set_boost' > > v3 -> v4: > > run 'boost_set_msr_each' for each CPU in the policy rather than > > each CPU in the system for 'acpi-cpufreq' > > add 'Suggested-by' > > > > Xiongfeng Wang (2): > > cpufreq: change '.set_boost' to act on only one policy > > CPPC: add support for SW BOOST > > > > drivers/cpufreq/acpi-cpufreq.c | 14 ++++++----- > > drivers/cpufreq/cppc_cpufreq.c | 39 +++++++++++++++++++++++++++-- > > drivers/cpufreq/cpufreq.c | 57 +++++++++++++++++++++++------------------- > > include/linux/cpufreq.h | 2 +- > > 4 files changed, 77 insertions(+), 35 deletions(-) > > Acked-by: Viresh Kumar Both patches have been applied as 5.8-rc material with slightly modified subjects and the changelog of patch [1/2] has been updated. Thanks!