Commit 5e8b30d
committed
iommu: bcm2712-iommu: Allocate tables on demand; add OF properties
Allocate space for level-2 IOMMU translation tables as needed.
This should save memory in most cases but it means that map()
can now fail with -ENOMEM. We don't currently free unused tables.
Add OF properties to override the default aperture size (2GB)
and base address (40GB; this doesn't include dma-iova-offset).
Various tidy-ups. The internal representation of aperture limits
does include dma_iova_offset, as that is more commonly useful.
Clarify the distinction between Linux pages and IOMMU table pages.
Fix wrong definition of MMMU_CTRL_PT_INVALID_EN flag.
Signed-off-by: Nick Hollinghurst <[email protected]>1 parent 8394326 commit 5e8b30d
2 files changed
+240
-194
lines changed
0 commit comments