diff -Nru thermald-2.5.2/debian/changelog thermald-2.5.2/debian/changelog --- thermald-2.5.2/debian/changelog 2023-02-06 19:21:20.000000000 +0800 +++ thermald-2.5.2/debian/changelog 2023-08-16 16:52:35.000000000 +0800 @@ -1,3 +1,9 @@ +thermald (2.5.2-1ubuntu1) lunar; urgency=medium + + * Mateor Lake CPU support (LP: #2028217) + + -- Koba Ko Wed, 16 Aug 2023 16:52:35 +0800 + thermald (2.5.2-1) unstable; urgency=medium * sync to thermald 2.5.2 diff -Nru thermald-2.5.2/debian/control thermald-2.5.2/debian/control --- thermald-2.5.2/debian/control 2023-02-06 19:21:26.000000000 +0800 +++ thermald-2.5.2/debian/control 2023-08-16 16:52:35.000000000 +0800 @@ -2,7 +2,7 @@ Rules-Requires-Root: no Section: admin Priority: optional -Maintainer: Colin Ian King +Maintainer: Koba Ko Standards-Version: 4.6.1 Build-Depends: debhelper (>= 13), debhelper-compat (=13), diff -Nru thermald-2.5.2/debian/patches/0001-Add-support-for-Mateor-Lake.patch thermald-2.5.2/debian/patches/0001-Add-support-for-Mateor-Lake.patch --- thermald-2.5.2/debian/patches/0001-Add-support-for-Mateor-Lake.patch 1970-01-01 08:00:00.000000000 +0800 +++ thermald-2.5.2/debian/patches/0001-Add-support-for-Mateor-Lake.patch 2023-08-16 16:52:16.000000000 +0800 @@ -0,0 +1,70 @@ +From 7000c53d80c69a01efbd1df9d7b35ecaa0d539c5 Mon Sep 17 00:00:00 2001 +From: Srinivas Pandruvada +Date: Thu, 15 Jun 2023 10:38:48 -0700 +Subject: [PATCH] Add support for Mateor Lake + +Add support for Matero Lake by adding CPU model and sysfs paths. + +(cherry-picked from 7000c53d80c69a01efbd1df9d7b35ecaa0d539c5 https://github.com/intel/thermal_daemon.git) + +--- + src/thd_engine.cpp | 1 + + src/thd_engine_adaptive.cpp | 2 ++ + src/thd_gddv.cpp | 2 ++ + src/thd_int3400.cpp | 2 ++ + 4 files changed, 7 insertions(+) + +diff --git a/src/thd_engine.cpp b/src/thd_engine.cpp +index e37ce9b..d2ac0e7 100644 +--- a/src/thd_engine.cpp ++++ b/src/thd_engine.cpp +@@ -715,6 +715,7 @@ static supported_ids_t id_table[] = { + { 6, 0xba }, // Raptorlake + { 6, 0xbe }, // Alderlake N + { 6, 0xbf }, // Raptorlake S ++ { 6, 0xaa }, // Mateor Lake L + { 0, 0 } // Last Invalid entry + }; + +diff --git a/src/thd_engine_adaptive.cpp b/src/thd_engine_adaptive.cpp +index b0cabcd..0e35af9 100644 +--- a/src/thd_engine_adaptive.cpp ++++ b/src/thd_engine_adaptive.cpp +@@ -581,6 +581,8 @@ int cthd_engine_adaptive::thd_engine_init(bool ignore_cpuid_check, + int3400_base_path = "/sys/bus/platform/devices/INTC1041:00/"; + } else if (sysfs.exists("/sys/bus/platform/devices/INTC10A0:00")) { + int3400_base_path = "/sys/bus/platform/devices/INTC10A0:00/"; ++ } else if (sysfs.exists("/sys/bus/platform/devices/INTC1042:00")) { ++ int3400_base_path = "/sys/bus/platform/devices/INTC1042:00/"; + } else { + return THD_ERROR; + } +diff --git a/src/thd_gddv.cpp b/src/thd_gddv.cpp +index 3f7d039..35c007f 100644 +--- a/src/thd_gddv.cpp ++++ b/src/thd_gddv.cpp +@@ -1487,6 +1487,8 @@ int cthd_gddv::gddv_init(void) { + int3400_base_path = "/sys/bus/platform/devices/INTC1041:00/"; + } else if (sysfs.exists("/sys/bus/platform/devices/INTC10A0:00")) { + int3400_base_path = "/sys/bus/platform/devices/INTC10A0:00/"; ++ } else if (sysfs.exists("/sys/bus/platform/devices/INTC1042:00")) { ++ int3400_base_path = "/sys/bus/platform/devices/INTC1042:00/"; + } else { + return THD_ERROR; + } +diff --git a/src/thd_int3400.cpp b/src/thd_int3400.cpp +index da86760..a749cca 100644 +--- a/src/thd_int3400.cpp ++++ b/src/thd_int3400.cpp +@@ -40,6 +40,8 @@ cthd_INT3400::cthd_INT3400(std::string _uuid) : uuid(_uuid), base_path("") { + base_path = "/sys/bus/acpi/devices/INTC1041:00/physical_node/uuids/"; + } else if (cdev_sysfs.exists("/sys/bus/acpi/devices/INTC10A0:00/physical_node/uuids")) { + base_path = "/sys/bus/acpi/devices/INTC10A0:00/physical_node/uuids/"; ++ } else if (cdev_sysfs.exists("/sys/bus/acpi/devices/INTC1042:00/physical_node/uuids")) { ++ base_path = "/sys/bus/acpi/devices/INTC1042:00/physical_node/uuids/"; + } + thd_log_info("INT3400 Base path is %s\n", base_path.c_str()); + } +-- +2.34.1 + diff -Nru thermald-2.5.2/debian/patches/series thermald-2.5.2/debian/patches/series --- thermald-2.5.2/debian/patches/series 1970-01-01 08:00:00.000000000 +0800 +++ thermald-2.5.2/debian/patches/series 2023-07-20 14:39:35.000000000 +0800 @@ -0,0 +1 @@ +0001-Add-support-for-Mateor-Lake.patch