From 4745d9cac608a73e703e7d6ff76fe1154ea6372d Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 17 Dec 2009 10:01:14 +0000 Subject: [PATCH] More AMD family 10h CPU models with broken thermal sensors. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5813 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index ea0d8dfb..07a027b6 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -5390,14 +5390,18 @@ sub fam10h_pci_detect # Errata 319 (Inaccurate Temperature Measurement) affects # revisions DR-BA, DR-B2 and DR-B3, all have model number = 2. - # So we only pick CPU with model number > 2. + # Revisions RB-C2 and HY-D0 are also affected. my $probecpu; foreach $probecpu (@cpu) { - if ($probecpu->{vendor_id} eq 'AuthenticAMD' && - $probecpu->{'cpu family'} == 0x10 && - $probecpu->{model} > 2) { - return 9; - } + 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} == 8; # HY-D0 + + return 9; } return;