opnsense-src/sys/dev/iommu
Doug Moore 975715b788 iommu_gas: use to first-fit search for lowermatch
Reverse the order of the search for a free space in lowermatch, to
make it a first-fit search. Iommu_gas_match_one always allocates from
the beginning of the free gap discovered from searching the tree, so
the current code isn't really allocating in a reverse first-fit
anyway, and making the search first-fit reduces the number of iommu
page table pages that are used.

Reported by:	alc
Reviewed by:	alc, kib
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D35458
2022-06-14 00:47:22 -05:00
..
busdma_iommu.c iommu_gas: pass size to iommu_map without rounding 2022-06-10 13:56:54 -05:00
busdma_iommu.h busdma: Add KMSAN integration 2021-08-10 21:27:54 -04:00
iommu.h vm_extern: use standard address checkers everywhere 2021-12-30 22:09:08 -06:00
iommu_gas.c iommu_gas: use to first-fit search for lowermatch 2022-06-14 00:47:22 -05:00
iommu_gas.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
iommu_msi.h o Add iommu de-initialization method for MSI interface. 2020-10-24 20:09:27 +00:00
iommu_types.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00