[RFC PATCH 2/2] iommu: Add IOMMU_UNBIND_FAULT_PENDING flag
hch at infradead.org
Fri Oct 16 18:07:59 AEDT 2020
On Thu, Oct 15, 2020 at 11:00:29AM +0200, Jean-Philippe Brucker wrote:
> IOMMU drivers only need to flush their PRI queue when faults might be
> pending. According to the PCIe spec (quoted below) this only happens
> when using the "Stop Marker" method. Otherwise the function waits for
> pending faults before signaling to the device driver that it can
> Add the IOMMU_UNBIND_FAULT_PENDING flags to unbind(), to tell the IOMMU
> driver whether it's worth flushing the queue.
As we have no code using the "stop marker" method please just remove
the code entirely instead of adding a flag that is just dead code.
More information about the Linux-accelerators