phc-k8 driver 0.4.4 alpha 1 won't work

If you have trouble with PHC you can ask and hope for help here.
Post Reply
jpk
Posts: 4
Joined: Thu 30. Dec 2010, 21:38

phc-k8 driver 0.4.4 alpha 1 won't work

Post by jpk » Thu 30. Dec 2010, 22:57

I Just tried new testing release with no luck. The phc-k8 module compiled and loaded very well but nothing happened with new phc_vids. Sensors still showing original voltages.
I made dkms_install
Debian squeeze (2.6.32-5-686)
AMD Athlon II 240

I think there is something wrong.. phc_default_vids are too big: 10 18 26 38
Original voltages are 1.425V 1.325V 1.225V 1.075V
I could safely drop 0.2V on every pstates but it won't work :(

User avatar
DavidG
Posts: 179
Joined: Fri 18. Jul 2008, 11:25
Contact:

Re: phc-k8 driver 0.4.4 alpha 1 won't work

Post by DavidG » Sat 1. Jan 2011, 19:03

To calculate the voltage, you need to use this formula:
voltage = 1.550 - (0.0125 * vid)

So everything is fine.

And to decrease the voltage for each pstate by 0.2V, you will need to increase each vid by 16...
A bank is a place where they lend you an umbrella in fair weather and ask for it back when it begins to rain -- R. Frost

jpk
Posts: 4
Joined: Thu 30. Dec 2010, 21:38

Re: phc-k8 driver 0.4.4 alpha 1 won't work

Post by jpk » Mon 3. Jan 2011, 19:01

Hi.
Maybe I didn't explain myself very clear, phc-k8 module do not change any voltages.

root:~# cat /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
10 18 26 38
root:~# echo '26 34 42 54' >/sys/devices/system/cpu/cpu0/cpufreq/phc_vids
root:~# cat /sys/devices/system/cpu/cpu0/cpufreq/phc_vids
26 34 42 54
root:~# dmesg
.
[117291.768631] phc-k8: 0 : pstate 0 (2800 MHz), vid 0x1a
[117291.768637] phc-k8: 1 : pstate 1 (2100 MHz), vid 0x22
[117291.768640] phc-k8: 2 : pstate 2 (1600 MHz), vid 0x2a
[117291.768643] phc-k8: 3 : pstate 3 (800 MHz), vid 0x36

And still sensors showing factory default voltages. No decrease.
idle: Vcore Voltage: +1.04 V (min = +0.80 V, max = +1.60 V)
load: Vcore Voltage: +1.40 V (min = +0.80 V, max = +1.60 V)

Cheers. JP

User avatar
DavidG
Posts: 179
Joined: Fri 18. Jul 2008, 11:25
Contact:

Re: phc-k8 driver 0.4.4 alpha 1 won't work

Post by DavidG » Mon 3. Jan 2011, 20:11

You do need to do it for all cores, but I assume you did...

