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

Commit 9a949005 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "arm: dma-mapping: WARN_ON if iova is not 128M aligned"

parents c32398e5 eb5c4e0e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2218,6 +2218,9 @@ arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, u64 size)
	if (!bitmap_size)
		return ERR_PTR(-EINVAL);

	WARN(!IS_ALIGNED(size, SZ_128M),
			"size is not aligned to 128M, alignment enforced");

	if (bitmap_size > PAGE_SIZE) {
		extensions = bitmap_size / PAGE_SIZE;
		bitmap_size = PAGE_SIZE;