-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Mario Limonciello
authored and
Hans de Goede
committed
Sep 19, 2022
1 parent
00b1829
commit 7f1ea75
Showing
2 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
What: /sys/bus/platform/drivers/amd_pmc/*/smu_fw_version | ||
Date: October 2022 | ||
Contact: Mario Limonciello <mario.limonciello@amd.com> | ||
Description: Reading this file reports the version of the firmware loaded to | ||
System Management Unit (SMU) contained in AMD CPUs and | ||
APUs. | ||
|
||
What: /sys/bus/platform/drivers/amd_pmc/*/smu_program | ||
Date: October 2022 | ||
Contact: Mario Limonciello <mario.limonciello@amd.com> | ||
Description: Reading this file reports the program corresponding to the SMU | ||
firmware version. The program field is used to disambiguate two | ||
APU/CPU models that can share the same firmware binary. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters