opnsense-src/sys/dev/iommu
Doug Moore 069ec467c1 iommu_gas: Drop needless bound check in lowermatch
The loop iteration in iommu_gas_lowermatch checks the bound
a->common->lowaddr twice per loop iteration. Rewrite to test only once
per iteration.  Do not worry about passing to iommu_gas_match_one a
range wholly beyond lowaddr. Since that function checks the upper end
of the range against lowaddr, it'll get rejected there.

Reviewed by:	alc
MFC after:	3 weeks
Differential Revision:	https://reviews.freebsd.org/D35522

(cherry picked from commit 70b5d8fa0f)
2022-07-12 12:37:48 -05:00
..
busdma_iommu.c vm_extern: use standard address checkers everywhere 2022-07-12 11:26:03 -05:00
busdma_iommu.h busdma_iommu: Fine-grained locking for the dmamap's map list 2022-07-06 12:11:10 -05:00
iommu.h vm_extern: use standard address checkers everywhere 2022-07-12 11:26:03 -05:00
iommu_gas.c iommu_gas: Drop needless bound check in lowermatch 2022-07-12 12:37:48 -05:00
iommu_gas.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2022-02-08 15:00:55 -05: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 2022-02-08 15:00:55 -05:00