NetBSD-Bugs archive

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

xsrc/42287: KDE4 unusable with Intel graphic chipsets

>Number:         42287
>Category:       xsrc
>Synopsis:       KDE4 unusable with Intel graphic chipsets
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    xsrc-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 08 21:45:00 +0000 2009
>Originator:     Uwe Krüger
>Release:        5-STABLE snapshot 20091102 (after xorg 1.6 pullup)
NetBSD shuttle 5.0_STABLE NetBSD 5.0_STABLE (GENERIC) #0: Mon Nov  2 16:10:10 
UTC 2009
When trying to use KDE4 with intel graphic chipsets (I've tested 945G and G33) 
in the default Xorg configuration various problems occur:
- the graphic is sometimes corrupted (things are drawn at the wrong
  place, distorted or not at all
- in paticular the panel is invisible though present
- very often the X-server crashes when loggin in. Here is a backtrace
  of such a crash:

# gdb /usr/X11R7/bin/Xorg Xorg.core                                            
Program terminated with signal 6, Aborted.
#0  0x00007f7ffc2dc26a in _lwp_kill () from /usr/lib/
(gdb) bt
#0  0x00007f7ffc2dc26a in _lwp_kill () from /usr/lib/
#1  0x00007f7ffc2dbb42 in abort () from /usr/lib/
#2  0x0000000000555658 in FatalError ()
#3  0x00007f7ffa042828 in I830WaitLpRing ()
   from /usr/X11R7/lib/modules/drivers//
#4  0x00007f7ff9e04508 in drm_intel_bo_fake_disable_backing_store ()
   from /usr/X11R7/lib/
#5  0x00007f7ff9e0550c in drm_intel_bufmgr_fake_evict_all ()
   from /usr/X11R7/lib/
#6  0x00007f7ff9e057b9 in drm_intel_bufmgr_fake_evict_all ()
   from /usr/X11R7/lib/
#7  0x00007f7ffa041d8e in intel_batch_flush ()
   from /usr/X11R7/lib/modules/drivers//
#8  0x00007f7ffa0428bb in I830Sync ()
   from /usr/X11R7/lib/modules/drivers//
#9  0x00007f7ffa038c96 in i830_refresh_ring ()
   from /usr/X11R7/lib/modules/drivers//
#10 0x0000000000461b96 in AbortDDX ()
#11 0x000000000055508d in AbortServer ()
#12 0x0000000000555675 in FatalError ()
#13 0x00007f7ffa042828 in I830WaitLpRing ()
   from /usr/X11R7/lib/modules/drivers//
#14 0x00007f7ffa038b7c in i830_refresh_ring ()
---Type <return> to continue, or q <return> to quit---
   from /usr/X11R7/lib/modules/drivers//
#15 0x00007f7ffa039c5b in i830_update_front_offset ()
   from /usr/X11R7/lib/modules/drivers//
#16 0x00007f7ffa03ac90 in i830_update_front_offset ()
   from /usr/X11R7/lib/modules/drivers//
#17 0x000000000043a81c in AddScreen ()
#18 0x00000000004623b5 in InitOutput ()
#19 0x000000000043ae55 in main ()

Try to run KDE4 (pkgsrc-2009Q3) on a recent netbsd-5 snapshot in the default 
configuration (no xorg.conf) on a computer with Intel chipset graphic.

The problems do not occur when specifying 'Option "AccelMethod" "XAA"' in 
xorg.conf, so it seems that the EXA acceleration is still somewhat broken. 
Unfortunatelly EXA is used by default unless "XAA" is specified explicitly.

Since XAA seems to be very mature it might be a good idea to set the default 
back to XAA (as it was some time ago) - at least for the upcomming NetBSD-5.1 
release. Here is a patch to do so:

--- /usr/xsrc/external/mit/xf86-video-intel/dist/src/i830_driver.c.orig 
2009-11-08 14:20:35.000000000 +0100
+++ /usr/xsrc/external/mit/xf86-video-intel/dist/src/i830_driver.c      
2009-11-08 16:22:00.000000000 +0100
@@ -1617,6 +1617,9 @@
 #ifdef I830_USE_EXA
        pI830->accel = ACCEL_EXA;
+#ifdef I830_USE_XAA
+       pI830->accel = ACCEL_XAA;
 #if I830_USE_XAA + I830_USE_EXA + I830_USE_UXA >= 2
        from = X_DEFAULT;
        if ((s = (char *)xf86GetOptValString(pI830->Options,
--- /usr/xsrc/external/mit/xf86-video-intel/dist/man/     
2009-11-08 15:46:23.000000000 +0100
+++ /usr/xsrc/external/mit/xf86-video-intel/dist/man/  2009-11-08 
16:25:04.000000000 +0100
@@ -154,7 +154,7 @@
 code but taking advantage of kernel memory management to provide simpler,
 faster code.
-Default: "UXA" if kernel-modesetting is available, "EXA" otherwise.
+Default: "UXA" if kernel-modesetting is available, "XAA" otherwise.
 .BI "Option \*qModeDebug\*q \*q" boolean \*q
 Enable printing of additional debugging information about modesetting to

Home | Main Index | Thread Index | Old Index