Hi,
Just posting this during a break before I go catchup on sleep, quite tired, so I will be quite brief..
When I downloaded and ran PHCTool-0.5.2-2, I realized it was missing important features, especially support for AMD64/Opteron/Turion64 in terms of Vcc calculation (Voltages tab), MSR Polling (Analysis tab). Even more unfortunate, if I use phc-k8 with direct_transitions=1 (enabled), and add intermediate fids/vids in command line, then try to open PHCTool, it would crash because it doesn't know about these intermediate fids/vids (since it doesn't find default vids for them in phc_default_fids)
So I went ahead and made a patch to address all these issues
Changes made by the attached patch:
- Added VID->Voltage calculation formula(s) for Athlon64, Opteron, Turion64 Mobile Technology CPUs (including X2)
- Added autodetection of Turion64 X2 Mobile Technology TL-50, TL-52, TL-56, Tl-58, TL-60, TL-62, etc.. to use said formula(s)
- Added checking for direct_transitions if phc-k8 module is being used (for AMD CPUs), and display if its enabled in "Infos" page
- Added detection of intermediate frequencies being used if phc-k8 is detected and direct_transitions is enabled, and auto-calculation of "default VIDs" for the intermediate FIDs (Quick and dirty imitation of RMClock, but done in a haste, so need to revise for accuracy) so that PHCTool recognizes them and allows for adjustment of their VIDs and displays the difference between the "defaults" and the values you set, and more importantly, NOT CRASH!
- Added support for AMD K8 MSR Polling, so you can now use the "Analysis" tab of PHCTool to check if the VIDs (and optionally intermediate FIDs) are actually being used by your CPU
Screenshots? Everyone loves screenshots
Infos

Voltages

Analysis

Infos - Direct Transitions enabled and used

Voltages - Direct Transitions enabled and used (also shows difference from the calculated "defaults")

Sources used for reference/ideas in the process of creating the patch:
- Chapter 9 (Power and Thermal Management) of the "BIOS and Kernel Developer's Guide for the AMD Athlon 64 and AMD Opteron Processors"
available for download from AMD- AMD AthlonTM 64 Processor Power and Thermal Data Sheet
available for download from AMD (also applies to Sempron & Turion64 Mobile Technology CPUs)
- arch/x86/kernel/cpu/cpufreq/powernow-k8.c from kernel 2.6.30 sources
-
cpupowerd (just for ideas and to confirm the correctness of the formula used - src/msr_amd.c)
- RMClock manual/Readme