From patchwork Tue Oct 29 14:03:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario Limonciello X-Patchwork-Id: 13854964 X-Patchwork-Delegate: rjw@sisk.pl Received: from NAM04-MW2-obe.outbound.protection.outlook.com (mail-mw2nam04on2085.outbound.protection.outlook.com [40.107.101.85]) (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 B3CA942A92 for ; Tue, 29 Oct 2024 14:03:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.101.85 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730210619; cv=fail; b=i3TE1njUGeb0wVyaND1EO1RUME/CipsSY0F/NCihFkRQD7+a6yMzJNlmCIbEIabgoRDL4/1VWMRU47Scg13Q9YhsrrR0w9kul21KlZj7Rwk+Be+3e7qFoE8HViNEMR9vCPmehmfJZFc4S8/c5Nx5jTGQslfbaESXAtKDYrWqmt4= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730210619; c=relaxed/simple; bh=uj3is4drHvbXK8Vxu+nZlXbpCOleaV3bX2W/K+kQzKk=; h=Message-ID:Date:To:Cc:From:Subject:Content-Type:MIME-Version; b=gN0+W6I3RfMhrmbtqAuGj4TQW2vgV3jV08KPPBcrWc3F0NHEx1ygYmr70js9/FOVHBAtx6QXb62PfXVpNSg8+XGGh+dPo0wLn6nh77H/NmO5qPEYhgx2kxTp2N0daXHb6pK1BKiySIxwjiPYhFz1UxLN70eFE/198QAMfFNAUWU= 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=CBa8zqoO; arc=fail smtp.client-ip=40.107.101.85 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="CBa8zqoO" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eCI3xMSWgdXWz4ncGt+vrQjU1RHh0N5XYYzO4FP/w0am630WyLAy4bvuJJHpRlAd4TOuw+3Kpet35AorCkUy9rbgztn5ZSAqX0300Zj/Rw2ePIj+Y1KsWrd/k+xdW3fvELqSjhbMcIqZxdLXO4kKgqY1aNaVolPN93yys5G64J8IGXJs6auMjwrmQKZsdszxuUUb0BoCylfuA6DZR8of5LpwaD5HVbfcx0xRHxZTCDdb8w4YkcK2owOihwQiT9R+glTvrjvM3tv474iC1lXAs0rXv+zCOoOpTkE6d87b3Ig/hmAaknfrIZRaA54CmaaSGKJdgySPy2bYJIaUO7+Mxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=q5lb2w9iEhJw6IWO1Q5mBW9Sjll6IYrmV9v4GS2OnBk=; b=mM5/Fjbm3u4iPMFLmnOQX8rmGQVnAlAam3nPsaTxKDiZh0ikgOSLYGjLbeFME9+GDM3rqU8oHEY6Ce/oqO1Gj7DtxolXmx9JC0IeGapH/GUomp21vV0jzRc3ANt5pYkQkV2qs2tiRkL5pleeBYFgrLfC9jOjkQV6yXFmuYxUxEmnqbfgF02PMOt0f+LPYefG7VPmjFA22Kc2DOIIkD0D4HSRTVJ1v46RqeMmyG0VcNLcOFbo8e6ugP8wmP5jCEhPXBuWgGYQ5yIf8hraTob7TRM+oERXVQo4YHAcH1cI/Ofk4LEy+hzMsmOHnMWlKk29ZUTK/7VN16VsQeq3LwZFrQ== 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=q5lb2w9iEhJw6IWO1Q5mBW9Sjll6IYrmV9v4GS2OnBk=; b=CBa8zqoOTSrPb16C1eGJaXYpU2RuHc65bkalUh3Vo7osBnTqTUNgVDLad+qOpilmbjdi9wniUkzQIYiZz0+c627p/f4eNHckMXrO+FD3NXeSzHi1N2/y81imyTEn5DeuB/XstPiGMoryF/T+m1RfFWmBaC/RDH3kZsoLP3Jafgw= 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 CH3PR12MB7690.namprd12.prod.outlook.com (2603:10b6:610:14e::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.24; Tue, 29 Oct 2024 14:03:33 +0000 Received: from MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::37ee:a763:6d04:81ca]) by MN0PR12MB6101.namprd12.prod.outlook.com ([fe80::37ee:a763:6d04:81ca%4]) with mapi id 15.20.8114.015; Tue, 29 Oct 2024 14:03:33 +0000 Message-ID: <7b1d8208-1e00-4ca3-a4f9-7d13c9867447@amd.com> Date: Tue, 29 Oct 2024 09:03:31 -0500 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "Rafael J. Wysocki" Cc: Linux PM From: Mario Limonciello Subject: New amd-pstate content for 6.13 (10/29/24) X-ClientProxiedBy: SA9PR13CA0095.namprd13.prod.outlook.com (2603:10b6:806:24::10) To MN0PR12MB6101.namprd12.prod.outlook.com (2603:10b6:208:3cb::10) Precedence: bulk X-Mailing-List: linux-pm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: MN0PR12MB6101:EE_|CH3PR12MB7690:EE_ X-MS-Office365-Filtering-Correlation-Id: 12e77b8a-9614-4f10-8f24-08dcf8227974 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|376014|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?zV9u4ilZF6gyMYrg3dc+n8EUCvcS4Jy?= =?utf-8?q?dC6UybmBSdeqe+KIRea22xwJs4p4OXwuDqki0Oennq5agr44LtG6YvRD0F6EgtVo8?= =?utf-8?q?77bqoHwaw/p6/1ZWTf5jmC8idZN3jxggFrsvcUEXmhX9yQi0kyFbrDl2w7vU7FCky?= =?utf-8?q?yRiv8UCfJKBWIa5ibTmWIOGQh1ESM1/kFddE9gIqXosh4CxhPEB6FEvL5IVNU6xW6?= =?utf-8?q?uBwMCi4RkMWFiskLMXjLB0CxqqtbP3jZRKSOnUrHjddx6ScO2TXBTTVyG0exjo/zU?= =?utf-8?q?jbXGQTepKlNnBA+7tqAAbUKtJ+4D5095Zg9aJjElBtaemY8VQ4rzzSVF0Pm3Qk3PM?= =?utf-8?q?JDc3tzJNB2UEL53FjPikuBocHM0kDXLjKwbSbqB5u2v6FVhWPgI3JXV4GRskIdR+f?= =?utf-8?q?iu4w0uMT2Gb1DqIBKQtys0D48d+a4ecLa5/pSE096hqoaN7oh50gyK5V91J9CURtM?= =?utf-8?q?gu00htS7CFAqBkAuN3S7JfLz1Uiuur49upf2OPYmJI5HlR+uOMioT0HfUidZA2zA8?= =?utf-8?q?wf4A9lPqLRQ3oBwWIb9qiSjq95Iuv1kWE2BYMazaTNRVxDPsRvZ2Ux0hRNhOJS37q?= =?utf-8?q?QWppdvzRk0DTzEbGd6fVo9gQvCxeVWLg2QGxeb9I5t8jCSt4/WTMD+TFbnCWAUuyN?= =?utf-8?q?/nAKXmlbY/orFDwoQO/8rQGxbBHo/wjy8bIVGSo/fLnK70mOzXGIhMumLftNdZoA1?= =?utf-8?q?eoeidqxCKm9dw+yopT4myRt6VITrL7uX1UH+MPZvxkIpawTrJhjCt5H+TwWDPjR6X?= =?utf-8?q?BIpmQRO0T6ey8RZHAWLZJnn+c8Gk5BEJMps2QsODQUWLeeSB0CHe8cpfTcZSO/mj+?= =?utf-8?q?K10n8XJhK9RP2FU1wyufJP+5nBUwnIvQpXCCDEDVIbvVR+ZIpsu/hzEfmfwMJ4zBr?= =?utf-8?q?1Cs5uxSRPpbby7Q9Jt8urbTX7tXin/xTrftp8K/U7K5OVRjgaOziEF649aLtuD9u/?= =?utf-8?q?MaetN630s5e6p9t9acdutNTP4tYLz/LQQxdd/zQ8c1QYyXPCBt9jWmO6ed0aVUw8V?= =?utf-8?q?lvYBN4l450LoasuRCW4ivgCygfy0nkwIA1iyyDpxJD9tTRXJ/mQIz0VYh42kd69n2?= =?utf-8?q?1+FswU/f1zJ166x91aUIdWdqqqEWdqI69nh/QXeQWru2AvIt+vJup79lnXir9pPpt?= =?utf-8?q?87b4ureiA9yWzrR8FlfdU92b/btXbL08LPVDE3zBVDRpjkdQ3d+awxE4TNxX5WQT3?= =?utf-8?q?MLEJkK/HEP4nwn?= 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:(13230040)(1800799024)(376014)(366016);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?7R4gWlBP/s5b9pXaZMv4Er7QaRvV?= =?utf-8?q?U1XNJ/dqN5nG7s+VrMJ3/MkjEsK12ltJ+C0+YQJ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Yp1HaWo51VYJpcXwL4lIx9a5Gto3?= =?utf-8?q?KycBtU52HwbS1wtsdAMqWoKcxneEPxGVC5bTEH3zUNrEf3EC5B0u1FT7L7PkvgcSM?= =?utf-8?q?ZfSdN6TcRmSruAG66VMBeE7u3PAg/2ghMgeKctoCFLGpN+tb83CvVE/J0nSJB+qPw?= =?utf-8?q?abyld/yJdayOCmWlLQl+k4Td51U7IC+uWx/+YcDnOVfd67tZuh+gwGchdfR6iN6DH?= =?utf-8?q?KKFaRryk6bAtgRrFGHCbSKGemqK75O5ldwf5actwZDJku3RfpHO3//6ZOyD8sHjop?= =?utf-8?q?HsyFji7v/13p+yENXroHF0nnu4Yii3hW9uP1JBq4/o84zC9QE29wWNvCw/8aSaCAB?= =?utf-8?q?dFqYW4oqIo4SqHHB1Y97nRliMgsXJwHpIeim91EQrIGJvryjR5+uzXI8HD1BJ0gcV?= =?utf-8?q?Hmoxd7osPD+KGkVINO5PGfj/BMwqEShlnjrV9pbCW0tIDjnGAaQ0aG1RjgChA7MgZ?= =?utf-8?q?2hWZe14zs2MpiyJXSAxK9DTH0AS7e0kkKAS38M757+stJqW1K6XGW7faFOucawWBW?= =?utf-8?q?AfVZj+6nn+ahmG5kiLMoQl2ovFkjN5AKy9yqV6hJeHgyUn4Pn2T7hrZxyxJkKR+Y+?= =?utf-8?q?SIL+W4fmy+9j?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 12e77b8a-9614-4f10-8f24-08dcf8227974 X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Oct 2024 14:03:33.1699 (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: 8qA/NVw9NKXmGf92FATsNJJr7hd4wGDOU8dRuVVwpDC7ad6rDP0l3hmwehoYmHtAoMQuuKYOak5LT6+ZnLSsEg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB7690 Hi, Here is the updated PR based off the linux-pm/cpufreq branch. The following changes since commit a9dedaa07b5e6034dbdd482c23aa3936958292ac: cpufreq: Switch back to struct platform_driver::remove() (2024-10-28 12:24:39 +0100) are available in the Git repository at: ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git tags/amd-pstate-v6.13-2024-10-29 for you to fetch changes up to ff2653ded4d99b709f62f35656d976c47a7aa476: cpufreq/amd-pstate: Move registration after static function call update (2024-10-29 08:50:39 -0500) ---------------------------------------------------------------- Update the amd-pstate driver to set the initial scaling frequency policy lower bound to be lowest non-linear frequency. This will have a slight power consumption impact but should lead to increased efficiency. Also amd-pstate is enabled by default on servers starting with newer AMD Epyc processors. Align more codepaths between shared memory and MSR designs. Add various code cleanups to rename functions and remove redundant calls. ---------------------------------------------------------------- Dhananjay Ugwekar (11): cpufreq/amd-pstate: Rename MSR and shared memory specific functions cpufreq/amd-pstate: Remove the redundant verify() function cpufreq/amd-pstate: Set the initial min_freq to lowest_nonlinear_freq cpufreq/amd-pstate: Call amd_pstate_register() in amd_pstate_init() cpufreq/amd-pstate: Call amd_pstate_set_driver() in amd_pstate_register_driver() cpufreq/amd-pstate: Remove the switch case in amd_pstate_init() cpufreq/amd-pstate: Remove the redundant amd_pstate_set_driver() call cpufreq/amd-pstate: Rename functions that enable CPPC cpufreq/amd-pstate: Do not attempt to clear MSR_AMD_CPPC_ENABLE cpufreq/amd-pstate: Call cppc_set_epp_perf in the reenable function cpufreq/amd-pstate: Align offline flow of shared memory and MSR based systems Gautham R. Shenoy (1): amd-pstate: Set min_perf to nominal_perf for active mode performance gov Mario Limonciello (7): cpufreq/amd-pstate: Fix non kerneldoc comment cpufreq/amd-pstate: Don't update CPPC request in amd_pstate_cpu_boost_update() cpufreq/amd-pstate: Use amd_pstate_update_min_max_limit() for EPP limits cpufreq/amd-pstate: Drop needless EPP initialization cpufreq/amd-pstate-ut: Add fix for min freq unit test cpufreq/amd-pstate: Push adjust_perf vfunc init into cpu_init cpufreq/amd-pstate: Move registration after static function call update Swapnil Sapkal (1): amd-pstate: Switch to amd-pstate by default on some Server platforms drivers/cpufreq/amd-pstate-ut.c | 6 +++--- drivers/cpufreq/amd-pstate.c | 229 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------------------------------------------------- 2 files changed, 97 insertions(+), 138 deletions(-)