[PATCH RFC 6/7] ARM: bcm2835_defconfig: Increase CMA for VC4

Stefan Wahren stefan.wahren at i2se.com
Fri Jun 23 13:27:25 PDT 2017


The VC4 needs more memory than the default setting:

    cma: cma_alloc: alloc failed, req-size: 4096 pages, ret: -12
    vc4-drm soc:gpu: failed to allocate buffer with size 16777216

So increase the value to 32 MB and fix this issue.

Signed-off-by: Stefan Wahren <stefan.wahren at i2se.com>
---
 arch/arm/configs/bcm2835_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/configs/bcm2835_defconfig b/arch/arm/configs/bcm2835_defconfig
index 14bb272..fe06038 100644
--- a/arch/arm/configs/bcm2835_defconfig
+++ b/arch/arm/configs/bcm2835_defconfig
@@ -55,6 +55,7 @@ CONFIG_DEVTMPFS=y
 CONFIG_DEVTMPFS_MOUNT=y
 # CONFIG_STANDALONE is not set
 CONFIG_DMA_CMA=y
+CONFIG_CMA_SIZE_MBYTES=32
 CONFIG_SCSI=y
 CONFIG_BLK_DEV_SD=y
 CONFIG_SCSI_CONSTANTS=y
-- 
2.7.4




More information about the linux-rpi-kernel mailing list