Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 163827 - Drawing artifacts + high CPU usage with >=xorg-x11-7.1, Radeon X700, EXA
Summary: Drawing artifacts + high CPU usage with >=xorg-x11-7.1, Radeon X700, EXA
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-25 21:59 UTC by Jiri Dluhos
Modified: 2009-05-07 06:30 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Dluhos 2007-01-25 21:59:29 UTC
Since upgrading xorg-x11 to 7.1, artifacts started to appear when drawing bars of shaded colors (e.g. window titles). Also, all drawing slows down significantly, causing high CPU loads. Upgrading to xorg-x11-7.2 did not help.

This problem only occurs if EXA acceleration mode is enabled. With XAA, everything works fine.

I am using a laptop machine with Radeon X700 mobile graphic device, with an external LCD monitor connected via DVI output. The X driver is the open source Radeon driver without 3D acceleration.


Reproducible: Always

Steps to Reproduce:
1. Install xorg-x11-7.1 or xorg-x11-7.2; check that EXA is enabled.
2. Try more or less any X app with more colourful output, or window decorations that use color shaded bars.


Actual Results:  
All places that should be filled with color shaded bars are instead drawn with random color stripes. Rendering is visibly slow (e.g. Firefox is almost unusable), and CPU usage is very high.

Expected Results:  
Under normal circumstances, color ranges are rendered correctly and very swiftly, with no visible CPU load.

My xorg.conf:

---------------------------------------------------------------------------

Section "Files"
    FontPath    "/usr/share/fonts/local/"
    FontPath    "/usr/share/fonts/TTF/"
    FontPath    "/usr/share/fonts/CID/"
    FontPath    "/usr/share/fonts/Speedo/"
    FontPath    "/usr/share/fonts/Type1/"
    FontPath    "/usr/share/fonts/75dpi/"
    FontPath    "/usr/share/fonts/100dpi/"
    FontPath    "/usr/share/fonts/75dpi/:unscaled"
    FontPath    "/usr/share/fonts/100dpi/:unscaled"
    FontPath    "/usr/share/fonts/misc/"
EndSection

Section "Module"
    Load        "dbe"
    Load        "extmod"
    Load        "type1"
    Load        "freetype"
EndSection

Section "ServerFlags"
    Option      "StandbyTime" "20"
    Option      "SuspendTime" "30"
    Option      "OffTime" "60"
    Option      "AllowMouseOpenFail" "on"
EndSection

Section "InputDevice"
    Identifier  "Keyboard1"
    Driver      "kbd"
    Option      "CoreKeyboard"
    Option      "XkbModel" "pc105"
    Option      "XkbRules" "xorg"
    Option      "XkbLayout" "us,cz"
    Option      "XkbOptions" "grp:alt_shift_toggle"
EndSection

Section "InputDevice"
    Identifier  "Mouse1"
    Driver      "mouse"
    Option      "Protocol" "Auto"
    Option      "Device" "/dev/input/mice"
EndSection

Section "Monitor"
    Identifier  "Monitor1"
    HorizSync    28-80
    VertRefresh  50-180
    DisplaySize  408 306
EndSection

Section "Device"
    Identifier  "Card1"
    Driver      "radeon"
    BusID       "PCI:2:0:0"
    Option      "MonitorLayout" "NONE, TMDS"
    Option      "VGAAccess" "off"
    Option      "DynamicClocks" "off"
    Option      "MergedFB" "off"
    Option      "AccelMethod" "exa"
    Option      "PanelOff" "on"
EndSection

Section "Screen"
    Identifier   "Screen0"
    Device       "Card1"
    Monitor      "Monitor1"
    DefaultDepth 24
    SubSection   "Display"
        Depth    24
        Modes    "1600x1200" "1600x1024" "1280x960" "1280x800" "1280x1024" "800x600" "640x480" "320x240"
    EndSubSection
EndSection

Section "ServerLayout"
    Identifier  "Layout1"
    Screen      "Screen0"
    InputDevice "Mouse1" "CorePointer"
    InputDevice "Keyboard1" "CoreKeyboard"
EndSection

---------------------------------------------------------------------------

