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
|
||
---|---|---|
.. | ||
busdma_iommu.c | ||
busdma_iommu.h | ||
iommu_gas.c | ||
iommu_gas.h | ||
iommu_msi.h | ||
iommu_types.h | ||
iommu.h |