Bug 921

Summary: [blacksand] it show poor performance with video player
Product: [Build System, Metadata & Runtime] BSPs Reporter: Xudong Hao <xudong.hao>
Component: bsps-configurationAssignee: Tom Zanussi <tom.zanussi>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: Medium CC: dexuan.cui, dongxiao.xu, jessica.zhang, jiajun.xu, josh, kunwei.tian, sgw, yp.bsp.watcher, yp.watcher
Version: 1.0   
Target Milestone: 1.0 M4   
Hardware: Blacksand   
OS: x86_64   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Xudong Hao 2011-03-22 00:18:57 UTC
Image location:
http://autobuilder02.pokylinux.org/n450-bernard/nightly/20110319-1/machines/n450/x86_32/poky-image-sato-sdk-live-n450-20110319105742.hddimg.bz2

commit: 82af8b9fb6d6d1439943fd15b8a75c0e663e4a45

With the n450 image for Gold build, on blanksand, when use video player to play Mpeg file, the performance is very low.


file /etc/X11/xorg.conf: 
===================
Section "Device"
    Identifier    "Intel Graphics Driver"
    Driver        "intel"
EndSection

Section "Monitor"
    Identifier    "Generic Monitor"
    Option        "DPMS"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Device        "Intel Graphics Driver"
    Monitor        "Generic Monitor"
    DefaultDepth    24
EndSection

Section "ServerLayout"
    Identifier    "Default Layout"
    Screen        "Default Screen"
EndSection

Section "ServerFlags"
    Option        "DontZap"  "0"
    Option        "AutoAddDevices" "False"
EndSection
Comment 1 Bruce Ashfield 2011-03-22 05:58:38 UTC
Tom: was it you or Darren that were looking after this board ? Feel free to bounce this along if I've picked wrong.
Comment 2 Joshua Lock - Disabled 2011-03-23 17:12:03 UTC
Looks like the libva acceleration isn't fully enabled, Tom has a series of patches in a branch of meta-intel:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/log/?h=tzanussi/elc-demo-sugarbay-libva-fixes

Could you try video playback of an h264 or other similar libva supported format with similar patches applied?
Comment 3 Dexuan Cui 2011-03-23 22:17:05 UTC
(In reply to comment #2)
> Looks like the libva acceleration isn't fully enabled, Tom has a series of
> patches in a branch of meta-intel:
> http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/log/?h=tzanussi/elc-demo-sugarbay-libva-fixes
> Could you try video playback of an h264 or other similar libva supported format
> with similar patches applied?

I tried blacksand with Tom's fixes (upgrading libva to the latest git commit and add --enable-i965-driver) in branch zanussi/elc-demo-sugarbay-libva-fixes:
When playing the sintel-1024-stereo.mp4 on blacksand, I also got the segfault now:  
   dmesg shows "qtdemux0:sink[2294]: segfault at 4 ip b24a7b2f sp b15ba6b0 error 4 in libgstvaapi-0.10.so.0.0.0[b249f000+19000]" 

Later Tom found looks vaapi is not supported on blacksand:
http://www.freedesktop.org/wiki/Software/vaapi
http://intellinuxgraphics.org/documentation.html

And I consulted with the graphics team of OTC PRC just now:
They said blacksand graphics driver doesn't support vaapi and since blacksand's hardware capability is not powerful enough, it's not likely to add the support in future.

So I think this bug is a WON'T FIX one.


Currently I'm trying to build an image for sugarbay with your vaapi fixes and will try video playing on it. I think in my side it should also work as you. :-)
Comment 4 Jessica 2011-03-24 08:12:55 UTC
blacksand doesn't support vaapi (independent
confirmation from the graphics team) - Tom