Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 308459 - x11-drivers/xf86-video-intel: MTRR error + hang
Summary: x11-drivers/xf86-video-intel: MTRR error + hang
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
: 309673 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-03-08 13:05 UTC by Nan Wang
Modified: 2010-03-16 06:57 UTC (History)
1 user (show)

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


Attachments
/etc/X11/xorg.conf (xorg.conf,3.52 KB, text/plain)
2010-03-08 13:08 UTC, Nan Wang
Details
/proc/config.gz (config.gz,12.47 KB, text/plain)
2010-03-08 13:10 UTC, Nan Wang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nan Wang 2010-03-08 13:05:38 UTC
This problem is similar to 304961 and other "error setting MTRR" problem, but slightly different.

After "startx" from a console (say, console 1), everything works fine. However, if switch back to the console (console 1, using C-M-F1) and press enter, programs in X11 server stop (I know they stop before switching back because rhythmbox stops to playback music after I press enter). When switch back (C-M-F7), all applications hang, left blank windows on the screen. But mouse can move, keyboard shortcut of C-M-F? and C-M-Backspace still work.

When kill xorg-server, kernel and xorg-server report some MTRR related information.

xorg-server reports:
error setting MTRR (base = 0x????????, size = 0x????????, type = ?) Invalid argument (22)
(I forget the exact number)

kernel reports:

kernel: mtrr: no MTRR for e0000000,10000000 found
(number are correct)

If start X using

$ startx < /dev/null

then everything works fine.

I will attach my system information below

Reproducible: Always

Steps to Reproduce:
1.

reboot system using init 3

2.

execute 'startx' in console 1

3.
run a music playback and play a song

4.
press C-M-F1 to switch back to console 1

5.
press Enter

6. Switch back


Actual Results:  
In step 5, music playback stops

In step 6, every X11 programs hang, but mouse still movable, C-M-F? and C-M-Backspace still workable

Expected Results:  
In step 5, music shouldn't stop

In step 6, windows shouldn't hang
Comment 1 Nan Wang 2010-03-08 13:06:34 UTC
----------------------------------------------
Softwares:
----------------------------------------------
xorg-server-1.6.5-r1  (-hal)
x11-drivers/xf86-video-intel-2.9.1
kernel: 2.6.31-gentoo-r10
Comment 2 Nan Wang 2010-03-08 13:07:33 UTC
---------------------------------------
emerge --info
---------------------------------------
Portage 2.1.7.17 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r1, 2.6.31-gentoo-r10_work i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r10_work-i686-Intel-R-_Core-TM-2_Duo_CPU_E4500_@_2.20GHz-with-gentoo-1.12.13
Timestamp of tree: Mon, 08 Mar 2010 03:00:23 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.3, 1.11.1
sys-devel/binutils:  2.18-r3
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /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"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.aditsu.net/ 		ftp://lug.mtu.edu/gentoo/ 		"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="zh_CN en_US"
MAKEOPTS="-j3"
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="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode espeak evo fam fbcondecor festival firefox flac fontconfig fortran gdbm gif gnome gpm graphviz gstreamer gtk gucharmap hal iconv ipv6 java6 javascript jpeg kde ldap libnotify lock mad mikmod mmx mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl png ppds pppd pronounce python qqwry qt3support qt4 quicktime readline reflection sdl session spell spl sql sqlite sse sse2 ssl start-notification startup-notification svg sysfs tcpd thunar tiff tk truetype unicode usb vorbis webkit win32codecs x264 x86 xcomposite xft xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN en_US" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel i810 vesa" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 Nan Wang 2010-03-08 13:08:10 UTC
Created attachment 222647 [details]
/etc/X11/xorg.conf

/etc/X11/xorg.conf
Comment 4 Nan Wang 2010-03-08 13:09:17 UTC
---------------------------------------
cat /proc/mtrr:
---------------------------------------
reg00: base=0x000000000 (    0MB), size= 2048MB, count=1: write-back
reg01: base=0x07f800000 ( 2040MB), size=    8MB, count=1: uncachable
reg02: base=0x07f700000 ( 2039MB), size=    1MB, count=1: uncachable
reg03: base=0x07f600000 ( 2038MB), size=    1MB, count=1: write-through

---------------------------------------
lspci result:
---------------------------------------
00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82G33/G31 Express Integrated Graphics Controller (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 02)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IR (ICH9R) LPC Interface Controller (rev 02)
00:1f.2 IDE interface: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 4 port SATA IDE Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
00:1f.5 IDE interface: Intel Corporation 82801I (ICH9 Family) 2 port SATA IDE Controller (rev 02)
02:00.0 SATA controller: JMicron Technology Corp. 20360/20363 Serial ATA Controller (rev 02)
02:00.1 IDE interface: JMicron Technology Corp. 20360/20363 Serial ATA Controller (rev 02)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 01)


