History

platform/x86/amd/pmf: store BIOS output values for user-space metrics via util IOCTL

Add a bios_output[] to amd_pmf_dev struct and store the latest values for BIOS output policies when applying PMF policies. This enables the AMD PMF util layer to expose these BIOS outputs alongside selected thermal and power metrics to user space via /dev/amdpmf_interface and a new IOCTL, supporting real-time monitoring tools such as SystemDeck.

Shyam Sundar S K committed 5 months ago

Commit 1983d7d1 parent 98432ee3 files · +14 −2Browse files

Showing the changes to include/uapi (1 of 3 files). Show all

Unified · Split

include/uapi/linux/amd-pmf.h+1−0
@@ -66,6 +66,7 @@ struct amd_pmf_info { · 65 unmodified lines
66 66
67 /* BIOS parameters */67 /* BIOS parameters */
68 __u32 bios_input[AMD_PMF_BIOS_PARAMS_MAX];68 __u32 bios_input[AMD_PMF_BIOS_PARAMS_MAX];
69 __u32 bios_output[AMD_PMF_BIOS_PARAMS_MAX];
69};70};
70 71
71#endif /* _UAPI_LINUX_AMD_PMF_H */72#endif /* _UAPI_LINUX_AMD_PMF_H */