Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1018541ybg; Mon, 1 Jun 2020 22:20:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyDcgKetF4WItsTmR2JPAwfpal0hluREcx00i6doPH9q2aRq2URV/S8Vc1B9gphEzjLU2ua X-Received: by 2002:a17:906:2615:: with SMTP id h21mr15370853ejc.84.1591075232852; Mon, 01 Jun 2020 22:20:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591075232; cv=none; d=google.com; s=arc-20160816; b=IwYExJAc42JBtbV5lij/zVLnal2ZD7Ky641iYQHDY48oKVG+rp4WfkntQWI8ZmrCEs sFycHbwEwL4OxPDA2ZJDj4T28S2cP5h4bEMThBp+hGUgAhD9PlMt+oiOrExF67i6DbBT ICj4r0Vndeb5eUY60D4yUMWxGc5i+Pt9MMwNobgWIpHxhxOui+TYXrUuOLu5SY3kD9ZR iR+Xh3S/ogWnyJsp5Hbc3S0AsWVBQTFOFrG8n9H4AivhuXCGtaSyLehJcSsf38gjyo18 xMtW/8NG9vW3M1iFMUO2n4lr5+Gg8fBGWOoHS3+GIlBYgau9WpntPSgzE1N397veH4dE HEsA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wDwA49qlibi8ifBKcQK5YxVr+aaj4hDDJcJVTNeIJ48=; b=0klnKDre5CGIhHXCxhm5c3ImS805VnqFKxwzK0fq4H/npQN2ECI+tZvHNbkf5uko6I z6uDXSA5BQT/CiVMBuQoWQrlLrp5fIHfYBVCxvwG5wZ6rg6AiKrs9kHC11i669XI+7OS PqkAK9/BQZVrTEvMZWyPJYmVaPNliZX/miuJPaiHw1+8unfvLrirTH4/5BhHhyDUbSJT dw6ALpS3OAEx7SMwxnZ3TodVB502jS97sKBvxvCtWJXp/hkO0bNPxgIUUD/K1flLLCJK Z3qlwIrc3UZB6WSG/nuy3IGTkB53T8y53YqzxMjFFZwDb2XkcpthG3K/T7OrM+70Ue/n GH5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=rM7Q3kkj; 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 h4si924659ejk.9.2020.06.01.22.20.09; Mon, 01 Jun 2020 22:20:32 -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; dkim=pass header.i=@linaro.org header.s=google header.b=rM7Q3kkj; 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 S1726032AbgFBFQO (ORCPT + 99 others); Tue, 2 Jun 2020 01:16:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58220 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725841AbgFBFQN (ORCPT ); Tue, 2 Jun 2020 01:16:13 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 923E2C05BD43 for ; Mon, 1 Jun 2020 22:16:13 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id q24so889847pjd.1 for ; Mon, 01 Jun 2020 22:16:13 -0700 (PDT) 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=wDwA49qlibi8ifBKcQK5YxVr+aaj4hDDJcJVTNeIJ48=; b=rM7Q3kkjKcwtSFNIipJS/A4g/HnsQ1TsKTtLks8FS5hyB/S44lrzWqoImAeehYh+Dz WTjzuvsYIhRxoBgcTryPVTOIWEL+q+ftsR62L86UDYi6dFfHRyJLKulD1KLE8H+l+OSt CPu6no5aD/z8x8E6Ggvtgxq4dxz5BtDAKpNF3kF5G5436Km6Y+t8vh5DRd2f6WG9HZSo 8f6yhbnLOtumZ3Nqau4SorDMFk2J/8VCtT7EmFVP/RteSMBD/kw18Qjjihr8x0xZ/mdR Wpi0Pr7n6FmV1r4qBYNjk3i36rX1IoST1Aqu91UbSEB/xm3wbC6fBrzrbE6+YJMfcZcy DRAw== 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=wDwA49qlibi8ifBKcQK5YxVr+aaj4hDDJcJVTNeIJ48=; b=fkazOubZqwGyX5Itc6O9OD3beVW13wozmDZneEC2S+lk6BQCMpkKZbH/m/sNucmGmQ HMidDoJMjEXYiA1tRat58/0sp6pkbkasBaEpEpPaa/al+HLu9dY1GykCenmx1i6E4P+7 67Io+gEysAqowV+RTcE6eDzDNoFSYhaQ3xX8X3e1EkNxTKELxpRBwq9agCCB6cMMsKvH 3LH8VZZxL4V6VjoRP/SpBDvRM9v/64w2jnim8sN3kjBarXyQ/SWvN4SJPZQBOWpvIk+E 0oD4tWx+kqhh2bp2ydgt57dfn9IMuV8zSz6CBSOZTNdisTcsVlgUGhFZiQO8bpM38kRr YwCA== X-Gm-Message-State: AOAM532t0nxKBBlSyLqlGXzgQ3XLZ9qi67wWMCKXJSHq4muPqYRLdO1h inNRwPPNxU/BPsN85X0IxEai5pngULk= X-Received: by 2002:a17:90b:30d8:: with SMTP id hi24mr3472370pjb.78.1591074973062; Mon, 01 Jun 2020 22:16:13 -0700 (PDT) Received: from localhost ([122.172.62.209]) by smtp.gmail.com with ESMTPSA id s8sm994752pjz.44.2020.06.01.22.16.11 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Jun 2020 22:16:12 -0700 (PDT) Date: Tue, 2 Jun 2020 10:46:09 +0530 From: Viresh Kumar To: Xiongfeng Wang Cc: rjw@rjwysocki.net, Souvik.Chakravarty@arm.com, Thanu.Rangarajan@arm.com, Sudeep.Holla@arm.com, guohanjun@huawei.com, john.garry@huawei.com, jonathan.cameron@huawei.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 0/2] add SW BOOST support for CPPC Message-ID: <20200602051609.ahot4qv2nlb6yh3t@vireshk-i7> References: <1590804511-9672-1-git-send-email-wangxiongfeng2@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1590804511-9672-1-git-send-email-wangxiongfeng2@huawei.com> User-Agent: NeoMutt/20180716-391-311a52 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 -- viresh