Re: [PATCH 17/17] PCI: Replace untrusted state with device trust
From: Jason Gunthorpe
Date: Mon Nov 16 2026 - 10:59:51 EST
On Mon, Nov 16, 2026 at 09:22:11PM +0530, Aneesh Kumar K.V wrote:
> > Once you turn on TDISP you effectively activate DMA, just like turning
> > on the IOMMU.
>
> We considered two options for doing this:
>
> 1. Via the ->accept() callback in pci_tsm_ops.
> 2. Via pci_dma_configure(), based on a combination of device trust and device acceptance.
>
> If I understand correctly, you are suggesting that we stick with the
> former?
It should still be done in #2, just with nothing to do with device
trust.
You can't run a TDISP run device at all if DMA_ENABLE is not done,
there is no half step here so it has nothing to do with device trust.
Jason