Skip to contentSkip to conversation

omap3-sgx-modules, libgles-omap3: add version 4.06.00.01

PATCH In review Denys Dmytriyenko 2 participants 9 messages May 3, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap3-sgx-modules, libgles-omap3: add version 4.06.00.01

From: Denys Dmytriyenko <[email protected]>

* Ported from Arago
* Added version 4.06.00.01 of the Graphics SDK which supports Power Management features for the AM335x
* Use a variable PLATFORM for the directory structure since newer SDKs use LinuxARMV7 and older SDKs use LinuxOMAP3
* Modifiy rc.pvr to check return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend.
* some header files like pvr2d.h and the GLES headers have moved to the top-level include directory so we need to copy them from there.

---
 .../omap3-sgx-modules_4.06.00.01.bb                |   47 +++++++++++++++++++
 recipes-graphics/libgles/libgles-omap3.inc         |   48 ++++++++++---------
 recipes-graphics/libgles/libgles-omap3/rc.pvr      |    7 +++
 .../libgles/libgles-omap3_4.06.00.01.bb            |   28 +++++++++++
 4 files changed, 107 insertions(+), 23 deletions(-)
 create mode 100644 recipes-bsp/powervr-drivers/omap3-sgx-modules_4.06.00.01.bb
 create mode 100644 recipes-graphics/libgles/libgles-omap3_4.06.00.01.bb
recipes-bsp/powervr-drivers/omap3-sgx-modules_4.06.00.01.bb new file +47 -0
new file mode 100644
index 0000000..8b549db
@@ -0,0 +1,47 @@
+DESCRIPTION = "Kernel drivers for the PowerVR SGX chipset found in the omap3 SoCs"
+LICENSE = "GPLv2"
+LIC_FILES_CHKSUM = "file://COPYING;md5=21228a42e27d1d104b31a83f7c9da935"
+
+TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
+require ../../recipes-ti/includes/ti-eula-unpack.inc
+
+SGXPV = "4_06_00_01"
+BINFILE := "Graphics_SDK_setuplinux_${SGXPV}.bin"
+
+inherit module
+
+MACHINE_KERNEL_PR_append = "c"
+PR = "${MACHINE_KERNEL_PR}"
+
+SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE}"
+
+SRC_URI[md5sum] = "bd0692875ab3f0bdb0f61464cf8472f9"
+SRC_URI[sha256sum] = "051baf6f18223ea12865ab3c4d514833c4d4da9e2ffdcb9439df881e8e7369f3"
+
+TI_BIN_UNPK_WDEXT="/Graphics_SDK_${SGXPV}"
+S = "${WORKDIR}${TI_BIN_UNPK_WDEXT}/GFX_Linux_KM"
+
+PVRBUILD = "release"
+export KERNELDIR = "${STAGING_KERNEL_DIR}"
+
+PACKAGE_STRIP = "no"
+
+TI_PLATFORM_omap3 = "omap3630"
+TI_PLATFORM_ti814x = "ti81xx"
+TI_PLATFORM_ti816x = "ti81xx"
+TI_PLATFORM_ti33x = "ti335x"
+
+MODULESLOCATION_omap3 = "dc_omapfb3_linux"
+MODULESLOCATION_ti814x = "dc_ti81xx_linux"
+MODULESLOCATION_ti816x = "dc_ti81xx_linux"
+MODULESLOCATION_ti33x = "dc_ti335x_linux"
+
+MAKE_TARGETS = " BUILD=${PVRBUILD} TI_PLATFORM=${TI_PLATFORM}"
+
+do_install() {
+	mkdir -p ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
+	cp ${S}/pvrsrvkm.ko \
+	   ${S}/services4/3rdparty/${MODULESLOCATION}/omaplfb.ko  \
+	   ${S}/services4/3rdparty/bufferclass_ti/bufferclass_ti.ko \
+	   ${D}/lib/modules/${KERNEL_VERSION}/kernel/drivers/gpu/pvr
+}
recipes-graphics/libgles/libgles-omap3.inc +25 -23

103 lines not on this page · raw message

