]> www.infradead.org Git - users/jedix/linux-maple.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)
committerIngo Molnar <mingo@kernel.org>
Wed, 19 Mar 2025 10:18:33 +0000 (11:18 +0100)
commit9c19cc1f5f571b03cc56338ed12836531a4989a4
tree4d860d999e19e2e61cc9de6f8a6c124a345f4e93
parent83518453074d1f3eadbf7e61652b608a60087317
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>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Link: https://lore.kernel.org/r/20250130-wip-x86-amd-nb-cleanup-v4-3-b5cc997e471b@amd.com
arch/x86/kernel/amd_node.c