- lm_sensors-r5837-fix-fam10-RB-C3-detection.patch: Fix detection

of RB-C3 AMD Family 10h CPU.

OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=23
This commit is contained in:
Jean Delvare 2010-06-01 12:47:20 +00:00 committed by Git OBS Bridge
parent 308cc38b54
commit 3e0e9c963e
3 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,19 @@
Fix detection of RB-C3 AMD Family 10h CPU. This core is only used in
packages not affected by erratum 319, so we don't have to use the
unreliable DDR2 vs. DDR3 approach for it.
---
prog/detect/sensors-detect | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- lm_sensors-3.1.2.orig/prog/detect/sensors-detect
+++ lm_sensors-3.1.2/prog/detect/sensors-detect
@@ -5425,7 +5425,7 @@ sub fam10h_pci_detect
next if $probecpu->{model} < 4; # DR-B*
next if $probecpu->{model} == 8; # HY-D0
- if ($probecpu->{model} == 4) { # RB-C*
+ if ($probecpu->{model} == 4 && $probecpu->{stepping} <= 2) { # RB-C2
my @dram_cfg = split /\n/, `setpci -d 1022:1202 94.L 2>/dev/null`;
next unless @dram_cfg >= 1;
next unless hex($dram_cfg[0]) & 0x00000100; # DDR3

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 1 14:46:23 CEST 2010 - jdelvare@suse.de
- lm_sensors-r5837-fix-fam10-RB-C3-detection.patch: Fix detection
of RB-C3 AMD Family 10h CPU.
-------------------------------------------------------------------
Fri May 7 11:48:40 CEST 2010 - jdelvare@suse.de

View File

@ -38,6 +38,7 @@ Patch4: lm_sensors-3.0.3-hint-at-kernel-extra-package.patch
Patch5: lm_sensors-3.1.1-no-ipmisensors-driver.patch
Patch6: lm_sensors-r5832-adt7468-driver.patch
Patch7: lm_sensors-r5835-fix-sensord-regression.patch
Patch8: lm_sensors-r5837-fix-fam10-RB-C3-detection.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExcludeArch: s390 s390x
@ -142,6 +143,7 @@ Authors:
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%build
RPM_OPT_FLAGS="$RPM_OPT_FLAGS"