kevinlekiller / amdctl

Set P-State voltages and clock speeds on recent AMD CPUs on Linux.
GNU General Public License v3.0
244 stars 22 forks source link

Disabling pstates doesn't work on A8-4500M #11

Open xCuri0 opened 5 years ago

xCuri0 commented 5 years ago

On Windows I use PSCheck to disable all pstates except 2.3ghz to lock it to boost. I tried using this to do it on Linux but disabling does nothing

kevinlekiller commented 5 years ago

I'm not sure it's been a while since I worked on this, have you tried this ? https://github.com/turionpowercontrol/tpc I think it supports bulldozer.

xCuri0 commented 5 years ago

@kevinlekiller that also doesn't work

xCuri0 commented 5 years ago

do you know how i can dump the MSRs on Windows ? I could then check the diff and see what register it edits

kevinlekiller commented 5 years ago

Possibly with this: https://github.com/cocafe/msr-utility

Page 568 has info on bulldozer p-states: https://www.amd.com/system/files/TechDocs/42301_15h_Mod_00h-0Fh_BKDG.pdf#G5.3280729

xCuri0 commented 5 years ago

what wrmsr command would have i to use to set the minimum pstate to 1 (2.3ghz)

kevinlekiller commented 5 years ago

I'm not sure, it's bit 63 of MSRC001_0064 according to the manual, so you'd need to read that msr, store it in a variable, then modify bit 63 to 0 in that variable and write the data in the variable to that msr.

xCuri0 commented 5 years ago

@kevinlekiller sudo rdmsr 0xc0010064 -f 63:63 returns 1