yes, the imx8qm supports 4GB(per controller) max, this is my misunderstanding, I thought tw_wang needs 8GB/controller, for total 8GB, this is patch
SCFW lilmits the DDR size to 6GB both in DDR tool and Linux BSP.
1. Replace mx8qmb0_scfw_download.bin in DDR_tool/bin with the attached binary. You can stress test all 8GB memory size with your DDR script.
2. Modify board_system_config() in board.c in your SCFW project as follows
/* Board has 6GB8GB memory so fragment upper region and retain 4GB */
BRD_ERR(rm_memreg_frag(pt_boot, &mr_temp, 0x980000000ULL, 0xA00000000ULL,
0xFFFFFFFFFULL));