recipes-graphics/libgles/libgles-omap3/rc.pvr +7 -0
index 00cd994..ef471fe 100755
@@ -42,6 +42,13 @@ fbset -vyres $(expr $YRES \* 3)
 sgxprepare () {
 	echo Starting PVR
 	insmod $(busybox find /lib/modules/$(uname -r) -name "pvrsrvkm.ko")
+
+	if [ "$?" != "0" ]
+	then
+		echo "Could not find pvrsrvkm driver"
+		exit 1
+	fi
+
 	modprobe omaplfb
 	modprobe bufferclass_ti
 
recipes-graphics/libgles/libgles-omap3_4.06.00.01.bb new file +28 -0
new file mode 100644
index 0000000..e0d3f35
@@ -0,0 +1,28 @@
+BINLOCATION_omap3  = "${S}/gfx_rel_es3.x"
+BINLOCATION_ti814x = "${S}/gfx_rel_es6.x"
+BINLOCATION_ti816x = "${S}/gfx_rel_es6.x"
+BINLOCATION_ti33x = "${S}/gfx_rel_es8.x"
+
+PLATFORM = "LinuxARMV7"
+
+require libgles-omap3.inc
+
+# download required binary distribution from:
+# http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/latest/index_FDS.html
+# see libgles-omap3.inc for detailed installation instructions
+
+SGXPV = "4_06_00_01"
+IMGPV = "1.7.783851"
+BINFILE := "Graphics_SDK_setuplinux_${SGXPV}.bin"
+
+SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/${BINFILE} \
+                   file://cputype \
+                   file://rc.pvr \
+                   file://sample.desktop \
+                   file://99-bufferclass.rules  \
+"
+
+SRC_URI[md5sum] = "bd0692875ab3f0bdb0f61464cf8472f9"
+SRC_URI[sha256sum] = "051baf6f18223ea12865ab3c4d514833c4d4da9e2ffdcb9439df881e8e7369f3"
+
+S = "${WORKDIR}"
Signature · 1 line
1.7.8.5
#1 lore raw

Op 3 mei 2012, om 08:33 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 10 lines

From: Denys Dmytriyenko <[email protected]>

* Ported from Arago
* Added version 4.06.00.01 of the Graphics SDK which supports Power Management features for the AM335x
* Use a variable PLATFORM for the directory structure since newer SDKs use LinuxARMV7 and older SDKs use LinuxOMAP3
* Modifiy rc.pvr to check return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend.

I keep bringing this up every few months: what's the plan to add the necessary hooks to the kernel module to export the core revision in sysfs instead of using devmem2? The kernel module knows about the right memory addressed and turns on the clocks it needs. And better: we can get rid of bogus ES revisions like 'ES8' since that's exactly the same core as 'ES6' from a userspace point of view.

regards,

Koen

#2 lore raw
Quoted 14 lines · Koen Kooi

Op 3 mei 2012, om 08:33 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 10 lines

From: Denys Dmytriyenko <[email protected]>

* Ported from Arago
* Added version 4.06.00.01 of the Graphics SDK which supports Power Management features for the AM335x
* Use a variable PLATFORM for the directory structure since newer SDKs use LinuxARMV7 and older SDKs use LinuxOMAP3
* Modifiy rc.pvr to check return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend.

Quoted 6 lines

I keep bringing this up every few months: what's the plan to add the necessary hooks to the kernel module to export the core revision in sysfs instead of using devmem2? The kernel module knows about the right memory addressed and turns on the clocks it needs. And better: we can get rid of bogus ES revisions like 'ES8' since that's exactly the same core as 'ES6' from a userspace point of view.

Thanks, I will forward your questions and suggestions to the Graphics team. Meanwhile, do you have any comments about the patch?

Signature · 1 line
Denys
#3 lore raw

Op 3 mei 2012 om 19:02 heeft Denys Dmytriyenko <[email protected]> het volgende geschreven:

Quoted 22 lines · Koen Kooi
Quoted 14 lines

Op 3 mei 2012, om 08:33 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 10 lines

From: Denys Dmytriyenko <[email protected]>

* Ported from Arago
* Added version 4.06.00.01 of the Graphics SDK which supports Power Management features for the AM335x
* Use a variable PLATFORM for the directory structure since newer SDKs use LinuxARMV7 and older SDKs use LinuxOMAP3
* Modifiy rc.pvr to check return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend.

Quoted 6 lines

I keep bringing this up every few months: what's the plan to add the necessary hooks to the kernel module to export the core revision in sysfs instead of using devmem2? The kernel module knows about the right memory addressed and turns on the clocks it needs. And better: we can get rid of bogus ES revisions like 'ES8' since that's exactly the same core as 'ES6' from a userspace point of view.

Quoted 2 lines

Thanks, I will forward your questions and suggestions to the Graphics team. Meanwhile, do you have any comments about the patch?

X11 support needs to get redone completely for this one, dri and all :(

Quoted 3 lines
Signature · 2 lines
-- 
Denys
#4 lore raw
Quoted 26 lines · Koen Kooi

Op 3 mei 2012 om 19:02 heeft Denys Dmytriyenko <[email protected]> het volgende geschreven:

Quoted 22 lines · Koen Kooi
Quoted 20 lines

Op 3 mei 2012, om 08:33 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 10 lines

From: Denys Dmytriyenko <[email protected]>

* Ported from Arago
* Added version 4.06.00.01 of the Graphics SDK which supports Power Management features for the AM335x
* Use a variable PLATFORM for the directory structure since newer SDKs use LinuxARMV7 and older SDKs use LinuxOMAP3
* Modifiy rc.pvr to check return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend.

I keep bringing this up every few months: what's the plan to add the necessary hooks to the kernel module to export the core revision in sysfs instead of using devmem2? The kernel module knows about the right memory addressed and turns on the clocks it needs. And better: we can get rid of bogus ES revisions like 'ES8' since that's exactly the same core as 'ES6' from a userspace point of view.

Quoted 4 lines
Quoted 2 lines

Thanks, I will forward your questions and suggestions to the Graphics team. Meanwhile, do you have any comments about the patch?

X11 support needs to get redone completely for this one, dri and all :(

I haven't looked at X11 support - what's wrong with it?

Signature · 1 line
Denys
#5 lore raw

Op 3 mei 2012, om 19:05 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 27 lines · Koen Kooi
Quoted 26 lines

Op 3 mei 2012 om 19:02 heeft Denys Dmytriyenko <[email protected]> het volgende geschreven:

Quoted 22 lines · Koen Kooi
Quoted 20 lines

Op 3 mei 2012, om 08:33 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 10 lines

From: Denys Dmytriyenko <[email protected]>

* Ported from Arago
* Added version 4.06.00.01 of the Graphics SDK which supports Power Management features for the AM335x
* Use a variable PLATFORM for the directory structure since newer SDKs use LinuxARMV7 and older SDKs use LinuxOMAP3
* Modifiy rc.pvr to check return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend.

I keep bringing this up every few months: what's the plan to add the necessary hooks to the kernel module to export the core revision in sysfs instead of using devmem2? The kernel module knows about the right memory addressed and turns on the clocks it needs. And better: we can get rid of bogus ES revisions like 'ES8' since that's exactly the same core as 'ES6' from a userspace point of view.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Thanks, I will forward your questions and suggestions to the Graphics team. Meanwhile, do you have any comments about the patch?

X11 support needs to get redone completely for this one, dri and all :(

I haven't looked at X11 support - what's wrong with it?

You need to rebuild the omap3-sgx-modules with DRI support, install the extra modules, etc. Then you need to install the xorg module and hope the ABIs match, install a xorg.conf snippet, etc, etc.

The best way forward is to have the gfx team rebuild the X stuff against the X we have in OE, not the one IMGtec delivers.

#6 lore raw
Quoted 35 lines · Koen Kooi

Op 3 mei 2012, om 19:05 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 32 lines · Koen Kooi
Quoted 30 lines

Op 3 mei 2012 om 19:02 heeft Denys Dmytriyenko <[email protected]> het volgende geschreven:

Quoted 22 lines · Koen Kooi
Quoted 14 lines

Op 3 mei 2012, om 08:33 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 10 lines

From: Denys Dmytriyenko <[email protected]>

* Ported from Arago
* Added version 4.06.00.01 of the Graphics SDK which supports Power Management features for the AM335x
* Use a variable PLATFORM for the directory structure since newer SDKs use LinuxARMV7 and older SDKs use LinuxOMAP3
* Modifiy rc.pvr to check return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend.

Quoted 6 lines

I keep bringing this up every few months: what's the plan to add the necessary hooks to the kernel module to export the core revision in sysfs instead of using devmem2? The kernel module knows about the right memory addressed and turns on the clocks it needs. And better: we can get rid of bogus ES revisions like 'ES8' since that's exactly the same core as 'ES6' from a userspace point of view.

Quoted 2 lines

Thanks, I will forward your questions and suggestions to the Graphics team. Meanwhile, do you have any comments about the patch?

X11 support needs to get redone completely for this one, dri and all :(

Quoted 8 lines
Quoted 1 line

I haven't looked at X11 support - what's wrong with it?

You need to rebuild the omap3-sgx-modules with DRI support, install the extra modules, etc. Then you need to install the xorg module and hope the ABIs match, install a xorg.conf snippet, etc, etc.

The best way forward is to have the gfx team rebuild the X stuff against the X we have in OE, not the one IMGtec delivers.

That's a worthy goal, but may be difficult to achieve in a short time. You've been on the inside, you know all the limitations...

What's the best alternative for now?

Signature · 1 line
Denys
#7 lore raw

Op 3 mei 2012, om 19:52 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 42 lines · Koen Kooi
Quoted 41 lines

Op 3 mei 2012, om 19:05 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 27 lines · Koen Kooi
Quoted 26 lines

Op 3 mei 2012 om 19:02 heeft Denys Dmytriyenko <[email protected]> het volgende geschreven:

Quoted 22 lines · Koen Kooi
Quoted 20 lines

Op 3 mei 2012, om 08:33 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 10 lines

From: Denys Dmytriyenko <[email protected]>

* Ported from Arago
* Added version 4.06.00.01 of the Graphics SDK which supports Power Management features for the AM335x
* Use a variable PLATFORM for the directory structure since newer SDKs use LinuxARMV7 and older SDKs use LinuxOMAP3
* Modifiy rc.pvr to check return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend.

I keep bringing this up every few months: what's the plan to add the necessary hooks to the kernel module to export the core revision in sysfs instead of using devmem2? The kernel module knows about the right memory addressed and turns on the clocks it needs. And better: we can get rid of bogus ES revisions like 'ES8' since that's exactly the same core as 'ES6' from a userspace point of view.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Thanks, I will forward your questions and suggestions to the Graphics team. Meanwhile, do you have any comments about the patch?

X11 support needs to get redone completely for this one, dri and all :(

I haven't looked at X11 support - what's wrong with it?

You need to rebuild the omap3-sgx-modules with DRI support, install the extra modules, etc. Then you need to install the xorg module and hope the ABIs match, install a xorg.conf snippet, etc, etc.

Quoted 7 lines
Quoted 2 lines

The best way forward is to have the gfx team rebuild the X stuff against the X we have in OE, not the one IMGtec delivers.

That's a worthy goal, but may be difficult to achieve in a short time. You've been on the inside, you know all the limitations...

What's the best alternative for now?

Keep using 4.05, Roger and I have some sgx testing for 4.06 planned this week. I really want to move to a 1.7 based system, 1.6 is just way too buggy.

#8 lore raw
Quoted 48 lines · Koen Kooi

Op 3 mei 2012, om 19:52 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 45 lines · Koen Kooi
Quoted 43 lines

Op 3 mei 2012, om 19:05 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 27 lines · Koen Kooi
Quoted 26 lines

Op 3 mei 2012 om 19:02 heeft Denys Dmytriyenko <[email protected]> het volgende geschreven:

Quoted 22 lines · Koen Kooi
Quoted 20 lines

Op 3 mei 2012, om 08:33 heeft Denys Dmytriyenko het volgende geschreven:

Quoted 10 lines

From: Denys Dmytriyenko <[email protected]>

* Ported from Arago
* Added version 4.06.00.01 of the Graphics SDK which supports Power Management features for the AM335x
* Use a variable PLATFORM for the directory structure since newer SDKs use LinuxARMV7 and older SDKs use LinuxOMAP3
* Modifiy rc.pvr to check return of the insmod of pvrsrvkm. If this driver fails to load the devmem2 read access can put the system in a state where it will not come out of suspend.

I keep bringing this up every few months: what's the plan to add the necessary hooks to the kernel module to export the core revision in sysfs instead of using devmem2? The kernel module knows about the right memory addressed and turns on the clocks it needs. And better: we can get rid of bogus ES revisions like 'ES8' since that's exactly the same core as 'ES6' from a userspace point of view.

Quoted 6 lines
Quoted 4 lines
Quoted 2 lines

Thanks, I will forward your questions and suggestions to the Graphics team. Meanwhile, do you have any comments about the patch?

X11 support needs to get redone completely for this one, dri and all :(

I haven't looked at X11 support - what's wrong with it?

You need to rebuild the omap3-sgx-modules with DRI support, install the extra modules, etc. Then you need to install the xorg module and hope the ABIs match, install a xorg.conf snippet, etc, etc.

The best way forward is to have the gfx team rebuild the X stuff against the X we have in OE, not the one IMGtec delivers.

Quoted 8 lines
Quoted 4 lines

That's a worthy goal, but may be difficult to achieve in a short time. You've been on the inside, you know all the limitations...

What's the best alternative for now?

Keep using 4.05, Roger and I have some sgx testing for 4.06 planned this week. I really want to move to a 1.7 based system, 1.6 is just way too buggy.

Ok, I can wait for you to test 4.06 out. Should I mask it with DP=-1 for now?

Signature · 1 line
Denys