Skip to content
Snippets Groups Projects
Commit 75c366e2 authored by Guangliu Ding's avatar Guangliu Ding Committed by Gianfranco Mariotti
Browse files

MGS-6664-4 [#imx-2955] Fix OpenCL regression issue


Since memory for sg_table doesn't have 4G limit, need to remove
__GFP_DMA32 from normal_gfp when calling sg_alloc_table_from_pages,
which causes error info "Unexpected gfp: 0x4 (GFP_DMA32). Fixing up to
gfp: 0x12220 (__GFP_HIGH|__GFP_ATOMIC|__GFP_NOWARN|__GFP_NORETRY).
Fix your code!" when doing test_integer_ops.

Signed-off-by: default avatarGuangliu Ding <guangliu.ding@nxp.com>
parent 4633fbd1
No related branches found
No related tags found
1 merge request!156Draft: [i.MX] mxc: gpu-viv: apply patches
......@@ -662,6 +662,9 @@ Alloc:
gcmkONERROR(_NonContiguousAlloc(mdlPriv, NumPages, gfp));
}
}
#if defined(CONFIG_ZONE_DMA32) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,37)
normal_gfp &= ~__GFP_DMA32;
#endif
#if gcdUSE_Linux_SG_TABLE_API
result = sg_alloc_table_from_pages(&mdlPriv->sgt,
mdlPriv->nonContiguousPages, NumPages, 0,
......
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