How to use AMD P-State in Linux

This has been discussed here:

Check if the problem persists when using LTS kernel ?