Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp89460rdb; Wed, 29 Nov 2023 21:52:08 -0800 (PST) X-Google-Smtp-Source: AGHT+IGKAf2ZR//qMzQ9qwZxvqHGfxg3tIqVwM87QiF8gzPXTGVRba1NPlDsZmpdM7VcTwnzuTqm X-Received: by 2002:a05:6a21:6215:b0:16c:b5ce:50f with SMTP id wm21-20020a056a21621500b0016cb5ce050fmr16628310pzb.32.1701323528212; Wed, 29 Nov 2023 21:52:08 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1701323528; cv=pass; d=google.com; s=arc-20160816; b=dgUQeadALtVMsXNepSyvrAoYw2Uk6tzrWYV0j7PC0SW7amdL9+SSDkQkA1nTNTW9oX oUCS4cbVFaixaXObmUVOX4lHSzcz1XYiqa2bsLbG5ptGuZstY2fAG/qLUfEsSdDySSPN RzknqHE52wRP8fxqwUTlb4sx9HhoGZ9iMEpkrPh4Hcqw3NPi28liI6fWD8nqRd1WAoUk LvRPGA4u6iN9ZsbqPzBQLom0LSQlZ1+ZxBPRzpvj6WQzK+M2K6gKgSJ1tk4S5Xk+VYmd 7gDIy72afUUhHRac5NxmUc0gcxCl0O1TsLekyDntTWHHeij4rFvLpnX/5dinZC9Yju8P J7wQ== 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 :msip_labels:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=IQbvgpDyqY46gWEM/kv7DCP0o/Cs+Oa4VzAiDSXCMXs=; fh=bJwFqh7AFrtPSWkMi2DvTXT1G48xyvntCXENTsMlpwk=; b=oKKCPwKyFVKlpyeVIN7D54VxWqkI0sO3Gy93xFQZJnPzr/cxV8NgPR5XZNEwEwkI6j SRb8+8oJGZVPdc5duJD0jRAON4xWVcpMR+RAzQnVjlcnSQGG3FGv3Cq3Q3hQc66jch0T Cw/m4U7AR+Ve7M09QkjxheWN3doKn6PxdipVldV5qr3o7JZWFtGiZbUn41lP8g2AKi5p NA3T6UEWnrkfECgEk1fwXLaXC998qV8dXv+dwdAIpaa00JeqWJNXNfYjgx5U0GQ4vOHd HnzhzhhpTkuOdrjaX5K9eUW6no1FVpd4aDf25Dxy/JtsZK/bRDVB9oiH/U74j8v9+BG0 4UVw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=oltltUuT; 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 23.128.96.37 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 snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id ck24-20020a056a02091800b005acba4c9bf4si595617pgb.2.2023.11.29.21.52.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 29 Nov 2023 21:52:08 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=oltltUuT; 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 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amd.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id DA7E0802A72D; Wed, 29 Nov 2023 21:52:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344532AbjK3Fvq (ORCPT + 99 others); Thu, 30 Nov 2023 00:51:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54822 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229643AbjK3Fvo (ORCPT ); Thu, 30 Nov 2023 00:51:44 -0500 Received: from NAM04-BN8-obe.outbound.protection.outlook.com (mail-bn8nam04on2067.outbound.protection.outlook.com [40.107.100.67]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C5D6D66; Wed, 29 Nov 2023 21:51:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aoxdSj+69R0Tdj04JmH/OURgeLOudJBi41jr6tEXJ4yJZAeoYFzvzeES2xT6+dF0KnmXxDw9GUsqpUNIU+gPYEsEyisASlTH1Z0LKVrJHXpfaRgICfNW1ZwySK1ocT1iEd9l9d6RPxkHk/lxCMpz3gtJvqKJQ+uR8fse4UWdcVWt0SzS17s4lz3OstJvWRbMowRrYGK84qycLfw2o+Yr2gSe+dhBWJnNFD0WNYckVsMuT3A9SJA7zXNOM7X78l/yHXSIqd5cNz5ii9BuhhFab9jiBLdu6ZwwFV8c5v7721/IAmmxJZfzazcrjsc90HLE99hFMnF0B6xJ2mHzsi1viQ== 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=IQbvgpDyqY46gWEM/kv7DCP0o/Cs+Oa4VzAiDSXCMXs=; b=QRm6THFg+31Z10x5QLJbSilf2GleXOriZW5mvmZn69zCs0iRPAqeGUYmpEnOFYsid3GjjF6GZYlzmXyq+aF/nS2AYI6MZuPzmAQMEoyivxuTYQNGDb3kI74gxTk7bFsuuj41koYUVMqLRHNgokv17xsELgiQ0Aao+r0UCl3xzdBaTp4m3d2DTfH5UsHgmbc2K4I4hOuEhQ2nQ5Aent4lloxrZrh22XvDklc65YQCFnFv7PDJUX/o+tCkQBYX9Otl6J37rTtGlRJyUg1sa2z8+f7MW3hMT1ifoXVmbDegvDcygKUljbtmxx9KBtgWiY6f9vSiP41J/gLmlPFaduhKjg== 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=IQbvgpDyqY46gWEM/kv7DCP0o/Cs+Oa4VzAiDSXCMXs=; b=oltltUuTn0655iP9f5R3pDY29rLmIIeSKBaeiZFyRlAmjH9C/kfHE5fhScvkGW6bUSnMwTlY4IVWAxWrUchtwq4qyrMC0xnVyLswd7WC/E66ST0GwhnHM2vdzRWWtk5G+eb7p46ifzzxnC3bzAnyhqITM8IoG8cE2m4OWF2mMck= Received: from CH3PR12MB8657.namprd12.prod.outlook.com (2603:10b6:610:172::6) by SA1PR12MB6799.namprd12.prod.outlook.com (2603:10b6:806:25b::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.22; Thu, 30 Nov 2023 05:51:47 +0000 Received: from CH3PR12MB8657.namprd12.prod.outlook.com ([fe80::466c:b6a0:f281:1e99]) by CH3PR12MB8657.namprd12.prod.outlook.com ([fe80::466c:b6a0:f281:1e99%7]) with mapi id 15.20.7046.024; Thu, 30 Nov 2023 05:51:47 +0000 From: "Yuan, Perry" To: "Meng, Li (Jassmine)" , "Rafael J . Wysocki" , "Huang, Ray" CC: "linux-pm@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "linux-acpi@vger.kernel.org" , Shuah Khan , "linux-kselftest@vger.kernel.org" , "Fontenot, Nathan" , "Sharma, Deepak" , "Deucher, Alexander" , "Limonciello, Mario" , "Huang, Shimmer" , "Du, Xiaojian" , Viresh Kumar , Borislav Petkov , Oleksandr Natalenko , "Karny, Wyes" Subject: RE: [PATCH V11 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core Thread-Topic: [PATCH V11 6/7] Documentation: amd-pstate: introduce amd-pstate preferred core Thread-Index: AQHaIpEQMSKTBvG39kOHpLqUGtTSFLCSXMmQ Date: Thu, 30 Nov 2023 05:51:47 +0000 Message-ID: References: <20231129065437.290183-1-li.meng@amd.com> <20231129065437.290183-7-li.meng@amd.com> In-Reply-To: <20231129065437.290183-7-li.meng@amd.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ActionId=b641ddfb-c411-4b4c-a64c-7565c3e48332;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_ContentBits=0;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Enabled=true;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Method=Standard;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_Name=General;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SetDate=2023-11-30T05:49:19Z;MSIP_Label_4342314e-0df4-4b58-84bf-38bed6170a0f_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d; authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: CH3PR12MB8657:EE_|SA1PR12MB6799:EE_ x-ms-office365-filtering-correlation-id: e00bf323-ddf2-455f-c614-08dbf16870b8 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: gNdrFPyLMhGqc7R8EPDOu7FoN1+8248Vi+DV6eQRxcKU5rzhLzhy2OxeDep3l68skVLnSpdOUU3ZkisaAd/UyNhGF0nB8gGdrILjmQchN6QXS2vO+QCMKhmE4HJ4EyNvzyGUVpUnBjU5b5jOlcWL5np3Ra+KkWPZKS42jIgRu7OsJpz6yMSfAhStEMWODaKoexw1HNaCifi4s+DAusgHAIfs0LAt1VC/Svt0efv8BumcI4e+MeWKlBSMkncTQ9hoVQaLyOhvDVsJfbKVaWwQTRDcV9raBTTSSFk45/GWV+Ag3sV5Am+0xHqzum0TLRQ0RS6wm0FbOszMeTVZP+mrLs9n2TNfZinGFrXIumicOMNzUVCCDPKd99oPupvhowASxSu3lRu1AEzpDt2lmAeI7nw0yKqkWcb78W4HYiQqzjpb2vMAMMpLi9e7FvKsFzVu4TtPK61bJAamvAj1g4aUiA9G7vy+lF8ULRN+7CncglrcH01sm/L8avQ32MRLAReh3HJvOfUH2We7axV5tdTUCYSe2L0R2Nw4J41gq1Hy5dVPIwTIhDbTbvr8Nx75EXlQb4fWbRr0BTI/jY7EH4v0m8phIbe3CTJeeKWHF594Te2mtvuv8iljsApgRAi3T+0tykc79W7W9+XGI22MYIvUF+ZFSg9WC7JDS5+dNC1Aj6Q= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH3PR12MB8657.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(346002)(39860400002)(376002)(396003)(136003)(366004)(230922051799003)(64100799003)(186009)(451199024)(1800799012)(9686003)(122000001)(64756008)(8936002)(38100700002)(478600001)(8676002)(7696005)(4326008)(41300700001)(110136005)(66556008)(66946007)(76116006)(6636002)(54906003)(316002)(66446008)(26005)(66476007)(86362001)(6506007)(53546011)(71200400001)(38070700009)(52536014)(202311291699003)(83380400001)(33656002)(2906002)(55016003)(5660300002)(7416002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?g6SSDlsuHkBWRAcOcn9w24pHGt6Dky1t+Qvj9n9PZOFfceYhSQUOT9vOxY7G?= =?us-ascii?Q?HuSWDLb0Ba4hdQqLsGjDYXjrwyr7nJpkvczFJNINm5SzskK3caWuapR83SHJ?= =?us-ascii?Q?btmUEwPzPL6gsWbi7mnc/gNxG9pWDum57fs29BPME2go43eZA0SyCRmnJyha?= =?us-ascii?Q?637UoFLdvNi0dKtKR5gczF7jIS673/5Tsgd+K9vraL9eoLzOOxIdKYAiu9jj?= =?us-ascii?Q?Glk3FhQQjWXmBgjvIK5bhbb85X0DMzvkFazx0TE05REiCKm/7FMXZH/Up5Cm?= =?us-ascii?Q?fhvTK6Vq0J1CBOxZ9ny3ZFK/RDhMqiaRP4DBnSIwUiZfIGfqmZc3OG4o2FLI?= =?us-ascii?Q?aU9InvI8le+etfVu83hxlC1XNp6iwEMDpTEH8trofZ4oeVl7lFeYqL6aFI16?= =?us-ascii?Q?VDUW4UtVOcQPVzzvE+hsHa82RfaGyqh9pyUKw0B6n5Kr4pDUiTORQ1zUSebt?= =?us-ascii?Q?DEF9424YAiHwOOx/PQhWXFOQxMGm2eIB/u/B8BaHtWv0OVqfnZn7VqDoJyLG?= =?us-ascii?Q?VWxYwqJZl9+e3SY4IvkYZeLgQBLGQdGJE2YhLz3EiaNGSrP9A9dlnkerhRij?= =?us-ascii?Q?zo5CDcRVoPJlmd71hB4n0oN8d95qeC0uJ/yTQ2XBcfHS2StRGB4g4gorjzzd?= =?us-ascii?Q?74cig5+FMZxnSiqEpK21JZg5sIbplDyGvR281InNSArT/pgbKirHaNYUBFOU?= =?us-ascii?Q?C94YUwFS+zyE4SWHcSkrZ20Ebno0HIVu/iFyjxv8grB1qE40rF1cZh1Wj5Pt?= =?us-ascii?Q?pfRb25W4xmfLqQOlyJ3xq/EI806fdlTE6m36R2NA7QhGGPd28XUMED9gVjNf?= =?us-ascii?Q?TYESkeDSocEizApGiqK2xuWMKzdlAJe+ytst6VkTk8DJB1b/2wSECTR6ht9x?= =?us-ascii?Q?0adv8yTQvaOaGNGovG70ON+21fJu5vxdEQnu7DPb5DP9tYnC921RwpNnDe7J?= =?us-ascii?Q?C9dhvtyq/ePBwCv2b6TWkTnPoa6FTo8j9OYAIXFASg6jRlxOzRHA+PaGfMIf?= =?us-ascii?Q?iiieHbvVQVZ5lQ/t+e9iuGZKwBvaW57w9BGUb6PBwx/WhkkX1yPsAsGAn4IA?= =?us-ascii?Q?gvG/icJDvW5vC0CGzMXGLLId6DAp0kx7ERJ0iOYD7zOB5s7L4+dssORTmLEz?= =?us-ascii?Q?UeDjjphvmsg+El+frATj0bX38eG5BUEfjwxxxtDjfUsWe43VITqbxtHX6r4Q?= =?us-ascii?Q?WyItLc+XY0L4wcpI2/vdXf3sW5Fd4zz087KV783sIQzBW6ioITMHNP2qiULb?= =?us-ascii?Q?BZtGo1vAOFwSsTu5UdKtzCWcCGyNBa3LjYBSCE/0UT+TDq3G7CdjVDUn3/Su?= =?us-ascii?Q?w9qZ0mJiTaRHeodRqShJwS70bCL7ObZUeontAvy60D1yx2YnxlDtGZKlbcM8?= =?us-ascii?Q?UB+t1LQXiXqeRz2VDRe+uM1v+17E3UO4P70pb8CzoDathLfVqy24WqW/4vtD?= =?us-ascii?Q?PVzMzCtS9RbdlE2cteVotziYSK9pqZnnS5kASO0qCQXddHvEjgX2K0r94GMG?= =?us-ascii?Q?eqqEcTOJ1NeBIfWcCoW6ZT1CffSoGN/jfY3nbzxywCoD0Ff07C7jf3mzG2qB?= =?us-ascii?Q?9Jxgp5VRGynulZaAc/I=3D?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH3PR12MB8657.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: e00bf323-ddf2-455f-c614-08dbf16870b8 X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2023 05:51:47.2699 (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: kAR9z1e+dsOExuvTQ/CuuNtxESFlhkoLjNsiqR+IRSjS3CKQ/tyJzH/liORsJ/Be1p2O1/ukZpvSOCqnjRV5Dw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA1PR12MB6799 X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=no 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 29 Nov 2023 21:52:06 -0800 (PST) [AMD Official Use Only - General] > -----Original Message----- > From: Meng, Li (Jassmine) > Sent: Wednesday, November 29, 2023 2:55 PM > To: Rafael J . Wysocki ; Huang, Ray > > Cc: linux-pm@vger.kernel.org; linux-kernel@vger.kernel.org; x86@kernel.or= g; > linux-acpi@vger.kernel.org; Shuah Khan ; linux= - > kselftest@vger.kernel.org; Fontenot, Nathan ; > Sharma, Deepak ; Deucher, Alexander > ; Limonciello, Mario > ; Huang, Shimmer > ; Yuan, Perry ; Du, > Xiaojian ; Viresh Kumar ; > Borislav Petkov ; Oleksandr Natalenko > ; Meng, Li (Jassmine) ; > Karny, Wyes > Subject: [PATCH V11 6/7] Documentation: amd-pstate: introduce amd-pstate > preferred core > > Introduce amd-pstate preferred core. > > check preferred core state set by the kernel parameter: > $ cat /sys/devices/system/cpu/amd-pstate/prefcore > > Tested-by: Oleksandr Natalenko > Reviewed-by: Wyes Karny > Reviewed-by: Mario Limonciello > Reviewed-by: Huang Rui > Signed-off-by: Meng Li > --- > Documentation/admin-guide/pm/amd-pstate.rst | 59 > ++++++++++++++++++++- > 1 file changed, 57 insertions(+), 2 deletions(-) > > diff --git a/Documentation/admin-guide/pm/amd-pstate.rst > b/Documentation/admin-guide/pm/amd-pstate.rst > index 1cf40f69278c..0b832ff529db 100644 > --- a/Documentation/admin-guide/pm/amd-pstate.rst > +++ b/Documentation/admin-guide/pm/amd-pstate.rst > @@ -300,8 +300,8 @@ platforms. The AMD P-States mechanism is the more > performance and energy efficiency frequency management method on AMD > processors. > > > -AMD Pstate Driver Operation Modes > -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > +``amd-pstate`` Driver Operation Modes > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > ``amd_pstate`` CPPC has 3 operation modes: autonomous (active) mode, > non-autonomous (passive) mode and guided autonomous (guided) mode. > @@ -353,6 +353,48 @@ is activated. In this mode, driver requests minimum > and maximum performance level and the platform autonomously selects a > performance level in this range and appropriate to the current workload. > > +``amd-pstate`` Preferred Core > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > + > +The core frequency is subjected to the process variation in semiconducto= rs. > +Not all cores are able to reach the maximum frequency respecting the > +infrastructure limits. Consequently, AMD has redefined the concept of > +maximum frequency of a part. This means that a fraction of cores can > +reach maximum frequency. To find the best process scheduling policy for > +a given scenario, OS needs to know the core ordering informed by the > +platform through highest performance capability register of the CPPC > interface. > + > +``amd-pstate`` preferred core enables the scheduler to prefer > +scheduling on cores that can achieve a higher frequency with lower > +voltage. The preferred core rankings can dynamically change based on > +the workload, platform conditions, thermals and ageing. > + > +The priority metric will be initialized by the ``amd-pstate`` driver. > +The ``amd-pstate`` driver will also determine whether or not > +``amd-pstate`` preferred core is supported by the platform. > + > +``amd-pstate`` driver will provide an initial core ordering when the sys= tem > boots. > +The platform uses the CPPC interfaces to communicate the core ranking > +to the operating system and scheduler to make sure that OS is choosing > +the cores with highest performance firstly for scheduling the process. > +When ``amd-pstate`` driver receives a message with the highest > +performance change, it will update the core ranking and set the cpu's pr= iority. > + > +``amd-pstate`` Preferred Core Switch > +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > +Kernel Parameters > +----------------- > + > +``amd-pstate`` peferred core`` has two states: enable and disable. > +Enable/disable states can be chosen by different kernel parameters. > +Default enable ``amd-pstate`` preferred core. > + > +``amd_prefcore=3Ddisable`` > + > +For systems that support ``amd-pstate`` preferred core, the core > +rankings will always be advertised by the platform. But OS can choose > +to ignore that via the kernel parameter ``amd_prefcore=3Ddisable``. > + > User Space Interface in ``sysfs`` - General > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > @@ -385,6 +427,19 @@ control its functionality at the system level. They= are > located in the > to the operation mode represented by that string - or to be > unregistered in the "disable" case. > > +``prefcore`` > + Preferred core state of the driver: "enabled" or "disabled". > + > + "enabled" > + Enable the ``amd-pstate`` preferred core. > + > + "disabled" > + Disable the ``amd-pstate`` preferred core > + > + > + This attribute is read-only to check the state of preferred core= set > + by the kernel parameter. > + > ``cpupower`` tool support for ``amd-pstate`` > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > -- > 2.34.1 Reviewed-by: Perry Yuan < perry.yuan@amd.com>