Re: [LSF/MM] CXL Boot to Bash - Section 0: ACPI and Linux Resources

From: Dan Williams
Date: Thu Mar 27 2025 - 09:22:39 EST


Gregory Price wrote:
> On Thu, Mar 27, 2025 at 05:34:54PM +0800, Yuquan Wang wrote:
> >
> > In the future, srat.c would add one seperate NUMA node for each
> > Generic Port in SRAT.
> >
> > System firmware should know the performance characteristics between
> > CPU/GI to the GP, and the static HMAT should include this coordinate.
> >
> > Is my understanding right?
> >
> >
>
> HMAT is static configuration data. A GI/GP might not have its
> performance data known until the device is added.

The GP data is static and expected to be valid for all host bridges in
advance of any devices arriving.

> In this case, the HMAT may only contain generic (inaccurate)
> information - or more likely just nothing.

It may contain incomplete information, but not dynamic information.
Now, technically ACPI does allow for a notification to replace the
static HMAT, i.e. acpi_evaluate_object(..., "_HMA", ...), but Linux
does not support that. I am not aware of any platform that implements
that.

> It's up to the platform vendor.

Hopefully saying the above out loud manifests that Linux never needs to
worry about dynamic GP information in the future and all the other
dynamics remain in the physical hotplug domain.