Comment 5 Nan Wang 2010-03-08 13:10:00 UTC
Created attachment 222649 [details]
/proc/config.gz

/proc/config.gz
Comment 6 Nan Wang 2010-03-08 13:10:27 UTC
--------------------------------------------
kernel command line (cat /proc/cmdline)
--------------------------------------------
BOOT_IMAGE=(hd0,1)/vmlinuz-2.6.31-gentoo-r10_work root=/dev/sda6 vga=791 ro
Comment 7 Nan Wang 2010-03-08 13:21:42 UTC
enable CONFIG_DRM_I915_KMS and use i915.modeset=1 not work;

I tried 

$ startx &

doesn't work.

The only workaround is

$ startx < /dev/null
Comment 8 Nan Wang 2010-03-11 01:58:45 UTC
MTTR problem and hanging problem are 2 bugs, and may no relationship. I notice that if I redirect stdin, stdout and stderr, hanging bugs never occur, but when I exit xorg, the "error setting MTRR" line still exist.
Comment 9 Rémi Cardona (RETIRED) gentoo-dev 2010-03-15 21:29:04 UTC
Could you please try with gentoo-sources and libdrm from ~arch?

Thanks
Comment 10 Nan Wang 2010-03-15 22:12:05 UTC
When I fire the bug:

kernel: 2.6.31-gentoo-r10          (x86)
libdrm: x11-libs/libdrm-2.4.18     (~x86)

I'll test ~x86 kernel.
Comment 11 Nan Wang 2010-03-15 22:51:58 UTC
Both problems still exist in kernel 2.6.33-gentoo + newest libdrm:

The hang problem still exist;

The MTRR seems to relate to kernel command line option: if i915.modeset=1, X and kernel won't report MTRR problem; if i915.modeset=0, each time X exit, both X and kernel report MTRR problem. Two kernel (x86 and ~x86) are same.

I believe the hang problem and MTRR problem are 2 different problems. I tested my laptop (with NVIDIA GF8600MGT) and the hang problem still exists.
Comment 12 Rémi Cardona (RETIRED) gentoo-dev 2010-03-15 22:54:08 UTC
KMS will be mandatory with 2.10 and on. If the MTRR problem goes away, then I consider it fixed.

As for the hang, please open a bug upstream [1] and paste the URL here so I can track the issue as well.

Thanks

[1] http://intellinuxgraphics.org/how_to_report_bug.html
Comment 13 Nan Wang 2010-03-15 22:56:07 UTC
Another problem: if set i915.modeset to 0, compiz-fusion never work correctly:
I get a white screen with mouse movable, I can only use C-M-Backspace to kill
xorg-server. After X killed, MTRR problem is reported.

(In reply to comment #11)
> Both problems still exist in kernel 2.6.33-gentoo + newest libdrm:
> 
> The hang problem still exist;
> 
> The MTRR seems to relate to kernel command line option: if i915.modeset=1, X
> and kernel won't report MTRR problem; if i915.modeset=0, each time X exit, both
> X and kernel report MTRR problem. Two kernel (x86 and ~x86) are same.
> 
> I believe the hang problem and MTRR problem are 2 different problems. I tested
> my laptop (with NVIDIA GF8600MGT) and the hang problem still exists.
> 
Comment 14 Nan Wang 2010-03-15 23:10:41 UTC
The hang bug is reissued:

http://bugs.gentoo.org/show_bug.cgi?id=309673
Comment 15 Rémi Cardona (RETIRED) gentoo-dev 2010-03-15 23:22:01 UTC
*** Bug 309673 has been marked as a duplicate of this bug. ***
Comment 16 Rémi Cardona (RETIRED) gentoo-dev 2010-03-15 23:22:24 UTC
_Upstream_ please.

Thanks
Comment 17 Nan Wang 2010-03-16 01:25:25 UTC
I've also submit a bug to freedesktop.org

https://bugs.freedesktop.org/show_bug.cgi?id=27099

Comment 18 Rémi Cardona (RETIRED) gentoo-dev 2010-03-16 06:56:36 UTC
Reopening
Comment 19 Rémi Cardona (RETIRED) gentoo-dev 2010-03-16 06:57:22 UTC
I've CCed myself on the upstream bug, let's track the issue there directly.

Thanks