diff --git a/CHANGES b/CHANGES index b91a0f32..13b3947c 100644 --- a/CHANGES +++ b/CHANGES @@ -9,6 +9,7 @@ SVN HEAD Add detection of NCT6791D Add detection of NCT6681D, NCT6682D, and NCT6683D Add detection of F71868A + Add a PCI ID for new family 15h AMD processors 3.3.4 (2013-05-27) sensors.conf.5: Mention "sensors -u" to get the raw feature names diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 6cdaf693..23eb90f0 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -2392,7 +2392,7 @@ use vars qw(@cpu_ids); }, { name => "AMD Family 15h thermal sensors", driver => "k10temp", - detect => sub { amd_pci_detect('1603') }, + detect => sub { amd_pci_detect('1603', '1403') }, }, { name => "AMD Family 15h power sensors", driver => "fam15h_power", @@ -6432,9 +6432,11 @@ sub via8231_pci_detect sub amd_pci_detect { - my $f3_id = shift; - return unless exists $pci_list{"1022:$f3_id"}; - return 9; + my $dev_id; + while (defined($dev_id = shift)) { + return 9 if exists $pci_list{"1022:$dev_id"}; + } + return undef; } sub fam10h_pci_detect