]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1221c5337b22a47e041260a36bb0b55ce8595eb8
treec463fa0e2bc889b667441d161981c671705dfbda
parentf5033ec79b00ab87091d46b54e6d738c645576d0
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