Changeset 5814

Show
Ignore:
Timestamp:
12/20/09 18:11:48 (3 years ago)
Author:
khali
Message:

Refine the detection of AMD family 10h processors with working
sensors.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r5811 r5814  
    2929                  Support upcoming sysfs path to i2c adapters 
    3030                  Rename the modprobe configuration file to lm_sensors.conf 
    31                   Only report AMD Family 10h CPU with model > 2 
     31                  Only report AMD Family 10h CPU with working sensors 
    3232                  Add detection for AMD Family 11h thermal sensors 
    3333                  Add detection for Intel Atom thermal sensors 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r5813 r5814  
    53975397                            $probecpu->{'cpu family'} == 0x10; 
    53985398 
    5399                 next if $probecpu->{model} == 2;        # DR-B* 
    5400                 next if $probecpu->{model} == 4 && 
    5401                         $probecpu->{stepping} <= 2;     # RB-C2 
     5399                next if $probecpu->{model} < 4;         # DR-B* 
    54025400                next if $probecpu->{model} == 8;        # HY-D0 
     5401                if ($probecpu->{model} == 4) {          # RB-C* 
     5402                        my @dram_cfg = split /\n/, `setpci -d 1022:1202 94.L 2>/dev/null`; 
     5403                        next unless @dram_cfg >= 1; 
     5404                        next unless hex($dram_cfg[0]) & 0x00000100;     # DDR3 
     5405                } 
    54035406 
    54045407                return 9;