FYI I rebased those patches on letux-4.8.4 and pushed to https://github.com/JonnyH/gta04-kernel/tree/pyra-sgx544 (including the correct IRQ line)

I'm pretty sure the hwmod change is not correct in some way, but it builds and seems to startup the sgx on my omap5-evm


--
Jonny

On Thu, Oct 27, 2016 at 1:34 PM, aTc <atc@k-n-p.org> wrote:
On 10/27/2016 09:08 PM, H. Nikolaus Schaller wrote:
Hi,
do you have some links where you get the full source code
of the omap5 sgx kernel driver?

I have not yet found it on the TI pages. Only the OMAP3/4
SGX530/540 sources where the latest appears to be
Graphics_SDK_5_01_01_02:

http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html

BR and thanks,
Nikolaus


https://github.com/JonnyH/omap5-sgx-ddk-linux/tree/ti-img-sgx/1.14.3699939/k4.4

Is the one we used, JonnyH updated the TI ones to work with later kernels, and changed around some bits so it would use the one for the dra7 (or something like that)

The two patches included should be applied to the kernel.
The first patch needs a small modification, in that it should be using interrupt 21 instead of 16.

I haven't tried it since the 4.7 kernel, since at the moment the driver doesn't work if the TILER patches are active, something Matthijs was going to look at.

As far as usermode libs go, we used http://git.ti.com/graphics/omap5-sgx-ddk-um-linux/trees/ti-img-sgx/1.14.3699939/targetfs/jacinto6evm

Which also needs a few modifications. (libsrv_um.so needs the byte at offset 0x98eb changed from d0 to e0 , and a symlink needs to be made from /usr/lib/arm-linux-gnueabihf/libgbm.so.2 to /usr/lib/arm-linux-gnueabihf/libgbm.so.1.
libdrm2 >=2.4.68 has to be installed through debian backports.)


I made an omap5-sgx-ddk-um-linux package (which is on the http://packages.pyra-handheld.com/debian/ repo), that takes care of most of that stuff, and provides a systemd service to load the driver)
_______________________________________________
Kernel mailing list
Kernel@pyra-handheld.com
http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel