From fab3afc75d5712349a53accef687d6aa10ba8a96 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 20 Dec 2009 17:11:48 +0000 Subject: [PATCH] Refine the detection of AMD family 10h processors with working sensors. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5814 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 2 +- prog/detect/sensors-detect | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index a8feee06..993c8ce5 100644 --- a/CHANGES +++ b/CHANGES @@ -28,7 +28,7 @@ SVN-HEAD The SMSC LPC47M233 isn't currently supported Support upcoming sysfs path to i2c adapters Rename the modprobe configuration file to lm_sensors.conf - Only report AMD Family 10h CPU with model > 2 + Only report AMD Family 10h CPU with working sensors Add detection for AMD Family 11h thermal sensors Add detection for Intel Atom thermal sensors Add detection for National Semiconductor LM73 diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 07a027b6..4e538130 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -5396,10 +5396,13 @@ sub fam10h_pci_detect next unless $probecpu->{vendor_id} eq 'AuthenticAMD' && $probecpu->{'cpu family'} == 0x10; - next if $probecpu->{model} == 2; # DR-B* - next if $probecpu->{model} == 4 && - $probecpu->{stepping} <= 2; # RB-C2 + next if $probecpu->{model} < 4; # DR-B* next if $probecpu->{model} == 8; # HY-D0 + if ($probecpu->{model} == 4) { # RB-C* + 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 + } return 9; }