]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blame - releases/2.6.32.17/hwmon-k8temp-fix-temperature-reporting-for-asb1-processor-revisions.patch
4.9-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 2.6.32.17 / hwmon-k8temp-fix-temperature-reporting-for-asb1-processor-revisions.patch
CommitLineData
a0402406
GKH
1From d535bad90dad4eb42ec6528043fcfb53627d4f89 Mon Sep 17 00:00:00 2001
2From: Andreas Herrmann <andreas.herrmann3@amd.com>
3Date: Fri, 9 Jul 2010 16:22:47 +0200
4Subject: hwmon: (k8temp) Fix temperature reporting for ASB1 processor revisions
5
6From: Andreas Herrmann <andreas.herrmann3@amd.com>
7
8commit d535bad90dad4eb42ec6528043fcfb53627d4f89 upstream.
9
10Reported temperature for ASB1 CPUs is too high.
11Add ASB1 CPU revisions (these are also non-desktop variants) to the
12list of CPUs for which the temperature fixup is not required.
13
14Example: (from LENOVO ThinkPad Edge 13, 01972NG, system was idle)
15
16 Current kernel reports
17
18 $ sensors
19 k8temp-pci-00c3
20 Adapter: PCI adapter
21 Core0 Temp: +74.0 C
22 Core0 Temp: +70.0 C
23 Core1 Temp: +69.0 C
24 Core1 Temp: +70.0 C
25
26 With this patch I have
27
28 $ sensors
29 k8temp-pci-00c3
30 Adapter: PCI adapter
31 Core0 Temp: +54.0 C
32 Core0 Temp: +51.0 C
33 Core1 Temp: +48.0 C
34 Core1 Temp: +49.0 C
35
36Cc: Rudolf Marek <r.marek@assembler.cz>
37Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
38Signed-off-by: Jean Delvare <khali@linux-fr.org>
39Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
40
41---
42 drivers/hwmon/k8temp.c | 10 ++++++----
43 1 file changed, 6 insertions(+), 4 deletions(-)
44
45--- a/drivers/hwmon/k8temp.c
46+++ b/drivers/hwmon/k8temp.c
47@@ -180,11 +180,13 @@ static int __devinit k8temp_probe(struct
48 }
49
50 if ((model >= 0x69) &&
51- !(model == 0xc1 || model == 0x6c || model == 0x7c)) {
52+ !(model == 0xc1 || model == 0x6c || model == 0x7c ||
53+ model == 0x6b || model == 0x6f || model == 0x7f)) {
54 /*
55- * RevG desktop CPUs (i.e. no socket S1G1 parts)
56- * need additional offset, otherwise reported
57- * temperature is below ambient temperature
58+ * RevG desktop CPUs (i.e. no socket S1G1 or
59+ * ASB1 parts) need additional offset,
60+ * otherwise reported temperature is below
61+ * ambient temperature
62 */
63 data->temp_offset = 21000;
64 }