From cb692aed31fe38cc45b9607b7e26f1fd3f114be5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= Date: Fri, 4 May 2018 13:25:36 +0200 Subject: [PATCH] Add detection of AMD Ryzen w/ Vega graphics Resolves: rhbz#1573399 --- ...tection-of-AMD-Ryzen-w-Vega-graphics.patch | 27 +++++++++++++++++++ lm_sensors.spec | 8 +++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch diff --git a/0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch b/0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch new file mode 100644 index 0000000..ae3d0e3 --- /dev/null +++ b/0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch @@ -0,0 +1,27 @@ +From c874e11639b6fd4002b155f7414f54f632465ec1 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= +Date: Thu, 3 May 2018 12:41:41 +0200 +Subject: [PATCH] Add detection of AMD Ryzen w/ Vega graphics + +Kernel support was added in commit +https://github.com/torvalds/linux/commit/877d8948d0aa402fb +--- + 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 9b399e74..0d1cbb5d 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') }, ++ detect => sub { amd_pci_detect('1463', '15d0') }, + }, { + name => "AMD Family 15h power sensors", + driver => "fam15h_power", +-- +2.14.3 + diff --git a/lm_sensors.spec b/lm_sensors.spec index 75c30ca..84503c1 100644 --- a/lm_sensors.spec +++ b/lm_sensors.spec @@ -1,6 +1,6 @@ Name: lm_sensors Version: 3.4.0 -Release: 13%{?dist} +Release: 14%{?dist} Summary: Hardware monitoring tools Group: Applications/System License: LGPLv2+ and GPLv3+ and GPLv2+ and Verbatim and Public Domain @@ -18,6 +18,7 @@ Source6: sensord-service-wrapper Source7: lm_sensors.service Patch1: 0001-Detect-AMD-Family-17h-thermal-sensors.patch +Patch2: 0001-Add-detection-of-AMD-Ryzen-w-Vega-graphics.patch Requires: /usr/sbin/modprobe %ifarch %{ix86} x86_64 @@ -66,6 +67,7 @@ database, and warns of sensor alarms. %prep %setup -q %patch1 -p1 +%patch2 -p1 mv prog/init/README prog/init/README.initscripts chmod -x prog/init/fancontrol.init @@ -184,6 +186,10 @@ fi %changelog +* Fri May 04 2018 Ondřej Lysoněk - 3.4.0-14 +- Add detection of AMD Ryzen w/ Vega graphics +- Resolves: rhbz#1573399 + * Fri Apr 20 2018 Ondřej Lysoněk - 3.4.0-13 - Detect AMD Family 17h thermal sensors - Resolves: rhbz#1569542