2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-31 14:25:39 +00:00

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
This commit is contained in:
Jean Delvare
2009-12-20 17:11:48 +00:00
parent 4745d9cac6
commit fab3afc75d
2 changed files with 7 additions and 4 deletions

View File

@@ -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

View File

@@ -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;
}