Re: [PATCH] Changing the AMD IOMMU API path to work in an atomic context which is necessary for any custom drivers using the IOMMU API while holding a spinlock.

From: Christoph Hellwig
Date: Fri Aug 24 2018 - 10:53:37 EST


On Fri, Aug 24, 2018 at 02:28:49PM +0000, murphyt7@xxxxxx wrote:
> From: Tom Murphy <murphyt7@xxxxxx>
>
> ---
>
> This patch allows the IOMMU API path in the AMD driver to be called from an atomic context.
> This is useful for anyone building a driver which needs to call the IOMMU API while holding a spinlock.

I don't think that is a good idea. Please point to the code in the
driver and we can't probably find a better solution.