Re: [RESEND PATCH] cdx: fix driver managed dma support

From: Nipun Gupta
Date: Mon Jun 05 2023 - 11:29:29 EST




On 6/5/2023 8:52 PM, Greg KH wrote:

On Mon, Jun 05, 2023 at 06:40:09PM +0530, Nipun Gupta wrote:
The devices on cdx could be bound to drivers with the device
DMA managed by kernel drivers or user-space applications.
As multiple devices can be placed in the same IOMMU group, the
DMA on these devices must either be entirely under kernel control
or userspace control. Fix the CDX bus driver to acknowlege the
driver_managed_dma flag and call the appropriate iommu APIs.

Fixes: 2959ab247061 ("cdx: add the cdx bus driver")
Signed-off-by: Nipun Gupta <nipun.gupta@xxxxxxx>
Reported-by: Alex Williamson <alex.williamson@xxxxxxxxxx>
Closes: https://lore.kernel.org/lkml/20230524134831.28dc97e2.alex.williamson@xxxxxxxxxx/
---

I have resend this patch to include fixes, closes and
reported by tags. We request that this fix be incorporated
into the 6.4 release, along with the inclusion of CDX bus
driver support.

What do you mean by "inclusion of CDX bus driver support"? What patches
exactly?

Sorry for the confusion. I mean that CDX bus support would be coming up in 6.4 release and this patch (cdx: fix driver managed dma support) is a fix for the driver managed dma support in the bus. So if this patch can be part of 6.4 release (i.e. added in upcoming rc release/s for 6.4)?

Thanks,
Nipun


confused,

greg k-h