From 78dc2534eed5061eff82bcb542a01bb30f29310e Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 1 Jun 2010 12:27:28 +0000 Subject: [PATCH] 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. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5837 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + prog/detect/sensors-detect | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index dbf2ac72..ed00061f 100644 --- a/CHANGES +++ b/CHANGES @@ -8,6 +8,7 @@ SVN HEAD sensors-detect: Give udev time to settle before accessing i2c nodes Add support for Intel PCH (SMBus) Add support for SMSC EMC1403 and EMC1404 + Fix detection of RB-C3 AMD Family 10h CPU 3.1.2 (2010-02-02) libsensors: Support upcoming sysfs path to i2c adapters diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 43b10951..e7f5ab2a 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -5471,7 +5471,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