From 6472a479dcc95a1f97b0e305d129118654a6cbfc Mon Sep 17 00:00:00 2001 From: Andreas Cord-Landwehr Date: Sat, 14 Jan 2023 11:35:16 +0100 Subject: [PATCH] linux-starfive-dev: set CMA memory for visionfive2 to 256MB Running anything with decent UI like a KDE Plasma shell requires much more than the default 8MB. Visible effect of too small buffer is heavy flickering of UI, accompained by allocation errors in syslog. --- recipes-kernel/linux/linux-starfive-dev.bb | 1 + recipes-kernel/linux/linux-starfive/visionfive2-graphics.cfg | 1 + 2 files changed, 2 insertions(+) create mode 100644 recipes-kernel/linux/linux-starfive/visionfive2-graphics.cfg diff --git a/recipes-kernel/linux/linux-starfive-dev.bb b/recipes-kernel/linux/linux-starfive-dev.bb index 06f3668..e18dc0e 100644 --- a/recipes-kernel/linux/linux-starfive-dev.bb +++ b/recipes-kernel/linux/linux-starfive-dev.bb @@ -26,6 +26,7 @@ SRC_URI:append:visionfive = " \ SRC_URI:append:visionfive2 = " \ file://0004-riscv-fix-build-with-binutils-2.38.patch \ + file://visionfive2-graphics.cfg \ " LINUX_VERSION ?= "6.2.0" diff --git a/recipes-kernel/linux/linux-starfive/visionfive2-graphics.cfg b/recipes-kernel/linux/linux-starfive/visionfive2-graphics.cfg new file mode 100644 index 0000000..e08ea6c --- /dev/null +++ b/recipes-kernel/linux/linux-starfive/visionfive2-graphics.cfg @@ -0,0 +1 @@ +CONFIG_CMA_SIZE_MBYTES=256