Skip to contentSkip to conversation

ATK0110

lm-sensors Luca Tettamanti 2 participants 6 messages Oct 2, 2009 – Jan 31, 2010

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines · Mark Altern

Hi,

Sorry to send you this abrupt email. I just have a quick question about asus_atk0110. I am a little frustrated and don't know where else I can ask.

I'm the maintainer of the driver so I'm the right person ;-) [email protected] is the appropriate ML.

Quoted 6 lines

I have ASUS p6t with Core i7 920 system, the problem is that asus_atk0110 report wrong CPU diode temperatures, 47C while in fact is is about 36C, thus forcing the CPU fan running more than 1100 rmp during idling. To solve this problem I blacklist this module, while instead load w83667hg, which reports the right temperature. Then the CPU fan is working correctly. Do you think it is safe to do so?

Are you using fancontrol/pwmconfig to control the fan?

Quoted 2 lines

I am just wondering why atk0110 is reporting the wrong values? do you think this mis-behavior will be fixed in the future?

It's more likely that w83667hg is reporting the "wrong" value. The ACPI drivers reports the temperature as reported by system firmware. It's possible that the firmware is compensating the raw value to give an estimate of the real CPU temperature (as opposed to the temperature of a diode sittign somewhere under the socket). In just in case send a copy of your DSDT (/sys/firmware/acpi/tables/DSDT).
Also take a look at the values reported by coretemp to have an idea of the real core temperature.

Luca

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#1 lore raw

(do not strip the CC)

Quoted 8 lines · Mark Altern

No,  I am NOT using any fancontrol or pwmconfig, the coretemp reported around 37-40, which is consistant as in windows,  so the
CPU diode temp should definitely be lower than that. The w83667hg reported the same diode CPU temp (36C) as I observed by several softwares under windows 7, where I am sure it is correct. So w83667 indeed reported a lot of other wrong values, like the voltages, but I believe it reports the correct CPU diode temp.

Quoted 4 lines

Thus,  atk0110 is working, but it report wrong value and push the fan speeding up, which I confirmed by opening the case and touch the CPU heat sink, and it is stone cold, but the fan is running like crazy, more than 1000rpm, where it should only run at about 500rpm, as it does in Windows.

I asked about fancontrol because atk0110 itself does not control the fan, but an external monitoring program may react to the higher temperature.
Asus BIOS defines a "Q-FAN" mode, which - when set to auto - allows the system to adjust fan rotation based on CPU temperature. atk0110 driver does not change the settings defined in the BIOS screen (I haven't decoded the interface yet!).

Quoted 6 lines

The funny thing is that right after computer startsup, the lm_sensors report correct diode CPU temp, like around 36C, and fan is spinning at around 600rpm, but after idling a minutes or two, that value suddenly jump up to 47C and you hear the fan speeding up to 1100rmp, while the coretemps are still the same as before, further more, I touched the "cold" CPU heat sink, 47C is definitely NOT true.  So how does the atk0110 work?

It just report the value calculated by the firmware, the driver itself does not perform any "adjustment" on the temperature.

Quoted 2 lines

Why this wrong reporting only happens after a minites of startup, instead of from the beginning?

Because the monitoring stuff embedded on the board decided so ;-) Really, the driver is just passing up the data. Please send me a copy of the DSDT.

L

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Luca Tettamanti
Quoted 40 lines · Luca Tettamanti

(do not strip the CC)

Quoted 3 lines · Mark Altern

No, I am NOT using any fancontrol or pwmconfig, the coretemp reported around 37-40, which is consistant as in windows, so the CPU diode temp should definitely be lower than that. The w83667hg

reported

Quoted 2 lines

the same diode CPU temp (36C) as I observed by several softwares under windows 7, where I am sure it is correct. So w83667 indeed reported a lot

of

Quoted 1 line

other wrong values, like the voltages, but I believe it reports the

correct

Quoted 6 lines

CPU diode temp.

Thus, atk0110 is working, but it report wrong value and push the fan speeding up, which I confirmed by opening the case and touch the CPU heat sink, and it is stone cold, but the fan is running like crazy, more than 1000rpm, where it should only run at about 500rpm, as it does in Windows.

I asked about fancontrol because atk0110 itself does not control the fan, but an external monitoring program may react to the higher temperature.
Asus BIOS defines a "Q-FAN" mode, which - when set to auto - allows the system to adjust fan rotation based on CPU temperature. atk0110 driver does not change the settings defined in the BIOS screen (I haven't decoded the interface yet!).

Quoted 1 line

The funny thing is that right after computer startsup, the lm_sensors

report

Quoted 4 lines

correct diode CPU temp, like around 36C, and fan is spinning at around 600rpm, but after idling a minutes or two, that value suddenly jump up to 47C and you hear the fan speeding up to 1100rmp, while the coretemps are still the same as before, further more, I touched the "cold" CPU heat

sink,

Quoted 1 line

47C is definitely NOT true. So how does the atk0110 work?

It just report the value calculated by the firmware, the driver itself does not perform any "adjustment" on the temperature.

Quoted 1 line

Why this wrong reporting only happens after a minites of startup, instead

Quoted 9 lines

of from the

Quoted 1 line

beginning?

Because the monitoring stuff embedded on the board decided so ;-) Really, the driver is just passing up the data. Please send me a copy of the DSDT.