It could be that sensors does not take notice of the changes, maybe it does not measure the voltage at all but reads it once from the pstates at that time? Perhaps it will notice if you restart sensorsd (I'm not particular familiar with the tool though).

What you could do, is to set all vids for all CPU's to 63, if your system does not freeze after that, we'll know for sure that it doesn't work...
A bank is a place where they lend you an umbrella in fair weather and ask for it back when it begins to rain -- R. Frost

User avatar
DavidG
Posts: 179
Joined: Fri 18. Jul 2008, 11:25
Contact:

Re: phc-k8 driver 0.4.4 alpha 1 won't work

Post by DavidG » Thu 6. Jan 2011, 20:24

I've looked into this, and indeed it doesn't seem to work properly, I forgot one line in the uploaded version.

I've uploaded a new alpha version of this driver, could you test and see if it works now? To verify, please also run the hw_pstate_ctrl.py (located and explained in the downloads section as well) before and after you write new vids into phc_vids. Also, please verify if anything changes according to lm-sensors.

Please let me know ASAP.
A bank is a place where they lend you an umbrella in fair weather and ask for it back when it begins to rain -- R. Frost

jpk
Posts: 4
Joined: Thu 30. Dec 2010, 21:38

Re: phc-k8 driver 0.4.4 alpha 1 won't work

Post by jpk » Wed 12. Jan 2011, 16:41

Now it works well :D Great work.
Here are output from hw_pstate_ctrl.py before and after new vids(26 34 46 54).
=== CPU 0 ===
Family: 16
Model: 6
Stepping: 2
Raw: 800001e13c00140c
Fid: 12
Did: 0
Vid: 10
PState En: 1
Frequency: 2800MHz
Voltage: 1.425V
Current: 22.5A
Watts: 32W
Raw: 800001cc3c002405
Fid: 5
Did: 0
Vid: 18
PState En: 1
Frequency: 2100MHz
Voltage: 1.325V
Current: 20.4A
Watts: 27W
Raw: 800001bd3c003400
Fid: 0
Did: 0
Vid: 26
PState En: 1
Frequency: 1600MHz
Voltage: 1.225V
Current: 18.9A
Watts: 23W
Raw: 8000014a3c004c40
Fid: 0
Did: 1
Vid: 38
PState En: 1
Frequency: 800MHz
Voltage: 1.075V
Current: 7.4A
Watts: 8W
=== CPU 1 ===
Family: 16
Model: 6
Stepping: 2
Raw: 800001e13c00140c
Fid: 12
Did: 0
Vid: 10
PState En: 1
Frequency: 2800MHz
Voltage: 1.425V
Current: 22.5A
Watts: 32W
Raw: 800001cc3c002405
Fid: 5
Did: 0
Vid: 18
PState En: 1
Frequency: 2100MHz
Voltage: 1.325V
Current: 20.4A
Watts: 27W
Raw: 800001bd3c003400
Fid: 0
Did: 0
Vid: 26
PState En: 1
Frequency: 1600MHz
Voltage: 1.225V
Current: 18.9A
Watts: 23W
Raw: 8000014a3c004c40
Fid: 0
Did: 1
Vid: 38
PState En: 1
Frequency: 800MHz
Voltage: 1.075V
Current: 7.4A
Watts: 8W
------------------------------------------------------------------
=== CPU 0 ===
Family: 16
Model: 6
Stepping: 2
Raw: 800001e13c00340c
Fid: 12
Did: 0
Vid: 26
PState En: 1
Frequency: 2800MHz
Voltage: 1.225V
Current: 22.5A
Watts: 28W
Raw: 800001cc3c004405
Fid: 5
Did: 0
Vid: 34
PState En: 1
Frequency: 2100MHz
Voltage: 1.125V
Current: 20.4A
Watts: 23W
Raw: 800001bd3c005c00
Fid: 0
Did: 0
Vid: 46
PState En: 1
Frequency: 1600MHz
Voltage: 0.975V
Current: 18.9A
Watts: 18W
Raw: 8000014a3c006c40
Fid: 0
Did: 1
Vid: 54
PState En: 1
Frequency: 800MHz
Voltage: 0.875V
Current: 7.4A
Watts: 6.5W
=== CPU 1 ===
Family: 16
Model: 6
Stepping: 2
Raw: 800001e13c00340c
Fid: 12
Did: 0
Vid: 26
PState En: 1
Frequency: 2800MHz
Voltage: 1.225V
Current: 22.5A
Watts: 28W
Raw: 800001cc3c004405
Fid: 5
Did: 0
Vid: 34
PState En: 1
Frequency: 2100MHz
Voltage: 1.125V
Current: 20.4A
Watts: 23W
Raw: 800001bd3c005c00
Fid: 0
Did: 0
Vid: 46
PState En: 1
Frequency: 1600MHz
Voltage: 0.975V
Current: 18.9A
Watts: 18W
Raw: 8000014a3c006c40
Fid: 0
Did: 1
Vid: 54
PState En: 1
Frequency: 800MHz
Voltage: 0.875V
Current: 7.4A
Watts: 6.5W

Post Reply