Video acceleration for EMGD driver 1.14 in Poulsbo (US15W z510 Atom)

Juan Carlos Garza Fernandez juancarlosgarza at gmail.com
Mon Jun 25 08:18:12 PDT 2012


Hi,

I have a  US15W system (z510 atom processor 1,1 GHz and 512 MB RAM)
which is used to display a Flash UI (via the LVDS port)which
eventually renders video and I am using the EMGD 1.14 driver provided
from intel (so not the gma500_gfx from current kernels). Intel
promises video hardware acceleration with this driver as long as one
uses their own flash player plugin, which I use in a 3.6.8 firefox
browser.

The intel documentation says that one must set the following variables
in order for that to work:

Option "ALL/1/General/EnableRegOverride" "1"
Option "ALL/1/General/DispARB" "0x00003232"
Option “ALL/1/General/Xvideo” “1”

And I do, yet when xorg server starts, the EMGD driver disables XVideo
because it claims that a feature called "RenderScale" is enabled and
that using it is incompatible with XVideo and thus turns it off, and
I'm stuck with that...

Does anyone have some experience with this kind of driver/xorg
combination? I really need to accelerate the video via hardware, the
IEGD driver did fine, yet i can't compile that one with a newer kernel
and the emgd drops the framerate to the ground...


My xorg.conf

 Section "Device"
                Identifier "IntelEMGD-0"
                Driver     "emgd"
                VendorName "Intel(R) DEG"
                BoardName  "Embedded Graphics"
                BusID      "0:2:0"
                Screen      0
                Option     "PcfVersion"            "1792"
                Option     "ConfigId"              "1"
                Option     "ALL/1/name"                   "TD035STEE1"
                Option     "ALL/1/General/PortOrder"      "40000"
                Option     "ALL/1/General/DisplayConfig"  "1"
                Option     "ALL/1/General/DisplayDetect"  "0"
                Option     "ALL/1/General/swcursor"       "0"
                Option     "ALL/1/General/Accel"          "1"
                Option     "ALL/1/General/shadowfb"       "1"
                Option     "ALL/1/General/tearfb"         "0"
                Option     "ALL/1/General/XVideo"         "1"
                Option     "ALL/1/General/DispARB"        "0x00003232"
                Option     "ALL/1/General/EnableRegOverride" "1"
                Option     "ALL/1/General/XVideoBlend"    "0"
                Option     "ALL/1/Port/4/General/name"                   "disp"
                Option     "ALL/1/Port/4/General/EdidAvail"      "7"
                Option     "ALL/1/Port/4/General/Rotation"       "0"
                Option     "ALL/1/Port/4/General/Edid"           "1"
                Option     "ALL/1/Port/4/General/MultiDvo"       "0"
                Option     "ALL/1/Port/4/FpInfo/BkltMethod"      "0"
                Option     "ALL/1/Port/4/Dtd/1/PixelClock"       "25000"
                Option     "ALL/1/Port/4/Dtd/1/HorzActive"       "480"
                Option     "ALL/1/Port/4/Dtd/1/HorzSync"         "24"
                Option     "ALL/1/Port/4/Dtd/1/HorzSyncPulse"    "8"
                Option     "ALL/1/Port/4/Dtd/1/HorzBlank"        "40"
                Option     "ALL/1/Port/4/Dtd/1/VertActive"       "640"
                Option     "ALL/1/Port/4/Dtd/1/VertSync"         "4"
                Option     "ALL/1/Port/4/Dtd/1/VertSyncPulse"    "4"
                Option     "ALL/1/Port/4/Dtd/1/VertBlank"        "9"
                Option     "ALL/1/Port/4/Dtd/1/Flags"            "0x20000"
                Option     "ALL/1/Port/4/Attr/27"    "0"
                Option     "ALL/1/Port/4/Attr/26"    "18"
                Option     "ALL/1/Port/4/Attr/18"    "1"
                Option     "ALL/1/Port/4/Attr/60"    "1"
                Option     "PortDrivers"           "lvds"
      EndSection

       Section "Screen"
                Identifier    "Screen0"
                Device        "IntelEMGD-0"
                Monitor       "Monitor0"
                DefaultDepth  24
                SubSection    "Display"
                        Viewport        0 0
                        Depth         24
                        Modes         "1024x768" "640x480" "480x640" "320x240"
                EndSubSection
        EndSection

        Section "Monitor"
                Identifier "Monitor0"
                VendorName "LCD"
                ModelName "TD035STEE1"
                Option "DPMS" "off"
        EndSection

        Section "ServerLayout"
                Identifier     "single head configuration"
                Screen      0  "Screen0" 0 0
                InputDevice    "touchscreen" "CorePointer"
                InputDevice    "Keyboard0" "CoreKeyboard"
                Option "BlankTime" "0"
                Option "StandbyTime" "60"
                Option "SuspendTime" "120"
                Option "OffTime" "180"
        EndSection


