Vivante galcore module slow load time and NO_DMA_COHERENT

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Vivante galcore module slow load time and NO_DMA_COHERENT

1,981 次查看
francescodolcin
Contributor I

Hi all,

I am using Vivante GPU on i.MX 6Q on Linux.

As already noticed by others (Imx6QP :Why galcore spend a lot of time loading resources? ) galcore module is too slow to load (>700ms).

This is not compatible with our application and we need a solution to have a faster loading.

After some investigation we found that setting NO_DMA_COHERENT config option is improving the situation a lot. We have not seen any evident problem doing this (just guessing ... maybe it is working because there is no IOMMU between GPU and i.MX6 processor?).

Any comments?

Any better solution to suggest?

Thanks,

Francesco

标签 (3)
标记 (2)
0 项奖励
回复
4 回复数

1,288 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Fancesco,

In case of alloc_pages, Pages are provided in sets of 2^N, that could be a big allocations memory wastage, however I agree that NO_DMA_COHERENT improve the galcore loading time.

Regards

0 项奖励
回复

1,288 次查看
csoapy
Contributor III

NO_DMA_COHERENT has no obvious improvement on official BSP imx-4.14.98-2.1.0

Here is my test:

pastedImage_1.png

pastedImage_4.png

pastedImage_5.png

0 项奖励
回复

1,288 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Francesco,

Thanks for the tip, however take in mind that when using NO_DMA_COHERENT kernel manages memory via "alloc_pages"

Regards

0 项奖励
回复

1,288 次查看
francescodolcin
Contributor I

Hi Bio_TICFSL,

could you please tell me what are the drawbacks of using NO_DMA_COHERENT config option?

And if no drawbacks are expected for what reason is not enabled by default?

Thanks,

Francesco

0 项奖励
回复