Page MenuHomeFreeBSD

vtblk: Bypass iommu on powerpc
ClosedPublic

Authored by cperciva on Dec 28 2022, 6:32 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Aug 10, 8:59 PM
Unknown Object (File)
Sat, Aug 8, 6:51 PM
Unknown Object (File)
Sat, Aug 8, 6:45 PM
Unknown Object (File)
Sat, Aug 8, 1:28 PM
Unknown Object (File)
Fri, Aug 7, 6:38 PM
Unknown Object (File)
Mon, Aug 3, 9:12 AM
Unknown Object (File)
Sun, Aug 2, 2:08 AM
Unknown Object (File)
Wed, Jul 22, 3:24 PM
Subscribers

Details

Summary

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.

Fixes: 782105f7c898 ("vtblk: Use busdma")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable