lkml.org 
[lkml]   [2023]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/8] Re-enable IDXD kernel workqueue under DMA API
Date
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@nvidia.com/

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@linux.intel.com/T/#t

Thanks,

---
Changelog:
v2:
- refactored device PASID attach domain ops based on Baolu's early patch
- addressed TLB flush gap
- explicitly reserve RID_PASID from SVA PASID number space
- get dma domain directly, avoid checking domain types

Jacob

Jacob Pan (8):
iommu/vt-d: Use non-privileged mode for all PASIDs
iommu/vt-d: Remove PASID supervisor request support
iommu/sva: Support reservation of global SVA PASIDs
iommu/vt-d: Reserve RID_PASID from global SVA PASID space
iommu/vt-d: Make device pasid attachment explicit
iommu/vt-d: Implement set_dev_pasid domain op
iommu: Export iommu_get_dma_domain
dmaengine/idxd: Re-enable kernel workqueue under DMA API

drivers/dma/idxd/device.c | 30 +-----
drivers/dma/idxd/init.c | 51 +++++++++-
drivers/dma/idxd/sysfs.c | 7 --
drivers/iommu/intel/iommu.c | 188 ++++++++++++++++++++++++++++--------
drivers/iommu/intel/iommu.h | 8 ++
drivers/iommu/intel/pasid.c | 43 ---------
drivers/iommu/intel/pasid.h | 7 --
drivers/iommu/iommu-sva.c | 33 +++++++
drivers/iommu/iommu.c | 1 +
include/linux/iommu.h | 19 ++++
10 files changed, 261 insertions(+), 126 deletions(-)

--
2.25.1

\
 
 \ /
  Last update: 2023-03-28 01:18    [W:0.218 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site