diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2022-11-14 16:27:08 +0100 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2022-12-09 14:19:02 +0100 |
commit | 63756030be510b9394b93eeae8e1dd5274fd1124 (patch) | |
tree | 24f7d888d1eb4f47d639114ce130c618fad5a504 /recipes-kernel | |
parent | d8055d5ae466c5e93e6168b71506cd6366625981 (diff) |
linux-toradex-mainline: Lower CMA size percentage on 32-bit SOM
Lower CMA size percentage from 50% to 35% on i.MX 6/6ULL/7 based SOM,
with that the following CMA Memory will be reserved depending on
SKU memory.
| SOM Memory | CMA Memory |
|--- |--- |
| >= 1GiB | 256MiB |
| 512MiB | 192MiB |
| 256MiB | 96MiB |
With this change is possible to have a GPU application and video
playback on low memory SKU, without having allocation failures and
the related OOM killer issues.
No changes on SKU with >= 1GiB memory.
Related-to: ELB-4740
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
(cherry picked from commit 3f2d00f899ca9483bbb20b9b5fb9ae2262c19196)
Diffstat (limited to 'recipes-kernel')
-rw-r--r-- | recipes-kernel/linux/linux-toradex-mainline-git/defconfig | 2 | ||||
-rw-r--r-- | recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/recipes-kernel/linux/linux-toradex-mainline-git/defconfig b/recipes-kernel/linux/linux-toradex-mainline-git/defconfig index 31cd24f..ec29f40 100644 --- a/recipes-kernel/linux/linux-toradex-mainline-git/defconfig +++ b/recipes-kernel/linux/linux-toradex-mainline-git/defconfig @@ -530,7 +530,7 @@ CONFIG_CRC_T10DIF=y CONFIG_CRC7=m CONFIG_LIBCRC32C=m CONFIG_CMA_SIZE_MBYTES=256 -CONFIG_CMA_SIZE_PERCENTAGE=50 +CONFIG_CMA_SIZE_PERCENTAGE=35 CONFIG_CMA_SIZE_SEL_MIN=y CONFIG_FONTS=y CONFIG_FONT_8x8=y diff --git a/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config b/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config index 1b505db..07eecf6 100644 --- a/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config +++ b/recipes-kernel/linux/linux-toradex-mainline-git/toradex_imx_v6_v7.config @@ -75,7 +75,7 @@ CONFIG_VLAN_8021Q=m # CMA, used by the VPU for example CONFIG_CMA_SIZE_MBYTES=256 CONFIG_CMA_SIZE_SEL_MIN=y -CONFIG_CMA_SIZE_PERCENTAGE=50 +CONFIG_CMA_SIZE_PERCENTAGE=35 # Thermal emergency poweroff CONFIG_THERMAL_EMERGENCY_POWEROFF_DELAY_MS=10000 |