diff --git a/0001-Detect-AMD-Family-17h-thermal-sensors.patch b/0001-Detect-AMD-Family-17h-thermal-sensors.patch new file mode 100644 index 0000000..aa1cf4a --- /dev/null +++ b/0001-Detect-AMD-Family-17h-thermal-sensors.patch @@ -0,0 +1,27 @@ +From f7d7997cf41bb0e1db0fb300073b434e0ea7dcc3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= +Date: Fri, 20 Apr 2018 16:24:24 +0200 +Subject: [PATCH] Detect AMD Family 17h thermal sensors + +--- + prog/detect/sensors-detect | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect +index 6013aa3..f522b95 100755 +--- a/prog/detect/sensors-detect ++++ b/prog/detect/sensors-detect +@@ -2532,6 +2532,10 @@ use vars qw(@cpu_ids); + name => "AMD Family 16h thermal sensors", + driver => "k10temp", + detect => sub { amd_pci_detect('1533', '1583') }, ++ }, { ++ name => "AMD Family 17h thermal sensors", ++ driver => "k10temp", ++ detect => sub { amd_pci_detect('1463') }, + }, { + name => "AMD Family 15h power sensors", + driver => "fam15h_power", +-- +2.14.3 + diff --git a/lm_sensors.spec b/lm_sensors.spec index 7a46a95..75c30ca 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -1,6 +1,6 @@ Name: lm_sensors Version: 3.4.0 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Hardware monitoring tools Group: Applications/System License: LGPLv2+ and GPLv3+ and GPLv2+ and Verbatim and Public Domain @@ -17,6 +17,8 @@ Source5: sensord.service Source6: sensord-service-wrapper Source7: lm_sensors.service +Patch1: 0001-Detect-AMD-Family-17h-thermal-sensors.patch + Requires: /usr/sbin/modprobe %ifarch %{ix86} x86_64 Requires: /usr/sbin/dmidecode @@ -63,6 +65,7 @@ database, and warns of sensor alarms. %prep %setup -q +%patch1 -p1 mv prog/init/README prog/init/README.initscripts chmod -x prog/init/fancontrol.init @@ -181,6 +184,10 @@ fi %changelog +* Fri Apr 20 2018 Ondřej Lysoněk - 3.4.0-13 +- Detect AMD Family 17h thermal sensors +- Resolves: rhbz#1569542 + * Thu Apr 12 2018 Ondřej Lysoněk - 3.4.0-12 - Use LDFLAGS when linking executables - Resolves: rhbz#1548691