Add detection of AMD Ryzen w/ Vega graphics

Resolves: rhbz#1573399
This commit is contained in:
Ondřej Lysoněk 2018-05-04 13:25:36 +02:00
parent 7f0908d471
commit cb692aed31
2 changed files with 34 additions and 1 deletions

View File

@ -0,0 +1,27 @@
From c874e11639b6fd4002b155f7414f54f632465ec1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ond=C5=99ej=20Lyson=C4=9Bk?= <olysonek@redhat.com>
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

View File

@ -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 <olysonek@redhat.com> - 3.4.0-14
- Add detection of AMD Ryzen w/ Vega graphics
- Resolves: rhbz#1573399
* Fri Apr 20 2018 Ondřej Lysoněk <olysonek@redhat.com> - 3.4.0-13
- Detect AMD Family 17h thermal sensors
- Resolves: rhbz#1569542