Commit Graph

8 Commits

Author SHA1 Message Date
05ed5881e6 MGS-4120 [#ccc] Enable GPU workaround on 4GB LPDDR4 platform
Added a flagbits in soc_platform to workaround Soc platform. Add a
check for memory address beyond 4G for 850d mscale.

Date: 10th Aug, 2018
Signed-off-by: Ella Feng <ella.feng@nxp.com>
2019-02-12 10:33:16 +08:00
3928af1918 MGS-3255-43 [#ccc] fix gpu user memory corruption
fix memory overwrite since out of range in last page,
remove dma_sync_single_for_device to avoid over-touch.

this fix QM gpu crash with test_buffers stress case.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2019-02-12 10:33:04 +08:00
cc50467d73 MGS-4103 [#imx-1070] fix gpu axi bus error on 6sx
only add the padding pages for user pageable memory,

Revert "MGS-4022 [#imx-1070] fix kernel panic with opencl test_buffers"
This reverts commit 9253786bcfd2fa17132c5057a18eb75b10ea3336.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2019-02-12 10:32:57 +08:00
6237540c26 MGS-3255-41 gpu: fix 6.2.4.p2 test_buffer failures
fix read buffer fence node for hw copy,
add cpu cache line check for write buffer,
invalidate cache after pipeline complete,
flush head and tail pages for user memory.

fix 630a849f3a4087a98b0425c261f474d178150307
 "MGS-3255-39 [#ccc] fix opencl cache issue"

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2019-02-12 10:32:57 +08:00
62531599fa 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>
2019-02-12 10:32:56 +08:00
bbf3d583f9 MGS-3904 gpu: integrate vivante 6.2.4.p2 driver
version upgrade from 6.2.4.p1.150331 to 6.2.4.p2.163672

fixed gpu kernel panic for CONFIG_ARM64_SW_TTBR0_PAN,
support frequency query for gpu shader and core.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2019-02-12 10:32:40 +08:00
fe264c35ac MGS-3892 [#imx-1027] fix dmabuf physical mapping issue
g2d_buf_from_fd use gcoHAL_WrapUserMemory to wrap dmabuf handle,
and then use gcoOS_LockVideoMemory to retrieve physical address.

dmabuf is contiguous, need set contiguous flag to avoid MMU mapping,
otherwise g2d_buf_from_fd return the invalid physical address,

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2019-02-12 10:31:47 +08:00
6b10e9c063 MGS-3705-2 gpu: add 6.2.4.p1 driver for 4.14 kernel
integrate 6.2.4.p1 driver and enable gpu build config,
fix 4.14 linux kernel build break in gpu-viv driver.

source branch: gpu-viv6/fsl_6.2.4.p1
source commit: 8aa3fcbcad9f51441b768bb41ce5c2686f7f143f

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2019-02-12 10:31:17 +08:00