From: Matt Ranostay Date: Wed, 28 Dec 2016 05:45:15 +0000 (+0200) Subject: linux-raspberrypi: add ENABLE_CMA options to kernel command line X-Git-Tag: chinook_3.0.0~5 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;ds=sidebyside;h=0723eddcb9d683a9b9e0ee03a8455e2ce78cc8fc;p=AGL%2Fmeta-agl.git linux-raspberrypi: add ENABLE_CMA options to kernel command line Add ENABLE_CMA setting that enables required kernel configuration to allow the dynamic CMA to function. Change-Id: I0b0ab0fd7fd64454ea3cc9a89344a98897838e11 Signed-off-by: Matt Ranostay (cherry picked from commit fefb358dca0ac89b970c77671b2efda2a8cf99c0) --- diff --git a/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend b/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend index cc6cbeeb5..e5cdb2aff 100644 --- a/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend +++ b/meta-agl-bsp/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.4.bbappend @@ -66,6 +66,9 @@ do_configure_append() { CMDLINE_DEBUG = "" CMDLINE_append = " usbhid.mousepoll=0" +# Add options to allow CMA to operate +CMDLINE_append = ' ${@base_conditional("ENABLE_CMA", "1", "coherent_pool=6M smsc95xx.turbo_mode=N", "", d)}' + KERNEL_MODULE_AUTOLOAD += "snd-bcm2835" KERNEL_MODULE_AUTOLOAD += "hid-multitouch"