Skip to contentSkip to conversation

asus_atk0110 and suspend-to-disk

lm-sensors Jean Delvare 2 participants 4 messages Jun 17, 2011 – Jun 30, 2011

lore
Share & tools
lore
#0 lore raw

Hi Luca,

Since a few days now, my wife has a new system based on an Asus P5QL Pro motherboard, which uses your asus_atk0110 driver. She noticed that, with this new board, CPU fan speed bumps to maximum when resuming from suspend-to-disk (hibernation.) In the BIOS I have set the CPU fan speed control to silent mode, and apparently system-to-disk loses the setting, so the fan goes to full speed on resume. Very annoying.

Have you ever heard of this problem?

I understand that the asus_atk0110 driver only reads from the monitoring device and doesn't attempt to configure it, so I very much doubt it is related to the problem in any way. But do you think there is any way to save and restore the settings at suspend/resume through the ATK0110 interface so that they aren't lost?

Thanks,

Signature · 6 lines
Jean Delvare

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

Hello Jean,

Quoted 8 lines · Jean Delvare

Since a few days now, my wife has a new system based on an Asus P5QL Pro motherboard, which uses your asus_atk0110 driver. She noticed that, with this new board, CPU fan speed bumps to maximum when resuming from suspend-to-disk (hibernation.) In the BIOS I have set the CPU fan speed control to silent mode, and apparently system-to-disk loses the setting, so the fan goes to full speed on resume. Very annoying.

Have you ever heard of this problem?

Nope, I've never received such a report (and it works fine here). Does silent mode kick back after a reboot?
In that case you can try changing the power down method to shutdown before suspending:
echo shutdown > /sys/power/disk
uswsusp can do this for you if you put "shutdown method=shutdown" in its config file.

Quoted 5 lines

I understand that the asus_atk0110 driver only reads from the monitoring device and doesn't attempt to configure it, so I very much doubt it is related to the problem in any way. But do you think there is any way to save and restore the settings at suspend/resume through the ATK0110 interface so that they aren't lost?

I guess that the setting is not lost (it's written somewhere in NVS), but maybe the BIOS fails to reprogram the fan controller when coming out from S4.
You can check the Q-FAN profile of the CPU and the chassis fans with:

# cpu
echo 0x04070010 > /sys/kernel/debug/asus_atk0110/id
cat /sys/kernel/debug/asus_atk0110/gitm
echo 0x04070011 > /sys/kernel/debug/asus_atk0110/id
cat /sys/kernel/debug/asus_atk0110/gitm
# chassis
echo 0x04070070 > /sys/kernel/debug/asus_atk0110/id
cat /sys/kernel/debug/asus_atk0110/gitm
echo 0x04070071 > /sys/kernel/debug/asus_atk0110/id
cat /sys/kernel/debug/asus_atk0110/gitm

IDs are based on the DSDT of a P5Q Pro (no L), in case of errors please send me the DSDT of the board.

Luca

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

#2 lore raw
In reply to Jean Delvare

Hi Luca,

Thanks for all the suggestions and sorry for the late reply. I'm just looking into this again.

Quoted 7 lines · Luca Tettamanti
Quoted 5 lines · Jean Delvare

I understand that the asus_atk0110 driver only reads from the monitoring device and doesn't attempt to configure it, so I very much doubt it is related to the problem in any way. But do you think there is any way to save and restore the settings at suspend/resume through the ATK0110 interface so that they aren't lost?

Quoted 7 lines

I guess that the setting is not lost (it's written somewhere in NVS), but maybe the BIOS fails to reprogram the fan controller when coming out from S4.
You can check the Q-FAN profile of the CPU and the chassis fans with:

# cpu
echo 0x04070010 > /sys/kernel/debug/asus_atk0110/id
cat /sys/kernel/debug/asus_atk0110/gitm

0x00000001

Quoted 2 lines

echo 0x04070011 > /sys/kernel/debug/asus_atk0110/id cat /sys/kernel/debug/asus_atk0110/gitm

0x00000001

Quoted 3 lines
# chassis
echo 0x04070070 > /sys/kernel/debug/asus_atk0110/id
cat /sys/kernel/debug/asus_atk0110/gitm

cat: /sys/kernel/debug/asus_atk0110/gitm: Input/output error

Quoted 2 lines

echo 0x04070071 > /sys/kernel/debug/asus_atk0110/id cat /sys/kernel/debug/asus_atk0110/gitm

cat: /sys/kernel/debug/asus_atk0110/gitm: Input/output error

Results are the same before suspend to disk and after resume.

Do you know if gitm reads from the hardware directly or from a cache in memory?

Quoted 2 lines

IDs are based on the DSDT of a P5Q Pro (no L), in case of errors please send me the DSDT of the board.

Available at:
http://khali.linux-fr.org/devel/misc/Asus-P5QL-Pro.dsdt

Thanks,

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#3 lore raw
In reply to Jean Delvare
Quoted 10 lines · Jean Delvare
Quoted 3 lines
# chassis
echo 0x04070070 > /sys/kernel/debug/asus_atk0110/id
cat /sys/kernel/debug/asus_atk0110/gitm

cat: /sys/kernel/debug/asus_atk0110/gitm: Input/output error

Quoted 2 lines

echo 0x04070071 > /sys/kernel/debug/asus_atk0110/id cat /sys/kernel/debug/asus_atk0110/gitm

cat: /sys/kernel/debug/asus_atk0110/gitm: Input/output error

Ok, no chassis fan control.

Quoted 4 lines

Results are the same before suspend to disk and after resume.

Do you know if gitm reads from the hardware directly or from a cache in memory?

Not cached, the read method pokes an ioport (0xb2 - field called SMIC
- I guess it's system management IC), and reads back a value from the memory. This is the Q-FAN setting though, probably read from the non-volatile store, the hwmon chip is not queried directly (nor programmed AFAICS). My guess is that at boot the BIOS reads the settings a programs the chip - and forget do it when coming out from S4; did you try and change the shutdown method? i.e.:

echo shutdown > /sys/power/disk

Luca

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