GPU Memory / Max Resolution in Linux 3.10.53

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

GPU Memory / Max Resolution in Linux 3.10.53

885 Views
erezsteinberg
Contributor IV

Hello experts,

On my custom iMX6DL board, I have a low resolution LCD (320x240) connected over 24-bit parallel bus.

The fb is configured correctly, and I can see images properly.

I am also able to get the GPU to run when using fsl-image-qt5-fb-imx6qdlsolo rootfs.

(Although, some GPU demos get make the device halt).

Some of the demos seem to be trying to allocate 1920x1080 resolution, or complaining that default resolution was not set.

Question #1 -- Is there a way to configure the GPU for the default output resolution?

Question #2 -- Since our display is very small, how can I reduce the GPU driver memory consumption?

(In 3.0.35 this was easy... but in 3.10.53, I can't find where to do this).

Regards,

Erez

Labels (5)
0 Kudos
1 Reply

373 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Erez,

If the display supports multiple resolution types, use the following commands for a query:

root@imx6qsabresd:~# export DISPLAY=:0.0

root@imx6qsabresd:~# xrandr

Screen 0: minimum 240 x 240, current 1920 x 1080, maximum 8192 x 8192

DISP3 BG connected 1920x1080+0+0 (normal left inverted right x axis y axis) 0mm x 0mm

S:1920x1080p-50 50.0*

S:1920x1080p-60 60.0

S:1280x720p-50 50.0

S:1280x720p-60 60.0

S:720x576p-50 50.0

S:720x480p-60 59.9

V:640x480p-60 60.0

S:640x480p-60 59.9

As example:

Change the resolution:

root@imx6qsabresd:~# xrandr -s 1920x1080

Reserved GPU memory size can be adjusted by adding "gpumem=" parameters in kernel commandline. It's size is highly depends on the screen resolution, the video stream decoding requirement and the camera resolution, fps.

    gpumem=M

Since It is very hard to calculate exactly how much memory would be used by the GPU. I suggest you to read the memory management document for the i.MX6 for complete information.

https://community.freescale.com/docs/DOC-93591

Hope this helps

0 Kudos