Re: [PATCH v8 1/7] x86/hygon: Add Family 0x18 DF node enumeration

From: Yazen Ghannam

Date: Sat Oct 24 2026 - 11:15:47 EST


On Thu, Oct 22, 2026 at 03:42:11PM +0800, Lin Wang wrote:
> The AMD node code locates function 3 for node N at PCI slot 0x18 + N.
> Hygon has no equivalent node-index-to-slot mapping: DF F3 devices are
> discovered by PCI ID and the PCI BDF is only an access point.
>
> Enumerate Hygon DF devices by PCI ID and read their identities from DF
> registers. Build a dense node cache with Core and DDR Dies (CDDs) before
> I/O Dies (IODs), providing node counts, identity and PCI function lookups.
>
> Guests may expose a supported CPU model without DF devices. Suppress
> the cache-build warning for -ENODEV in guests; keep other initialization
> errors visible.
>
> The node lookup helpers remain local until Hygon consumers are added.
>
> Signed-off-by: Lin Wang <wanglin@xxxxxxxxxxxxxx>
> ---

Reviewed-by: Yazen Ghannam <yazen.ghannam@xxxxxxx>

Thanks,
Yazen