Hello everyone. Registered an account today to post my solution to this problem.
I have the HP Envy x360 13m-ag0001dx and was experiencing terrible GPU clock throttling (sometimes as low as 200Mhz.) This is due to how HP configured AMD's STAPM limit for this laptop. Because this laptop is only equipped with a 15W cooling solution, HP set the STAPM limit to 15W to keep the device cool. However, after using
Ryzen Controller and
uProf, I discovered this laptop can run at a full 30W, which gives the GPU significantly more breathing room to run at higher clocks. I have yet to see the GPU hit its full rated 1GHz speed, but speeds upwards of 800MHz are now attainable. However, there are some settings you will need to change to prevent the laptop from automatically undoing any changes you make to the STAPM limit.
The solution is to use HP's software called "HP Command Center". This is a preinstalled program that offers four basic power/thermal management profiles, but if you run uProf and monitor the STAPM limit while changing profiles, you get an understanding of how this software works. "Performance" sets the STAPM to the factory 15W, "Comfort" sets it to 8.5W, and "Silent" sets it to 7.5W. However, even after selecting "Performance", monitoring in uProf shows the STAPM limit slowly dropping in 0.5W increments all the way down to 12.5W during extended use. This is to keep the device cool during extended sessions, and is totally acceptable for productivity workloads - but it cripples the GPU well below a quarter of its rated performance. Luckily for us, selecting "Comfort" disables this behavior. So by selecting "Comfort" in Command Center and then using Ryzen Controller to raise the STAPM limit from 8.5W to 30W, you can unlock the full 30W TDP of this laptop and it will not automatically throttle back down.
However, there are some things to keep in mind - changing the device orientation, changing into tent or tablet mode, or unplugging/replugging the laptop will revert back to 8.5W, and there is no way around this. So that means you need to change the STAPM limit
after you've set the laptop up how you want to use it. Inserting USB devices may also have an effect on STAPM depending on the device - for example, I can't charge my phone from my laptop while gaming.
The other thing to keep in mind is that the cooler in this laptop has a 15W cooler- it has a single, very thin heatpipe. Using Ryzen Controller, I usually set my TDP to 27W, set the max and min TPD to 30W, and then limit the CPU to 95 degrees Celsius. This allows the laptop to boost up to 30W but otherwise limits it to 27W to prevent overheating. When playing Skyrim, for example, indoor areas like dungeons and houses give the laptop a chance to cool off, so it has some thermal headroom to maintain 27W in outdoor areas. However, newer titles will stress the laptop much more, so you may need to set the TDP even lower.