Re: [PATCH v1 16/29] cxl/region: Use translated HPA ranges to calculate the endpoint position

From: Robert Richter
Date: Wed Feb 05 2025 - 05:46:31 EST


On 17.01.25 15:31:48, Ben Cheatham wrote:
> On 1/7/25 8:10 AM, Robert Richter wrote:
> > To enable address translation, the calculation of the endpoint
> > position must use translated HPA ranges. The function
> > cxl_endpoint_initialize() already uses translation which could be
> > reused to calculate the endpoint position.
> >
> > Use translated HPA address ranges for the calculation of endpoint
>
> s/HPA address ranges/HPA ranges/
>
> > position by moving it to cxl_endpoint_initialize(). Create a function
> > cxl_port_calc_pos() for use in the iterator there, but keep a
> > simplified version of cxl_calc_interleave_pos() for the
> > non-auto-discovery code path without address translation since it is
> > not support there.
> >
> > Signed-off-by: Robert Richter <rrichter@xxxxxxx>
> > ---
> > drivers/cxl/core/region.c | 66 ++++++++++++++++++++++++++-------------
> > 1 file changed, 44 insertions(+), 22 deletions(-)

Updated all the wording, thanks.

-Robert