mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-07 02:19:54 +00:00
On some platforms the cma area can be half the entire system memory, meaning that allocations start happening in the cma area immediately. This leads to fragmentation and subsequent fatal cma_alloc failures. We introduce an "alloc_in_cma_threshold" parameter which requires that this many sixteenths of the free pages must be in cma before it will try to use them. By default this is set to 12, but the previous behaviour can be restored by setting it to 8 on startup. Signed-off-by: David Plowman <david.plowman@raspberrypi.com>
271 KiB
271 KiB