And here are some extracts from the Xorg log...

[ 23477.219] (==) EMGD(0): RGB weight 888
[ 23477.220] (==) EMGD(0): Default visual is TrueColor
[ 23477.224] (II) EMGD(0): Chipset: "Intel SCH US15 Chipset"
[ 23477.224] (II) EMGD(0): Detected kernel module from EMGD build 2443
[ 23477.224] (II) EMGD(0): Checking for new style options
[ 23477.225] (II) EMGD(0): Processing version 7.0 options
[ 23477.225] (II) EMGD(0): Using configuration 1
[ 23477.225] (II) EMGD(0): Checking for US15 specific configuration.
[ 23477.225] (II) EMGD(0): Checking for non-chipset specific configuration.
[ 23477.225] (II) EMGD(0): Setting port_order to 40000
[ 23477.225] (II) EMGD(0): Setting Disp Arb
[ 23477.225] (II) EMGD(0): Setting Enable Reg Override
[ 23477.225] (II) EMGD(0): Unknown option: ALL/1/Port/4/General/Panel_Fit
[ 23477.225] (II) EMGD(0): Allocated local dtd for port=3 dtdid=1
[ 23477.225] (II) EMGD(0): Option processing done!
[ 23477.800] (II) EMGD(0): Valid Display Configurations:
[ 23477.800] (II) EMGD(0):   DC: 0x00000041
[ 23477.800] (II) EMGD(0):   DC: 0x00000000
[ 23477.800] (II) EMGD(0): Using Display Configuration 0x00000041
[ 23477.800] (**) EMGD(0): Depth 24, (--) framebuffer bpp 32
[ 23477.800] (==) EMGD(0): Using gamma correction (1.0, 1.0, 1.0)
[ 23477.801] (II) EMGD(0): 1 modes passed validation checks
[ 23477.801] (--) EMGD(0): Virtual size is 480x640 (pitch 0)
[ 23477.801] (**) EMGD(0): *Built-in mode "480x640": 25.0 MHz (scaled
from 0.0 MHz), 48.2 kHz, 74.0 Hz
[ 23477.801] (II) EMGD(0): Modeline "480x640"x74.0   25.00  480 503
511 519  640 643 647 648 (48.2 kHz)
[ 23477.801] (==) EMGD(0): DPI set to (96, 96)
[ 23477.801] (II) Loading sub module "fb"
[ 23477.801] (II) LoadModule: "fb"
[ 23477.811] (II) Loading /usr/X11R7/lib/X11/modules/libfb.so
[ 23477.822] (II) Module fb: vendor="X.Org Foundation"
[ 23477.822]    compiled for 1.9.5, module version = 1.0.0
[ 23477.823]    ABI class: X.Org ANSI C Emulation, version 0.4
[ 23477.823] (II) EMGD(0): Rotation, Flip * RenderScale options do not
support XVideo, XVideo Disabled.
...
[ 23477.829] (II) EMGD(0): General Driver Configuration Options
[ 23477.829] (II) EMGD(0):   PCF Version:            7.00
[ 23477.829] (II) EMGD(0):   Configuration ID:       1
[ 23477.829] (II) EMGD(0): Primary Display Configuration Options
[ 23477.829] (II) EMGD(0):   VideoRam (Pixmap Cache): 32768
[ 23477.829] (II) EMGD(0):   PORT AND DISPLAY OPTIONS
[ 23477.829] (II) EMGD(0):     Port Order:           40000
[ 23477.829] (II) EMGD(0):     Display Config:       Single
[ 23477.829] (II) EMGD(0):     Display Detect:       Off
[ 23477.829] (II) EMGD(0):     FB Blend Overlay:     Off
[ 23477.829] (II) EMGD(0):     Gang DVO:             Off
[ 23477.829] (II) EMGD(0):     Refresh Rate:         0
[ 23477.829] (II) EMGD(0):     Clone Width:          0
[ 23477.829] (II) EMGD(0):     Clone Height:         0
[ 23477.830] (II) EMGD(0):     Clone Refresh:        0
[ 23477.830] (II) EMGD(0):   FRAMEBUFFER OPTIONS
[ 23477.830] (II) EMGD(0):     Shadow FB:            On
[ 23477.830] (II) EMGD(0):     Tear FB:              Off
[ 23477.830] (II) EMGD(0):     Resize:               Off
[ 23477.830] (II) EMGD(0):    GL TEXTURE STREAM OUTPUT:         Off
[ 23477.830] (II) EMGD(0):   FRAMEBUFFER ORIENTATION OPTIONS
[ 23477.830] (II) EMGD(0):     Rotation:             0 degrees
[ 23477.830] (II) EMGD(0):     Flip:                 Off
[ 23477.830] (II) EMGD(0):   HARDWARE ACCELERATION OPTIONS
[ 23477.830] (II) EMGD(0):     HW 2D Accel:          On
[ 23477.830] (II) EMGD(0):     HW Cursor:            On
[ 23477.831] (II) EMGD(0):   XVIDEO OPTIONS
[ 23477.831] (II) EMGD(0):     XVideo:               Off
[ 23477.831] (II) EMGD(0):     XVideoBlend:          Off
[ 23477.831] (II) EMGD(0):     XVideoMC:             Off
[ 23477.831] (II) EMGD(0):     XVideoKey:            0xff00ff00
[ 23477.831] (II) EMGD(0):     Overlay Gamma Red:    0x100
[ 23477.831] (II) EMGD(0):     Overlay Gamma Green:  0x100
[ 23477.831] (II) EMGD(0):     Overlay Gamma Blue:   0x100
[ 23477.831] (II) EMGD(0):     Overlay Brightness:   0x8000
[ 23477.831] (II) EMGD(0):     Overlay Contrast:     0x8000
[ 23477.831] (II) EMGD(0):     Overlay Saturation:   0x8000
[ 23477.831] (II) EMGD(0):     DRI:                  Off
[ 23477.831] (II) EMGD(0):     DRI2:                 On
[ 23477.831] (II) EMGD(0):     EDID:                 On
[ 23477.831] (II) EMGD(0):   QUICKBOOT OPTIONS
[ 23477.831] (II) EMGD(0):     QuickBoot:            0
[ 23477.831] (II) EMGD(0):     Seamless:             Off
[ 23477.831] (II) EMGD(0):     Video Input:          0
[ 23477.832] (II) EMGD(0):     Splash Screen:        Off
[ 23477.832] (II) EMGD(0):     Freeze FB:        Off
[ 23477.832] (II) EMGD(0):    INTERRUPT OPTIONS
[ 23477.832] (II) EMGD(0):      Polling:             Off
[ 23477.832] (II) EMGD(0):   GLOBAL PER PORT OPTIONS
[ 23477.833] (II) EMGD(0):   Port 4            disp
[ 23477.833] (II) EMGD(0):      Multi-DVO:      Off
[ 23477.833] (II) EMGD(0):      Rotation:       0 degrees
[ 23477.833] (II) EMGD(0):      Flip:           Off
[ 23477.833] (II) EMGD(0):      Centering:      Off
[ 23477.833] (II) EMGD(0):      RenderScale:    On
[ 23477.833] (II) EMGD(0):      EDID:           On
[ 23477.833] (II) EMGD(0):      EDID Avail:     0x7
[ 23477.833] (II) EMGD(0):      EDID Not Avail: 0x4
[ 23477.833] (II) EMGD(0):      PANEL INFORMATION
[ 23477.833] (II) EMGD(0):         FP width:     0
[ 23477.833] (II) EMGD(0):         FP height:    0
[ 23477.833] (II) EMGD(0):         BKLT Enable:  0
[ 23477.833] (II) EMGD(0):         BKLT Method:  0
[ 23477.833] (II) EMGD(0):         BKLT T1:      0
[ 23477.833] (II) EMGD(0):         BKLT T2:      0
[ 23477.834] (II) EMGD(0):         BKLT T3:      0
[ 23477.834] (II) EMGD(0):         BKLT T4:      0
[ 23477.834] (II) EMGD(0):         BKLT T5:      0
[ 23477.834] (II) EMGD(0):         GPIO Pin VDD: 0
[ 23477.834] (II) EMGD(0):         GPIO Pin VEE: 0
[ 23477.834] (II) EMGD(0):         GPIO Pin BKLT:0
[ 23477.834] (II) EMGD(0):         DVO i2c pin:  0
[ 23477.834] (II) EMGD(0):         DVO i2c DAB:  0
[ 23477.834] (II) EMGD(0):         DVO i2c speed:0
[ 23477.835] (II) EMGD(0):         DVO ddc pin:  0
[ 23477.835] (II) EMGD(0):         DVO ddc speed:0
[ 23477.835] (II) EMGD(0):      Number DTD's:   1
[ 23477.835] (II) EMGD(0):        1-width:       480
[ 23477.835] (II) EMGD(0):        1-height:      640
[ 23477.835] (II) EMGD(0):        1-refresh:     0
[ 23477.835] (II) EMGD(0):        1-dclk:        25000
[ 23477.835] (II) EMGD(0):        1-horz total:  0
[ 23477.835] (II) EMGD(0):        1-horz b_start:479
[ 23477.835] (II) EMGD(0):        1-horz b_end:  519
[ 23477.835] (II) EMGD(0):        1-horz s_start:503
[ 23477.835] (II) EMGD(0):        1-horz s_end:  511
[ 23477.835] (II) EMGD(0):        1-vert total:  22502
[ 23477.835] (II) EMGD(0):        1-vert b_start:639
[ 23477.836] (II) EMGD(0):        1-vert b_end:  648
[ 23477.836] (II) EMGD(0):        1-vert s_start:643
[ 23477.836] (II) EMGD(0):        1-vert s_end:  647
[ 23477.836] (II) EMGD(0):        1-flags:       0x20000
[ 23477.836] (II) EMGD(0):      Number Attr's:  4
[ 23477.836] (==) Depth 24 pixmap format is 32 bpp
[ 23477.902] (II) EMGD(0): Rotation : 0 degrees
[ 23477.902] (II) EMGD(0): RendScale: 0
[ 23477.903] (II) EMGD(0): ShadowFB allocated
[ 23477.931] (II) EMGD(0): [DRI2] Setup complete
[ 23477.932] (II) EMGD(0): [DRI2]   DRI driver: emgd
[ 23477.932] (II) EMGD(0): DRI2 initialization complete.
[ 23477.932] (II) UXA(0): Driver registered support for the following
operations:
[ 23477.932] (II)         solid
[ 23477.932] (II)         copy
[ 23477.932] (II)         composite (RENDER acceleration)
[ 23477.932] (II) EMGD(0): ShadowFB initialization complete
[ 23477.933] (==) EMGD(0): Backing store disabled
[ 23477.947] (II) EMGD(0): Rotation : 0 degrees
[ 23477.947] (II) EMGD(0): RendScale: 0
[ 23477.949] (II) EMGD(0): ShadowFB allocated
[ 23477.952] (II) EMGD(0): Hardware Cursor Initialization complete.
[ 23477.952] (==) EMGD(0): Silken mouse enabled


Best regards,

-- 
________________________________
Juan Carlos Garza



More information about the xorg mailing list