i830 dri/xv/hw cursor problems

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I have some very unlucky i830 chip which doesn't work well even with
reasonably modern drivers (with the release of xfree86 4.4 they are no
longer latest). The problem is that when i try to use more than
"VideoRam 8060" memory (and that's needed to use xvideo/hw cursor/dri)
all the three parts fail:
 - i see some random garbage instead of hw cursor
 - i get blue rectangle instead of xvideo output
 - dri is not working (on deb 4.3.0-2 it uses software rendering, on
   4.3.0-0pre1v4 it used to crash xfree)
 - even 'x11perf -all' displays some garbage on deb 4.3.0-2 (on
   4.3.0-0pre1v4 it used to crash xfree)
All the releases before deb 4.3.0-2 used to crash very often, since i
installed 4.3.0-2 it crashes seldom (once in 10-20 minutes) but now i
see much more garbage.
   
As i have these problems since getting new laptop three months ago i
had time to do some research on it. That's what i found so far:
Seems like the problem is in i810_drv.o<->agpgart cooperation. look
like i810_drv allocates some agp memory an then writes to some _other_
memory (btw, agpgart itself works fine, i tested it with standard
agptest and everything including maping memory/writing to
it/unmapping/remapping/checking its contents works ok).
Garbage instead of hw cursor proves this idea because i810 uses agp to
work with wh cursor and looks like this cursor really shows me some
random part of memory while xfree86 writes to some other place.

Attached to this letter are:
XFree86.0.log - log of XFree86 Version 4.3.0.1 (Debian package
                4.3.0-2) w/o crash
cursor.png - what I see instead of hardware mouse cursor (for anyone
             wondering how I managed to make this screenshot w/o
             digital camera - its a mockup made in gimp, but it
             reflects what i see very well)
glxinfo.txt - glxinfo output (note "direct rendering: No" line)
glxgears.txt - 'glxgears -info' output, 200+ fps make me think its
               software :^(
xvinfo.txt - xvinfo output
xine.png - broken xvideo in action (this is xine right after startup,
           when it should display its logo)
x11perf.png - 'x11perf -all' making mess on my screen
XF86Config-4 - xfree86 config used to produce all of the above
config-2.6.3 - kernel config (just for you to be sure I have agpgart
               and drm support in kernel)
XFree86.0.log.old - log of [older] XFree86 Version 4.3.0.1 (Debian
                    4.3.0-0pre1v4) with a crash

P.S. And pleeeeeeease dont ask me to upgrade to xfree86 4.4 because:
1. What is not good for debian is not good for me ;)
2. All the major i810 changes from 4.4 (or from rc2 to be correct)
   where backported to debian package AFAIK.

P.P.S. Please do not replay to my email address - it's no real (thats
the way i fight spam)

-- 
Alexander Barinov
Project Manager
Banking Technologies Center, Diasoft
alte-nr@xxxxxxxxxx
http://www.diasoft.ru

Attachment: config-2.6.3
Description: Binary data

Attachment: cursor.png
Description: PNG image

GL_RENDERER   = Mesa GLX Indirect
GL_VERSION    = 1.3 Mesa 4.0.4
GL_VENDOR     = Mesa project: www.mesa3d.org
GL_EXTENSIONS = GL_ARB_imaging GL_ARB_multitexture GL_ARB_texture_border_clamp GL_ARB_texture_cube_map GL_ARB_texture_env_add GL_ARB_texture_env_combine GL_ARB_texture_env_dot3 GL_ARB_transpose_matrix GL_EXT_abgr GL_EXT_blend_color GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_env_add GL_EXT_texture_env_combine GL_EXT_texture_env_dot3 GL_EXT_texture_lod_bias
1137 frames in 5.0 seconds = 227.400 FPS
1155 frames in 5.0 seconds = 231.000 FPS
1073 frames in 5.0 seconds = 214.600 FPS
1155 frames in 5.0 seconds = 231.000 FPS
1155 frames in 5.0 seconds = 231.000 FPS
name of display: :0.0
display: :0  screen: 0
direct rendering: No
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
client glx vendor string: SGI
client glx version string: 1.2
client glx extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
GLX extensions:
    GLX_EXT_visual_info, GLX_EXT_visual_rating, GLX_EXT_import_context
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
    GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp, 
    GL_ARB_texture_cube_map, GL_ARB_texture_env_add, 
    GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3, 
    GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color, 
    GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_texture_env_add, 
    GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3, 
    GL_EXT_texture_lod_bias
glu version: 1.3
glu extensions:
    GLU_EXT_nurbs_tessellator, GLU_EXT_object_space_tess

   visual  x  bf lv rg d st colorbuffer ax dp st accumbuffer  ms  cav
 id dep cl sp sz l  ci b ro  r  g  b  a bf th cl  r  g  b  a ns b eat
----------------------------------------------------------------------
0x22 16 tc  1 16  0 r  y  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x23 16 tc  1 16  0 r  .  .  5  6  5  0  0 16  0  0  0  0  0  0 0 None
0x24 16 tc  1 16  0 r  y  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x25 16 tc  1 16  0 r  .  .  5  6  5  0  0 16  8  0  0  0  0  0 0 Slow
0x26 16 tc  1 16  0 r  y  .  5  6  5  0  0 16  0 16 16 16 16  0 0 Slow
0x27 16 tc  1 16  0 r  .  .  5  6  5  0  0 16  0 16 16 16 16  0 0 Slow
0x28 16 tc  1 16  0 r  y  .  5  6  5  0  0 16  8 16 16 16 16  0 0 Slow
0x29 16 tc  1 16  0 r  .  .  5  6  5  0  0 16  8 16 16 16 16  0 0 Slow

Attachment: x11perf.png
Description: PNG image

Attachment: XF86Config-4.
Description: Binary data

Attachment: XFree86.0.log
Description: Binary data

Attachment: XFree86.0.log.old
Description: Binary data

Attachment: xine.png
Description: PNG image

X-Video Extension version 2.2
screen #0
  Adaptor #0: "Intel(R) 830M/845G/852GM/855GM/865G Video Overlay"
    number of ports: 1
    port base: 60
    operations supported: PutImage 
    supported visuals:
      depth 16, visualID 0x22
      depth 16, visualID 0x23
      depth 16, visualID 0x24
      depth 16, visualID 0x25
      depth 16, visualID 0x26
      depth 16, visualID 0x27
      depth 16, visualID 0x28
      depth 16, visualID 0x29
    number of attributes: 3
      "XV_COLORKEY" (range 0 to 16777215)
              client settable attribute
              client gettable attribute (current value is 2110)
      "XV_BRIGHTNESS" (range -128 to 127)
              client settable attribute
              client gettable attribute (current value is 0)
      "XV_CONTRAST" (range 0 to 255)
              client settable attribute
              client gettable attribute (current value is 64)
    maximum XvImage size: 1440 x 1080
    Number of image formats: 4
      id: 0x32595559 (YUY2)
        guid: 59555932-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)
      id: 0x32315659 (YV12)
        guid: 59563132-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x30323449 (I420)
        guid: 49343230-0000-0010-8000-00aa00389b71
        bits per pixel: 12
        number of planes: 3
        type: YUV (planar)
      id: 0x59565955 (UYVY)
        guid: 55595659-0000-0010-8000-00aa00389b71
        bits per pixel: 16
        number of planes: 1
        type: YUV (packed)

[Index of Archives]     [X Forum]     [Xorg]     [XFree86 Newbie]     [IETF Announce]     [Security]     [Font Config]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux Kernel]

  Powered by Linux