- jsc#SLE-13395: Add Rocket Lake support

* Add powertop-add-rocket-lake-support.patch

OBS-URL: https://build.opensuse.org/package/show/Base:System/powertop?expand=0&rev=70
This commit is contained in:
Michael Vetter 2020-11-11 08:28:02 +00:00 committed by Git OBS Bridge
parent f8c16fe331
commit 8123613293
3 changed files with 56 additions and 0 deletions

View File

@ -0,0 +1,47 @@
From 8e2fd311778b990240847e3e9ce3840ff312f5a7 Mon Sep 17 00:00:00 2001
From: Gayatri Kammela <gayatri.kammela@intel.com>
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 <gayatri.kammela@intel.com>
---
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;
}

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Nov 11 08:25:09 UTC 2020 - Michael Vetter <mvetter@suse.com>
- jsc#SLE-13395: Add Rocket Lake support
* Add powertop-add-rocket-lake-support.patch
-------------------------------------------------------------------
Thu Oct 29 08:36:16 UTC 2020 - Michael Vetter <mvetter@suse.com>

View File

@ -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