22 Dec, 2020
1 commit
-
include more bug-fixings for vulkan and opencl3.0
Signed-off-by: Xianzhong
14 Dec, 2020
39 commits
-
enable asynchronous unlock even if define gcdENABLE_VG
Signed-off-by: Xianzhong
-
vg kernel does not suppport asynchronous event, uses sync unlock
Signed-off-by: Xianzhong
-
GPU hardware access cannot be guaranteed to complete after unlock memory,
Need perform asynchronous unlock to avoid GPU access the freed MMU page.Signed-off-by: Xianzhong
-
include critical bug-fixings for 6.4.3.p1 driver
Signed-off-by: Xianzhong
-
fix drm header and function related changes for new kernel
Signed-off-by: Xianzhong
-
weston-simple-dmabuf-egl has failure without drm render node,
need enable vivante drm to fix dmabuf failure issue.Signed-off-by: Xianzhong
-
checked return value
Date:30th Oct,2020
Signed-off-by Ya Zhou -
Signed-off-by: Jiyu Yang
-
Signed-off-by: Jiyu Yang
-
Signed-off-by: Jiyu Yang
-
this also fix LF-2472
Signed-off-by: Jiyu Yang -
Signed-off-by: Jiyu Yang
-
Signed-off-by: Jiyu Yang
-
checked return value
Date:30th Oct,2020
Signed-off-by Ya Zhou -
Signed-off-by: Xianzhong
-
shall use the Bytes variable instead of heapBytes,
also fix bankSize assignment from heapBytes.Signed-off-by: Xianzhong
-
default set two banks for large and small memory in 16:1,
there is no function impact for specified bank size.Signed-off-by: Xianzhong
-
[Solution] add Node null check
[Problem]CID 6124050 (#8 of 8): Dereference after null check (FORWARD_NULL)
14. var_deref_op: Dereferencing null pointer NodeSigned-off-by: Jiyu Yang
-
[Solution]add U prefix to declare it is uint32_t type
[Problem]CID 6124050 (#8 of 8): Dereference after null check (FORWARD_NULL)
14. var_deref_op: Dereferencing null pointer NodeSigned-off-by: Jiyu Yang
-
add new feature for openvx 1.3 and vulkan 1.2.1,
include more bug-fixing for new kernel version.Signed-off-by: Xianzhong
-
add register access check for gckHARDWARE_SetClock
fix below coverity issues:
11056121
11056122
11056123Signed-off-by: Xianzhong
-
gckOS_WaitSignal return timeout error in _CommandStall,
the problem is caused by memremap with MEMREMAP_WT.Signed-off-by: Xianzhong
-
support new feature list for Vivante GPU
- OpenGL ES 3.2.6.1
- Vulkan 1.1.6.3/1.2.1.0
- OpenVX 1.2 NN extensionSigned-off-by: Xianzhong
-
Update Kconfig to cope with upstream change
commit 84af7a6194e4 ("checkpatch: kconfig: prefer 'help' over
'---help---'").Signed-off-by: Dong Aisheng
-
Update gpu-viv driver to comply with upstream API change:
da1c55f1b272 ("mmap locking API: rename mmap_sem to mmap_lock")Signed-off-by: Li Yang
-
pud_offset() changed since:
5d4d4a4a2866 ("arm/arm64: add support for folded p4d page tables")CC drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.o
In file included from ../arch/arm64/include/asm/thread_info.h:17,
from ../include/linux/thread_info.h:38,
from ../arch/arm64/include/asm/preempt.h:5,
from ../include/linux/preempt.h:78,
from ../include/linux/spinlock.h:51,
from ../include/linux/seqlock.h:36,
from ../include/linux/time.h:6,
from ../arch/arm64/include/asm/stat.h:12,
from ../include/linux/stat.h:6,
from ../include/linux/module.h:13,
from ../drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h:61,
from ../drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
../drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c: In function ‘_QueryProcessPageTable’:
../include/linux/compiler.h:284:2: error: incompatible type for argument 1 of ‘p4d_page_paddr’
284 | ({ \
| ~^~~~~~~~~~~
| |
| pgd_t {aka struct }
285 | union { typeof(x) __val; char __c[1]; } __u; \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
286 | if (check) \
| ~~~~~~~~~~~~~~~~~~
287 | __read_once_size(&(x), __u.__c, sizeof(x)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
288 | else \
| ~~~~~~~~~~~~~
289 | __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290 | smp_read_barrier_depends(); /* Enforce dependency ordering from x */ \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
291 | __u.__val; \
| ~~~~~~~~~~~~~~~~~~
292 | })
| ~~
../arch/arm64/include/asm/memory.h:270:45: note: in definition of macro ‘__phys_to_virt’
270 | #define __phys_to_virt(x) ((unsigned long)((x) - physvirt_offset))
| ^
../arch/arm64/include/asm/pgtable.h:634:42: note: in expansion of macro ‘__va’
634 | #define pud_offset(dir, addr) ((pud_t *)__va(pud_offset_phys((dir), (addr))))
| ^~~~
../include/linux/compiler.h:293:22: note: in expansion of macro ‘__READ_ONCE’
293 | #define READ_ONCE(x) __READ_ONCE(x, 1)
| ^~~~~~~~~~~
../arch/arm64/include/asm/pgtable.h:633:52: note: in expansion of macro ‘READ_ONCE’
633 | #define pud_offset_phys(dir, addr) (p4d_page_paddr(READ_ONCE(*(dir))) + pud_index(addr) * sizeof(pud_t))
| ^~~~~~~~~
../arch/arm64/include/asm/pgtable.h:634:47: note: in expansion of macro ‘pud_offset_phys’
634 | #define pud_offset(dir, addr) ((pud_t *)__va(pud_offset_phys((dir), (addr))))
| ^~~~~~~~~~~~~~~
../drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:434:15: note: in expansion of macro ‘pud_offset’
434 | pud = pud_offset(pgd, logical);Signed-off-by: Dong Aisheng
-
put clk_prepare and clk_prepare into set_power function
Signed-off-by: minjie.zhuang@nxp.com
-
Update GPU database. And fix VSI profiler GPU hang issue, also update power management
register for VIP.Signed-off-by: Ella Feng
-
Make this change only for 5.5 kernel
Revert "mxc: gpu-viv: Remove dma-buf map/unmap hooks"
This reverts commit 5c6c9d8bed6d0e6adc57de9f422fd19bf8a569cd.Date: 21 Apr, 2020
Signed-off-by: Ella Feng -
Replace ioremap_nocache() with ioremap, and use updated timespec struct instead of 32bit one.
Date: 21 Apr, 2020
Signed-off-by: Ella Feng -
fix weston build error such as:
/opt/fsl-imx-internal-xwayland/5.4-zeus/sysroots/aarch64-poky-linux/usr/include/HAL/shared/gc_hal_types_shared.h:17:10:
fatal error: gc_hal_version.h: No such file or directory
17 | #include "gc_hal_version.h"
| ^~~~~~~~~~~~~~~~~~
compilation terminated.Signed-off-by: Minjie Zhuang
Signed-off-by: Yong Gan -
integrate vsi patch base on 6.4.0.p2 from 20200320 to 20200408
Signed-off-by: Minjie Zhuang
-
integrate vsi patch base on 6.4.0.p2 from 20200306 to 20200320
Signed-off-by: Minjie Zhuang
-
pud_offset() changed since:
5d4d4a4a2866 ("arm/arm64: add support for folded p4d page tables")CC drivers/mxc/gpu-viv/hal/os/linux/kernel/allocator/default/gc_hal_kernel_allocator_user_memory.o
In file included from ../arch/arm64/include/asm/thread_info.h:17,
from ../include/linux/thread_info.h:38,
from ../arch/arm64/include/asm/preempt.h:5,
from ../include/linux/preempt.h:78,
from ../include/linux/spinlock.h:51,
from ../include/linux/seqlock.h:36,
from ../include/linux/time.h:6,
from ../arch/arm64/include/asm/stat.h:12,
from ../include/linux/stat.h:6,
from ../include/linux/module.h:13,
from ../drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_linux.h:61,
from ../drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:56:
../drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c: In function ‘_QueryProcessPageTable’:
../include/linux/compiler.h:284:2: error: incompatible type for argument 1 of ‘p4d_page_paddr’
284 | ({ \
| ~^~~~~~~~~~~
| |
| pgd_t {aka struct }
285 | union { typeof(x) __val; char __c[1]; } __u; \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
286 | if (check) \
| ~~~~~~~~~~~~~~~~~~
287 | __read_once_size(&(x), __u.__c, sizeof(x)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
288 | else \
| ~~~~~~~~~~~~~
289 | __read_once_size_nocheck(&(x), __u.__c, sizeof(x)); \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290 | smp_read_barrier_depends(); /* Enforce dependency ordering from x */ \
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
291 | __u.__val; \
| ~~~~~~~~~~~~~~~~~~
292 | })
| ~~
../arch/arm64/include/asm/memory.h:270:45: note: in definition of macro ‘__phys_to_virt’
270 | #define __phys_to_virt(x) ((unsigned long)((x) - physvirt_offset))
| ^
../arch/arm64/include/asm/pgtable.h:634:42: note: in expansion of macro ‘__va’
634 | #define pud_offset(dir, addr) ((pud_t *)__va(pud_offset_phys((dir), (addr))))
| ^~~~
../include/linux/compiler.h:293:22: note: in expansion of macro ‘__READ_ONCE’
293 | #define READ_ONCE(x) __READ_ONCE(x, 1)
| ^~~~~~~~~~~
../arch/arm64/include/asm/pgtable.h:633:52: note: in expansion of macro ‘READ_ONCE’
633 | #define pud_offset_phys(dir, addr) (p4d_page_paddr(READ_ONCE(*(dir))) + pud_index(addr) * sizeof(pud_t))
| ^~~~~~~~~
../arch/arm64/include/asm/pgtable.h:634:47: note: in expansion of macro ‘pud_offset_phys’
634 | #define pud_offset(dir, addr) ((pud_t *)__va(pud_offset_phys((dir), (addr))))
| ^~~~~~~~~~~~~~~
../drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_os.c:434:15: note: in expansion of macro ‘pud_offset’
434 | pud = pud_offset(pgd, logical);Signed-off-by: Dong Aisheng
-
update gc_feature_database.h file for patch_base_on_6.4.0.p2_from_20200227_20200306
update gc_hal_enum.h for fixing R/B swap issue with 2D HWC composition on m865Signed-off-by: Minjie Zhuang
-
support memory-region for gpu reserved memory from DTS,
keep contiguous_mem compatibility if no memory-region.Signed-off-by: Xianzhong
-
CL247796 Add cores in order, 3D/VIP cores, 2D core, VG
core.Signed-off-by: Xianzhong
-
Need set 4GB address limit flag on 8mm/8mn as 8mq,
because these platform GPU can't handle physical
address large than 4GB due to hardware system
integration limitation.Signed-off-by: Richard Liu
-
CONFIG_ZONE_DMA32 is not enabled in ARM32 build,
need set contiguous flag for CMA_LIMIT request.Signed-off-by: Xianzhong