Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

remoteproc: da8xx: don't select CMA on no-MMU

We can only use CMA on systems that have an MMU, because of
the requirement to use memory migration. NOMMU systems are
rather constrained to start with, but it seems reasonable
to assume that DMA allocations can still succeed in the
constrained case for remoteproc on NOMMU, so this patch
changes the da8xx implementation to not rely on CMA when
the MMU is disabled.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Ohad Ben-Cohen <ohad@wizery.com>
Cc: Robert Tivy <rtivy@ti.com>

+1 -1
+1 -1
drivers/remoteproc/Kconfig
··· 44 44 config DA8XX_REMOTEPROC 45 45 tristate "DA8xx/OMAP-L13x remoteproc support" 46 46 depends on ARCH_DAVINCI_DA8XX 47 - select CMA 47 + select CMA if MMU 48 48 select REMOTEPROC 49 49 select RPMSG 50 50 help