AMD hw_pstate_ctrl reader

Download linux-phc here. [READONLY]
Post Reply
User avatar
DavidG
Posts: 180
Joined: Fri 18. Jul 2008, 11:25
Contact:

AMD hw_pstate_ctrl reader

Post by DavidG » Wed 27. May 2009, 23:40

This is somewhat like "read_msr" for Intel processors, it reads the hardware PState registers for AMD processors and reports some data that is useful for developing/maintaining the AMD driver.

AFAIK, it can only be used for Turion RM/ZM and Phenom (I/II) processors, but you're free to try and report sucesses...

You don't have to load the msr or cpuid kernel module before running this script, it does that by itself.
The script can be run by entering:

Code: Select all

sudo python hw_pstate_ctrl.py
Attachments
hw_pstate_ctrl.py.tar.gz
hw_pstate_ctrl for reading PState registers for AMD processors.
(1.31 KiB) Downloaded 992 times
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: 180
Joined: Fri 18. Jul 2008, 11:25
Contact:

Re: AMD hw_pstate_ctrl reader

Post by DavidG » Wed 24. Jun 2009, 09:31

Updated:
- recognize Phenom I/II hardware pstates
- added Power consumption calculation based on voltage and estimated current
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

Post Reply