Re: [RFC PATCH 3/5] x86/hygon: Add DF misc-based node enumeration helpers

From: Lin Wang

Date: Fri Apr 03 2026 - 01:15:52 EST


Hi Mario,

On 4/3/2026 2:50 AM, Mario Limonciello wrote:
Provide a small set of Hygon-only helpers that can be consumed by
amd_nb/amd_node code without extending AMD-only structs.

Signed-off-by: Lin Wang <wanglin@xxxxxxxxxxxxxx>
---
  arch/x86/kernel/Makefile     |   2 +-
  arch/x86/kernel/hygon_node.c | 721 +++++++++++++++++++++++++++++++++++

A lot of helpers just for Hygon - do we perhaps want CONFIG_HYGON_NODE?

Good suggestion. In v2 we will introduce CONFIG_HYGON_NODE to gate the Hygon-specific code. Something along the lines of:

config HYGON_NODE
bool "Hygon Family 0x18 Data Fabric node support"
depends on AMD_NODE
...

The exact structure of the Kconfig and how Hygon code integrates with the existing AMD infrastructure is something we are revisiting based on the broader feedback on this series. The goal is to keep Hygon enablement self-contained rather than modifying AMD code paths directly.

Thx & Br,

Lin