Looking to be added to the Linux kernel source tree for the upcoming Linux 7.3 cycle is test_amd_pmf, a small testing application for exercising the AMD Platform Management Framework (PMF) interfaces and dumping various system data points...

Looking to be added to the Linux kernel source tree for the upcoming Linux 7.3 cycle is test_amd_pmf, a small testing application for exercising the AMD Platform Management Framework (PMF) interfaces and dumping various system data points.
The AMD PMF testing tool "test_amd_pmf" is slated to live within the Linux kernel source tree while it's just a small user-space application akin to Turbostat and other in-kernel-source-tree apps. Test_amd_pmf reads the /dev/amdpmf_interface and prints various metrics for testing and analysis purposes.
This little tool will in turn report metrics such as the detected power source, skin temperature of the AMD Ryzen laptop, battery state, custom BIOS inputs/outputs, the determined laptop placement, the lid state, whether a user is detected present or away from the laptop, the performance slider position, the ambient light, average/maximum C0 residency, socket power, and other parameters.
Primarily useful for testing purposes or for those curious how well different AMD PMF features are working for thermal/power characteristics or for functionality like the user presence detection.
The tool is queued into the platform-drivers-x86.git's "for-next" Git branch ahead of the Linux 7.3 merge window happening in a few weeks.