diff --git a/powertop-add-rocket-lake-support.patch b/powertop-add-rocket-lake-support.patch new file mode 100644 index 0000000..8cb17da --- /dev/null +++ b/powertop-add-rocket-lake-support.patch @@ -0,0 +1,47 @@ +From 8e2fd311778b990240847e3e9ce3840ff312f5a7 Mon Sep 17 00:00:00 2001 +From: Gayatri Kammela +Date: Thu, 29 Oct 2020 12:09:06 -0700 +Subject: [PATCH] intel_cpus: Enable Rocket Lake desktop platform support in + PowerTop + +Signed-off-by: Gayatri Kammela +--- + src/cpu/intel_cpus.cpp | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/src/cpu/intel_cpus.cpp b/src/cpu/intel_cpus.cpp +index 13923b2..3d4464c 100644 +--- a/src/cpu/intel_cpus.cpp ++++ b/src/cpu/intel_cpus.cpp +@@ -83,6 +83,7 @@ static int intel_cpu_models[] = { + 0x9E, /* KBL */ + 0xA5, /* CML_DESKTOP */ + 0xA6, /* CML_MOBILE */ ++ 0xA7, /* RKL_DESKTOP */ + 0 /* last entry must be zero */ + }; + +@@ -196,6 +197,7 @@ nhm_core::nhm_core(int model) + case 0x9E: /* KBL */ + case 0xA5: /* CML_DESKTOP */ + case 0xA6: /* CML_MOBILE */ ++ case 0xA7: /* RKL_DESKTOP */ + has_c7_res = 1; + } + +@@ -385,6 +387,7 @@ nhm_package::nhm_package(int model) + case 0x9E: /* KBL */ + case 0xA5: /* CML_DESKTOP */ + case 0xA6: /* CML_MOBILE */ ++ case 0xA7: /* RKL_DESKTOP */ + has_c2c6_res=1; + has_c7_res = 1; + } +@@ -428,6 +431,7 @@ nhm_package::nhm_package(int model) + case 0x9E: /* KBL */ + case 0xA5: /* CML_DESKTOP */ + case 0xA6: /* CML_MOBILE */ ++ case 0xA7: /* RKL_DESKTOP */ + has_c8c9c10_res = 1; + break; + } diff --git a/powertop.changes b/powertop.changes index 649aa3e..d925738 100644 --- a/powertop.changes +++ b/powertop.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Nov 11 08:25:09 UTC 2020 - Michael Vetter + +- jsc#SLE-13395: Add Rocket Lake support + * Add powertop-add-rocket-lake-support.patch + ------------------------------------------------------------------- Thu Oct 29 08:36:16 UTC 2020 - Michael Vetter diff --git a/powertop.spec b/powertop.spec index e3472fd..5c79752 100644 --- a/powertop.spec +++ b/powertop.spec @@ -25,6 +25,8 @@ Group: System/Monitoring URL: https://01.org/powertop/ Source0: https://github.com/fenrus75/powertop/archive/v2.13.tar.gz Source1: powertop.service +# jsc#SLE-13395: Add powertop support +Patch0: powertop-add-rocket-lake-support.patch # they repeatedly forget to upload a release tarball and only have the one from # GitHub which doesnt contain configure thus adding: # autoconf, autoconf-archive, automake, libtool @@ -52,6 +54,7 @@ doing in terms of power savings. %prep %setup -q -n powertop-%{version} +%patch0 -p1 # Delete objects files left in tarball find . -name '*.o' -delete