Re: [RFC PATCH v2 3/5] PCI/TSM: Derive the coherent-range IPA from CXL
From: Ankit Agrawal
Date: Fri Nov 06 2026 - 07:40:50 EST
>>> +
>>> + reporting_bar_base = tsm_offset &
>>> + ~((u64)range_len(&window) - 1);
>>
>> Hi Ankit,
>>
>> HDM decoder window can have non-power-of-2 sizes, why do we assume a power-of-2 size for
>> coherent window?
>
> Hi Richard, yeah the region base calculation needs to be updated
> to correctly determine the CXL region base for the
> non-powerof2 sizes.
Just to add, IMO determining the base IPA of the CXL region using the
interface report does not look straight forward for this case. Trying to
figure out a proper solution. Missed to mention this as an open in the
cover letter.