[PATCH v4 0/3] AMD NB and SMN rework

From: Yazen Ghannam
Date: Thu Jan 30 2025 - 14:49:55 EST


Hi all,

This revision includes the remaining patches not yet accepted.

The only major change is to fix a build issue for an exported function.

Thanks,
Yazen

---
Changes in v4:
- Includes patches left out of v3.
- Fix build issue for amd_smn_hsmp_rdwr(). Used Suma's suggestion.
- Link to v3: https://lore.kernel.org/r/20250107222847.3300430-1-yazen.ghannam@xxxxxxx

Changes in v3:
- Based on public branch from Boris.
- Add check for not finding any 'misc' devices during init.
- Link to v2: https://lore.kernel.org/r/20241206161210.163701-1-yazen.ghannam@xxxxxxx

Changes in v2:
- Rebase HSMP changes on latest upstream rework.
- Keep Node and SMN code together.
- Link to v1: https://lore.kernel.org/r/20241023172150.659002-1-yazen.ghannam@xxxxxxx

---
Mario Limonciello (2):
x86/amd_node: Add SMN offsets to exclusive region access
x86/amd_node: Add support for debugfs access to SMN registers

Yazen Ghannam (1):
x86/amd_node, platform/x86/amd/hsmp: Have HSMP use SMN through AMD_NODE

arch/x86/include/asm/amd_nb.h | 1 -
arch/x86/include/asm/amd_node.h | 13 +++
arch/x86/kernel/amd_nb.c | 1 -
arch/x86/kernel/amd_node.c | 149 ++++++++++++++++++++++++++++++++++
drivers/platform/x86/amd/hsmp/Kconfig | 2 +-
drivers/platform/x86/amd/hsmp/acpi.c | 7 +-
drivers/platform/x86/amd/hsmp/hsmp.c | 1 -
drivers/platform/x86/amd/hsmp/hsmp.h | 3 -
drivers/platform/x86/amd/hsmp/plat.c | 36 +++-----
9 files changed, 179 insertions(+), 34 deletions(-)
---
base-commit: 25cb07b28aa8f42f3123a7b0bd09ea1d9a24fa28
change-id: 20241206-wip-x86-amd-nb-cleanup-6383ebdf8d25