L

I will send you the DSDT after I come home from work. I have Q-fan in BIOS enabled.

By the way, how does w83667 report/calculate the CPU temperature?

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#4 lore raw
In reply to Luca Tettamanti

Hi Gong Jun we need your insight on the w83667hg, please see below.

Quoted 15 lines · Mark Altern
Quoted 13 lines · Luca Tettamanti
Quoted 9 lines · Mark Altern

The funny thing is that right after computer startsup, the lm_sensors report
correct diode CPU temp, like around 36C, and fan is spinning at around 600rpm, but after idling a minutes or two, that value suddenly jump up to
47C and you hear the fan speeding up to 1100rmp, while the coretemps are still the same as before, further more, I touched the "cold" CPU heat sink,
47C is definitely NOT true.  So how does the atk0110 work?

It just report the value calculated by the firmware, the driver itself does not perform any "adjustment" on the temperature.

[...]

Quoted 1 line

By the way, how does w83667 report/calculate the CPU temperature?

The native drivers reads from the sensor a 9bit digital value.

Quoted 1 line

Here is the DSDT file, thanks a lot for your help.

Hum, there are some serious dragons there... the relevant method (HWT1) does what I expected it to do, but there some strange black magic before it.
First of all it selects a logical device (0x0c) that is not documented in the datasheet. During the first 2 reading, the temperature of the CPU is compared to the temperature of the board; if the CPU is colder than the board then the method stores something that _resembles_ the delta between the two temp in a configuration register of the logical device.
I guess it's some sort of calibration algorithm...

In pseudo code:

t1 = read temperature1 (mobo)
t2 = read temperature2 (cpu)
t1++
t1 = t1 ^ 0x80
t2 = t2 ^ 0x80
if (t1 > t2) {
enter extended function mode, logical device 0x0c if (CRE0 & 0xf0) {
delta = t2 - t1
delta = delta >> 1
delta = delta + 3
CRE1 = CRE1 + delta
}
exit extended mode
}

where CRE0 and CRE1 are configuration register of the logical device.

Gong Jun do you have any idea of what's happening here?

Luca

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#5 lore raw
In reply to Luca Tettamanti
Quoted 4 lines · leppie

Hi Luca

Sorry I dont have list access, so I email directly. This is in response to:
http://lists.lm-sensors.org/pipermail/lm-sensors/2009-October/026831.html

The list is open, and the findings are very interesting. Good detective work ;-)

Quoted 10 lines

Anyways, I have had a similar issue where temps increase after running the ASUS utils on Windows.

Obviously both call the same method (HWT1) and screws up the reading (in my case 6 degrees extra).

Due to actually having this motherboard (P7P55D LE), I have wanted to get
the readings proper, and have queried ASUS on this
(http://vip.asus.com/forum/view.aspx?id 100129224701468&board_id=1&model=P7P55D+LE&page=1&SLanguage=en-us).

Quoted 5 lines

Anyways, there is more than one fix for this issue.

From Linux point of view I would suggest making the driver compare CRE1 to TjMax (or MSR_TEMPERATURE_TARGET) and adjust the bogus reading accordingly (as CRE1 should equal TjMax).

To recap: the hwmon chip is reading CPU temperature via PECI; this means that the reading is actually relative to Tjmax (i.e. "I'm X degrees below Tjmax).
The ACPI method however does not known the proper Tjmax, instead it tries to calibrate the base temp using the reading from an unspecified SYSTIN; basically the reading method (HWT1) adjusts the base temperature until the reading from the CPU is greater than or equal to the reading of SYSTIN.
The datasheet of the sensor (W83627DHG) describes a similar procedure, suggesting to use a reading on the surface of the chip (it's just me or it sounds stupid?)

AFAICS we have an couple of problems here:
- the CPU temperature reported by atk0110 might be relative, but we can't known because the details are hidden in ACPI code.
- we have the same problem as coretemp with Tjmax; plus ACPI tries to recalibrate the base temp against another temperature (location unknown)

It's also very hard to adjust the base temp in the ACPI driver because we don't know when PECI is in use, we don't know what the CPU is (IA32_TEMPERATURE_TARGET may or may not be there), we don't know what hwmon is soldered on the board.

Luca

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors