Re: [PATCH v4 1/2] iommu/s390: Fix race with release_device ops

From: Jason Gunthorpe
Date: Thu Sep 01 2022 - 10:35:05 EST


On Thu, Sep 01, 2022 at 03:29:16PM +0100, Robin Murphy wrote:

> Right, the next step would be to bridge that gap to iommu-dma to dump the
> flush queue when IOVA allocation failure implies we've reached the
> "rollover" point, and perhaps not use the timer at all. By that point a
> dedicated domain type, or at least some definite internal flag, for this
> alternate behaviour seems like the logical way to go.

At least on this direction, I've been thinking it would be nice to
replace the domain type _FQ with a flag inside the domain, maybe the
ops, saying how the domain wants the common DMA API to operate. If it
wants FQ mode or other tuning parameters

Jason