Hi,
We are using imx8mp with 2GB DDR.
So we modified it as follows.
[Kernel]
diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 0bac42e91..1c497335c 100755
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -186,8 +186,8 @@
linux,cma {
compatible = "shared-dma-pool";
reusable;
- size = <0 0x3c000000>;
- alloc-ranges = <0 0x40000000 0 0xC0000000>;
+ size = <0 0x14000000>;
+ alloc-ranges = <0 0x40000000 0 0x40000000>;
linux,cma-default;
};
@@ -2315,7 +2315,7 @@
mix_gpu_ml: mix_gpu_ml {
compatible = "fsl,imx8mp-gpu", "fsl,imx8-gpu-ss";
cores = <&gpu_3d>, <&ml_vipsi>, <&gpu_2d>;
- reg = <0x0 0x40000000 0x0 0xC0000000>, <0x0 0x0 0x0 0x10000000>;
+ reg = <0x0 0x40000000 0x0 0x40000000>, <0x0 0x0 0x0 0x10000000>;
reg-names = "phys_baseaddr", "contiguous_mem";
status = "disabled";
};
[UBOOT]
diff --git a/include/configs/imx8mp_evk.h b/include/configs/imx8mp_evk.h
index c813f825..a788966d 100644
--- a/include/configs/imx8mp_evk.h
+++ b/include/configs/imx8mp_evk.h
@@ -209,16 +209,11 @@
/* Size of malloc() pool */
#define CONFIG_SYS_MALLOC_LEN SZ_32M
-/* Totally 6GB DDR */
+/* Totally 2GB DDR */
#define CONFIG_SYS_SDRAM_BASE 0x40000000
#define PHYS_SDRAM 0x40000000
-#define PHYS_SDRAM_SIZE 0x40000000 /* 1 GB */
+#define PHYS_SDRAM_SIZE 0x80000000 /* 2 GB */
#define PHYS_SDRAM_2 0x100000000
-#ifdef CONFIG_TARGET_IMX8MP_DDR4_EVK
-#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1 GB */
-#else
-#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1 GB */
-#endif
However, after applying the patch, weston is frequently killed as shown below.
Mar 24 10:25:54 imx8mp-lpddr4-evk weston[499]: g2d_alloc: alloc memory fail with size 33177600!
Mar 24 10:25:54 imx8mp-lpddr4-evk kernel: audit: type=1701 audit(1616581554.976:4): auid=0 uid=0 gid=0 ses=2 pid=499 comm="weston" exe="/usr/bin/weston" sig=11 res=1
Mar 24 10:25:54 imx8mp-lpddr4-evk audit[499]: ANOM_ABEND auid=0 uid=0 gid=0 ses=2 pid=499 comm="weston" exe="/usr/bin/weston" sig=11 res=1
Mar 24 10:25:55 imx8mp-lpddr4-evk systemd[1]: weston.service: Main process exited, code=killed, status=11/SEGV
Mar 24 10:25:55 imx8mp-lpddr4-evk systemd[1]: weston.service: Failed with result 'signal'.
Is there any way to solve this problem?
Which version of BSP are you using?
Hi, @jimmychan
We use 5.10.72
Is there any problem using the IMX8MP with 2GB of RAM?
(IMX8MP EVK uses 6BG RAM as a default.)
Could you check points for applying 2GB RAM ? (If there is no problem working with 2GB RAM)
hello,
A year has passed. Have you solved this problem yet?