Re: [PATCH v9 03/13] cxl/region: Store HPA range in struct cxl_region
From: Alison Schofield
Date: Tue Jan 13 2026 - 22:14:37 EST
On Sat, Jan 10, 2026 at 12:46:48PM +0100, Robert Richter wrote:
> Each region has a known host physical address (HPA) range it is
> assigned to. Endpoint decoders assigned to a region share the same HPA
> range. The region's address range is the system's physical address
> (SPA) range.
>
> Endpoint decoders in systems that need address translation use HPAs
> which are not SPAs. To make the SPA range accessible to the endpoint
> decoders, store and track the region's SPA range in struct cxl_region.
> Introduce the @hpa_range member to the struct. Now, the SPA range of
> an endpoint decoder can be determined based on its assigned region.
>
> Patch is a prerequisite to implement address translation which uses
> struct cxl_region to store all relevant region and interleaving
> parameters.
Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>