> Add an optional dma_buf_ops.get_tph callback and a dma_buf_get_tph() > wrapper for importers. > > 8-bit ST and 16-bit Extended ST are distinct PCIe TPH namespaces, so > the importer requests the namespace it can emit and the exporter > returns the matching ST/PH tuple or -EOPNOTSUPP. > > dma_buf_get_tph() is the importer entry point. It returns -EOPNOTSUPP > when the exporter lacks the callback and requires dmabuf->resv to be > held while the callback runs. > > The first user is VFIO_DEVICE_FEATURE_DMA_BUF_TPH in vfio-pci, with > mlx5 as the first importer. > > Signed-off-by: Zhiping Zhang <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=3
