Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp12569655rwl; Tue, 3 Jan 2023 17:01:47 -0800 (PST) X-Google-Smtp-Source: AMrXdXu+kinVCWKVUxMqHeCzWCVw0Vskra7wDyZIKOY0dAiLStjPPlCVVXrZpcL13ATRWAN20PpN X-Received: by 2002:aa7:87c3:0:b0:582:2594:4043 with SMTP id i3-20020aa787c3000000b0058225944043mr14324851pfo.19.1672794107192; Tue, 03 Jan 2023 17:01:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1672794107; cv=pass; d=google.com; s=arc-20160816; b=rjA2B6RTyWSv28lMtdQ0VZ+dKSNAXsUHJQZT1bGDVEKH2ICQ+xoCOzN97/gSPbsKbd 3OEnWj6VwV2qMOr+PbFK46Wj65fZ+qwT1CajW9G2Kvx5LWlOwXGrW1fgjPZ4ynJazzFN vf4TmgnhwMj8ZF98C6v/LkdxyDsYrsM60UrMwEIrualglfC0XJazWGmYfHHQV2R7efUb 8BS4C27XhprCGFBwo35WQMJCVpj41YvceaH5yNPx2Kxz2mLYc/A7VMbwRLMWYXbtxflD ZBf+cugxJZch038cRmkqghUG1B5Grc2fIw0+Gk+3TcY9DNtRh+xKQiEjwX6Shgvc3BmX C5MQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=K4LUYPcNnyTMftopklVIc/EQdKUU2juku2IDINLzD0I=; b=VJ+H6Y1OJYCDUVtwKeaOCSILSWMuduSuqfhb9kX/I5FEL+2gupaIvadpTrjkro572l uXe8VD3cLuJOXKlg6zELUl/YR+hT+slaRcm4jlDUz0kvuxlE9SJXo5qjORJ7sgtOt3OT guQG5Nrfb4azRp0ypzUHiYyz5Oi7AgfEocuwZiGz1ZMe7OlDWyj/XB4Jq9NdXFwbMeOP SFJ9naDCV4nQQXEk6G/RTCJ70tM0H1wJjAqgH2NOK60pcwXwmQa5Ve9puEyb12zIPNQT Uy5tQkyMesNTSs4YnTYvSOP/lF9wQiSgxLcVqrrq24GRKCI4A4j5amWOIGkFwgLTZa9F Xf5w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sPwnKEO8; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v2-20020a056a00148200b005769b34452fsi33966597pfu.203.2023.01.03.17.01.38; Tue, 03 Jan 2023 17:01:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=sPwnKEO8; arc=pass (i=1 spf=pass spfdomain=amd.com dkim=pass dkdomain=amd.com dmarc=pass fromdomain=amd.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238440AbjADA3z (ORCPT + 57 others); Tue, 3 Jan 2023 19:29:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238403AbjADA3V (ORCPT ); Tue, 3 Jan 2023 19:29:21 -0500 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10on2063.outbound.protection.outlook.com [40.107.93.63]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97AFB2DEB; Tue, 3 Jan 2023 16:29:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QOUvKu3XIadQKr7qcTnpVQNtmGy9KYVcghnfjEZZGpwoiD7rNl2OY4B2w7VeRf2P7HcmVfQ9IYUulFAe+/o2QdAM8XPKTkp+WB+PP4LJD3gqn+M5m+kBXYAryXROGShzeuDs7mLfIRE3lXLkMGRqip936cA2GZxDOUDZZTszFArM4uVVsQAsTbcDLUk+mr0vHxqVLYh8nrIyn5yCpTTFsBT1Qv7vZwxVG9xz+Ryc58Q86SvwyuiTBR2OZ9SBdERHlC7Y56HOMGbXBREtCjzgmxM0GZr0/xVRbvJTm5u3nhAqigfz+xLSkOr9GHiKWXV9LKoZbC+e5s+hjPcWDhEzoA== 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=K4LUYPcNnyTMftopklVIc/EQdKUU2juku2IDINLzD0I=; b=AB0qP4zF+17bLHtmfdr3PtFIdU2WEM5UCNqbqZ+0JbKCih4NA46mf7S2ac9BmMIUzCKNEbl50vZEqieiCSOK6l5aUJ0UD3Kh4T9hMwDrX1JIeA7DUoS9zHf6BJpIGjN7F3gIZPrMU4Cv60oFE0ICmi7UYz3ME32J7tgcdBsSiiMmo4xtaC0+NbfVNltwHvGK0FH6g9BPQJ0m+v8bKxmiHoHUT290LAyhCfIv/ULGU+9hoLCCHs4L2fDmh8SI84I6QUox/uUY8JqmSm3f92IXYe+btW9iy3AA95FerMl2FHcdJ4J6F7zbE98tPZ1ZcbxrXzTN3NifXW1MdUPGLugn9Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none 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=K4LUYPcNnyTMftopklVIc/EQdKUU2juku2IDINLzD0I=; b=sPwnKEO834mtRWo5yfbYzX/XpK/YmgjTQtlUpID9Za0YknW6NiqRbuIL94UpAQui4ryCd7dtgwOaSrwt5Ry/3acmeN3tP3iMShdoPcivBKeCo0wT4Q+Gv6aFbxnFGPJOk/JQMfU2hihEI4nhbxRHOzka3Up9Tl1zqcjfgdVfduA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; Received: from MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) by MN2PR12MB4358.namprd12.prod.outlook.com (2603:10b6:208:24f::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5944.19; Wed, 4 Jan 2023 00:29:17 +0000 Received: from MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::ff3c:2d37:75f3:442a]) by MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::ff3c:2d37:75f3:442a%6]) with mapi id 15.20.5944.019; Wed, 4 Jan 2023 00:29:17 +0000 Message-ID: <47cfe6c9-4300-1d76-4073-3a4ff50830d8@amd.com> Date: Tue, 3 Jan 2023 18:29:14 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: [PATCH v9 02/13] Documentation: amd-pstate: add EPP profiles introduction Content-Language: en-US To: Perry Yuan , rafael.j.wysocki@intel.com, ray.huang@amd.com, viresh.kumar@linaro.org Cc: Deepak.Sharma@amd.com, Nathan.Fontenot@amd.com, Alexander.Deucher@amd.com, Shimmer.Huang@amd.com, Xiaojian.Du@amd.com, Li.Meng@amd.com, wyes.karny@amd.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221225163442.2205660-1-perry.yuan@amd.com> <20221225163442.2205660-3-perry.yuan@amd.com> From: "Limonciello, Mario" In-Reply-To: <20221225163442.2205660-3-perry.yuan@amd.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BL0PR05CA0004.namprd05.prod.outlook.com (2603:10b6:208:91::14) To MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6101:EE_|MN2PR12MB4358:EE_ X-MS-Office365-Filtering-Correlation-Id: 5cfbecc9-00c1-4660-9b85-08daedeab6fa X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lh9T6ZAoMInZaYybjs00ieQhKfSc1cRLZiQpaxZYue0EMLiSXErNMkNNF88ZEEYdchQyOw24GR3OZFzAgZWjsRn7fsqSydU8XABmRAQwoyFaD/aWHzYWVRsNQoolb6SB+iuLJ6DA9n/EEZjHMRlETjiDkufOoLdp6q2npoYp+b3SX3a0z6AMkgpZ0S7xrSFNUH/3izR5RktxKQSzRU7J5MZwsD2a1VmlKkeQdwMAlGAWULnjwCOrFNz1WgU5h+doLY6ziIWJ9lomtDVA0Q+WLwn2Zq3yQ3TJvaDW5NpNB2esi+YCtlHy3mYlck7IEnih+9Mt7aIxV8UvmDHiodHzaFiUWDWJdPzc+/DupbQiaKIhfw0qWO+qJUXNcNEd6WFIQlUbGyEdOTVh6umEWk6jUNlK1z/Io5220W4qMlwB4r41cv1es/L0wvF9DxkOMruiWq+LBiT7po0WYE5S8ygyx+x3NlCslo9PnMUrsCuBPujt+zgVnHLEg4Vjk/Gbq8WowmGRfJFpMkfBQzqJwI9ZrNY1xGEnhW3tu6/bTv6fCnF3LUMQjppI36M5o0FReKech6eSgOtJPNPEy//j/2I8PIuhW/jzcXA8tx8nc6QURY2r6qCxKZVJtyDJb5yaOCr0owG4ojhRsBf2C/jFGBjqf6icdCP+ZLa12aoaHc/iIESSsNL2QONjxdMxC6cvrB0qxt18/F/v2WAqPsX0eddv5xyuokp2dcu6ZV0y+jlueAQ= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR12MB6101.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(366004)(346002)(136003)(376002)(39860400002)(396003)(451199015)(36756003)(2906002)(38100700002)(8936002)(5660300002)(41300700001)(83380400001)(86362001)(31696002)(66556008)(31686004)(6486002)(66946007)(6506007)(53546011)(66476007)(478600001)(6666004)(8676002)(4326008)(2616005)(6512007)(186003)(26005)(316002)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?V2pHWXVFOWtCc0l5TTlvMnZURjhKTllqY0I1WkN1V0hTd2pMbklYYVFKREsw?= =?utf-8?B?K0Y5ZDdRbjNJMHpvN0hBSWpQRGRRQllBaDEvVUtSOFQzeWN3b1BYWW9qQklS?= =?utf-8?B?S2tlQnl4cHczRjJVbVBKeTVPSzIyYmJYMDFzVk5yWWxWY1J1OUExN011NUVV?= =?utf-8?B?ZS9JOE8xTUFFbU5RSkZmRlJ6TUROSGQ1N0FibXhZOXpGYXRGTzFUY3lRK0dv?= =?utf-8?B?eGxIbTFhZlgzYzJpM0ZJamtFNHZRbHZIdThpaytzUnJwMkhKcHNrMkU3dFNp?= =?utf-8?B?WjQ2amFTZVZ1anY1TkJoRFFqSXRMYzVCVE5HZGFBYng0NlIxYUNhRkVWRGhm?= =?utf-8?B?bVN4Y2NwK0pESWRNOX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Tenant-Network-Message-Id: 5cfbecc9-00c1-4660-9b85-08daedeab6fa X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jan 2023 00:29:17.5291 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: LByxDKnPlRcYW8Z9KuXmxI7XnFSJE8yE8Vip98eKT74BHUyPaWqqfqwJIEDhVb68w3pvz5mO50Nv4Bj41MgdEA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4358 X-Spam-Status: No, score=-5.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/25/2022 10:34, Perry Yuan wrote: > From: Perry Yuan > > The amd-pstate driver supports a feature called energy performance > preference (EPP). Add information to the documentation to explain > how users can interact with the sysfs files for this feature. > > 1) See all EPP profiles > $ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_available_preferences > default performance balance_performance balance_power power > > 2) Check current EPP profile > $ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference > performance > > 3) Set new EPP profile > $ sudo bash -c "echo power > /sys/devices/system/cpu/cpu0/cpufreq/energy_performance_preference" > > Signed-off-by: Perry Yuan Reviewed-by: Mario Limonciello > --- > Documentation/admin-guide/pm/amd-pstate.rst | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/Documentation/admin-guide/pm/amd-pstate.rst b/Documentation/admin-guide/pm/amd-pstate.rst > index 06e23538f79c..33ab8ec8fc2f 100644 > --- a/Documentation/admin-guide/pm/amd-pstate.rst > +++ b/Documentation/admin-guide/pm/amd-pstate.rst > @@ -262,6 +262,25 @@ lowest non-linear performance in `AMD CPPC Performance Capability > `_.) > This attribute is read-only. > > +``energy_performance_available_preferences`` > + > +A list of all the supported EPP preferences that could be used for > +``energy_performance_preference`` on this system. > +These profiles represent different hints that are provided > +to the low-level firmware about the user's desired energy vs efficiency > +tradeoff. ``default`` represents the epp value is set by platform > +firmware. This attribute is read-only. > + > +``energy_performance_preference`` > + > +The current energy performance preference can be read from this attribute. > +and user can change current preference according to energy or performance needs > +Please get all support profiles list from > +``energy_performance_available_preferences`` attribute, all the profiles are > +integer values defined between 0 to 255 when EPP feature is enabled by platform > +firmware, if EPP feature is disabled, driver will ignore the written value > +This attribute is read-write. > + > Other performance and frequency values can be read back from > ``/sys/devices/system/cpu/cpuX/acpi_cppc/``, see :ref:`cppc_sysfs`. >