powervr-omap4-dkms ftbfs since latest dist-upgrade

Bug #879855 reported by Fathi Boudra
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linaro Ubuntu
Fix Released
Critical
Ricardo Salveti
linaro-landing-team-ti
Fix Released
Critical
warmcat

Bug Description

today update pulled linux-headers 3.1.0-1400.1~ppa~oneiric.
It's causing a build failure on powervr-omap4-dkms:
Building initial module for 3.1.0-1400-linaro-lt-omap
Error! Bad return status for module build on kernel: 3.1.0-1400-linaro-lt-omap (armel)
Consult /var/lib/dkms/powervr-omap4/1.7.9.0.1.3/build/make.log for more information.

[...]
  CC [M] /var/lib/dkms/powervr-omap4/1.7.9.0.1.3/build/eurasiacon/binary2_omap4430_linux_release/target/kbuild/services4/system/omap4/sysconfig.o
In file included from /var/lib/dkms/powervr-omap4/1.7.9.0.1.3/build/eurasiacon/binary2_omap4430_linux_release/target/kbuild/services4/system/omap4/sysconfig.c:33:0:
/var/lib/dkms/powervr-omap4/1.7.9.0.1.3/build/services4/system/omap4/syslocal.h:67:22: fatal error: plat/gpu.h: No such file or directory
compilation terminated.
make[4]: *** [/var/lib/dkms/powervr-omap4/1.7.9.0.1.3/build/eurasiacon/binary2_omap4430_linux_release/target/kbuild/services4/system/omap4/sysconfig.o] Error 1
make[3]: *** [_module_/var/lib/dkms/powervr-omap4/1.7.9.0.1.3/build/eurasiacon/binary2_omap4430_linux_release/target/kbuild] Error 2
make[2]: *** [kbuild] Error 2
make[1]: *** [build] Error 2
make[1]: Leaving directory `/var/lib/dkms/powervr-omap4/1.7.9.0.1.3/build/eurasiacon/build/linux2/omap4430_linux'
make: *** [all] Error 2

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

The gpu support at latest kernel is completely broken, the code that defines it is commented, and missing the hwmods.

The failure is because the gpu.h header was also removed from the gpu-enablement patch that was forward ported.

Changed in linaro-ubuntu:
status: New → Confirmed
Changed in linaro-landing-team-ti:
status: New → Confirmed
Changed in linaro-ubuntu:
importance: Undecided → Critical
assignee: nobody → Ricardo Salveti (rsalveti)
milestone: none → 11.10
Revision history for this message
warmcat (andy-warmcat) wrote :

Sorry about that.

However the reason for the breakage is at least positive, with the advent of an actual 4460 here I found several problems last week (including is_cpu_446x accepting 443x) and solved them earlier in the topic branch series. In the process I was able to appreciate what your earlier patches were actually doing.

Losing gpu.h was not the idea though, I'll take a look at what happened there.

Revision history for this message
warmcat (andy-warmcat) wrote :

I guess the bigger issue is I don't need in-tree gpu.h to build the in-tree sgx used for Android, which would have otherwise brought it to my attention. We don't build out-of-tree sgx as a test at the moment.

Can you give me a link to current out-of-tree sources so we can start trying to build out-of-tree sgx routinely easily.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

I ported the previous patches and fixed the current one, but I'm facing another issue while initializing the hwmods.

Patches:
http://paste.ubuntu.com/716171/
http://paste.ubuntu.com/716176/

And the boot log:
http://paste.ubuntu.com/716179/

I'm also debugging and trying to get it running today (need to test unity 3d with it for the demo next week at ELC).

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

The package is available at our overlay, but I'm also maintaining it at http://git.linaro.org/gitweb?p=people/rsalveti/pvr-omap4-kernel.git;a=summary.

Revision history for this message
Ricardo Salveti (rsalveti) wrote :
Revision history for this message
Ricardo Salveti (rsalveti) wrote :
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

With these 2 patches I'm able to get it working again, but the X11 server is crashing with a seg fault at the first time it tries to load the driver. After trying it again it works.

Revision history for this message
warmcat (andy-warmcat) wrote :

Well, the problem came because I moved

Author: Hemant Hariyani <email address hidden>
    Kernel changes for hwmod and omap_device initialization for GPU.

int tracking-topic-sgx, which is after tracking-topic-syslink-k3u where tilt-tracking comes from. Your two patches regenerate the content of that patch and my "hwmod_fix_gpu_clockdomain".

tracking-topic-sgx is used as the basis for the Linaro Android tracking kernel, so everything worked fine there.

I added your two patches back at tracking-topic-drm and removed Hemant's any my now duplicate patch from tracking-topic-sgx.

I didn't try building the OOT module yet but since your patches address it, I guess that's OK. Tested on 4430 and 4460.

Avik Sil (aviksil)
tags: added: hwgfx linaro-ubuntu lt-panda unity-3d
Anmar Oueja (anmar)
Changed in linaro-landing-team-ti:
milestone: none → 2011.10
assignee: nobody → warmcat (andy-warmcat)
importance: Undecided → Critical
Revision history for this message
warmcat (andy-warmcat) wrote :

rsalveti's fix is in tilt-tracking and tilt-linux-linaro-3.1 since yesterday.

Changed in linaro-landing-team-ti:
status: Confirmed → Fix Committed
Fathi Boudra (fboudra)
Changed in linaro-ubuntu:
status: Confirmed → Fix Committed
Changed in linaro-ubuntu:
status: Fix Committed → Fix Released
Changed in linaro-landing-team-ti:
status: Fix Committed → Fix Released
Revision history for this message
Marius Cetateanu (cetatzeanum) wrote :

I'm experiencing this exact same issue with the linaro kernel 3.1.5 (downloaded from http://launchpad.net/linux-linaro/3.1/3.1-2011.12/+download/linux-linaro-3.1-2011.12-1.tar.bz2) and the powervr-omap4 v1.7.10.0.1.1.

[...]
  CC [M] /home/linaro_root/panda_fs/var/lib/dkms/powervr-omap4/1.7.10.0.1.1/build/eurasiacon/binary2_omap4430_linux_release/target/kbuild/services4/system/omap4/sysconfig.o
In file included from /home/linaro_root/panda_fs/var/lib/dkms/powervr-omap4/1.7.10.0.1.1/build/eurasiacon/binary2_omap4430_linux_release/target/kbuild/services4/system/omap4/sysconfig.c:33:0:
/home/linaro_root/panda_fs/var/lib/dkms/powervr-omap4/1.7.10.0.1.1/build/services4/system/omap4/syslocal.h:67:22: fatal error: plat/gpu.h: No such file or directory

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

That's because SGX is not properly supported at the plain linux-linaro-kernel (the one you downloaded). For proper support at your panda, I'd suggest you to use the kernel provided by the TI landing team, that you can find at http://git.linaro.org/gitweb?p=landing-teams/working/ti/kernel.git;a=shortlog;h=refs/heads/tilt-linux-linaro-3.1.

Revision history for this message
Marius Cetateanu (cetatzeanum) wrote :

Honestly I'm a bit confused.
Which kernel is in the 11.12. release? The TI or the linaro one, because the graphics driver seems
to work and is loaded(omapdrm_pvr) if I boot the 11.12 release.
I know this is not quite the place to ask these kind of questions so please direct me to the
right place. It's a world of confusion when it comes to the graphics support.

Revision history for this message
warmcat (andy-warmcat) wrote :

Marius, the branch 11.12 is released on is our Linaro Landing Team branch "tilt-linux-linaro-3.1"

http://git.linaro.org/gitweb?p=landing-teams/working/ti/kernel.git;a=shortlog;h=refs/heads/tilt-linux-linaro-3.1

Ricardo "Debianizes" it and that's what gets built and packaged.

SGX / PVR driver is a bit of a funny because it's not in the kernel tree, but externally built as a module.

Revision history for this message
Ricardo Salveti (rsalveti) wrote : Re: [Bug 879855] Re: powervr-omap4-dkms ftbfs since latest dist-upgrade

On Tue, Jan 24, 2012 at 10:10 AM, Marius Cetateanu
<email address hidden> wrote:
> Honestly I'm a bit confused.
> Which kernel is in the 11.12. release? The TI or the linaro one, because the graphics driver seems
> to work and is loaded(omapdrm_pvr) if I boot the 11.12 release.
> I know this is not quite the place to ask these kind of questions so please direct me to the
> right place. It's a world of confusion when it comes to the graphics support.

We have both available, but the linux-linaro one is basically upstream
with a few other changes, while the one provided by the TI landing
team enables tons of other features and fixes for OMAP 4 (that's why
this is the one used by default at our LEB).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.