summaryrefslogtreecommitdiff
path: root/drivers/mxc
diff options
context:
space:
mode:
authorXianzhong <xianzhong.li@nxp.com>2018-07-23 18:29:15 +0800
committerLeonard Crestez <leonard.crestez@nxp.com>2018-08-24 12:41:33 +0300
commit0da343c5a27d36a19b16a650102b6e39060a3a12 (patch)
tree64e99f0eff406d5446dadde627a8cd0272b8e176 /drivers/mxc
parent31b267efc5f1148ea2a298310e2f1c8aea1f0ae4 (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')
-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 690d2027b8ff..cd7f2d389652 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
@@ -454,7 +454,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;