summaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/mcdi.c
diff options
context:
space:
mode:
authorNipun Gupta <nipun.gupta@amd.com>2023-06-05 16:10:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-06-15 14:42:16 +0300
commitb8c5ff76059ded3758de3db83e04189a072ac01f (patch)
treeefc56ff8f617ccd88c024133aa1f53c9f1d00ee5 /drivers/cdx/controller/mcdi.c
parent9e66fb52449538406cea43e9f3889c391350e76e (diff)
downloadlinux-b8c5ff76059ded3758de3db83e04189a072ac01f.tar.xz
cdx: fix driver managed dma support
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@amd.com> Reported-by: Alex Williamson <alex.williamson@redhat.com> Closes: https://lore.kernel.org/lkml/20230524134831.28dc97e2.alex.williamson@redhat.com/ Reviewed-by: Nikhil Agarwal <nikhil.agarwal@amd.com> Message-ID: <20230605131009.6869-1-nipun.gupta@amd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/cdx/controller/mcdi.c')
0 files changed, 0 insertions, 0 deletions