freebsd-dev/sys/dev/iommu
Doug Moore 87d405eab9 iommu_gas: initialize start_gap as first node
In iommu_gas.c, domain->start_gap points to one of the nodes on either
side of the first free, unallocated range. In iommu_gas_init_domain,
it is initialized to point to the node after the single free
range. Change it to point to the node before that free range, so that,
when 'lowaddr' is within the initial free range, the first allocation
search for free space below 'lowaddr' does not begin and end at an
address above 'lowaddr'. This fixes problems on a machine with Intel
DMAR enabled.

Reported by:	jah
Reviewed by:	dougm
Tested by:	jah
Obtained from:	jah
Fixes:	commit db151ca0c3 iommu_gas: start space search from 1st free space
MFC after:	1 day
2023-02-08 11:04:13 -06:00
..
busdma_iommu.c kmem_malloc/free: Use void * instead of vm_offset_t for kernel pointers. 2022-09-22 15:09:19 -07:00
busdma_iommu.h busdma_iommu: Fine-grained locking for the dmamap's map list 2022-06-25 00:59:23 -05:00
iommu_gas.c iommu_gas: initialize start_gap as first node 2023-02-08 11:04:13 -06:00
iommu_gas.h iommu_gas: add iommu_gas_remove() 2022-08-15 17:54:57 +03:00
iommu_msi.h
iommu_types.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00
iommu.h iommu_gas: start space search from 1st free space 2022-10-29 00:50:44 -05:00