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

From: Lin Wang

Date: Fri Oct 09 2026 - 05:07:07 EST


v7 addresses Boris's comments on v6. File-local names in hygon_node.c
drop the hygon_ prefix. The CPU-to-DF translator remains local to
hygon_node.c for now. It will be used by the Hygon EDAC and ATL support.

The k10temp patch from v6 is dropped because Guenter has applied it 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 of the series is unchanged. It adds Data Fabric (DF) node
enumeration and SMN access for Hygon Family 0x18. Hygon DF nodes do not
fit the fixed PCI slot layout used by the AMD node code, so Hygon gets
its own node layer. AMD NB/SMN initialization and EDAC/ATL matching are
restricted to AMD CPUs. Hygon EDAC and ATL support will be posted
separately.

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

Changes in v7:

- Drop the k10temp patch, applied by Guenter.
- Keep the CPU-to-DF translator local until needed. (Boris)
- Drop the hygon_ prefix from file-local names. (Boris)
- Use kzalloc_objs() for the DF node and SMN root arrays.
- Remove the two SMN-only cache accessors.

Link: https://lore.kernel.org/20260921055603.25112-1-wanglin@xxxxxxxxxxxxxx # v6
Link: https://lore.kernel.org/20260930004330.GFarxbMrS2DQKmC3_M@fat_crate.local # v6 1/8 review
Link: https://lore.kernel.org/20260930030004.GGarx7NIIToO-fWAww@fat_crate.local # v6 2/8 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 | 3 +
arch/x86/Kconfig | 4 +
arch/x86/include/asm/hygon/node.h | 164 ++++++
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 | 887 ++++++++++++++++++++++++++++++
drivers/edac/amd64_edac.c | 4 -
drivers/ras/amd/atl/core.c | 9 +-
9 files changed, 1069 insertions(+), 15 deletions(-)
create mode 100644 arch/x86/include/asm/hygon/node.h
create mode 100644 arch/x86/kernel/hygon_node.c


base-commit: af32da41b0327b9c6a37856ba82b6760d6c8d10e
--
2.43.0