Re: [RFC v2 08/15] vfio/cxl: discover precommitted CXL region

Jonathan Cameron
2025-12-22T14:09:41Z

On Tue, 9 Dec 2025 22:20:12 +0530
mhonap@nvidia.com wrote:

> From: Zhi Wang <zhiw@nvidia.com>
>
> A type-2 device can have precommitted CXL region that is configured by
> BIOS. Before letting a VFIO CXL variant driver create a new CXL region,
> the VFIO CXL core first needs to discover the precommited CXL region.

This is similar to the discussion in Alejandro's type 2 series.
Before we put infrastructure in place for handling bios precommitting I'd
like some discussion of why they are doing that.

There are a few possible reasons, but in at least some cases I suspect it
is misguided attempt to set things up that the BIOS should be leaving
well alone. I'd also be curious to hear if the decoders are locked
or not in the systems you've seen it on? I.e. can we rip it down
and start again?

I'm definitely not saying we should not support this, but I want
people to enumerate the reasons they need it.

>
> Discover the precommited CXL region when enabling CXL devices.
>
> Signed-off-by: Zhi Wang <zhiw@nvidia.com>
> Signed-off-by: Manish Honap <mhonap@nvidia.com>