Commit d535bad9 authored by Andreas Herrmann's avatar Andreas Herrmann Committed by Jean Delvare

hwmon: (k8temp) Fix temperature reporting for ASB1 processor revisions

Reported temperature for ASB1 CPUs is too high.
Add ASB1 CPU revisions (these are also non-desktop variants) to the
list of CPUs for which the temperature fixup is not required.

Example: (from LENOVO ThinkPad Edge 13, 01972NG, system was idle)

  Current kernel reports

  $ sensors
  k8temp-pci-00c3
  Adapter: PCI adapter
  Core0 Temp:  +74.0 C
  Core0 Temp:  +70.0 C
  Core1 Temp:  +69.0 C
  Core1 Temp:  +70.0 C

  With this patch I have

  $ sensors
  k8temp-pci-00c3
  Adapter: PCI adapter
  Core0 Temp:  +54.0 C
  Core0 Temp:  +51.0 C
  Core1 Temp:  +48.0 C
  Core1 Temp:  +49.0 C

Cc: stable@kernel.org [.32.x .33.x, .34.x]
Cc: Rudolf Marek <r.marek@assembler.cz>
Signed-off-by: default avatarAndreas Herrmann <andreas.herrmann3@amd.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent e467e104
...@@ -180,11 +180,13 @@ static int __devinit k8temp_probe(struct pci_dev *pdev, ...@@ -180,11 +180,13 @@ static int __devinit k8temp_probe(struct pci_dev *pdev,
} }
if ((model >= 0x69) && if ((model >= 0x69) &&
!(model == 0xc1 || model == 0x6c || model == 0x7c)) { !(model == 0xc1 || model == 0x6c || model == 0x7c ||
model == 0x6b || model == 0x6f || model == 0x7f)) {
/* /*
* RevG desktop CPUs (i.e. no socket S1G1 parts) * RevG desktop CPUs (i.e. no socket S1G1 or
* need additional offset, otherwise reported * ASB1 parts) need additional offset,
* temperature is below ambient temperature * otherwise reported temperature is below
* ambient temperature
*/ */
data->temp_offset = 21000; data->temp_offset = 21000;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment