Re: [PATCH v2 11/15] cxl/region: Use the endpoint's SPA range to check a region

Gregory Price
2025-04-08T15:54:48Z

On Tue, Feb 18, 2025 at 02:23:52PM +0100, Robert Richter wrote:
> Endpoints or switches requiring address translation might not be aware
> of the system's interleaving configuration. Then, the configured
> endpoint's address range might not match the expected range. In
> contrast, the SPA range of an endpoint is calculated applying platform
> specific address translation. That range is correct and can be used to
> check a region range.
>
> Adjust the region range check and use the endpoint's SPA range to
> check it.
>
> Signed-off-by: Robert Richter <rrichter@amd.com>

Like other patches, I think this can probably just be folded into patch
5 under the comment that cxled->spa_range == cxled->cxld.hpa_range for
all systems that do not implement a translation mechanism.

~Gregory