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)
Wed, Jun 17, 2:22 AM
Unknown Object (File)
Tue, Jun 16, 8:36 AM
Unknown Object (File)
Sun, Jun 14, 6:53 PM
Unknown Object (File)
Fri, Jun 5, 12:25 AM
Unknown Object (File)
Thu, Jun 4, 10:37 PM
Unknown Object (File)
May 16 2026, 7:56 PM
Unknown Object (File)
May 16 2026, 7:56 PM
Unknown Object (File)
May 16 2026, 7:55 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