Files
kernel/kernel-std/debian/patches/0057-platform-x86-intel-uncore-freq-Add-Sapphire-Rapids-s.patch
Alyson Deives Pereira f475c5db86 Enable Intel RAPL and uncore frequency control
This change enables support for the Intel RAPL (Running Average Power
Limit) technology via MSR interface, which allows power limits to be
enforced and monitored on modern Intel processors, and the
intel-uncore-frequency driver, which allows control of Uncore
frequency limits on supported server platforms.

This is achieved by enabling the following kernel configuration items:
- CONFIG_POWERCAP
- CONFIG_INTEL_RAPL
- CONFIG_INTEL_RAPL_CORE
- CONFIG_INTEL_UNCORE_FREQ_CONTROL

This change also adds intel-uncore-frequency support for Sapphire
Rapids processor by including the following upstream kernel commit:

* commit 60accc011af0 (v5.12-rc1~123^2~41)
("platform/x86/intel-uncore-freq: Add Sapphire Rapids server support")

TEST PLAN:
PASS: Build iso success for rt and std.
PASS: Install success onto a AIO-DX lab with both rt and std kernel.
PASS: The following kernel modules are successfully enabled on a
Sapphire Rapids server, on both std and rt kernels:
- sudo modprobe rapl
- sudo modprobe msr
- sudo modprobe intel_rapl_common
- sudo modprobe intel_rapl_msr
- sudo modprobe intel-uncore-frequency

Story: 2010773
Task: 48304

Change-Id: I1b618f65483c657d8c936f6f8494a8611ab09e70
Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>
2023-06-30 14:36:34 -03:00

35 lines
1.4 KiB
Diff

From 74a981ffd11d9e22aa9117baa0025bafc60c0dda Mon Sep 17 00:00:00 2001
From: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Date: Wed, 3 Feb 2021 13:43:20 +0200
Subject: [PATCH] platform/x86/intel-uncore-freq: Add Sapphire Rapids server
support
Sapphire Rapids uncore frequency control is the same as Skylake and
Ice Lake. Add the Sapphire Rapids CPU model number to the match array.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20210203114320.1398801-1-dedekind1@gmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
(cherry picked from commit 60accc011af0ff869875b1ded81cbd0948267f05)
Signed-off-by: Alyson Deives Pereira <alyson.deivespereira@windriver.com>
---
drivers/platform/x86/intel-uncore-frequency.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/platform/x86/intel-uncore-frequency.c b/drivers/platform/x86/intel-uncore-frequency.c
index 12d5ab7e1f5d..3ee4c5c8a64f 100644
--- a/drivers/platform/x86/intel-uncore-frequency.c
+++ b/drivers/platform/x86/intel-uncore-frequency.c
@@ -377,6 +377,7 @@ static const struct x86_cpu_id intel_uncore_cpu_ids[] = {
X86_MATCH_INTEL_FAM6_MODEL(SKYLAKE_X, NULL),
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_X, NULL),
X86_MATCH_INTEL_FAM6_MODEL(ICELAKE_D, NULL),
+ X86_MATCH_INTEL_FAM6_MODEL(SAPPHIRERAPIDS_X, NULL),
{}
};
--
2.25.1