Skip to content

Commit c490513

Browse files
jgunthorpeawilliam
authored andcommitted
vfio/pci: Add driver_managed_dma to the new vfio_pci drivers
When the iommu series adding driver_managed_dma was rebased it missed that new VFIO drivers were added and did not update them too. Without this vfio will claim the groups are not viable. Add driver_managed_dma to mlx5 and hisi. Fixes: 70693f4 ("vfio: Set DMA ownership for VFIO devices") Reported-by: Yishai Hadas <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Tested-by: Shameer Kolothum <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
1 parent a3da1ab commit c490513

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1323,6 +1323,7 @@ static struct pci_driver hisi_acc_vfio_pci_driver = {
13231323
.probe = hisi_acc_vfio_pci_probe,
13241324
.remove = hisi_acc_vfio_pci_remove,
13251325
.err_handler = &hisi_acc_vf_err_handlers,
1326+
.driver_managed_dma = true,
13261327
};
13271328

13281329
module_pci_driver(hisi_acc_vfio_pci_driver);

drivers/vfio/pci/mlx5/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -641,6 +641,7 @@ static struct pci_driver mlx5vf_pci_driver = {
641641
.probe = mlx5vf_pci_probe,
642642
.remove = mlx5vf_pci_remove,
643643
.err_handler = &mlx5vf_err_handlers,
644+
.driver_managed_dma = true,
644645
};
645646

646647
static void __exit mlx5vf_pci_cleanup(void)

0 commit comments

Comments
 (0)