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

Commit 89c94f2f authored by FUJITA Tomonori's avatar FUJITA Tomonori Committed by David S. Miller
Browse files

[SPARC64]: make IOMMU code respect the segment boundary limits

parent 0f7f22d9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -134,7 +134,8 @@ unsigned long iommu_range_alloc(struct device *dev,
	else
		boundary_size = ALIGN(1UL << 32, 1 << IO_PAGE_SHIFT);

	n = iommu_area_alloc(arena->map, limit, start, npages, 0,
	n = iommu_area_alloc(arena->map, limit, start, npages,
			     iommu->page_table_map_base >> IO_PAGE_SHIFT,
			     boundary_size >> IO_PAGE_SHIFT, 0);
	if (n == -1) {
		if (likely(pass < 1)) {