Re: [PATCH v6 4/4] dmaengine/idxd: Re-enable kernel workqueue under DMA API

From: Baolu Lu
Date: Sun May 21 2023 - 02:30:01 EST


On 5/20/23 4:32 AM, Jacob Pan wrote:
Kernel workqueues were disabled due to flawed use of kernel VA and SVA
API. Now that we have the support for attaching PASID to the device's
default domain and the ability to reserve global PASIDs from SVA APIs,
we can re-enable the kernel work queues and use them under DMA API.

We also use non-privileged access for in-kernel DMA to be consistent
with the IOMMU settings. Consequently, interrupt for user privilege is
enabled for work completion IRQs.

Link:https://lore.kernel.org/linux-iommu/20210511194726.GP1002214@xxxxxxxxxx/
Reviewed-by: Dave Jiang<dave.jiang@xxxxxxxxx>
Reviewed-by: Fenghua Yu<fenghua.yu@xxxxxxxxx>
Signed-off-by: Jacob Pan<jacob.jun.pan@xxxxxxxxxxxxxxx>

Reviewed-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>

Best regards,
baolu