Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 268907 - Tiled memory allocation corrupts display with sys-kernel/gentoo-sources-2.6.29-r2, kernel modesetting and x11-drivers/xf86-video-intel-2.7.0
Summary: Tiled memory allocation corrupts display with sys-kernel/gentoo-sources-2.6.2...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2009-05-07 08:41 UTC by Alexey Charkov
Modified: 2009-06-17 19:00 UTC (History)
3 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 Alexey Charkov 2009-05-07 08:41:22 UTC
After an upgrade to gentoo-sources-2.6.29-r2 I get a corrupt display when not disabling either kernel modesetting or tiled memory allocation for the Intel driver. What I see on screen is the 128x8 tiles in a mixed up order, nearly unreadable. The screen is corrupted once X initializes, at the login manager prompt. The same problem occurs with xf86-video-intel-2.7.0 and current trunk version from x11 overlay.

I am using a 1280x800 LVDS screen, in case this is relevant.

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-kernel/gentoo-sources-2.6.29-r2 =x11-drivers/xf86-video-intel-2.7.0
2. boot linux with i915.modeset=1 and with no option overrides in xorg.conf
3. start up X

Actual Results:  
Screen is unreadable, showing tiles in incorrect order.

Expected Results:  
Normal X display

Portage 2.2_rc32 (default/linux/amd64/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r2-alchark-u3s x86_64)
=================================================================                                                            
System uname: Linux-2.6.29-gentoo-r2-alchark-u3s-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T7500_@_2.20GHz-with-gentoo-2.0.0         
Timestamp of tree: Wed, 06 May 2009 22:15:02 +0000                                                                           
distcc 3.1 x86_64-pc-linux-gnu [disabled]                                                                                    
ccache version 2.4 [disabled]                                                                                                
app-shells/bash:     4.0_p17-r1                                                                                              
dev-java/java-config: 2.1.7                                                                                                  
dev-lang/python:     2.5.4-r2, 2.6.2                                                                                         
dev-util/ccache:     2.4-r8                                                                                                  
dev-util/cmake:      2.6.4                                                                                                   
sys-apps/baselayout: 2.0.0                                                                                                   
sys-apps/openrc:     0.4.3-r2                                                                                                
sys-apps/sandbox:    1.9                                                                                                     
sys-devel/autoconf:  2.13, 2.63-r1                                                                                           
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                                        
sys-devel/binutils:  2.19.1-r1                                                                                               
sys-devel/gcc-config: 1.4.1                                                                                                  
sys-devel/libtool:   2.2.6a                                                                                                  
virtual/os-headers:  2.6.28-r1                                                                                               
ACCEPT_KEYWORDS="amd64 ~amd64"                                                                                               
CBUILD="x86_64-pc-linux-gnu"                                                                                                 
CFLAGS="-O2 -march=core2 -pipe"                                                                                              
CHOST="x86_64-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 /var/lib/hsqldb"
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/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j6 -l6"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/mozilla /usr/portage/local/layman/x11 /usr/portage/local/misc"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr amrnb amrwb archive avahi bash-completion berkdb bluetooth branding bzip2 cairo cdparanoia cdr chm cli consolekit cracklib crypt cups curl dbus dhcp djvu dri dts dvd dvdr dvdread emboss encode evo exif fam fbcon ffmpeg flac foomaticdb ftp gdbm gif gimp gnutls gpm gs gstreamer hal iconv id3tag ieee1394 imagemagick imlib ipv6 ipw3945 isdnlog java javascript jingle jpeg kipi kqemu ladspa lame laptop latex lcms ldap libnotify lm_sensors lzo mad matroska midi mikmod mmx mmxext mng mp3 mp4 mpeg mudflap multilib musepack ncurses nls nptl nptlonly nsplugin ntp ogg opengl openmp oscar pam pcre pdf plasma png ppds ppp pppd qt-copy qt3 qt3support qt4 quicktime rar readline reflection ru-dv samba sasl scanner sdl session smp spellspl sse sse2 ssl ssse3 startup-notification stream svg symlink sysfs taglib tcpd tetex theora threads tiff truetype unicode usbv4l v4l2 vdpau vnc vorbis wifi wmf x264 xcomposite xine xml xorg xulrunner xv xvid xvmc zeroconf zip 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="synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ruen" USERLAND="GNU" VIDEO_CARDS="intel nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-05-08 20:17:04 UTC
You might want to try newer kernels (2.6.30-rcX for instance) to see if the bug has been fixed there.

Thanks
Comment 2 Stefan Behte (RETIRED) gentoo-dev Security 2009-05-09 15:43:46 UTC
I had the same bug, a recent git clone of linus tree fixed it. 

With modesetting, X consumes 20% CPU when the box is idle, xterm lags like hell, but yakuake is ok.

Without modesetting, X works as expected. Due to a lack of time, I'll not be investing this shortly.
Comment 3 Andreas Sturmlechner gentoo-dev 2009-05-11 17:37:24 UTC
seems to be fixed with 2.6.29.3:

[snippet]
commit 90d88db860348276d874b78c432f6b3b780c8c8d
Author: Jesse Barnes <jbarnes@virtuousgeek.org>
Date:   Tue Apr 14 14:17:47 2009 -0700

    drm/i915: allow tiled front buffers on 965+
[/snippet]

I'll try it out immediately.
Comment 4 Andreas Sturmlechner gentoo-dev 2009-05-11 18:30:55 UTC
oh yes, 2.6.29.3 finally works (at least) for i915 chips.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2009-05-11 18:58:34 UTC
Great, thanks for following up and testing! we'll close this bug when a gentoo-sources including 2.6.29.3 hits portage.
Comment 6 Mike Pagano gentoo-dev 2009-05-15 16:13:57 UTC
Linux 2.6.29.3 release in gentoo-sources-2.6.29-r4