]>
Commit | Line | Data |
---|---|---|
a0402406 GKH |
1 | From d535bad90dad4eb42ec6528043fcfb53627d4f89 Mon Sep 17 00:00:00 2001 |
2 | From: Andreas Herrmann <andreas.herrmann3@amd.com> | |
3 | Date: Fri, 9 Jul 2010 16:22:47 +0200 | |
4 | Subject: hwmon: (k8temp) Fix temperature reporting for ASB1 processor revisions | |
5 | ||
6 | From: Andreas Herrmann <andreas.herrmann3@amd.com> | |
7 | ||
8 | commit d535bad90dad4eb42ec6528043fcfb53627d4f89 upstream. | |
9 | ||
10 | Reported temperature for ASB1 CPUs is too high. | |
11 | Add ASB1 CPU revisions (these are also non-desktop variants) to the | |
12 | list of CPUs for which the temperature fixup is not required. | |
13 | ||
14 | Example: (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 | ||
36 | Cc: Rudolf Marek <r.marek@assembler.cz> | |
37 | Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com> | |
38 | Signed-off-by: Jean Delvare <khali@linux-fr.org> | |
39 | Signed-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 | } |