AnsweredAssumed Answered

i.MX6 GPU Memory Allocation

Question asked by David Wretman on Mar 21, 2018
Latest reply on Mar 22, 2018 by David Wretman

Hello,

 

I am working on a custom i.MX6Q based board with 1 GiB of RAM. I am using Linux kernel version 4.1.15-2.0.0.

 

Currently the GPU is allocated 32MB of RAM as confirmed by:

# cat /sys/kernel/debug/gc/meminfo
VIDEO MEMORY:
gcvPOOL_SYSTEM:
Free : 9792956 B
Used : 23761476 B
Total : 33554432 B
gcvPOOL_CONTIGUOUS:
Used : 0 B
gcvPOOL_VIRTUAL:
Used : 0 B

NON PAGED MEMORY:
Used : 0 B

 

I want to increase this allocation to 64 or 128 MB. I have tried to achieve this by setting the kernel command line parameter galcore.contiguousSize=67108864, but /sys/kernel/debug/gc/meminfo still reports 32 MB. The galcore info on the other hand indicates that the driver seems to have accepted my kernel command line:

Galcore version 5.0.11.41671
Galcore options:
irqLine = 301
registerMemBase = 0x00130000
registerMemSize = 0x00004000
irqLine2D = 302
registerMemBase2D = 0x00134000
registerMemSize2D = 0x00004000
irqLineVG = 303
registerMemBaseVG = 0x02204000
registerMemSizeVG = 0x00004000
contiguousSize = 67108864
contiguousBase = 0x00000000
bankSize = 0x00000000
fastClear = -1
compression = -1
signal = 48
powerManagement = -1
baseAddress = 0x00000000
physSize = 0x80000000
logFileSize = 0 KB
recovery = 1
stuckDump = 0
gpuProfiler = 0

 

Using the same command line parameter to lower the memory allocation works for me e.g. setting galcore.contiguousSize=8388608, gives:


# cat /sys/kernel/debug/gc/meminfo
VIDEO MEMORY:
gcvPOOL_SYSTEM:
Free : 185276 B
Used : 8203332 B
Total : 8388608 B
gcvPOOL_CONTIGUOUS:
Used : 15558144 B
gcvPOOL_VIRTUAL:
Used : 0 B

NON PAGED MEMORY:
Used : 0 B

This makes me think I need to adjust the size of some other memory area to allocate more to the GPU. I just cannot figure out what. Please help me.

 

Regards,

David

Outcomes