Reimplement the page allocation code using bus_dma(9) APIs to make sure
authorkettenis <kettenis@openbsd.org>
Mon, 25 Apr 2022 21:53:09 +0000 (21:53 +0000)
committerkettenis <kettenis@openbsd.org>
Mon, 25 Apr 2022 21:53:09 +0000 (21:53 +0000)
commit018354a8a950f265cd717f68efef3251bc2e4951
treea57b9009fe17c5366c7c90d0ca5660a0ed941a38
parentadf35c805063bdae2645f1ef12aa003e59773899
Reimplement the page allocation code using bus_dma(9) APIs to make sure
that on architectures with an IOMMU, DMA addresses are translated
properly.

Fixes radeondrm(4) and amdgpu(4) on powerpc64, sparc64 and arm64 machines
with smmu(4).

ok jsg@
sys/dev/pci/drm/ttm/ttm_pool.c