linux-stable-rt/drivers/hwmon
Jean Delvare cd4de21f7e hwmon: (k8temp) Bypass core swapping on single-core processors
Commit a2e066bba2 introduced core
swapping for CPU models 64 and later. I recently had a report about
a Sempron 3200+, model 95, for which this patch broke temperature
reading. It happens that this is a single-core processor, so the
effect of the swapping was to read a temperature value for a core
that didn't exist, leading to an incorrect value (-49 degrees C.)

Disabling core swapping on singe-core processors should fix this.

Additional comment from Andreas:

The BKDG says

  Thermal Sensor Core Select (ThermSenseCoreSel)-Bit 2. This bit
  selects the CPU whose temperature is reported in the CurTemp
  field. This bit only applies to dual core processors. For
  single core processors CPU0 Thermal Sensor is always selected.

k8temp_probe() correctly detected that SEL_CORE can't be used on single
core CPU. Thus k8temp did never update the temperature values stored
in temp[1][x] and -49 degrees was reported. For single core CPUs we
must use the values read into temp[0][x].

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Rick Moritz <rhavin@gmx.net>
Acked-by: Andreas Herrmann <andreas.herrmann3@amd.com>
Cc: stable@kernel.org
2010-06-20 09:22:32 +02:00
..
ams
Kconfig hwmon: (lm75) Add support for the Texas Instruments TMP105 2010-05-27 19:59:03 +02:00
Makefile hwmon: Driver for TI TMP102 temperature sensor 2010-05-27 19:58:56 +02:00
abituguru.c
abituguru3.c
ad7414.c
ad7418.c
adcxx.c
adm1021.c
adm1025.c
adm1026.c
adm1029.c
adm1031.c hwmon: (adm1031) Allow setting update rate 2010-05-27 19:58:46 +02:00
adm9240.c
ads7828.c
ads7871.c hwmon: add TI ads7871 a/d converter driver 2010-05-25 08:07:07 -07:00
adt7411.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
adt7462.c
adt7470.c
adt7475.c
amc6821.c
applesmc.c hwmon: (applesmc) Add temperature sensor labels to sysfs interface 2010-05-27 19:58:54 +02:00
asb100.c
asc7621.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
asus_atk0110.c hwmon: (asus_atk0110) Don't load if ACPI resources aren't enforced 2010-05-27 19:58:37 +02:00
atxp1.c
coretemp.c drivers/hwmon/coretemp.c: get TjMax value from MSR 2010-05-25 08:07:07 -07:00
dme1737.c hwmon: (dme1737) Add SCH5127 support 2010-05-27 19:59:01 +02:00
ds1621.c
emc1403.c hwmon: EMC1403 thermal sensor support 2010-05-27 19:58:56 +02:00
f71805f.c
f71882fg.c hwmon: (f71882fg) Acquire I/O regions while we're working with them 2010-05-27 19:58:43 +02:00
f75375s.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
fschmd.c drivers: Push down BKL into various drivers 2010-05-17 05:27:41 +02:00
g760a.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
gl518sm.c
gl520sm.c
hdaps.c
hp_accel.c hp_accel: fix race in device removal 2010-05-11 17:33:42 -07:00
hwmon-vid.c
hwmon.c
i5k_amb.c hwmon: (i5k_amb) Fix sysfs attribute for lockdep 2010-06-20 09:22:31 +02:00
ibmaem.c
ibmpex.c
it87.c
k8temp.c hwmon: (k8temp) Bypass core swapping on single-core processors 2010-06-20 09:22:32 +02:00
k10temp.c hwmon: (k10temp) Do not blacklist known working CPU models 2010-06-20 09:22:31 +02:00
lis3lv02d.c lis3: setup poll interval limits 2010-05-25 08:07:07 -07:00
lis3lv02d.h lis3: interrupt handlers for 8bit wakeup and click events 2010-05-25 08:07:07 -07:00
lis3lv02d_i2c.c
lis3lv02d_spi.c
lm63.c hwmon: (lm63) Add basic support for LM64 2010-05-27 19:58:38 +02:00
lm70.c
lm73.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
lm75.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
lm75.h
lm77.c
lm78.c
lm80.c
lm83.c
lm85.c
lm87.c
lm90.c hwmon: (lm90) Use programmed update rate 2010-05-27 19:58:44 +02:00
lm92.c
lm93.c
lm95241.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
ltc4215.c
ltc4245.c hwmon: (ltc4245) Read only one GPIO pin 2010-05-27 19:59:02 +02:00
max1111.c
max1619.c
max6650.c
mc13783-adc.c
pc87360.c
pc87427.c
pcf8591.c
s3c-hwmon.c
sht15.c
sis5595.c
smsc47b397.c
smsc47m1.c
smsc47m192.c
thmc50.c
tmp102.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
tmp401.c hwmon: (tmp401) Reorganize code to get rid of static forward declarations 2010-05-27 19:58:49 +02:00
tmp421.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
ultra45_env.c of: Remove duplicate fields from of_platform_driver 2010-05-22 00:10:40 -06:00
via-cputemp.c
via686a.c
vt1211.c
vt8231.c
w83l785ts.c
w83l786ng.c
w83627ehf.c
w83627hf.c
w83781d.c i2c: Remove all i2c_set_clientdata(client, NULL) in drivers 2010-06-03 11:33:58 +02:00
w83791d.c
w83792d.c
w83793.c drivers: Push down BKL into various drivers 2010-05-17 05:27:41 +02:00
wm831x-hwmon.c
wm8350-hwmon.c