diff --git a/0001-sensors-detect-Add-detection-of-AMD-Family-17h-model.patch b/0001-sensors-detect-Add-detection-of-AMD-Family-17h-model.patch new file mode 100644 index 0000000..47f0c1b --- /dev/null +++ b/0001-sensors-detect-Add-detection-of-AMD-Family-17h-model.patch @@ -0,0 +1,31 @@ +From 782a2124b60837c981b61c2f6a5d4501d4e0f964 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= +Date: Thu, 10 Jan 2019 15:09:24 +0100 +Subject: [PATCH] sensors-detect: Add detection of AMD Family 17h model 30h +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Kernel support was added in mainline commit 210ba1201ff95. + +Signed-off-by: Ondřej Lysoněk +--- + prog/detect/sensors-detect | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect +index 0b3b0ff2..4fa4c03e 100755 +--- a/prog/detect/sensors-detect ++++ b/prog/detect/sensors-detect +@@ -2773,7 +2773,7 @@ use vars qw(@cpu_ids); + }, { + name => "AMD Family 17h thermal sensors", + driver => "k10temp", +- detect => sub { amd_pci_detect('1463', '15d0') }, ++ detect => sub { amd_pci_detect('1463', '15d0', '1493') }, + }, { + name => "AMD Family 15h power sensors", + driver => "fam15h_power", +-- +2.17.2 + diff --git a/lm_sensors.spec b/lm_sensors.spec index e0456c3..567a81d 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -1,6 +1,6 @@ Name: lm_sensors Version: 3.5.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Hardware monitoring tools Group: Applications/System @@ -27,6 +27,8 @@ Source7: lm_sensors.service # Downstream-only: Patch0: 0001-Revert-unnecessary-soname-bump.patch +# Upstream patch: +Patch1: 0001-sensors-detect-Add-detection-of-AMD-Family-17h-model.patch Requires: /usr/sbin/modprobe %ifarch %{ix86} x86_64 @@ -81,6 +83,7 @@ database, and warns of sensor alarms. %prep %setup -q -n lm-sensors-%{upstream_version} %patch0 -p1 +%patch1 -p1 # Remove currently unused files to make sure we've got the license right rm -f prog/init/sysconfig-lm_sensors-convert prog/hotplug/unhide_ICH_SMBus @@ -202,6 +205,9 @@ fi %changelog +* Tue Jan 15 2019 Ondřej Lysoněk - 3.5.0-2 +- Detect AMD Rome - Family 17h model 30h + * Wed Jan 02 2019 Ondřej Lysoněk - 3.5.0-1 - New version - Resolves: rhbz#1653259