summaryrefslogtreecommitdiff
path: root/drivers/mxc/gpu-viv/hal/os/linux/kernel
diff options
context:
space:
mode:
authorXianzhong <xianzhong.li@nxp.com>2018-07-23 18:29:15 +0800
committerJason Liu <jason.hui.liu@nxp.com>2019-02-12 10:32:56 +0800
commit62531599fa57096a20b38154241a70c8d3f928d6 (patch)
treec0eeb9e7a3c0e7fdef46202092441411c6bced76 /drivers/mxc/gpu-viv/hal/os/linux/kernel
parentce94943ffc58737f0e73d349ad3e8f5555ec31cf (diff)
MGS-4022 [#imx-1070] fix kernel panic with opencl test_buffers
the user memory will add the padding pages to meet hardware alignment, need set non-contiguous flag to avoid contigous mapping in GPU MMU. Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Diffstat (limited to 'drivers/mxc/gpu-viv/hal/os/linux/kernel')
-rw-r--r--drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.c
index 223533df8628..4293ac9fbc75 100644
--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.c
+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.c
@@ -501,7 +501,8 @@ _UserMemoryAttach(
Mdl->priv = userMemory;
Mdl->numPages = userMemory->pageCount + userMemory->extraPage;
- Mdl->contiguous = (userMemory->chunk_count == 1);
+ /* Not contiguous with extra pages */
+ Mdl->contiguous = gcvFALSE;
gcmkFOOTER_NO();
return gcvSTATUS_OK;