Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
So little documentation on PCI Passthrough on ARACH64.

I can't seem to get vfio-pci to bind to a device.


Code:
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-asahi root=UUID=1977b9ca-42c7-4d1e-b414-abd00f14503b rw loglevel=3 quiet vfio_iommu_type1.allow_unsafe_interrupts=1
[    0.364284] vfio_pci: add [14e4:4425[ffffffff:ffffffff]] class 0x000000/00000000
[    0.364287] vfio_pci: add [14e4:5f69[ffffffff:ffffffff]] class 0x000000/00000000
[    0.651983] vfio-pci 0000:01:00.0: Adding to iommu group 3
[    0.675375] vfio-pci: probe of 0000:01:00.0 failed with error -22
[    0.675414] vfio-pci 0000:01:00.1: Adding to iommu group 3
[    0.699367] vfio-pci: probe of 0000:01:00.1 failed with error -22
 
What do you make of this @joevt?

Code:
sudo dmesg | grep iommu
[    0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux-asahi root=UUID=1977b9ca-42c7-4d1e-b414-abd00f14503b rw loglevel=3 quiet vfio_iommu_type1.allow_unsafe_interrupts=1
[    0.015862] iommu: Default domain type: Translated
[    0.015863] iommu: DMA domain TLB invalidation policy: strict mode
[    0.392309] apple-dart 24e808000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0] initialized
[    0.392453] apple-dart 382f00000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0] initialized
[    0.392535] apple-dart 382f80000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0] initialized
[    0.392673] apple-dart 502f00000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0] initialized
[    0.392761] apple-dart 502f80000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0] initialized
[    0.392956] apple-dart 235004000.iommu: DART [pagesize 4000, 16 streams, bypass support: 1, bypass forced: 0] initialized
[    0.402836] dockchannel-hid 24eb30000.input: Adding to iommu group 0
[    0.414640] rtkit-helper 24e400000.mtp: Adding to iommu group 0
[    0.454369] dwc3 382280000.usb: Adding to iommu group 1
[    0.476370] dwc3 502280000.usb: Adding to iommu group 2
[    0.651768] OF: /soc/pcie@690000000: no iommu-map translation for id 0x0 on (null)
[    0.651983] vfio-pci 0000:01:00.0: Adding to iommu group 3
[    0.675414] vfio-pci 0000:01:00.1: Adding to iommu group 3
[    1.123954] apple-admac 238200000.dma-controller: Adding to iommu group 4
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.