Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp3438976ybk; Tue, 19 May 2020 04:50:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWbWkYQKHFqL6Dwz5vw6cwjt45pw9wEVv3YgTrTF7Ibo40wtpOmtq4c7kcj/XaEaqlm5c+ X-Received: by 2002:a05:6402:948:: with SMTP id h8mr9977593edz.127.1589889008815; Tue, 19 May 2020 04:50:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589889008; cv=none; d=google.com; s=arc-20160816; b=Yb5mp5pJnsIfFgQdG6cOF1+RSQMXX1Of6gQP9QMz7KNa2F2Ka0zAywKLouPc+pi/T+ BM/K5O4hp7UuqNmIns0+XEAI8Imtq+vn6zxtIXCISemQ31aFv3PazU7phpZlIG6cl64f lrK99WktpSIMxSssvu23eaGpKLbudHLqqMSoLczZ2Vq5N8oXJHtEzVdLPbjMOFOS+POf YN2BnERMnSkp30CupxMK0Mp/xs5mgFSZ/nxeV1EBNhNrxHObgffdxKsA6tzy0blW2QkG Qnb5KpaM8Fi/IM3M3Q1nBwOv6uUnKBP5b756ppi6UXMd87OjqkYZOvmefePA0vvhyIbd AKmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=6+DZizVhEvG+pIA/WMFM7deAeqNoGKR/gdfrGsiQAXs=; b=v62Lzec/MB/mOmR6qS+8RuF0XD99iS6SJamTYp0AVptuhBazmi+aZQjNId3NVOdx/X TAUOJbR3yMJcVqTzN3k9NtK/7u6/HQP7WlxZ1YLPpdz7KFZkFHJOk1Z4+i8Uj4Mwc2iT xQEtu0/exqkvCdv7sH7tefW2yFxKuBMjzyHwihxdRAC6DWbeg7aGZi1z2sF2/XRSwkRb JAaEDR8l2Yu1+MHPVE+G9kmDOLxBwbNalqBNxQPP4vBZ022wleN4aWqvzQzx4Yr/yTt3 NGd4tJtc3DOQmRPupfqx6ZLRXKbawVtjI59drS0SEv4nCz7wMppeid1WBMqBv+92LtHu 3elg== 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 bf7si7603688edb.292.2020.05.19.04.49.45; Tue, 19 May 2020 04:50:08 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728846AbgESLr5 (ORCPT + 99 others); Tue, 19 May 2020 07:47:57 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:4866 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726880AbgESLr5 (ORCPT ); Tue, 19 May 2020 07:47:57 -0400 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B16082A384A26CA1F027; Tue, 19 May 2020 19:47:54 +0800 (CST) Received: from linux-ibm.site (10.175.102.37) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.487.0; Tue, 19 May 2020 19:47:46 +0800 From: Xiongfeng Wang To: , , , CC: , , , , , , Subject: [RFC PATCH v3 0/2] add SW BOOST support for CPPC Date: Tue, 19 May 2020 19:41:27 +0800 Message-ID: <1589888489-13828-1-git-send-email-wangxiongfeng2@huawei.com> X-Mailer: git-send-email 1.7.12.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.102.37] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Xiongfeng Wang (2): cpufreq: change '.set_boost' to act on only one policy CPPC: add support for SW BOOST drivers/cpufreq/acpi-cpufreq.c | 4 ++-- drivers/cpufreq/cppc_cpufreq.c | 39 +++++++++++++++++++++++++++++-- drivers/cpufreq/cpufreq.c | 53 +++++++++++++++++++++--------------------- include/linux/cpufreq.h | 2 +- 4 files changed, 67 insertions(+), 31 deletions(-) -- 1.7.12.4