From patchwork Wed Dec 18 19:43:00 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mario Limonciello X-Patchwork-Id: 13914089 X-Patchwork-Delegate: rjw@sisk.pl Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2047.outbound.protection.outlook.com [40.107.92.47]) (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 4DEE01FBC96 for ; Wed, 18 Dec 2024 19:43:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.92.47 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734550987; cv=fail; b=uoLrKvscwX5oe5mXM+CxTnfMF6JRNcwzJSRWMPJoM2wh0tZ0pfecWmHD1bHra93x6hcdQxpV9X84gvgijjIVA2TgrQtDbBuhFvUDO67ACCE/Zbv7sZMy6bvEmnL9G+CEqnq9fr0QDCP6vyINwfILD5McznXvv3oXiDEUiIuMfFA= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734550987; c=relaxed/simple; bh=spLYU2EsyprhUfmEZQ6UngJYA3HmSa52rMfAuOoArhM=; h=Message-ID:Date:To:Cc:From:Subject:Content-Type:MIME-Version; b=nAsdAzENCPeNF4ZIEJB4TLOsq6EDLJLfo6uT1RlCxdzkQIZSOqr272x3CH+U5nF21HAHo8KlVv9orCZ+KbOl6wlO+MudIIGXlUp4fG3g7CGC9pBz7CcAJhQCAqr1HLmIPlDLvjnKsyxgEXIDUELKWGWvTDjlswtCyL4JS4GfkDQ= 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=P/WEm0Nh; arc=fail smtp.client-ip=40.107.92.47 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="P/WEm0Nh" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=tl2i8qeaU+/Rjo9zLNlkP6OHBzp2xythi6h+f2C/1YuuxIfIBqQWnjuMaN+pmAQsvXAvvWyqgE5rbTXXtRjAnTEMWEK2LXx3sRDZRoNLJ9L2P+w+yRvhbGq0tpTEuGlPXdzk3B4/RzNYgg0SziU5zOvvRIdRYy1Pi30OPj+q1UN0mrhdJCrX2uXsD/J/srFNYcAPhSdneEodvUMStFHppmgV8OeSPvT+GDbJnWMic5zMZXS/XfBHeoBJ7glkwB5deNlhdTdJrt9OGdrImMvoMLeffIeAnNEN/b/JLtRQc+YANUqAndx2spayrXuAux2NmHKsj1yUkCbfW5/Ef0pgVQ== 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=ZSlZQnFMBUY85EcIfDK+kxvwidv7+uOWDaBOY+jdqUc=; b=HXIc9rGCrEGrPWpWG3Cv8PGmfCKrtYXWU5+Jwg2UjJYlTt927/73fk0osvtT2pGsedK/nleI6V1EiFqH2GtsKv9M+M1RgtFpN0EStATupbWVjoNrHnT+9MdeNGWBfkcJaPkBAiYG+E9oJbuTwOY2APTiYc6iBdUKbrMSrd/WKM6gnkgZ1CGbQ09GUKXz0RTypVRnRGpO12HS2Ief6TWKTArW2A0lbml7yvnKmkSY5pEIz8obz3hiRMLrZTaPt28x9BDRy2ChE5rsV9gKHpMJ6kMqLojoanjLpdFk+g+YTA9KDogjt7Nj6miiu7CAI+T/qQQiW6KJlbJQJOUgIO4HQg== 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=ZSlZQnFMBUY85EcIfDK+kxvwidv7+uOWDaBOY+jdqUc=; b=P/WEm0NhiblC3JBSmCy/Or48WmKWHa6c7+F/xY7kOSSLePPxyLihr63UgSMCjXFB3ZMZXSFQaSj6jcS/ym5R33HljkIuiY/iZ4oNPJ8psf3guxU1R3Ovia7nBLnKF47BUno3Ad2XJzpaTFassMlqEw5wrtZnS8gVI3wT54928O4= 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 MW4PR12MB5604.namprd12.prod.outlook.com (2603:10b6:303:18d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8272.13; Wed, 18 Dec 2024 19:43:02 +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.8272.013; Wed, 18 Dec 2024 19:43:02 +0000 Message-ID: Date: Wed, 18 Dec 2024 13:43:00 -0600 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "Rafael J. Wysocki" Cc: Linux PM From: Mario Limonciello Subject: [GIT PULL] amd-pstate content for 6.14 (12/18/24) X-ClientProxiedBy: SA0PR11CA0016.namprd11.prod.outlook.com (2603:10b6:806:d3::21) 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_|MW4PR12MB5604:EE_ X-MS-Office365-Filtering-Correlation-Id: 23283a16-d5a7-4d58-d789-08dd1f9c2f00 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|376014|1800799024; X-Microsoft-Antispam-Message-Info: =?utf-8?q?zFxAfeIfEj9IITwwriA4wTX+pdFwKF1?= =?utf-8?q?H0zmjcVewDD4RS9UOn4+hN9tm2FInXc+cv0mtQ/2uiZKrKT0bnAGW3mjxtOgCLI+s?= =?utf-8?q?+80k4lERoJTSHNEKX9EBHdcTHq62xRjZ+w5Rj+bPeTW8R3WAkKfAF0v3yqSHLox+v?= =?utf-8?q?20R+V3jQgsWP+HR5aB3eNfmL1aytOzTquOe6Tn4k7rR3Se6qGms1NzMIYHdpZ0Yc4?= =?utf-8?q?0JL6O3Mk0dFpFL9vNDedsO7lpAcSeepeFHX1C+R18X5VNhpgvZ43OnRRL5Lifu/A5?= =?utf-8?q?J5usWe8PWiKkKKw6QCDjhmCiDCUMhb0fue6JIFwLbwjIeg4FuS6Nje1S9lN3T66Lo?= =?utf-8?q?U3W1oUHGSz9qfsOwDc897U+qBxIn5fmFfTYJdxAGdN2EDfRrZnu4Vstkt3U6LJd2K?= =?utf-8?q?VGceCNuGjkpOsTSpFaBLfk6nWIOZi0qppf4Zdi33o6ymc7OzSlgPj9IAHaFmqdxkv?= =?utf-8?q?zUA+uIna1GisfzX5Nod9uT8tVjy5768WlXcnp5fezIygcJOWoOpAAw9l414RGYEqF?= =?utf-8?q?aAt8VQ+5w6zyoggLJBI3DcoK/wXGlAki1FmxRjE43lYK19MLrYEvj6lRAKHK0og8W?= =?utf-8?q?9hnOYpwBPkRS6f7W3vj3HUo4XSD/yX0rj9BIj4I7QJmQLHAvFnCT8SzZKjibm3bjy?= =?utf-8?q?OKbhZvgJrfMzNSFve1NznrTBBheJFpwTMNsBkly+dqVa5AS5gyHrCZtdQHUsrh6k2?= =?utf-8?q?4izyPnN/zJGBE6bePDk9R8obXl7UzRsU/r7cdcl/jDvXplFFbwK+3o090y7CFI6gc?= =?utf-8?q?Bx50ymIYTFlGcmVOXhGBPIzSkMwYrT4yPPTUIQJAd4JQxjKRqVRHaq1pqclPSqCPR?= =?utf-8?q?X3y7SRciKLTd8UXRgXh6a8Uk2I7D/eONZp0YOZCuix6lRjGync2MohwfALmKnpuol?= =?utf-8?q?o+uGr1oYbFTZs0ed9Omrhi64qPQlsfFCt1Bx/qLZXXoqEbabfW6xQieciv6C4ObkL?= =?utf-8?q?QPljMEl5h83istTF0q65NH+Rl7GuuqpSGH/g7B8/WnXpce46Rk5T1aqYe7l4ei/WT?= =?utf-8?q?YZqAuWhEqn/xVrqUfKWTbHYNKD4WJC36360M2H6WNaI2nK5kRYZaf282e3vqbPWn8?= =?utf-8?q?FsSOOVO83dbL3VFTk30Czq2XjxyKICPjT1X52bQRicrGNtGIFsJ5yUz5ryOpQa9z9?= =?utf-8?q?knHFU8ri8CfYZva089CQt4UFcwpNRSnfv6dsCNCp8nSLrW1caaclD29ePpZ7Ucgc/?= =?utf-8?q?c3fg9v7/2iSyeLU5jVl05EogC2o8mmaDYxaym/0DpVT4PjlyRKnN1pqGM+KpzXDAD?= =?utf-8?q?Ucr1vKsLE36LDGyTPH0/fkXK1yaG8wm02Zw=3D=3D?= 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)(366016)(376014)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?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mjqkpW7y?= =?utf-8?q?HPT88GtwMBUF3nQwzJn47SozdYc0XstjsiS9d1lrdxiwJZQO5/nNrFMcdbregrmkX?= =?utf-8?q?8BYuZCIzTgmTtf1O6SaYk2ia5JTBTx9a+9B329l4aiQ1X3BAkCVAs/I5qEZT14frG?= =?utf-8?q?W/vBCEbL2z0vEtCRsgUn2SKLlQTe0BU75RV+cg3CEtE9irNNWN8C8M7Ubz7FuSTqN?= =?utf-8?q?fpJYB36iaKy+SaS966+f3bzPFtRzvJuIF5uv28fsGvDffHYOJ3HHF3QLpfT6xuYl5?= =?utf-8?q?PWW6MtiwOfQLrYhpwxv9Q4m6cCP/anifaPQWtBc10QpfGOXNb4tOfKTSTXwWSpxEh?= =?utf-8?q?15FjvmYdtBH3UAr9YZ2E3TqXj4J7YSyrREnQPCcn7ORxhFBF5I3ulrWOgjm9ug4+G?= =?utf-8?q?D2KLFWNBpkPJbqyUe4ygDxPFPxLJHE+/KlAZ9sog5Dc/cS4mTqatEzZog0NXaOHcN?= =?utf-8?q?5sElG0hT5Ez9nIaLGsD2ZDY3Ltqnd2yXpE1SRsT5vo4dnMsh3qvHL2gyCrZ4N2b0J?= =?utf-8?q?QfKVHzcizdWSsy5lwtBvVtRDmgoPINWyCZ3/4sEbkt0x2Rt6hRqw84EuiTHnr3Ki+?= =?utf-8?q?eC8GCJl6o2XHFShQ7REPar2No4wrrKyFVRrSaVOK8ntrkQ8oDSBeTddijBEfZSJdO?= =?utf-8?q?7Iodcg2ixXTZ?= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 23283a16-d5a7-4d58-d789-08dd1f9c2f00 X-MS-Exchange-CrossTenant-AuthSource: MN0PR12MB6101.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Dec 2024 19:43:02.1378 (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: u1DztqSZ86ETpuyoaz+wKfvlb4qeb8j7EpiQ1XQykErWpuCpShy7bGkIxVzI+vAyY5aWFJkfQ/P6f5cmtvZZxQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR12MB5604 Hello, The following changes since commit fac04efc5c793dccbd07e2d59af9f90b7fc0dca4: Linux 6.13-rc2 (2024-12-08 14:03:39 -0800) are available in the Git repository at: ssh://git@gitolite.kernel.org/pub/scm/linux/kernel/git/superm1/linux.git tags/amd-pstate-v6.14-2024-12-18 for you to fetch changes up to 95fad7fb58cfaa2a295aa54a1f001a16b9324963: cpufreq/amd-pstate: Drop boost_state variable (2024-12-11 10:44:53 -0600) ---------------------------------------------------------------- amd-pstate changes for 6.14 Mostly cleanups and optimizations to increase code reuse by shuffling around and using helpers. Notable other changes: * Add ftrace event for active mode to use * Set default EPP policy on Ryzen ---------------------------------------------------------------- Dhananjay Ugwekar (5): cpufreq/amd-pstate: Convert the amd_pstate_get/set_epp() to static calls cpufreq/amd-pstate: Move the invocation of amd_pstate_update_perf() cpufreq/amd-pstate: Refactor amd_pstate_epp_reenable() and amd_pstate_epp_offline() cpufreq/amd-pstate: Remove the cppc_state check in offline/online functions cpufreq/amd-pstate: Merge amd_pstate_epp_cpu_offline() and amd_pstate_epp_offline() K Prateek Nayak (1): cpufreq/amd-pstate: Detect preferred core support before driver registration Mario Limonciello (15): cpufreq/amd-pstate: Store the boost numerator as highest perf again cpufreq/amd-pstate: Use boost numerator for upper bound of frequencies cpufreq/amd-pstate: Add trace event for EPP perf updates cpufreq/amd-pstate: convert mutex use to guard() cpufreq/amd-pstate: Drop cached epp_policy variable cpufreq/amd-pstate: Use FIELD_PREP and FIELD_GET macros cpufreq/amd-pstate: Only update the cached value in msr_set_epp() on success cpufreq/amd-pstate: store all values in cpudata struct in khz cpufreq/amd-pstate: Change amd_pstate_update_perf() to return an int cpufreq/amd-pstate: Move limit updating code cpufreq/amd-pstate: Cache EPP value and use that everywhere cpufreq/amd-pstate: Always write EPP value when updating perf cpufreq/amd-pstate: Drop ret variable from amd_pstate_set_energy_pref_index() cpufreq/amd-pstate: Set different default EPP policy for Epyc and Ryzen cpufreq/amd-pstate: Drop boost_state variable Documentation/admin-guide/pm/amd-pstate.rst | 4 +- drivers/cpufreq/amd-pstate-trace.h | 52 ++++++++++++-- drivers/cpufreq/amd-pstate-ut.c | 12 ++-- drivers/cpufreq/amd-pstate.c | 520 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------- drivers/cpufreq/amd-pstate.h | 3 - 5 files changed, 301 insertions(+), 290 deletions(-)