Re: [PATCH v2 06/15] cxl/region: Use endpoint's HPA range to find the port's decoder

Gregory Price
2025-04-24T23:46:25Z

On Thu, Apr 24, 2025 at 05:49:35PM -0400, Gregory Price wrote:
> On Wed, Apr 23, 2025 at 08:28:03PM -0400, Gregory Price wrote:
> > @@ -916,13 +921,14 @@ cxl_find_decoder_early(struct cxl_port *port,
> > struct cxl_region *cxlr)
> > {
> > struct device *dev;
> > + struct mad_context mad = { .p = &cxlr->params,
> > + .r =&cxled->cxld.hpa_range };
> ^^^^^^^^^^^^^^
> spa_range
>
> Woops, missed this. Not sure if it goes here or a later patch, but
> that's needed to make this work.
>
> ~Gregory

And for the sake of completeness - I've confirmed that this is
sufficient to get a Zen5 working on top of

v6.13 + (v6.14, v6.15, cxl-next) PCI/CXL backports

So a smaller set of changes than I was expecting (some other mild fixups
but nothing major). Just kind of have to decide what the shape of this
change looks like, if not like this.

I can share my modified line if you'd like, but I haven't incorporated
any suggestions from the chain here.

~Gregory