From: Matt Ranostay <matt.ranostay@konsulko.com>
Date: Tue, 27 Dec 2016 23:49:05 +0000 (+0000)
Subject: 50_local.conf.inc: Enable CMA within the raspberrypi3 template
X-Git-Tag: 3.99.1~238
X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F85%2F7985%2F1;p=AGL%2Fmeta-agl.git

50_local.conf.inc: Enable CMA within the raspberrypi3 template

Allow the raspberrypi3 GPU to use the CMA dynamic memory split
to boost performance.

Change-Id: Ia72e7b83f7cca2b6b8a622c632345c748547429b
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
---

diff --git a/templates/machine/raspberrypi3/50_local.conf.inc b/templates/machine/raspberrypi3/50_local.conf.inc
index 70c0752e7..9ec236f08 100644
--- a/templates/machine/raspberrypi3/50_local.conf.inc
+++ b/templates/machine/raspberrypi3/50_local.conf.inc
@@ -1,6 +1,10 @@
 MACHINE = "raspberrypi3"
 
-GPU_MEM = "128"
+GPU_MEM = "512"
+
+ENABLE_CMA = "1"
+CMA_LWM = "16"
+CMA_HWM = "32"
 
 CORE_IMAGE_EXTRA_INSTALL += "wayland weston"