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: Perry Yuan 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+8i7eAmOO0omNRQvn66aoNnKkNtpYIslgDt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iuiTrf6kNoZykNyBFD+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`` ===============================================