]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/amd_node: Add support for debugfs access to SMN registers
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 30 Jan 2025 19:48:57 +0000 (19:48 +0000)
committerBorislav Petkov (AMD) <bp@alien8.de>
Mon, 17 Feb 2025 09:09:56 +0000 (10:09 +0100)
commit6b06755af6679fd7c98ebc017ac31c8a74127538
tree1ed4793c19ddfcb61ae29271cc410bac3503b1fe
parentbebe0afb74514ae51f4f348b28326c658b02209d
x86/amd_node: Add support for debugfs access to SMN registers

There are certain registers on AMD Zen systems that can only be accessed
through SMN.

Introduce a new interface that provides debugfs files for accessing SMN.  As
this introduces the capability for userspace to manipulate the hardware in
unpredictable ways, taint the kernel when writing.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20250130-wip-x86-amd-nb-cleanup-v4-3-b5cc997e471b@amd.com
arch/x86/kernel/amd_node.c