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

Commit 265862e7 authored by Laura Abbott's avatar Laura Abbott
Browse files

cma: Call dma_contiguous_early_fixup after allocation



Commit 42e668f4 cma: Delay non-placed memblocks until after all allocations
delayed calling memblock_alloc until later but didn't move the
fixup. Make sure to call the fixup after allocation of the
memblock.

Change-Id: I305c05f1b1e0b6aeb462746e91b30560ddf5b934
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent 6791a1be
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -352,6 +352,8 @@ void __init dma_contiguous_reserve(phys_addr_t limit)
				i--;
				continue;
			}
			dma_contiguous_early_fixup(cma_areas[i].base,
							cma_areas[i].size);
		}

		pr_info("CMA: reserved %ld MiB at %pa for %s\n",