1 From 5f632f8aba2da50bba83537926a1d3a466ca2a51 Mon Sep 17 00:00:00 2001
2 From: Phil Elwell <phil@raspberrypi.org>
3 Date: Sun, 24 Apr 2016 17:28:15 +0100
4 Subject: [PATCH 302/423] drm/vc4: Add DT parameters to control CMA usage
6 Example: dtoverlay=vc4-kms-v3d,cma-128
8 See: https://github.com/raspberrypi/linux/pull/1431
10 Signed-off-by: Phil Elwell <phil@raspberrypi.org>
12 arch/arm/boot/dts/overlays/README | 8 +++--
13 arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts | 36 ++++++++++++++++++++++
14 2 files changed, 42 insertions(+), 2 deletions(-)
16 --- a/arch/arm/boot/dts/overlays/README
17 +++ b/arch/arm/boot/dts/overlays/README
18 @@ -1023,8 +1023,12 @@ Name: vc4-kms-v3d
19 Info: Enable Eric Anholt's DRM VC4 HDMI/HVS/V3D driver. Running startx or
20 booting to GUI while this overlay is in use will cause interesting
22 -Load: dtoverlay=vc4-kms-v3d
24 +Load: dtoverlay=vc4-kms-v3d,<param>
25 +Params: cma-256 CMA is 256MB, 256MB-aligned (needs 1GB)
26 + cma-192 CMA is 192MB, 256MB-aligned (needs 1GB)
27 + cma-128 CMA is 128MB, 128MB-aligned
28 + cma-96 CMA is 96MB, 128MB-aligned
29 + cma-64 CMA is 64MB, 64MB-aligned
33 --- a/arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
34 +++ b/arch/arm/boot/dts/overlays/vc4-kms-v3d-overlay.dts
36 bootargs = "cma=256M@256M";
41 + target-path = "/chosen";
43 + bootargs = "cma=192M@256M";
48 + target-path = "/chosen";
50 + bootargs = "cma=128M@128M";
55 + target-path = "/chosen";
57 + bootargs = "cma=96M@128M";
62 + target-path = "/chosen";
64 + bootargs = "cma=64M@64M";
69 + cma-256 = <0>,"+4-5-6-7-8";
70 + cma-192 = <0>,"-4+5-6-7-8";
71 + cma-128 = <0>,"-4-5+6-7-8";
72 + cma-96 = <0>,"-4-5-6+7-8";
73 + cma-64 = <0>,"-4-5-6-7+8";