Skip to content
Snippets Groups Projects
Commit f57efcb4 authored by yuan.tian's avatar yuan.tian Committed by Gianfranco Mariotti
Browse files

MGS-6664-1 [#imx-2955] GPU AXI BUS error


Only 8MQ, 8MM, 8MN boards can't access 4G above memory and need to
set gcvPLATFORM_FLAG_LIMIT_4G_ADDRESS flagbits. Totalram_pages check doesn't
include kernel memory, reserved memory, causing this flagbits is not set and
AXI BUS error on customer's board. So we remove this redundant check.

Signed-off-by: default avatarGuangliu Ding <guangliu.ding@nxp.com>
parent bb0ec757
No related branches found
No related tags found
1 merge request!156Draft: [i.MX] mxc: gpu-viv: apply patches
......@@ -1894,12 +1894,7 @@ _AdjustParam(
if ((of_find_compatible_node(NULL, NULL, "fsl,imx8mq-gpu") ||
of_find_compatible_node(NULL, NULL, "fsl,imx8mm-gpu") ||
of_find_compatible_node(NULL, NULL, "fsl,imx8mn-gpu")) &&
#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,0,0)
((Args->baseAddress + totalram_pages() * PAGE_SIZE) > 0x100000000))
#else
((Args->baseAddress + totalram_pages * PAGE_SIZE) > 0x100000000))
#endif
of_find_compatible_node(NULL, NULL, "fsl,imx8mn-gpu")))
{
Platform->flagBits |= gcvPLATFORM_FLAG_LIMIT_4G_ADDRESS;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment