Hi,
I'm trying to get accelerated graphics working in imx53 running Linux 2.6.35.3 and X11.
I got the imx_drv.so driver compiled and loaded. The problem is that while loading the driver the following error is printed to X11-log:
[ 99548.775] (EE) imx(0): Exclusive access for Z160 interface failed.
[ 99548.775] (II) imx(0): No acceleration in use
I've been trying to eliminate things that might use Z160, but can't seem to find any. Any idea what might be preventing Exclusive access of the Z160 interface? I'll add the full Xorg.log to this post.
xorg.conf on display driver part is:
Section "Device"
Identifier "i.MX Accelerated Framebuffer Device"
Driver "imx"
Option "fbdev" "/dev/fb0"
Option "FormatEPDC" "Y8INV"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
Option "DPMS" "No"
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "i.MX Accelerated Framebuffer Device"
EndSection
Original Attachment has been moved to: Xorg.0.log.zip
Hi,
At least the libraries seems to be there and I was able to run the demo applications that come with the driver. 2dblt_perf, es11ex, tiger etc. and they worked okay. And es11ex even needs the X to be running before it works. I got FPS about 52 and CPU usage for that program was less than 10% so it would seem that acceleration is working?
Now I'm even more puzzled than before.
But I'm puzzled about this log line:
[ 99548.775] (II) imx(0): No acceleration in use
Interestingly the es11ex works just as good when only fbdev - driver is loaded instead of imx as display driver. And FPS is pretty much the same as is the CPU usage.
So I'm not sure if the acceleration was in fact working first time I ran the es11ex.
I think 52 FPS is quite decent value and without gpu it
is difficult to obtain it using just arm core software implementation.
As for log line - had you tried Freescale Demo
L2.6.35_MX53_ER_1109_IMAGE_ : Linux Binary Demo Files
on Freescale reference board? Probably it is caused by code
modifications.
I have the QSB-board as well that I'm able to use.
I can't use the exact same software, but I build Yocto image that uses same version of the driver. There I cannot see the same error message in log saying that the acceleration is not in use. The speed of the es11ex is faster too about 70FPS, but that can be due the CPU running at 1GHz where as on our customer HW the imx537 runs at 800MHz.
I'll see if I can get the demo image, you mentioned, to run and how fast it'll do things.
I did test Yocto only for comparison. I was able to build it and got that 70FPS and about 10% CPU load. When loading the Yocto image from url you sent the FPS was pretty much 50FPS and CPU load was much lower being between 0 and 5% or so. Looking at the Xorg.log it says the same as my Yocto-image ie. and no error about no Acceleration in use etc.
Still not sure if my original image has the acceleration and how to confirm it.
I think except performance there is no easy way to confirm it.
Folks, a BIG FAT WARNING:
Do **NOT** use the proprietary kgsl stuff. It's completely broken by design.
It gives userland full access to physical / kernel memory !
Part of the problem is just horrible coding (not even checking array bounds),
the other part is a fundamental design issue.
[imx53] WARNING! Do NOT use the proprietary GPU drivers / KGSL stuff - MAJOR RISK!
Anyways, who wants to run such an *ancient* kernel ?
I'm running 4.0.3 (on tqma53), with IPU and VPU - using *FREE* drivers.
Can't open that link. Says "Access to this place or content is restricted. If you think this is a mistake, please contact your administrator or the person who directed you here."
Where did you find the *FREE* drivers for accelerated graphics? We've checked 3.x - series kernel and they have other drivers, but the accelerated graphics that has some binary blob in drivers.