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

From: Lin Wang

Date: Tue Oct 27 2026 - 02:00:02 EST


On 10/24/2026 11:15 PM, Yazen Ghannam wrote:
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 for the review.

I'll send v9 to fix the SMN root-array leak reported by Sashiko in
patch 7.

Thanks,

Lin