Re: [PATCH v3 04/11] cxl/region: Add @range argument to function cxl_find_root_decoder()

From: Gregory Price

Date: Wed Sep 17 2025 - 16:05:25 EST


On Fri, Sep 12, 2025 at 04:45:06PM +0200, Robert Richter wrote:
> cxl_find_root_decoder() uses the endpoint decoder's HPA range to find
> the root decoder. This requires endpoints and root decoders to be in
> the same memory domain, which is not the case for systems that need
> address translation.
>
> Add a separate @range argument to function cxl_find_root_decoder() to
> specify the root decoder's address range. Now it is possible to pass a
> translated address range of an endpoint decoder to function
> cxl_find_root_decoder().
>
> Patch is a prerequisite to implement address translation.
>
> Signed-off-by: Robert Richter <rrichter@xxxxxxx>

Maybe worth noting that this patch is just a refactor (i.e. no-op).

Reviewed-by: Gregory Price <gourry@xxxxxxxxxx>