Re: [PATCH v3 05/11] cxl/region: Add @range argument to function cxl_calc_interleave_pos()
From: Gregory Price
Date: Wed Sep 17 2025 - 16:09:34 EST
On Fri, Sep 12, 2025 at 04:45:07PM +0200, Robert Richter wrote:
> cxl_calc_interleave_pos() uses the endpoint decoder's HPA range to
> determine its interleaving position. This requires the endpoint
> decoders to be an SPA, which is not the case for systems that need
> address translation.
>
> Add a separate @range argument to function cxl_calc_interleave_pos()
> to specify the address range. Now it is possible to pass the SPA
> translated address range of an endpoint decoder to function
> cxl_calc_interleave_pos().
>
> Patch is a prerequisite to implement address translation.
>
> Signed-off-by: Robert Richter <rrichter@xxxxxxx>
As with patch 4, maybe worth noting that this is simply a refactor, but
otherwise
Reviewed-by: Gregory Price <gourry@xxxxxxxxxx>