Skip to content

Commit 2111273

Browse files
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. This let us increase the default aperture size from 2GB to 4GB. Add OF properties to override the default aperture size and base address (where aperture-base does not include dma-iova-offset). Various tidy-ups. The internal representation of aperture limits now *do* include dma_iova_offset as that is more commonly wanted. Clarify the distinction between Linux pages and MMU table pages. Use iommu_alloc_page() as our memory allocator. Signed-off-by: Nick Hollinghurst <[email protected]>
1 parent 8394326 commit 2111273

File tree

2 files changed

+236
-191
lines changed

2 files changed

+236
-191
lines changed

0 commit comments

Comments
 (0)