[Letux-kernel] PVR/SGX driver for OMAP5

H. Nikolaus Schaller hns at goldelico.com
Sun Oct 30 17:59:04 CET 2016


Hi Jonny,

> Am 27.10.2016 um 22:49 schrieb Jonathan Hamilton <jtrhamilton at gmail.com>:
> 
> 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)

Thanks!

This time I managed to cherry-pick the patches so that they are part of the next letux-releases and they appear to compile.

What I also have added is a submodule linked to the original TI repo:

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

With that it should be easy to clone/pull the letux kernel trees, update the submodule and compile the kernel module.

What I also want to try is to add some drivers/gpu/pvr/Kconfig (something we almost have for the OMAP3 SGX) so that it
can be added to the letux_defconfig.

My dream behind is that the Letux kernel can support all OMAP3/4/5 SGX variants by just configuring and compiling. At least on the kernel side.

Everything is still changing here, so that it will need some days to sort out and be really able to test something.

> 
> 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

Yes, hwmods are evil...

I already asked Tero Kristo for the reset-controller hwmods which we appear to need for the SGX530/540. Maybe he can later also help to sort out the SGX544 case.

BR and thanks,
Nikolaus

> 
> 
> -- 
> Jonny
> 
> On Thu, Oct 27, 2016 at 1:34 PM, aTc <atc at 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 at pyra-handheld.com
> http://pyra-handheld.com/cgi-bin/mailman/listinfo/kernel
> 



More information about the Letux-kernel mailing list