dma-contiguous: CMA: give precedence to cmdline
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Fri, 10 Jan 2020 17:19:33 +0000 (18:19 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:45 +0000 (16:33 +0100)
commit627b1f52df31d9af8a31d9eeb88b34dc8fd1ccba
tree5a427a60dc7e5478a3faaef7d800f59220b2ba14
parentfb4ed3c40e849ff77de1a54ab732e5e2b25b5f73
dma-contiguous: CMA: give precedence to cmdline

commit 8c8c5a4994a306c217fd061cbfc5903399fd4c1c upstream.

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