[PATCH v8 0/7] x86/hygon: Add Family 0x18 DF node enumeration and SMN access

From: Lin Wang

Date: Thu Oct 22 2026 - 03:42:40 EST


v8 addresses Yazen's comments on v7. The node and SMN helpers remain
local to hygon_node.c until Hygon consumers are added upstream. The
cache-build warning for -ENODEV is suppressed in guests; other errors
and bare-metal warnings are unchanged.

Patch 6 depends on "hwmon: (k10temp) Stop matching Hygon devices",
which Guenter has applied to hwmon-next. It is not in mainline yet and
must be merged before patch 6; otherwise k10temp still binds on Hygon
and its SMN reads fail.

The scope is unchanged. The series adds Hygon Data Fabric (DF) node
enumeration and SMN access. AMD NB/SMN initialization and EDAC/ATL
matching are restricted to AMD CPUs. Hygon EDAC and ATL support will
be submitted separately.

Tested v8 on a Family 0x18 Model 0x07 system with 2 sockets, 12 Core
and DDR Dies (CDDs) and 4 I/O Dies (IODs).

Changes in v8:

- Keep unused node and SMN interfaces local. (Yazen)
- Avoid the -ENODEV cache-build warning in guests. (Yazen)
- Align the CPU-to-DF assignments. (Yazen)
- Simplify the AMD SMN commit message. (Yazen)
- Add a separate HYGON NODE DRIVER entry instead of changing
HYGON PROCESSOR SUPPORT.

Link: https://lore.kernel.org/20261009090111.151878-1-wanglin@xxxxxxxxxxxxxx # v7
Link: https://lore.kernel.org/20261017145226.GA359037@xxxxxxxxxxxxxxxxx # v7 1/7 review
Link: https://lore.kernel.org/20261017153308.GE359037@xxxxxxxxxxxxxxxxx # v7 6/7 review
Link: https://lore.kernel.org/b292d054-f0cf-4695-94a2-40f0d71563f8@xxxxxxxxxxxx # k10temp applied

Lin Wang (7):
x86/hygon: Add Family 0x18 DF node enumeration
x86/hygon: Map CPU NodeIds to DF nodes
EDAC/amd64: Stop matching Hygon CPUs
RAS/AMD/ATL: Match AMD CPUs only
x86/amd_nb: Restrict the northbridge framework to AMD CPUs
x86/amd_node: Restrict SMN setup to AMD CPUs
x86/hygon: Add Family 0x18 SMN access

MAINTAINERS | 7 +
arch/x86/Kconfig | 4 +
arch/x86/include/asm/hygon/node.h | 41 ++
arch/x86/kernel/Makefile | 1 +
arch/x86/kernel/amd_nb.c | 6 +-
arch/x86/kernel/amd_node.c | 6 +-
arch/x86/kernel/hygon_node.c | 882 ++++++++++++++++++++++++++++++
drivers/edac/amd64_edac.c | 4 -
drivers/ras/amd/atl/core.c | 9 +-
9 files changed, 945 insertions(+), 15 deletions(-)
create mode 100644 arch/x86/include/asm/hygon/node.h
create mode 100644 arch/x86/kernel/hygon_node.c

base-commit: 7be4bc52fd9e0e55dc9a2e0232b89427d2c4b614
--
2.43.0