Re: [PATCH RFC] arch_topology: Introduce nr_possible_packages

From: Feng Tang

Date: Wed May 13 2026 - 05:55:19 EST


On Wed, May 13, 2026 at 09:35:30AM +0800, Feng Tang wrote:
[...]
> > And you don't have a user for this, so we can't verify how it actually
> > works :(
>
> Good point. Internally we have some PMU driver using this, but the HW is
> not public and the drive hasn't been posted yet.
>
> As for validation, we tested on production 1P platform, internal 2P
> platform, and QEMU's multi-socket case.
>
> I checked a production arm64 2P platform 'Kunpeng 920', and from the
> output of "cat /sys/devices/system/cpu/cpu*/topology/physical_package_id",
> the patch should work fine. I don't have root right of it yet, will try
> to really run the patch on it.

Just tried 7.1-rc3 + this patch on the 2P arm64 'Kunpeng 920' server, and
it showed the correct package number:

"[ 0.011284] ACPI: System has 2 Package(s) detected"

Thanks,
Feng