opnsense-src/sys/dev/virtio/block
Colin Percival 9af32ef564 vtblk: Bypass iommu on powerpc
Virtio operates with physical addresses, while busdma is designed to
map these to produce bus addresses.  On most supported platforms,
these two are interchangeable; on powerpc platforms, they are not.

When on powerpc, set an IOMMU of NULL, which causes the powerpc busdma
code to bypass the iommu mapping; this leaves us with the physical
buffer addresses which the virtio host expects to see.

Tested by:	alfredo
Fixes:	782105f7c8 ("vtblk: Use busdma")
Sponsored by:	https://www.patreon.com/cperciva
Differential Revision:	https://reviews.freebsd.org/D37891
2023-01-10 19:42:04 -08:00
..
virtio_blk.c vtblk: Bypass iommu on powerpc 2023-01-10 19:42:04 -08:00
virtio_blk.h virtio_blk: Add modern (V1) support 2021-01-19 04:55:24 +00:00