platform/x86/amd: pmc: Add sysfs files for SMU
authorMario Limonciello <mario.limonciello@amd.com>
Wed, 14 Sep 2022 14:18:50 +0000 (09:18 -0500)
committerHans de Goede <hdegoede@redhat.com>
Mon, 19 Sep 2022 11:48:38 +0000 (13:48 +0200)
commit7f1ea75d499a5e3a6f593da0a87096f584752750
tree991a2639a0fb40a84610a4e380b0d5ff2b7b3d57
parent00b1829294b7c88ecba92c661fbe6fe347b364d2
platform/x86/amd: pmc: Add sysfs files for SMU

The CPU/APU SMU FW version and program is currently discoverable by
turning on dynamic debugging or examining debugfs for the amdgpu
driver. To make this more discoverable, create a dedicated sysfs
file for it that userspace can parse without debugging enabled.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20220914141850.259-1-mario.limonciello@amd.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Documentation/ABI/testing/sysfs-amd-pmc [new file with mode: 0644]
drivers/platform/x86/amd/pmc.c