Message ID | 20221202074719.623673-1-perry.yuan@amd.com |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp702682wrr; Thu, 1 Dec 2022 23:52:26 -0800 (PST) X-Google-Smtp-Source: AA0mqf5FpwqlYjTc8oA2aBXLnpBMLs/iiH7TP5P5w/oy0aYlZQg7IJX4YSM/XXiE4k8qQJfRrAs9 X-Received: by 2002:a17:90a:8c04:b0:219:5b3c:6983 with SMTP id a4-20020a17090a8c0400b002195b3c6983mr14868480pjo.131.1669967546182; Thu, 01 Dec 2022 23:52:26 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1669967546; cv=pass; d=google.com; s=arc-20160816; b=bl1PjLy3Qdf9Dra72QEpjo2MHRahzgGxFPyeJ4tkeowOIHoLGFH1D1h3xP6O1bNv7J EvrlyieacpEwA/LJuUV/l1xFh77TXnoCSbCivLkpPRhyvyUTdLlYGXPMZICCPAGUd5hO tWxH5+CvTiRz9ifGXse7fKpLWVRyHPCjkZ8ZahySoiAIefRQs+QTu10KZki5lFHxVd1g u5LHs88zeTQludkrWOUL6SiWyrMN6lAIOpKPgBQZ+9z8N+FVTWcq+Iq33DWOH+joJ4a4 0zHHFNmCfO6+YTHw3+PLZpkl5PmybRiWWbhRUpF34xusOXaukr/tUarVuszJqMw0o56q Crsg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=bY6vI8mGPFHhKxCChfW/TOXtS6r/ehpt11M+1Smfj2Y=; b=wMfwOUgIPvVdyM+9Wb2R/5t55sd1QnLnIrKfxxDHo1dP5a0jmg0IMxD2ENgPcEPNWZ TFqE81v7hI1FVDec9JBEHUnnCR8W0QZ/IFiJcvWTm9L+KvswX0y5Et5ol6DemC9qDxEr IoBxOSmguXcOaneaGt73IZKE89SvlrhvHWBEgzV09Y1VeHdiZ/Fo+11zS4VxcGpmvaiM FSSecn3+IGdvFlprmwTpY7B4FwoONcpJoHuwxilW12AHENkG5QYCOiiRUtTuzK09SjIB ky+FMN7VFJyFhDbq0OYeWne/JDXZtgazYGXfjCIR/By3SbwVtIzdYltGFcqULMXqSvc4 t4Zw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amd.com header.s=selector1 header.b=B4mf0aSV; arc=pass (i=1 spf=pass spfdomain=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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n3-20020a1709026a8300b0018890a7e9c5si5966458plk.509.2022.12.01.23.52.13; Thu, 01 Dec 2022 23:52:26 -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=B4mf0aSV; arc=pass (i=1 spf=pass spfdomain=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 S232412AbiLBHub (ORCPT <rfc822;heyuhang3455@gmail.com> + 99 others); Fri, 2 Dec 2022 02:50:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231449AbiLBHu3 (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 2 Dec 2022 02:50:29 -0500 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (mail-bn1nam02on2054.outbound.protection.outlook.com [40.107.212.54]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3EC2F37211; Thu, 1 Dec 2022 23:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Vrs5XypsCiGGxxM+xf/T5OYO+Pd1bD7y5Pv8+HdX9ZCRtf8QOTEXtKZnRIirDgoqvbRzUxJ6iqVvLNkyUQT7U94wo3XWJh65Oh+ip0AWU/AxMnuv5cvulEtgOSmjXusaO9JfuaaT9BPoMo19pwbhRfJqMlOapvlQyCEY/oqheLg7Nb/OHdDGE90Blij8vF8k7Z4yiUkS6ALIfnFJTSzCbSTCDqIQzU/CYiwykZ7BKQyFv/h2p45x0KBZSlKvHMn1Ukf7/u1aunrDzIsi4tR+ZxDci34rZDbIKBjYPnPM/itAYTBf1IjHd2dvaoiimY8XILkk1Il6H25xx8vlI9cEEQ== 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=bY6vI8mGPFHhKxCChfW/TOXtS6r/ehpt11M+1Smfj2Y=; b=XTDxKDbDyoFfad3WCIs22y8McjId+m/PorfL/wYiHw4A8nY75RrSFPp5iqyVDs142QxcDCtsOExCf2hW6282JDgUY5A8h5ubFrKBdrnH5E0Qpk1koVMLspxeJ8ZQpc0Bk10ZssMVqO1bgOJMrasTDV7DiSDqf0Y40H3n5D27t58/9ZYvzFZY7Wp/SfQrStPmnALjyaOR0N6zsQPZvr6a7ed2GpUklwzuwByDdAiEDvcCGO11/qolwLKjmCW9vvAtbpzZIX2Uvilfjj6JTL00RY2lhnp6Pp3eBOdL2Uo2ykcd3vZ7+YkV6puBkPLxKdynZTHE2vnmZZ4wCroSnoM+dA== 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 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=bY6vI8mGPFHhKxCChfW/TOXtS6r/ehpt11M+1Smfj2Y=; b=B4mf0aSVz7yAWTAQkgQ+2A4VB0Wv43cGNUPBNukz2WpNkRfOpSYsx8QzCSR9wF72QC3sy2adl8AD4mYPHKyIQtJpA6WuKoDLZORjWjbmHAVzFZrgieg97kzEGIMWl3qRfb2027BusfLCMDdg6huOEEzIYApe8EZs/vb53Nwah/w= Received: from DS7PR07CA0019.namprd07.prod.outlook.com (2603:10b6:5:3af::7) by CY8PR12MB8065.namprd12.prod.outlook.com (2603:10b6:930:73::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10; Fri, 2 Dec 2022 07:50:25 +0000 Received: from DM6NAM11FT035.eop-nam11.prod.protection.outlook.com (2603:10b6:5:3af:cafe::9c) by DS7PR07CA0019.outlook.office365.com (2603:10b6:5:3af::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.10 via Frontend Transport; Fri, 2 Dec 2022 07:50:25 +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 DM6NAM11FT035.mail.protection.outlook.com (10.13.172.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5857.20 via Frontend Transport; Fri, 2 Dec 2022 07:50:25 +0000 Received: from pyuan-Cloudripper.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.2375.34; Fri, 2 Dec 2022 01:50:20 -0600 From: Perry Yuan <perry.yuan@amd.com> To: <rafael.j.wysocki@intel.com>, <Mario.Limonciello@amd.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> Subject: [PATCH v6 00/11] Implement AMD Pstate EPP Driver Date: Fri, 2 Dec 2022 15:47:08 +0800 Message-ID: <20221202074719.623673-1-perry.yuan@amd.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.180.168.240] X-ClientProxiedBy: SATLEXMB04.amd.com (10.181.40.145) To SATLEXMB04.amd.com (10.181.40.145) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6NAM11FT035:EE_|CY8PR12MB8065:EE_ X-MS-Office365-Filtering-Correlation-Id: 150c5e8c-67f2-43d2-567d-08dad439df5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fwVLbCuim2IuXTW7Bn2vwd6hStiwj5vv7vTSMKyaf2vr8BbzZe5EvpvX4Ar5gfrOxdJow0rc+/YBD3sIHjmxjnhxfPtbi8gEpp38agUtRci586iTZd3YFypkIsYTdpDXo/qzBFywk/X3QDZVOWU02s2ZE7Ho2QLzF8ct5GazzIr74hOwvyzyyEHGhoo7kHOUNolVPIIyRpg/+GhtbEYDGIzudS9IPYSsPVvw4/sOcAHVNb6Uf1LIRuDZ0qJa++/4ECggh2hcJ1eWZp1TVrE70oMl6AIawysITaj/A00JHamK5rpPSeHH7fWMO1EPSbq29aip8hFupbPwf7BI/OGE1oU5QhRW+/UiQ/b4hjIJGe9f5B9+P51o8BRfUyIPNUZX446xjAMfXYlR1JHmuRXOdXBfYOUK044ky+5IPU3GL7ABiIvLK+kFCj5ud3de4sN3HTWHG8/S2h0CgXTQP3m2QHngm80JdIU2yGZNxMc4gf43aC/3f45gIln12aixvhpikwyUGAyrBXLRw3nUp46EmIsOgwvoPqljNv2pRrrhze4xV+OEyHblXD7m/SW5CzKxZZP0KdBwjCCXhOg/jLSYWZ49csikLUl6Nr80tTiVFNk061xAvYPtTMkBnMGWOZGjMkvM5LeSklouPaN8AP8qN9QPIoUgDXmF7AUsc0nxXlZ21DzmNT1j9/fXEHN2N9NnOxjXTTlY6pjsucsTMtlBcrvyWX3CvSj5ip+iMpSovw9MbInMoVoK0bM3X9PoWejlxmJOZUYhsvdH0tmmse+Okli2yrR0mjq7mACU95NYcOfNdAjUfzbQIHNgYT+6SkHl 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:(13230022)(4636009)(136003)(376002)(346002)(39860400002)(396003)(451199015)(36840700001)(46966006)(40470700004)(70586007)(70206006)(44832011)(5660300002)(8676002)(2906002)(41300700001)(8936002)(4326008)(316002)(54906003)(110136005)(966005)(36756003)(478600001)(40480700001)(336012)(26005)(45080400002)(7696005)(6666004)(16526019)(83380400001)(1076003)(426003)(2616005)(47076005)(40460700003)(82740400003)(86362001)(36860700001)(82310400005)(81166007)(356005)(186003)(36900700001);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Dec 2022 07:50:25.1094 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 150c5e8c-67f2-43d2-567d-08dad439df5b 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: DM6NAM11FT035.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY8PR12MB8065 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751087889383320049?= X-GMAIL-MSGID: =?utf-8?q?1751087889383320049?= |
Series |
Implement AMD Pstate EPP Driver
|
|
Message
Yuan, Perry
Dec. 2, 2022, 7:47 a.m. UTC
Hi all, This patchset implements one new AMD CPU frequency driver `amd-pstate-epp` instance for better performance and power control. CPPC has a parameter called energy preference performance (EPP). The EPP is used in the CCLK DPM controller to drive the frequency that a core is going to operate during short periods of activity. EPP values will be utilized for different OS profiles (balanced, performance, power savings). AMD Energy Performance Preference (EPP) provides a hint to the hardware if software wants to bias toward performance (0x0) or energy efficiency (0xff) The lowlevel power firmware will calculate the runtime frequency according to the EPP preference value. So the EPP hint will impact the CPU cores frequency responsiveness. We use the RAPL interface with "perf" tool to get the energy data of the package power. Performance Per Watt (PPW) Calculation: The PPW calculation is referred by below paper: https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fsoftware.intel.com%2Fcontent%2Fdam%2Fdevelop%2Fexternal%2Fus%2Fen%2Fdocuments%2Fperformance-per-what-paper.pdf&data=04%7C01%7CPerry.Yuan%40amd.com%7Cac66e8ce98044e9b062708d9ab47c8d8%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637729147708574423%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=TPOvCE%2Frbb0ptBreWNxHqOi9YnVhcHGKG88vviDLb00%3D&reserved=0 Below formula is referred from below spec to measure the PPW: (F / t) / P = F * t / (t * E) = F / E, "F" is the number of frames per second. "P" is power measured in watts. "E" is energy measured in joules. Gitsouce Benchmark Data on ROME Server CPU +------------------------------+------------------------------+------------+------------------+ | Kernel Module | PPW (1 / s * J) |Energy(J) | PPW Improvement (%)| +==============================+==============================+============+==================+ | acpi-cpufreq:schedutil | 5.85658E-05 | 17074.8 | base | +------------------------------+------------------------------+------------+------------------+ | acpi-cpufreq:ondemand | 5.03079E-05 | 19877.6 | -14.10% | +------------------------------+------------------------------+------------+------------------+ | acpi-cpufreq:performance | 5.88132E-05 | 17003 | 0.42% | +------------------------------+------------------------------+------------+------------------+ | amd-pstate:ondemand | 4.60295E-05 | 21725.2 | -21.41% | +------------------------------+------------------------------+------------+------------------+ | amd-pstate:schedutil | 4.70026E-05 | 21275.4 | -19.7% | +------------------------------+------------------------------+------------+------------------+ | amd-pstate:performance | 5.80094E-05 | 17238.6 | -0.95% | +------------------------------+------------------------------+------------+------------------+ | EPP:performance | 5.8292E-05 | 17155 | -0.47% | +------------------------------+------------------------------+------------+------------------+ | EPP: balance performance: | 6.71709E-05 | 14887.4 | 14.69% | +------------------------------+------------------------------+------------+------------------+ | EPP:power | 6.66951E-05 | 4993.6 | 13.88% | +------------------------------+------------------------------+------------+------------------+ Tbench Benchmark Data on ROME Server CPU +---------------------------------------------+-------------------+--------------+-------------+------------------+ | Kernel Module | PPW MB / (s * J) |Throughput(MB/s)| Energy (J)|PPW Improvement(%)| +=============================================+===================+==============+=============+==================+ | acpi_cpufreq: schedutil | 46.39 | 17191 | 37057.3 | base | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | acpi_cpufreq: ondemand | 51.51 | 19269.5 | 37406.5 | 11.04 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | acpi_cpufreq: performance | 45.96 | 17063.7 | 37123.7 | -0.74 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | EPP:powersave: performance(0) | 54.46 | 20263.1 | 37205 | 17.87 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | EPP:powersave: balance performance | 55.03 | 20481.9 | 37221.5 | 19.14 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | EPP:powersave: balance_power | 54.43 | 20245.9 | 37194.2 | 17.77 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | EPP:powersave: power(255) | 54.26 | 20181.7 | 37197.4 | 17.40 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | amd-pstate: schedutil | 48.22 | 17844.9 | 37006.6 | 3.80 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | amd-pstate: ondemand | 61.30 | 22988 | 37503.4 | 33.72 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ | amd-pstate: performance | 54.52 | 20252.6 | 37147.8 | 17.81 % | +---------------------------------------------+-------------------+--------------+-------------+------------------+ change from v5: * add one common header `cpufreq_commoncpufreq_common` to extract EPP profiles definition for amd and intel pstate driver. * remove the epp_off value to avoid confusion. * convert some other sysfs sprintf() function with sysfs_emit() and add onew new patch * add acpi pm server priofile detection to enable dynamic boost control * fix some code format with checkpatch script * move the EPP profile declaration into common header file `cpufreq_common.h` * fix commit typos changes from v4: * rebase driver based on the v6.1-rc7 * remove the builtin changes patch because pstate driver has been changed to builtin type by another thread patch * update Documentation: amd-pstate: add amd pstate driver mode introduction * replace sprintf with sysfs_emit() instead. * fix typo for cppc_set_epp_perf() in cppc_acpi.h header changes from v3: * add one more document update patch for the active and passive mode introducion. * drive most of the feedbacks from Mario * drive feedback from Rafael for the cppc_acpi driver. * remove the epp raw data set/get function * set the amd-pstate drive by passing kernel parameter * set amd-pstate driver disabled by default if no kernel parameter input from booting * get cppc_set_auto_epp and cppc_set_epp_perf combined * pick up reviewed by flag from Mario changes from v2: * change pstate driver as builtin type from module * drop patch "export cpufreq cpu release and acquire" * squash patch of shared mem into single patch of epp implementation * add one new patch to support frequency boost control * add patch to expose driver working status checking * rebase driver into v6.1-rc4 kernel release * move some declaration to amd-pstate.h * drive feedback from Mario for the online/offline patch * drive feedback from Mario for the suspend/resume patch * drive feedback from Ray for the cppc_acpi and some other patches * drive feedback from Nathan for the epp patch changes from v1: * rebased to v6.0 * drive feedbacks from Mario for the suspend/resume patch * drive feedbacks from Nathan for the EPP support on msr type * fix some typos and code style indent problems * update commit comments for patch 4/7 * change the `epp_enabled` module param name to `epp` * set the default epp mode to be false * add testing for the x86_energy_perf_policy utility patchset(will send that utility patchset with another thread) v5: https://lore.kernel.org/lkml/20221128170314.2276636-1-perry.yuan@amd.com/ v4: https://lore.kernel.org/lkml/20221110175847.3098728-1-Perry.Yuan@amd.com/ v3: https://lore.kernel.org/all/20221107175705.2207842-1-Perry.Yuan@amd.com/ v2: https://lore.kernel.org/all/20221010162248.348141-1-Perry.Yuan@amd.com/ v1: https://lore.kernel.org/all/20221009071033.21170-1-Perry.Yuan@amd.com/ Perry Yuan (11): ACPI: CPPC: Add AMD pstate energy performance preference cppc control Documentation: amd-pstate: add EPP profiles introduction cpufreq: intel_pstate: use common macro definition for Energy Preference Performance(EPP) cpufreq: amd_pstate: implement Pstate EPP support for the AMD processors cpufreq: amd_pstate: implement amd pstate cpu online and offline callback cpufreq: amd-pstate: implement suspend and resume callbacks cpufreq: amd-pstate: add frequency dynamic boost sysfs control cpufreq: amd_pstate: add driver working mode status sysfs entry Documentation: amd-pstate: add amd pstate driver mode introduction Documentation: introduce amd pstate active mode kernel command line options cpufreq: amd_pstate: convert sprintf with sysfs_emit() .../admin-guide/kernel-parameters.txt | 7 + Documentation/admin-guide/pm/amd-pstate.rst | 45 +- arch/x86/include/asm/msr-index.h | 4 - drivers/acpi/cppc_acpi.c | 114 ++- drivers/cpufreq/amd-pstate.c | 886 +++++++++++++++++- drivers/cpufreq/intel_pstate.c | 37 +- include/acpi/cppc_acpi.h | 12 + include/linux/amd-pstate.h | 36 + include/linux/cpufreq_common.h | 56 ++ 9 files changed, 1140 insertions(+), 57 deletions(-) create mode 100644 include/linux/cpufreq_common.h