dma-contiguous: CMA: give precedence to cmdline
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Fri, 10 Jan 2020 17:19:33 +0000 (18:19 +0100)
committerChristoph Hellwig <hch@lst.de>
Thu, 30 Jan 2020 13:41:42 +0000 (14:41 +0100)
commit8c8c5a4994a306c217fd061cbfc5903399fd4c1c
treec463fa0e2bc889b667441d161981c671705dfbda
parentd5226fa6dbae0569ee43ecfc08bdcd6770fc4755
dma-contiguous: CMA: give precedence to cmdline

Although the device tree might contain a reserved-memory DT node
dedicated as the default CMA pool, users might want to change CMA's
parameters using the kernel command line for debugging purposes and
whatnot. Honor this by bypassing the reserved memory CMA setup, which
will ultimately end up freeing the memblock and allow the command line
CMA configuration routine to run.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Reviewed-by: Phil Elwell <phil@raspberrypi.org>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/contiguous.c