Add support for AMD CPU Family 19h

This commit is contained in:
Artem Egorenkov 2021-03-09 12:47:18 +01:00
parent 9cb35300dd
commit 9ca5ef4d48
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,15 @@
diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect
index 32fd29f..49feecb 100755
--- a/prog/detect/sensors-detect
+++ b/prog/detect/sensors-detect
@@ -2792,6 +2792,10 @@ use vars qw(@cpu_ids);
name => "AMD Family 17h thermal sensors",
driver => "k10temp",
detect => sub { amd_pci_detect('1463', '15d0', '1493', '1443') },
+ }, {
+ name => "AMD Family 19h thermal sensors",
+ driver => "k10temp",
+ detect => sub { amd_pci_detect('1653') },
}, {
name => "AMD Family 15h power sensors",
driver => "fam15h_power",

View File

@ -1,6 +1,6 @@
Name: lm_sensors Name: lm_sensors
Version: 3.6.0 Version: 3.6.0
Release: 8%{?dist} Release: 9%{?dist}
Summary: Hardware monitoring tools Summary: Hardware monitoring tools
%define upstream_version %(echo %{version} | sed -e 's/\\./-/g') %define upstream_version %(echo %{version} | sed -e 's/\\./-/g')
@ -31,6 +31,8 @@ Patch0: 0001-Revert-unnecessary-soname-bump.patch
# Upstream patch: # Upstream patch:
Patch1: 0001-Change-PIDFile-path-from-var-run-to-run.patch Patch1: 0001-Change-PIDFile-path-from-var-run-to-run.patch
Patch2: lm_sensors-3.6.0-allow_no_sensors.patch Patch2: lm_sensors-3.6.0-allow_no_sensors.patch
# Upstream commit 5deee7d0c301df779:
Patch3: lm_sensors-3.6.0-sensors-detect-Add-support-for-AMD-CPU-Family-19h.patch
Requires: /usr/sbin/modprobe Requires: /usr/sbin/modprobe
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
@ -87,6 +89,7 @@ database, and warns of sensor alarms.
%patch0 -p1 %patch0 -p1
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1
# Remove currently unused files to make sure we've got the license right # 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 rm -f prog/init/sysconfig-lm_sensors-convert prog/hotplug/unhide_ICH_SMBus
@ -209,6 +212,9 @@ fi
%changelog %changelog
* Tue Mar 9 2021 Artem Egorenkov <aegorenk@redhat.com> - 3.6.0-9
- Add support for AMD CPU Family 19h
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.6.0-8 * Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 3.6.0-8
- Rebuilt for updated systemd-rpm-macros - Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583. See https://pagure.io/fesco/issue/2583.