Vivante GPU issue

cancel
Showing results for 
Search instead for 
Did you mean: 

Vivante GPU issue

Jump to solution
1,249 Views
benisandu
Contributor I

Hello,

First of all, I'm sorry if this is not the right place to ask, it's the first time I'm doing this. I don't expect a direct solution, but any hint or idea regarding my issue will be greatly appreciated.

I'm working on creating a BSP for a board similar to Nitrogen6 Max from Boundary Devices, based on a 4.8 Kernel. Our board has 4GB of RAM so we need CONFIG_HIGHMEM enabled in order to use all available memory. Problem is that the Galcore driver implementation does not work with HIGHMEM enabled on 4.8 kernel (and I assume on any recent kernel version).

I've been trying to debug and fix this for the past few days, with no success. Apparently, because of memory allocation changes between kernels, the driver will try to allocate and use memory from the >2GB area, and was built to only work with lowmem area. 

Is there any Galcore driver implementation that takes into account usage of buffers from >2GB memory area? I saw that the Freescale Yocto BSP uses the out-of-tree kernel-module-imx-gpu-viv, but the most recent version is still built against 4.1 kernel, and I could not find anything which works with more recent kernels.

I have no previous experience with this driver and it's pretty complex and slow to debug, so as I said, any hint could help.

Thank you,

Beni

Labels (1)
0 Kudos
1 Solution
404 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Beni

for gpu debugging one can look at
IDE - Debug, Compile and Build Tools
i.MX6D/Q/DL/S/SX GPU Tools

http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-process...
Latest nxp bsp releases are described on
http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i....
unfortunately there is no 4.8 Kernel. In general one can also post this to meta-fsl-arm mailing list
https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
3 Replies
405 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Beni

for gpu debugging one can look at
IDE - Debug, Compile and Build Tools
i.MX6D/Q/DL/S/SX GPU Tools

http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-process...
Latest nxp bsp releases are described on
http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i....
unfortunately there is no 4.8 Kernel. In general one can also post this to meta-fsl-arm mailing list
https://lists.yoctoproject.org/listinfo/meta-freescale

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
404 Views
benisandu
Contributor I

Hi Igor,

Thank you for the help, I solved this issue recently by telling the kernel to allocate contiguous memory for the GPU from the <2GB memory range.

Beni

0 Kudos
404 Views
liyigang
Contributor III

How to tell the kernel to allocate continuous memory?

0 Kudos