2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 06:15:15 +00:00

Restore detection for AMD Family 10h thermal sensors. Only CPU with

model > 2 are reported, as older ones are known to have broken sensors.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@5800 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2009-11-23 12:15:26 +00:00
parent 74425eb8fc
commit 8d3e7a742e
2 changed files with 24 additions and 1 deletions

View File

@@ -1877,6 +1877,10 @@ use vars qw(@cpu_ids);
name => "AMD K8 thermal sensors",
driver => "k8temp",
detect => \&k8temp_pci_detect,
}, {
name => "AMD Family 10h thermal sensors",
driver => "to-be-written",
detect => \&fam10h_pci_detect,
}, {
name => "AMD Family 11h thermal sensors",
driver => "to-be-written",
@@ -5334,6 +5338,25 @@ sub k8temp_pci_detect
return 9;
}
sub fam10h_pci_detect
{
return unless exists $pci_list{'1022:1203'};
# 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.
my $probecpu;
foreach $probecpu (@cpu) {
if ($probecpu->{vendor_id} eq 'AuthenticAMD' &&
$probecpu->{'cpu family'} == 0x10 &&
$probecpu->{model} > 2) {
return 9;
}
}
return;
}
sub fam11h_pci_detect
{
return unless exists $pci_list{'1022:1303'};