From patchwork Fri Apr 26 06:34:44 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yuan, Perry" X-Patchwork-Id: 792548 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2050.outbound.protection.outlook.com [40.107.220.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4783F13BACE; Fri, 26 Apr 2024 06:35:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.220.50 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714113336; cv=fail; b=hUBaV7iNhiGPSF2l91qHWwp94hI6A/6RA5rOD/mrKO66vJofQJ2dE3qNusYY2XQ/LNQjKIHMOkTc++JscpbX9z48wgOCr3vXJI4QeBsd2tjQSnme1TCJ+xDPWU8AgBRPmtuXMtHqwYOUFDWUMcUyJMi3xA4hHYvbqOBCaxbBy4A= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714113336; c=relaxed/simple; bh=oEJ1aIAtGosrFyk4IqINDU+8CxFIH3iJUhgfurIlJY0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=NxkYUTfQmTaArfbyZSDouKRMj1WCEFgetzUya+2OVTQyt3p1ySKZ7DnqVkWz0EfvPBZmLiVGXxRyz4d2FlS7V71Fijtj2F4IkSOjBsu/SSJ+vJw0PBjqb1Ko8DwKSsNUEhOq9NdIgGyyYlhj9r3iTHjx5+mZK9QD3fxrD+95QYQ= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=KHOpU8C1; arc=fail smtp.client-ip=40.107.220.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="KHOpU8C1" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b3EM8yAXjWfZiVicLJ6cs9/7TzHX20fxmBsnR7/fzKp0TVyRB3ipXt3wH8PJvj40mLcRrLreNiJsqrQoIEhLVU48Wg/+kCUHqCQLUr1PeHLk2kXlTNUJ5CBbDKW4JJqVRtTfA11bDRucVIOXvfQ9XLrLHDzaF9DXlacJ6FVnUf3FtE3TLSTYaLhyN0QaTbDpCMybnW0w1vGO805CESJcf49HXsUZMwioJ6LKP8R2Y24J8jOvNNzJ4b6rsUAvge3JuuYaTAXLEu67PlDAHhYCPlxEWpMzr40zFte1Uc5nJvNpywyvbwVOk0c+E+xDCy/Yi2ja5s3rUzgkVYfCsNkJRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=kq+BXGQldt6vAGnrN13zwfmUSkeLFSTbaIEjid2Iko8=; b=gMj45cLH70VXrvTuFE9pZS4oQ/0Fclkr1MgwH6d6BoHrk7UEZUlRiK0xbaygzJzCVALQ0MbKlW0j53B+06gaXUtsZSmGtbb5P+VwNv0v160AspZ6AF4SLWLeIuaQRMK8GWvUUrnsb1j0nDubP1J/8hA4msfFEAQoPCDLEs3+ue4Ki3dm+BPcPvqP4gBrJ8IcGMRdCW8NpWL8sYsJlcn6f7PvyxkBqJ7hv4c19l0C35orecw8ipluqPWYWFKstUOfBXJU+Xe6af7GpdegaHokBYloAKunPVhNQnOzpxMqM5Esks9C37pv8lxAQx2dTbES6sUwFXIGHjNMRIck6AANrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kq+BXGQldt6vAGnrN13zwfmUSkeLFSTbaIEjid2Iko8=; b=KHOpU8C1xJnELioWXH5BN9IiJleHP+TZqS4I+bAmzK7ArN47hXf/yfpodBlVOGjXdO0eJ/zCF20pepuqOL/i2lGOh7bmx6d3Ne744GZpdMpGkTPZQ6S22RX77/vujWO0R3TPBEaWsVdsZ+601ZU8N6ttie4uC7Xhjr1xQEbcBtg= Received: from CH0PR04CA0051.namprd04.prod.outlook.com (2603:10b6:610:77::26) by MW4PR12MB7311.namprd12.prod.outlook.com (2603:10b6:303:227::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.22; Fri, 26 Apr 2024 06:35:12 +0000 Received: from CH2PEPF00000141.namprd02.prod.outlook.com (2603:10b6:610:77:cafe::70) by CH0PR04CA0051.outlook.office365.com (2603:10b6:610:77::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.30 via Frontend Transport; Fri, 26 Apr 2024 06:35:12 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH2PEPF00000141.mail.protection.outlook.com (10.167.244.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.19 via Frontend Transport; Fri, 26 Apr 2024 06:35:12 +0000 Received: from pyuan-Chachani-VN.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 26 Apr 2024 01:35:09 -0500 From: Perry Yuan To: , , , , , CC: , , , , , Subject: [PATCH v8 1/6] cpufreq: acpi: move MSR_K7_HWCR_CPB_DIS_BIT into msr-index.h Date: Fri, 26 Apr 2024 14:34:44 +0800 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF00000141:EE_|MW4PR12MB7311:EE_ X-MS-Office365-Filtering-Correlation-Id: 2ccfa2f7-21f3-4b2e-59b3-08dc65bb06cd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230031|376005|36860700004|1800799015|82310400014; X-Microsoft-Antispam-Message-Info: heV+G7mL/a1IUxxgGMA5GlnOTplq+DdNkD3RJdW3aPkfo/38bDJ5PSNfL/FHYwDT8nUD1o/HhgQztxBFSG+hVDR9U/GJiKZv47u+Tc1pmPwGvsJlBbAzYWfBHW/2Xxo9DWRw0tdN0Esacc1bgEp0L9Nj4UJhYVh+FjSYuQa64GJITofw3e51ySE6DRlTITHmebAQth6NDGAXkHeIyaGgTftUzEo1r5AeLf7Zy15cBv5fmdSWxADAL6b808fEyrAqrtLV0ftZbhJj+F8g6/tSqTqVIsHrtMrfG/Dk6tDdGxrdyJFBqZKlXSyT8Cw9FrQGCYuEWbW+SFtcB2hXMHqBx/JqgRyknxm+/Lw9CfayhiUt/6sYPU4qMvbqJH7qao4pHpFGD7TqzjdsrwStcmeih2M4mo9tWAlBv7LATcChWuPjD/rw7DcZ2lW8m90DTpAVOEVj/UfSHm6r+K/J9s9CcENzURgbsQeMZf3v9gdoOej7sTJV8nMywzwIAAFl6q7YbEt+kEFPGrfEMH/pwJETZrp1blzjehKRCuYLiDQMkzu5g4TXQx2Ov/XK28ZWfqn4LUqpLxdxG66ynrmu9+sT5TxEnXyEEwdgYptSgPe9mn0/TYogQcbFspH3LSUIVQFCZJRrY2U3yhDB2exEHS+FltB3YvkENVHQig/UWqPCGVqyyMxafU0MpJgN9/WltO5PjCar+sW5IX20MH3UeGNR9a92vGJKEoS9/qSoTZu3fUsEek8rRRzRM5v8nfBas9ViQ1/tU6UHy+xF4ki19r6US9DR9uV34GEwUpxnyOKmuFe7c7vrKjSgTzKAticZA6uOgOUJPh1wggy/1oe/KRDawFwTyRQB1WOeBZVeOev7dwuYZfCqsZcj/+5EuvIPz3FHvymEd/EkDQEnkzxeL+PpfQ/8aYDKdu05YCGz3EFbUzWHEl1Wr02iNXkb5yhA+H/pFQk/1ne+XFwoGcdccmCort5tljVi4gfniADNxscneAALN8/2cNxrv4D9ZnzCPotqMb9dBIHWZwaIrdQ7bmZKV3AvzbKMn0PTqRXf1KcajC5aOn8r4tQtTl7qt5GGTex1LUoVl05g1sA0rtF+wB4zmrlw32ryyEpUukp3WTUAGLLmKKtSw1L9CUp2ihUvQEGTgohqcBWGbSdeYVIF4TjGaM7lwsLlTDyehN/uu77tg3FBsw8JgH7Gv9oOBxPFloW4JWIgplFkMdBJOU4DIkG6lUMe2iPLxZNI09AEX1D2+w1llboQ6gD3kYG0G5HoHb7UdbeUe8V44h2o1k2FjnfLnqSYlur8o3mzrome+2JIVJDJW/RMFihHazUz/rBaYUvJUdrDLXo8e00AM17jNNlfAfH8LO9j0bcJGA/mhnu7O6E= X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(376005)(36860700004)(1800799015)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 06:35:12.6553 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2ccfa2f7-21f3-4b2e-59b3-08dc65bb06cd X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH2PEPF00000141.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB7311 There are some other drivers also need to use the MSR_K7_HWCR_CPB_DIS_BIT for CPB control bit, so it makes sense to move the definition to a common header file to allow other driver to use it. No intentional functional impact. Suggested-by: Gautham Ranjal Shenoy Signed-off-by: Perry Yuan Acked-by: Rafael J. Wysocki Acked-by: Huang Rui --- arch/x86/include/asm/msr-index.h | 2 ++ drivers/cpufreq/acpi-cpufreq.c | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/include/asm/msr-index.h b/arch/x86/include/asm/msr-index.h index e72c2b872957..8738a7b3917d 100644 --- a/arch/x86/include/asm/msr-index.h +++ b/arch/x86/include/asm/msr-index.h @@ -782,6 +782,8 @@ #define MSR_K7_HWCR_IRPERF_EN BIT_ULL(MSR_K7_HWCR_IRPERF_EN_BIT) #define MSR_K7_FID_VID_CTL 0xc0010041 #define MSR_K7_FID_VID_STATUS 0xc0010042 +#define MSR_K7_HWCR_CPB_DIS_BIT 25 +#define MSR_K7_HWCR_CPB_DIS BIT_ULL(MSR_K7_HWCR_CPB_DIS_BIT) /* K6 MSRs */ #define MSR_K6_WHCR 0xc0000082 diff --git a/drivers/cpufreq/acpi-cpufreq.c b/drivers/cpufreq/acpi-cpufreq.c index 37f1cdf46d29..2fc82831bddd 100644 --- a/drivers/cpufreq/acpi-cpufreq.c +++ b/drivers/cpufreq/acpi-cpufreq.c @@ -50,8 +50,6 @@ enum { #define AMD_MSR_RANGE (0x7) #define HYGON_MSR_RANGE (0x7) -#define MSR_K7_HWCR_CPB_DIS (1ULL << 25) - struct acpi_cpufreq_data { unsigned int resume; unsigned int cpu_feature; From patchwork Fri Apr 26 06:34:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yuan, Perry" X-Patchwork-Id: 792550 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2070.outbound.protection.outlook.com [40.107.93.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3519013A889; Fri, 26 Apr 2024 06:35:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.93.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714113323; cv=fail; b=G8erVj5KDyJRsNP7NCO7RC8zOrjxFyTAdEt2GkeqFZymjry3rPndFwADvK2GUEVIhWv4F5f/3hq9hXMfltTw3wYt+d4l8TEoO+ra+UNH1O6Fooz20iZORj+yhku3oHTn6OFnJ+fUcTcpn+XM7s3InOILPfTZb96nSw8b5/v/eNs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714113323; c=relaxed/simple; bh=oLTaIeljtmiT2DDVU7cUHo+5bXL6qoeEo+O1sB4FAwA=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=U6y/d0t3RQSc3MDF55utaOe8BcLikxt7nUOspRHUVzASzacpq+FMNwGDus4KTzFxrd2xgSthF9r6zLhcTvBXGw446kboJd395x8QeV8qF9oGS2PnomK/2/FJ5968X8mAfuX+u77zYJ6jV7hYqmdUSo82JIgVEdgSLJgpRmCB6BU= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=r0QDHwLj; arc=fail smtp.client-ip=40.107.93.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="r0QDHwLj" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hjBZw6Uteeipr8hWi+MjQNTvlnNlfV2Ldxxh31jl5Rum2R3UWvgdpmyFGfZxPzEP2ljqwCv6uXjpyMnG2fv1HgGUT25D9yC/QAoMLsys7QuUakDuIfZ6WrsgA9rm/GdJGlG4ABJEk/vUgnvLLqtXVwonDQ9kqZpTdaAxnRY9JYzrDs9/LYN/HFRx1d/f4F0/ZBS3a/qnGM48mzn56l7/O5KWe5mqu+X8X4u4+spYDJS+83Erjq2mPn2tHa/Tme7KQHD07w0LXvv0uHihYdq05yjbsjpJWrxdjpayBkg08xCyf5lQc0bfJY99EJoaHA9OKlsVYKmEGf9LeB7zTEVCWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=CVl4gSheS3gNrbyefRM1J7xeL25yOTI4/vqbzWj6XIk=; b=TpArelsdxksOSh5n5GwyB3f8eeqgniPJ5irhJ2+g4lXMI4NcDTDjD8OhuysUgJF8zrALH2Fmb3qArlWO1GxJGCGBjPytG6wr9hOlPBQrPkBq2c3oCY1DV67fKN04ZCd1fWU0kUgP5RadB+t6uWU1gOdQDgrmpOi+V2oJAYUh76f9KKQHdyWmOcksXt2v+GijcBpPDPBUdYEF1EelITCJVTtw4nklMPP7f/TqrQriMM6c/3EQ+3x3shn0sXV/+0XaF2rPrHl67TsMIfj8yG18USPPZQ5ZvEqencbZTC5cnPM3gdOFQ6LmQVlY8NBwn6QUy+H5lDdar8Nc8PcPyWdT5w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=CVl4gSheS3gNrbyefRM1J7xeL25yOTI4/vqbzWj6XIk=; b=r0QDHwLjDXQoA90nCWVWL0e+NDQSTbmXEEA2X+XT6BC3P3uWSolTiInaGz44FnYuas168FldKRIdm1LKF64fAVYxD5xa1vOQwxZAJIDNzogwxiZPz7WKOAzG7D/DeyflHiT39uriaTeqregCJjpgR+N6OQ9vzE6EAFZTu/rJsTA= Received: from CH0PR04CA0059.namprd04.prod.outlook.com (2603:10b6:610:77::34) by SA1PR12MB6948.namprd12.prod.outlook.com (2603:10b6:806:24f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.46; Fri, 26 Apr 2024 06:35:19 +0000 Received: from CH2PEPF00000141.namprd02.prod.outlook.com (2603:10b6:610:77:cafe::b) by CH0PR04CA0059.outlook.office365.com (2603:10b6:610:77::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.31 via Frontend Transport; Fri, 26 Apr 2024 06:35:19 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH2PEPF00000141.mail.protection.outlook.com (10.167.244.74) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.19 via Frontend Transport; Fri, 26 Apr 2024 06:35:19 +0000 Received: from pyuan-Chachani-VN.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 26 Apr 2024 01:35:15 -0500 From: Perry Yuan To: , , , , , CC: , , , , , Subject: [PATCH v8 3/6] cpufreq: amd-pstate: implement cpb_boost sysfs entry for boost control Date: Fri, 26 Apr 2024 14:34:46 +0800 Message-ID: <64eb440fd48d10a55525253bce2e9143db872f67.1714112854.git.perry.yuan@amd.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF00000141:EE_|SA1PR12MB6948:EE_ X-MS-Office365-Filtering-Correlation-Id: f80683ae-20fe-42b1-04a1-08dc65bb0aa6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: W4AyxeipiLc8BPvRkf0226ehGa+7cfYY/c16iuHJ+g71ykQhUxCKN/vE5ISpVUqSJuW7hkfbDKns3xC/vCtl2QCTHIg53huTfB13pW1OoW/TlTrS9j/ETM0qDQt+NVciRmy6nNGTpuGjHZGrqDq68iIV0XK6RmWGXXy26vRsHt8UC/jgUIytjZ6cZCOoyHUtQ92n0LoXaZLx397ON98ntuwhHV97Hk3AjDuPm0vKadHxIQfHMEvfAOlr3g6KSGBbm2e7loPzI1B4e7JLGIsR8eih6hNWjifL45eN2HTDqRcBEKmPJr4iQ732bYLws0oxpkgoD/EueNSLOc+B8pdPij1h9oIiz/AqByutyAI3cbodzqAE1Da7xkjo4PoiT1o2gfie4WG7yj+VuZnI3cwPdv7pNigQN2hM5c6/Ks90hrUE25TnN5XKIKnNUAgtyVtchZoLlQal4tdyC+ftMIl+7fYJ6jiv2HOwU6GssBqO2PhOgZA1gmVCqVBBNAOGiEbsKwbKKQP6gybSgfA//IRcl+YrCOPbjFvyM7KFGoVnWqasZW2MDbk6Rh/lmnYa3lXwpRcE5zvxTPqHgSA3nDRDhVWGcF9AC7hG/hkxhSALI8AsvNTM9rijGi+If5SzdbiVWONsdyE/FNrEC60Q2ml3blnn9mMAIfT06FpFbepBwHNR//cH9/awVg1jpea79rf1uzYXbfEWuoV+c2ECyIbS+JOierloAe4UbpvdFER5RvAwrQ1Ht3N9GeDtJFR1i/sAzmG4USnzhrPiL8V38IG7QSGrMZjDw+Tx7zH77DW3BeTo7svhl1ouyukcMPrDqrjnr6fdq8MYBuo7QB0dg9KdAS1YOILP2FEQjEhl1hlIixH+i/ObulFqB5S3XeZyeZmBptVZzZCE/mEvbCyjUGeJ0GKDJ8DXiNiMVOHL3Wl/t+rFIXa/2z5CABoz/AG51vnV4vN9wCiQWJztoBsuja9dOr34Ehmrv6WbsKos7OCe2Gw566nPFVvUfauGY+p/y88dVXAgu/EGoyVqLJA8TBqmnQ9bb3vOPsQGazoT3ibECD8CiTsqDRv43mRdE1te77owxm9TJqUD/oopzOYsDuxhOftcdQFTpAaG5FKTQJyqIuCOG/WKNSfoSViTwr51oycxvL4Y6Slryzxt10hixOxDxuIc42jiQR0AA1mQgsJ+Ipl5e6Xjw8Xa7hJrf0XV3K78QQZ4ut1UxEOrx3pxmmmncYgQmzexBWuYTA/J3B3kIHCBeQMd9114Bz1K1qe9lEV3ed/jjgCNd7zBFQfHUdTJ++cyCqfx/ldcgpi/MhVqW9SAtVY8KuPZW1AX/hQTMtS6fhwIoUR/BwNW7NdHDk8Dotx4wZvcUVHWa9CXYzSUshIO6Pw5ujNnoWCxoupzx0lb X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(36860700004)(376005)(1800799015)(82310400014); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 06:35:19.1084 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f80683ae-20fe-42b1-04a1-08dc65bb0aa6 X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH2PEPF00000141.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6948 From: Perry Yuan With this new sysfs entry `cpb_boost`created, user can change CPU boost state dynamically under `active`, `guided` and `passive` modes. And the highest perf and frequency will also be updated as the boost state changing. 0): check current boost state cat /sys/devices/system/cpu/amd_pstate/cpb_boost 1): disable CPU boost sudo bash -c "echo 0 > /sys/devices/system/cpu/amd_pstate/cpb_boost" 2): enable CPU boost sudo bash -c "echo 1 > /sys/devices/system/cpu/amd_pstate/cpb_boost" Link: https://bugzilla.kernel.org/show_bug.cgi?id=217931 Link: https://bugzilla.kernel.org/show_bug.cgi?id=217618 Signed-off-by: Perry Yuan --- drivers/cpufreq/amd-pstate.c | 99 ++++++++++++++++++++++++++++++++++++ 1 file changed, 99 insertions(+) diff --git a/drivers/cpufreq/amd-pstate.c b/drivers/cpufreq/amd-pstate.c index aa17a3134497..53ef39c6dbfa 100644 --- a/drivers/cpufreq/amd-pstate.c +++ b/drivers/cpufreq/amd-pstate.c @@ -1295,6 +1295,103 @@ static ssize_t prefcore_show(struct device *dev, return sysfs_emit(buf, "%s\n", str_enabled_disabled(amd_pstate_prefcore)); } +static int amd_cpu_boost_update(struct amd_cpudata *cpudata, u32 on) +{ + struct cpufreq_policy *policy = cpufreq_cpu_acquire(cpudata->cpu); + struct cppc_perf_ctrls perf_ctrls; + u32 highest_perf, nominal_perf, nominal_freq, max_freq; + int ret; + + if (!policy) + return -ENODATA; + + highest_perf = READ_ONCE(cpudata->highest_perf); + nominal_perf = READ_ONCE(cpudata->nominal_perf); + nominal_freq = READ_ONCE(cpudata->nominal_freq); + max_freq = READ_ONCE(cpudata->max_freq); + + if (boot_cpu_has(X86_FEATURE_CPPC)) { + u64 value = READ_ONCE(cpudata->cppc_req_cached); + + value &= ~GENMASK_ULL(7, 0); + value |= on ? highest_perf : nominal_perf; + WRITE_ONCE(cpudata->cppc_req_cached, value); + + wrmsrl_on_cpu(cpudata->cpu, MSR_AMD_CPPC_REQ, value); + } else { + perf_ctrls.max_perf = on ? highest_perf : nominal_perf; + ret = cppc_set_epp_perf(cpudata->cpu, &perf_ctrls, 1); + if (ret) { + cpufreq_cpu_release(policy); + pr_debug("failed to set energy perf value (%d)\n", ret); + return ret; + } + } + + if (on) + policy->cpuinfo.max_freq = max_freq; + else + policy->cpuinfo.max_freq = nominal_freq * 1000; + + policy->max = policy->cpuinfo.max_freq; + + if (cppc_state == AMD_PSTATE_PASSIVE) { + ret = freq_qos_update_request(&cpudata->req[1], + policy->cpuinfo.max_freq); + } + + cpufreq_cpu_release(policy); + + return ret; +} + +static ssize_t cpb_boost_show(struct device *dev, + struct device_attribute *attr, char *buf) +{ + return sysfs_emit(buf, "%u\n", amd_pstate_global_params.cpb_boost); +} + +static ssize_t cpb_boost_store(struct device *dev, struct device_attribute *b, + const char *buf, size_t count) +{ + bool new_state; + ssize_t ret; + int cpu; + + if (!amd_pstate_global_params.cpb_supported) { + pr_err("Boost mode is not supported by this processor or SBIOS\n"); + return -EINVAL; + } + + ret = kstrtobool(buf, &new_state); + if (ret) + return ret; + + mutex_lock(&amd_pstate_driver_lock); + amd_pstate_global_params.cpb_boost = !!new_state; + + for_each_present_cpu(cpu) { + + struct cpufreq_policy *policy = cpufreq_cpu_get(cpu); + struct amd_cpudata *cpudata = policy->driver_data; + + if (!cpudata) { + pr_err("cpudata is NULL\n"); + ret = -ENODATA; + cpufreq_cpu_put(policy); + goto err_exit; + } + + amd_cpu_boost_update(cpudata, amd_pstate_global_params.cpb_boost); + refresh_frequency_limits(policy); + cpufreq_cpu_put(policy); + } + +err_exit: + mutex_unlock(&amd_pstate_driver_lock); + return ret < 0 ? ret : count; +} + cpufreq_freq_attr_ro(amd_pstate_max_freq); cpufreq_freq_attr_ro(amd_pstate_lowest_nonlinear_freq); @@ -1305,6 +1402,7 @@ cpufreq_freq_attr_rw(energy_performance_preference); cpufreq_freq_attr_ro(energy_performance_available_preferences); static DEVICE_ATTR_RW(status); static DEVICE_ATTR_RO(prefcore); +static DEVICE_ATTR_RW(cpb_boost); static struct freq_attr *amd_pstate_attr[] = { &amd_pstate_max_freq, @@ -1329,6 +1427,7 @@ static struct freq_attr *amd_pstate_epp_attr[] = { static struct attribute *pstate_global_attributes[] = { &dev_attr_status.attr, &dev_attr_prefcore.attr, + &dev_attr_cpb_boost.attr, NULL }; From patchwork Fri Apr 26 06:34:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yuan, Perry" X-Patchwork-Id: 792549 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2053.outbound.protection.outlook.com [40.107.95.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 001CC13A403; Fri, 26 Apr 2024 06:35:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.95.53 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714113331; cv=fail; b=V83R1AmU9JnB5km9KUqAQBo23dFzM5t9JnsLZDOOyl0PJe7+BijNsFVDG4+H6A2vQMOeskmVoA5AOs1uPYT8fKnbad+7vyU1urHL0ZH7CwtalXAnVyy6QbqR1f2KGiUPMHadl4askgPwMB1X34eDO9DM+6scebS5nADYuCkmSXk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714113331; c=relaxed/simple; bh=xEj6liAj6IMhbWAhkHuDsMO4hCwxjqNXMN9NlrsX8rk=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=r15pqpOyccz3UrY1sI8pMk5VJ5MutNAcMyTV5kB5lSeUQYWjZVmxgcgRpdhteW7saWt+F5YTU1lTyOquJ2XS1KeeBTNLNsewiAfgqTDEPFd16Mh7/OnJ1GKYGnXVPREaPCzrx1hDuTemPTu8QBsxieGfxyjfoJ4vKUPvpMMthfo= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com; spf=fail smtp.mailfrom=amd.com; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b=EL//ooao; arc=fail smtp.client-ip=40.107.95.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=amd.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=amd.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=amd.com header.i=@amd.com header.b="EL//ooao" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZyEHY+uiZElS7icg18mgQbweho+RbdFd5QQaakVBFZmavIGeUtf2e1QToWBuJ2INaC//9p3k6XCUPNQ2/tfA9NPLh2BZCWll68rM22regNAB9ep2xgtyAjX4Z/YVI9J45mxMfXLV2N8wuE5vu/4RR0ZlMPLAIYYndxZ+mc58b88Z/mLq9j9DJ2x4CCMnhpEjK9w3653FG4QuqrPVoqEOkfmoAmOn+x8ChLDobEKYvDkCeOm0zrI4OZTiOt6yha5pNTx9ls5fVtGWDSgqPMO+oKw7mDPp9jhJ3eeXcRmAZbAP+OU4g1e7f3tYpKqyeQt28hq+4k0hvwNrG0y9O0IUdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=27ao4J8fzUAMRbFzpm1S5an7Hi17ByoMGWcavVPwhww=; b=Gc5u2Oore8GqKUjCKWsCbk/sy7gKOA1KPFwxnAQEO1ZafNju+JL2dryGztS1Brz91FAK/VOsOX5oI2IxQtshp1EEN59M94seEMtakCRb4gAfVaI37Lsw8OXvX8P7Y5NyFe4SvK6lx0+9TeJ/suKuZwoB/i6pVrCsb/103VznUFgjOfaagmTW4Q43h63YGbr8gDkVPqVx5wEcMFQTuQOUBo8wvtjUdG1J3NUPVp/CIZAE9RVNRuhf8ZjSbCkuYFp18x4vd6BWC1KszkJbdZLj7vS/eyGXa1ahca2U0FQkju2ayD9FLXKtAZg1MUfVoYhJ+PEfvyV6/Z456uRrRLH7Aw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=intel.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=27ao4J8fzUAMRbFzpm1S5an7Hi17ByoMGWcavVPwhww=; b=EL//ooaoZ3KTdicpnwgmqwLhwSqbYVaciiDXVdH2IhNejJfoYns7V9S7FeNubA9cynlCvl2Ky+sfaPsNz7tzK2Fd/mNP7IIg9C6YcN+wnrmc+HSnot+O9UbHoq2DKF+bMh0aecBbsf2f1kMYAkfeciK6IdHdsVHOyHnbqYO97pU= Received: from CH2PR08CA0030.namprd08.prod.outlook.com (2603:10b6:610:5a::40) by IA1PR12MB7518.namprd12.prod.outlook.com (2603:10b6:208:419::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7472.44; Fri, 26 Apr 2024 06:35:25 +0000 Received: from CH2PEPF0000013D.namprd02.prod.outlook.com (2603:10b6:610:5a:cafe::fb) by CH2PR08CA0030.outlook.office365.com (2603:10b6:610:5a::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7519.26 via Frontend Transport; Fri, 26 Apr 2024 06:35:25 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C Received: from SATLEXMB04.amd.com (165.204.84.17) by CH2PEPF0000013D.mail.protection.outlook.com (10.167.244.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7519.19 via Frontend Transport; Fri, 26 Apr 2024 06:35:25 +0000 Received: from pyuan-Chachani-VN.amd.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 26 Apr 2024 01:35:22 -0500 From: Perry Yuan To: , , , , , CC: , , , , , Subject: [PATCH v8 5/6] Documentation: cpufreq: amd-pstate: introduce the new cpu boost control method Date: Fri, 26 Apr 2024 14:34:48 +0800 Message-ID: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH2PEPF0000013D:EE_|IA1PR12MB7518:EE_ X-MS-Office365-Filtering-Correlation-Id: f0200f6c-1cf2-42ff-27db-08dc65bb0e8d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: wxF86MDoTt5rtzQXs4xmHnmEQRlew3zbQLSxO8FjNsXVi/7bV/9CczfbRqBMdTYEZSDZ0hHm5ZLO05KK13+L6kIBj3CABcd1I7JzAMCsAHazFCx/gLu/NMHWldag82AxR59b2WaYpENDtW58MF3XkKS7iYkurZrlxQeEmiCSnf6HgG207WB2/fRyNGqLjx6eyC1pFnBx0qCDu8mumhSXXCc7Gvsb17BIR15b85tyLQFhhGzF+8i7eAmOO0omNRQvn66aoNnKkNtpYIslgDt3dCGWimssEfIqMOhmkIxZ023JRODOSvSaRf1bgrzfO6tMLO1FM5qoSpshZoH+mS/pIjEsP3K40yn5YyDh3DWBlBjjQKVp+V7pIB6hEaTdko6aAFQN48rh9cLVQrRihhPzsy+ZlY01HK2FvZiCdZrKdexP3UEFCdMF82oJmXSsQpp+38z0zstE3VuK6KWMc/a35cRZ5urP04LTOje5vMct6bTmpE50AACBvSdxQhk7or72Ht8ad+rofL19roOPtYMaHbmG3nNCeVXrJQ1tQ/IybLe3vq/MB1nTjrrTzoVGtxPaq+6Ckt+BJMZAVTDZz7hVirgCyky4yNpKXsvVzdTebJzjKI349nw7QheCxd6Jmw2f4fem9nKp04vdRYvF9Hw8AMRolD6sz624YwPdVduKFeYB9bB5jr11DEblUaulYCb2NgFzpraLZi3G/kEhZ2bIcoFpzJ0dtkkY4uUUh4svzhbRVrFsDSF/BEZYmuXmA2utYfA5516X37cGkd8Vn/rA+C35kzHWKzValH8UzdZ4yN5UheI26veSDosFFCgcxIs8w6nHTXWbYpn/Q+pgogc78OdIAfGW5YcBSDhEF2axSUFdU3V5jGKJe/NtQc+vvilcfutd5ROTPeOuHulmnNPDDnLh7oOcviFjmN6Zs9qnbOm6P5ZXUhi/w7dv7nJIxhZpfYNixMjfvlhF1Wbc659bJ1oSSWoB2bm9yL0W2dgQZkeXvCB02gBFGDzYc1EPj9XgrjFI8WodmHLgpRuXRfTPaQVT2rsAjH9vPKn8B4jgMWM4gyEdjc2qce8TuvjBFvx0kP6dMot3Wq3VYKOQPonmbkGjgjutIXBsJRn1XEZrJKI6xcvMK3i741MT/3BrY9ZOsRaxjpEK5cLp42CDdF9P64Vci0FL0lyOMPL5pjjoUp3gnidfSf2xTZ4UvEvSChygfzdPZaBb/tfEMYj7+a6InsEuSPVSIM/Z/4/Clram9g16IvO30Je8Jovcf2pLRZwI9DYuYJq3NfAxZvWvWPWA1Tz6FSEN6gRnUQ4b4aGfeTCmNLmRd2FcWshFYNzT/XuzT8BBNcLoJOb2sXT4iuiTrf6kNoZykNyBFD+izuxDJqVgmVyjBQ5dFTy5MsFyZF8e X-Forefront-Antispam-Report: CIP:165.204.84.17; CTRY:US; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:SATLEXMB04.amd.com; PTR:InfoDomainNonexistent; CAT:NONE; SFS:(13230031)(82310400014)(376005)(1800799015)(36860700004); DIR:OUT; SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2024 06:35:25.6564 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f0200f6c-1cf2-42ff-27db-08dc65bb0e8d X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d; Ip=[165.204.84.17]; Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH2PEPF0000013D.namprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR12MB7518 From: Perry Yuan Introduce AMD CPU frequency boosting control sysfs entry which used for switching boost on and boost off. If core performance boost is disabled while a core is in a boosted P-state, the core automatically transitions to the highest performance non-boosted P-state The highest perf and frequency will be limited by the setting value. Signed-off-by: Perry Yuan --- Documentation/admin-guide/pm/amd-pstate.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst index 1e0d101b020a..82fbd01da658 100644 --- a/Documentation/admin-guide/pm/amd-pstate.rst +++ b/Documentation/admin-guide/pm/amd-pstate.rst @@ -440,6 +440,17 @@ control its functionality at the system level. They are located in the This attribute is read-only to check the state of preferred core set by the kernel parameter. +``cpb_boost`` + Specifies whether core performance boost is requested to be enabled or disabled + If core performance boost is disabled while a core is in a boosted P-state, the + core automatically transitions to the highest performance non-boosted P-state. + AMD Core Performance Boost(CPB) is controlled by this new attribute file which + allow user to change all cores frequency boosting state. It supports both + ``active``, ``passive`` and ``guided`` mode control with below value write to it. + + "0" Disable Core Performance Boosting + "1" Enable Core Performance Boosting + ``cpupower`` tool support for ``amd-pstate`` ===============================================