Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe16f088 authored by Joerg Roedel's avatar Joerg Roedel
Browse files

amd-iommu: disable round-robin allocator for CONFIG_IOMMU_STRESS



Disabling the round-robin allocator results in reusing the same
dma-addresses again very fast. This is a good test if the iotlb flushing
is working correctly.

Signed-off-by: default avatarJoerg Roedel <joerg.roedel@amd.com>
parent d9cfed92
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -783,6 +783,11 @@ static unsigned long dma_ops_alloc_addresses(struct device *dev,
{
	unsigned long address;

#ifdef CONFIG_IOMMU_STRESS
	dom->next_address = 0;
	dom->need_flush = true;
#endif

	address = dma_ops_area_alloc(dev, dom, pages, align_mask,
				     dma_mask, dom->next_address);