From patchwork Wed May 8 07:21:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yuan, Perry" X-Patchwork-Id: 13658165 X-Patchwork-Delegate: mario.limonciello@amd.com Received: from NAM10-MW2-obe.outbound.protection.outlook.com (mail-mw2nam10on2081.outbound.protection.outlook.com [40.107.94.81]) (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 15B773EA9C; Wed, 8 May 2024 07:21:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.94.81 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715152910; cv=fail; b=Sb1IZD4BX+2SptNjhdquORKmHG7x4xLAALA/EB8IZPoZaUpx1PROe7aA/G9l4gl7ILlZwwh4yI3UDsH4jG36GB0vGQyN04Gy/ew2k0GQh4nGg16eHy+cjAUFvNtLzCdY1nqu8lncd6RpP72CwC3yHQznj4VLcbu1PwLjHYMqsOU= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715152910; c=relaxed/simple; bh=C4p2sKZdGRylYCgyqAJR+AyPOjBO2/pXljtXbG+zUuE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=c53lmylxCmjC8eeCkL427tBm12gchFzilquFczTzuB0Y8sIKcAImjQbLb26a70ddOB4X9il/k23Wbg8eYl3L12MsdsgWXFI6oNE435IDtVbrK2VrpnwPr6ci5QzVDvZpG2NxU8uZ73BQcsP4go+cYpTZrYZAzR6E52gJX1ceEmw= 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=0FQJONlh; arc=fail smtp.client-ip=40.107.94.81 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="0FQJONlh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fDQKRWfxBg6iFQhGny1t/o25JF1M+ldlEK53rqIl4OZZRIOkLhKY+aLs3opKSqhDhGvueOORFZzd3AEsSbdjUk7nhLCltt0xA4pmoLU5Na8vIyyyYqmUgBidd1WNDQThlKxNhEQ6Sn2tIuc0QfP+nllQ3bJq5T+7QzBFJ7fdurvhXo+c8HPy0iTqCaIZPP0CUMAQZfhvfoCc3ejX/UYhi2yVpXTLwfhx88PFRICFLPbigmHq/QoaASb9zrehNpIIyhJrRhsyf11KSwwAZ0YXyz5lKnRGijHSHybxFZaFIEUAQIBI3iy/rJSlLA+flQ+yobIJ/WtDMA/TZG0ygs4FjA== 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=XqzLW2F6MFLyBn7JQVf8j5zr1FG2UBh8bVqCrKBuyes=; b=B6kM0giNWH9MFHvQn+6Ul1Tf+lZEonlfBZxBYy0NeaaJGM0BDENMxa8BIr3aYILxeniB48YUOIXKmM2ZH5SdODIaOwzDqbhxJc46P6AIb4jYMBiGeMaragJEkpQ9hv9wRUnnwePeQ/LQzwfbKE3T0rPLQcKs99oGjpgmEM59A4uFA/SOy8RJv2JUXrE1rNYTf/ZpIl/4rjkXmpE/2nxpZ+MIPkGReWoJgfdnjqaazukbc48lQY7HNohBpldiOZC+yzvX7RVZrPSxjhNB33AQIHJGcoqN+kbpMKnk4hNJa9aEGwY44/cqwaMVuqAkfHGysL3NMwS6brtlYLPmeRcEAg== 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=XqzLW2F6MFLyBn7JQVf8j5zr1FG2UBh8bVqCrKBuyes=; b=0FQJONlhXo4W3Fvr4sAwjplRBpO47rCfDc5WmaiqR7bALPnjcOTn9fo7VpCgPJjGW7q91G7n5tzIxxfbN+qOjbW+xaE0a4v2JvBFb8x9Uo5rBMTW4dom+8RS6d6bwE/SlYN51zkfkpCck288JST2YYOVxGcxg38RvqU1C+zDHCQ= Received: from BLAPR03CA0088.namprd03.prod.outlook.com (2603:10b6:208:329::33) by DM4PR12MB5867.namprd12.prod.outlook.com (2603:10b6:8:66::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.46; Wed, 8 May 2024 07:21:46 +0000 Received: from BL02EPF0001A105.namprd05.prod.outlook.com (2603:10b6:208:329:cafe::c5) by BLAPR03CA0088.outlook.office365.com (2603:10b6:208:329::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7544.46 via Frontend Transport; Wed, 8 May 2024 07:21:46 +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 BL02EPF0001A105.mail.protection.outlook.com (10.167.241.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7544.18 via Frontend Transport; Wed, 8 May 2024 07:21:46 +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; Wed, 8 May 2024 02:21:42 -0500 From: Perry Yuan To: , , , , , CC: , , , , , Subject: [PATCH v10 5/7] Documentation: cpufreq: amd-pstate: introduce the new cpu boost control method Date: Wed, 8 May 2024 15:21:10 +0800 Message-ID: <7b7b95877cd49b1aa271c7d1661abc0864577f41.1715152592.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: SATLEXMB03.amd.com (10.181.40.144) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL02EPF0001A105:EE_|DM4PR12MB5867:EE_ X-MS-Office365-Filtering-Correlation-Id: 2c281e2f-fdbe-4fc6-3e60-08dc6f2f84d0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|36860700004|1800799015|82310400017; X-Microsoft-Antispam-Message-Info: mz958ZOL7Uz+H9GiJ8ELkYi3nOe+cR6R4PmrEtmbX3od0p5qGWOlq62US5dt0VY37nPiW3wYbsDr5ffYVdSgCvJJ8tzZoduEn5R7HWu1AO66TmTf1btT5nuHGfQZAduAXv3qyWqI/446tKsWlLQP39rdYDFQ0mhD50lQDTbhjL+oMkV73T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8vbmWAe8tajynLbz/bCxcKunK90dByOgaNYsdYzccaAdGMchSqifpwNB9VPygQfHnGgmDnfKulLPctkICN0xvmmdjdCApwSN9pjypNEYJlFMTnqmJ2Cs3k4jaTv0xV1/b7G+wb6JwmQ07v0LV 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)(82310400017);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 May 2024 07:21:46.1841 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2c281e2f-fdbe-4fc6-3e60-08dc6f2f84d0 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: BL02EPF0001A105.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR12MB5867 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst index 1e0d101b020a..bcc0d9404c18 100644 --- a/Documentation/admin-guide/pm/amd-pstate.rst +++ b/Documentation/admin-guide/pm/amd-pstate.rst @@ -440,6 +440,16 @@ 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 attribute file which allows + user to change all cores frequency boosting state. It supports all amd-pstate modes. + + "0" Disable Core Performance Boosting + "1" Enable Core Performance Boosting + ``cpupower`` tool support for ``amd-pstate`` ===============================================