Nothing suspicious was printed to the X log.
Comment 1 Andrei Slavoiu 2007-01-25 22:26:09 UTC
I noticed the exact same behaviour but only today, after upgrading xorg-server to version 1.2.0 and disabling EXA fixed it. While using 1.1.1-r4 and older it EXA worked ok.
My hardware is an AMD64 box with an ATI Radeon 9550 (RV350 chipset).
Comment 2 Le retraité 2007-01-26 10:03:39 UTC
I confirm this bug, I upgraded two computers yesterday, from 1.1.1-r4 to 1.2.0, one is using the nv driver, the other is using the radeon one. The computer using the radeon driver have EXA enable and some apps like firefox are barely usable, top show me that X is eating all the CPU.

Disabling EXA or emerge back to 1.1.1-r4 solved the problem.
Comment 3 Urs Joss 2007-01-26 20:42:42 UTC
I can confirm the same behaviour on my laptop, 
in my case it was also the xorg-server package 
(and xorg-x11-7.2 depends on it...)

I haven't figured out nor tested the EXA configuration 
effect, but downgrading from xorg-server-1.2 back to 
1.1.1-r4 definitely helped.
Comment 4 Andrei Slavoiu 2007-01-26 22:02:25 UTC
Well, could you guys also confirm that you are using amd64 architecture like the bug says and not x86? I think it's important for localising this bug.
Comment 5 Urs Joss 2007-01-26 22:10:03 UTC
Sorry, I missed that bit about AMD64. Nope, I'm using x86.
Comment 6 Urs Joss 2007-01-26 22:11:26 UTC
emerge --info
Portage 2.1.2-r4 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4, 2.6.19-gentoo-r4 i686)
=================================================================
System uname: 2.6.19-gentoo-r4 i686 Intel(R) Pentium(R) M processor 2.00GHz
Gentoo Base System version 1.12.9
Timestamp of tree: Fri, 26 Jan 2007 20:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.3.6, 2.4.4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=pentium4 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://sunsite.cnlab-switch.ch/ftp/mirror/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_CH.UTF-8"
LC_ALL="de_CH.UTF-8"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.ch.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acpi alsa apache2 arts bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdr cli cracklib crypt cups dbus dga divx4linux dlloader doc dri dts dvd dvdr dvdread emacs emboss encode examples exif fam fbcon firefox fortran gcj gd gdbm gif gimp gpm gstreamer gtk hal iconv imap irda isdnlog java jpeg kde kdeenablefinal lcms libg++ lm_sensors lzo mad maildir mikmod mmx mng mp3 mpeg mplayer mssql ncurses nls nptl nptlonly nsplugin ogg opengl pam pcmcia pcre pda pdf perl png pnp ppds pppd python qt3 qt4 quicktime readline real reflection rtc sasl sdl session spell spl sse sse2 ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vcd vidix vorbis win32codecs wmf x86 xanim xine xinerama xml xorg xv xvid yaz zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="ati vesa fbdev radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 7 Le retraité 2007-01-27 21:15:44 UTC
Oops I forgot to notice that, no AMD64 here, X86 for me too.
Comment 8 Joshua Baergen (RETIRED) gentoo-dev 2007-02-17 17:37:40 UTC
xserver 1.3 is supposed to have some pretty good EXA fixes in it.  1.3 is expected to be released soonish - probably 1-2 months.
Comment 9 Urs Joss 2007-04-22 19:46:21 UTC
I only did a quick check with xorg-server-1.3. The drawing artifacts have gone, but the problem with the high processor load when starting firefox is still there.
Comment 10 Le retraité 2007-04-24 15:12:55 UTC
EXA bug still here too with 1.3
Comment 11 pavel sanda 2007-07-30 15:44:41 UTC
i can confirm rendering problems with xorg-server-1.2.0 + R.X700 on x86.
for me it is showed mainly by wrong cursor position when working with terminals
and generally redrawing of the last line of terminals is mess. cpu load make
also impossible to work with some editors.
has anybody reported this to Xorg bugzilla ?
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-05-07 06:30:20 UTC
The last comment being close to 2 years old, I think no-one still notices that bug anymore.

If anyone still has this problem with a fully updated system (xorg-server 1.5.3-r3), please don't hesitate to reopen this bug and to open a bug in FreeDesktop's bugzilla.

Thanks