Re: [PATCH 08/18] PCI/TSM: Support connecting to PCIe CMA devices

From: Alistair Francis

Date: Wed Jun 17 2026 - 22:05:30 EST


On Wed, May 20, 2026 at 3:56 PM Alistair Francis <alistair23@xxxxxxxxx> wrote:
>
> On Fri, May 8, 2026 at 1:18 PM <alistair23@xxxxxxxxx> wrote:
> >
> > From: Alistair Francis <alistair.francis@xxxxxxx>
> >
> > In the next patch we are going to add a PCIe CMA TSM driver, as such we
> > need to ensure that is_pci_tsm_pf0() will allow us to connect to CMA
> > capable devices. These devices don't necessarily has DEVCAP_TEE or IDE
> > support.
> >
> > As such for Root Complex Integrated Endpoint (PCI_EXP_TYPE_RC_END) we
> > also check for the CMA DOE feature.
>
> @Dan Williams this is the patch I really need your thoughts on.
>
> The current upstream pci_tsm code only works if IDE or TDISP is
> supported, which isn't true for CMA support.
>
> This patch works around that, but the more I think about it the
> hackier it is. I have a local change that reverts this and
> updates`tsm.c` to work with a DSM (`->dsm_dev` is NULL), but that
> doesn't feel right either. Do you have a better idea or how to enable
> a CMA TSM driver?

Gentle ping on this. Any thoughts here?

Alistair

>
> Alistair