mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-09-02 15:25:38 +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:
2
CHANGES
2
CHANGES
@@ -25,7 +25,7 @@ SVN-HEAD
|
|||||||
The SMSC LPC47M233 isn't currently supported
|
The SMSC LPC47M233 isn't currently supported
|
||||||
Support upcoming sysfs path to i2c adapters
|
Support upcoming sysfs path to i2c adapters
|
||||||
Rename the modprobe configuration file to lm_sensors.conf
|
Rename the modprobe configuration file to lm_sensors.conf
|
||||||
Drop AMD K10 detection (unreliable sensors)
|
Only report AMD Family 10h CPU with model > 2
|
||||||
Add detection for AMD Family 11h thermal sensors
|
Add detection for AMD Family 11h thermal sensors
|
||||||
Add detection for Intel Atom thermal sensors
|
Add detection for Intel Atom thermal sensors
|
||||||
Add detection for National Semiconductor LM73
|
Add detection for National Semiconductor LM73
|
||||||
|
@@ -1877,6 +1877,10 @@ use vars qw(@cpu_ids);
|
|||||||
name => "AMD K8 thermal sensors",
|
name => "AMD K8 thermal sensors",
|
||||||
driver => "k8temp",
|
driver => "k8temp",
|
||||||
detect => \&k8temp_pci_detect,
|
detect => \&k8temp_pci_detect,
|
||||||
|
}, {
|
||||||
|
name => "AMD Family 10h thermal sensors",
|
||||||
|
driver => "to-be-written",
|
||||||
|
detect => \&fam10h_pci_detect,
|
||||||
}, {
|
}, {
|
||||||
name => "AMD Family 11h thermal sensors",
|
name => "AMD Family 11h thermal sensors",
|
||||||
driver => "to-be-written",
|
driver => "to-be-written",
|
||||||
@@ -5334,6 +5338,25 @@ sub k8temp_pci_detect
|
|||||||
return 9;
|
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
|
sub fam11h_pci_detect
|
||||||
{
|
{
|
||||||
return unless exists $pci_list{'1022:1303'};
|
return unless exists $pci_list{'1022:1303'};
|
||||||
|
Reference in New Issue
Block a user