[PATCH 0/4] Re-enable IDXD kernel workqueue under DMA API

From: Jacob Pan
Date: Wed Mar 01 2023 - 19:56:25 EST


Hi all,

IDXD kernel work queues were disabled due to the flawed use of kernel VA
and SVA API.
Link: https://lore.kernel.org/linux-iommu/20210511194726.GP1002214@xxxxxxxxxx/

The solution is to enable it under DMA API where IDXD shared workqueue users
can use ENQCMDS to submit work on buffers mapped by DMA API.

This patchset adds support for attaching PASID to the device's default
domain and the ability to reserve global PASIDs from SVA APIs. We can then
re-enable the kernel work queues and use them under DMA API.

This depends on the IOASID removal series.
https://lore.kernel.org/linux-iommu/20230301235646.2692846-1-jacob.jun.pan@xxxxxxxxxxxxxxx/T/#t

Thanks,

Jacob

Jacob Pan (4):
iommu/vt-d: Implement set device pasid op for default domain
iommu/vt-d: Use non-privileged mode for all PASIDs
iommu/sva: Support reservation of global PASIDs
dmaengine/idxd: Re-enable kernel workqueue under DMA API

drivers/dma/idxd/device.c | 30 ++++-------------------
drivers/dma/idxd/init.c | 47 +++++++++++++++++++++++++++++++++----
drivers/dma/idxd/sysfs.c | 7 ------
drivers/iommu/intel/iommu.c | 34 +++++++++++++++++++++++++--
drivers/iommu/iommu-sva.c | 25 ++++++++++++++++++++
include/linux/iommu.h | 14 +++++++++++
6 files changed, 119 insertions(+), 38 deletions(-)

--
2.25.1