aboutsummaryrefslogtreecommitdiff
path: root/drivers/cdx/controller/mcdi.c
diff options
context:
space:
mode:
authorNipun Gupta <[email protected]>2023-06-05 18:40:09 +0530
committerGreg Kroah-Hartman <[email protected]>2023-06-15 13:42:16 +0200
commitb8c5ff76059ded3758de3db83e04189a072ac01f (patch)
treeefc56ff8f617ccd88c024133aa1f53c9f1d00ee5 /drivers/cdx/controller/mcdi.c
parent9e66fb52449538406cea43e9f3889c391350e76e (diff)
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 <[email protected]> Reported-by: Alex Williamson <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/ Reviewed-by: Nikhil Agarwal <[email protected]> Message-ID: <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/cdx/controller/mcdi.c')
0 files changed, 0 insertions, 0 deletions