Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 257294

Summary: x11-libs/libdrm-2.4.4: slow 3D performance on intel 965gm
Product: Gentoo Linux Reporter: Uros <infinity80>
Component: New packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED UPSTREAM    
Severity: normal CC: a, infinity80
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: xorg.conf
dmesg
xorg log
dmesg
xorg log
xorg log

Description Uros 2009-02-01 22:14:26 UTC
Something isn't working right with x11-libs/libdrm-2.4.4. on my end.

Using :
- x11-libs/libdrm-2.4.4
- x11-drivers/xf86-video-intel-2.6.1
- x11-base/xorg-server-1.5.3-r1
- media-libs/mesa-7.3
- EXA accel method
- DRI

With x11-wm/compiz-0.7.8-r2 on intel 965gm, and with libdrm-2.4.3. performance is mostly OK, but when switching to libdrm-2.4.4. and rebuilding all mentioned packages, I'm getting such a sluggish performance that it's unusable for daily use.

Too many API modifications from 2.4.3?

Reproducible: Always

Steps to Reproduce:




Portage 2.2_rc23 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-gentoo-r1 i686)
=================================================================
System uname: Linux-2.6.28-gentoo-r1-i686-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-glibc2.0
Timestamp of tree: Tue, 27 Jan 2009 23:15:01 +0000
distcc 3.0 i686-pc-linux-gnu [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.6-r1
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.2
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.63
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distcc distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/tree"
PORTDIR_OVERLAY="/usr/portage/local/layman/desktop-effects /usr/portage/local/layman/x11 /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acpi alsa bash-completion berkdb bluetooth bzip2 cli cracklib crypt dbus fortran gdbm gif gpm hal hfs iconv ieee1394 ipv6 irda isdnlog isight jpeg kdeenablefinal logitech-mouse midi mmx mmxext mp3 mudflap multicall ncurses nptl nptlonly nss opengl openmp pam pcre perl png pppd python qt3support readline reflection samba session spl sse sse2 ssl sysfs tcpd truetype unicode usb userlocales vim-syntax vorbis x86 xcb xcomposite xinerama xorg xscreensaver zeroconf zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-02-02 13:31:32 UTC
A couple things :

1) please attach your xorg.conf
2) please attach Xorg.0.log and dmesg output from with both libdrm 2.4.3 and 2.4.4
3) with 2.4.4, try setting AccelMethod to UXA in your xorg.conf's Device section

Thanks
Comment 2 Uros 2009-02-02 23:03:48 UTC
Created attachment 180755 [details]
xorg.conf
Comment 3 Uros 2009-02-02 23:04:39 UTC
Created attachment 180757 [details]
dmesg
Comment 4 Uros 2009-02-02 23:04:57 UTC
Created attachment 180759 [details]
xorg log
Comment 5 Uros 2009-02-02 23:07:39 UTC
Created attachment 180761 [details]
dmesg
Comment 6 Uros 2009-02-02 23:09:34 UTC
Created attachment 180763 [details]
xorg log
Comment 7 Uros 2009-02-02 23:10:09 UTC
Created attachment 180764 [details]
xorg log
Comment 8 Uros 2009-02-02 23:36:46 UTC
Ehh.. my bad. I guess reboot was needed after upgrading to libdrm-2.4.4 for changes to take effect or something -- restarting xorg wasn't enough.

After reboot, it works with exa/uxa, without slowdowns.

Sorry.
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2009-02-02 23:47:45 UTC
Heh, thanks for the follow up :)

It is indeed something many users have noticed: Intel hardware and drivers often need a full restart (sometimes even with a few seconds of *complete* poweroff) to work properly... Not much we can do about this.

Cheers
Comment 10 Uros 2009-02-03 19:21:40 UTC
Soo.. I'm back with this problem -- only now, on the next level.

After restarting/reloading xorg (returning from suspend-to-ram for instance), 3D accel. gets lost somewhere.. same sluggish performance as described in initial bug report (switching from  2.4.3 to 2.4.4 without rebooting) -- untill reboot that is.

And the fun part? It works as intended with libdrm-2.4.3 (after rebuilding everything and rebooting).. sometimes..

With libdrm-2.4.3 system experiences such simptoms as described at https://bugs.freedesktop.org/show_bug.cgi?id=17807 -- random square blip under mouse cursor, touchpad working every other input dead after returning from suspend-to-ram.

Trading one annoying problem for another.

All related logs are already attached as I understand, or do you need something else?

Is it even libdrm related?
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2009-02-03 20:05:19 UTC
No, there's not much else I can do. Let's track this upstream.

Thanks
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2009-02-03 20:06:29 UTC
Erf, I hadn't realised the upstream bug you linked wasn't yours.

Please open a bug in FreeDesktop's bugzilla and add "remi@gentoo.org" so I can keep track of the issue.

Thanks