If I attempt to load either xorg or xfree with using the i915 driver from the x11-drm package, I get the following error reported through dmesg. PCI: Unable to reserve mem region #1:8000000@d8000000 for device 0000:00:02.0 mtrr: 0xd8000000,0x8000000 overlaps existing 0xd8000000,0x200000 [drm] Initialized i915 1.1.0 20040405 on minor 0: Intel Corp. 82852/855GM Integrated Graphics Device PCI: Enabling device 0000:00:02.1 (0000 -> 0002) mtrr: 0xd8000000,0x8000000 overlaps existing 0xd8000000,0x200000 [drm] Initialized i915 1.1.0 20040405 on minor 1: Intel Corp. 82852/855GM Integrated Graphics Device (#2) [drm] Used old pci detect: framebuffer loaded mtrr: base(0xd8020000) is not aligned on a size(0x180000) boundary [drm:i915_unlock] *ERROR* Process 9065 using kernel context 0 mtrr: 0xd8000000,0x8000000 overlaps existing 0xd8000000,0x200000 X still loads after this error, but direct rendering won't work. After researching, I've found similar mtrr errors, but haven't been able to find anything about [drm:i915_unlock]. I followed spyderous' xfree-dri instructions to make sure I had my configs set up correctly. Is this an upstream module problem or am I missing something? Reproducible: Always Steps to Reproduce: 1.emerge and set up x11-drm with i915 module 2.launch X 3. Actual Results: Error is reported. X is not able to activate direct rendering. Expected Results: Enabled direct rendering. Portage 2.0.50-r11 (default-x86-2004.0, gcc-3.4.1, glibc-2.3.4.20040808-r0, 2.6.7-gentoo-r14) ================================================================= System uname: 2.6.7-gentoo-r14 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.20GHzGentoo Base System version 1.5.3 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -Os -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -Os -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.ecc.u-tokyo.ac.jp/GENTOO/ ftp://ibiblio.org/pub/Linux/distributions/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa apm avi berkdb bitmap-fonts cdr crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mozilla moznocompose moznoirc moznomail mpeg ncurses nls oggvorbis opengl pam pda pdflib perl png ppds python quicktime readline sdl slang spell ssl svga tcpd theora truetype usb video_cards_i810 video_cards_i830 x86 xml2 xprint xv zlib"
*** Bug 63828 has been marked as a duplicate of this bug. ***
This problem is descripted in http://forums.gentoo.org/viewtopic.php?t=223053 Simple solution is to remove the overlapplig segment: > cat /proc/mtrr|grep 0xd800000 reg02: base=0xd8000000 (3712MB), size= 4MB: write-combining, count=1 The mtrr output depend on the kernel. Here is the 'reg02' that is using it. so do: echo "disable=2" > /proc/mtrr Replace the =2 with number in reg0X. drm i915 will create the MTRR entry. I have a problem interrupt and DRM after I fix this. from Xorg.0.log: (EE) I810(0): [drm] falure adding irq handler And then the DRM is removing a context from the kernel. Is this the drm:i915_unlock ERROR resoult? I am also using the framebuffer with mtrr: '[drm] Used old pci detect: framebuffer loaded', can that cause the problem?
The mtrr overlap is cause by the framebuffer. I got it away by removing the framebuffer support. the real problem is: (EE) I810(0): [drm] failure adding irq handler The bug is in Free Desktop.Org Bugzilla as #1388 https://freedesktop.org/bugzilla/show_bug.cgi?id=1388
I was able to fix the issue by patching my gentoo-dev-sources-2.6.7-r14 kernel with the following patch and building the i915 as a module. It seems to be working perfectly. The issue must be the driver in the x11-drm package. http://www.skynet.ie/~airlied/patches/dri/i915_linux.diff
I did the same patch to gentoo-dev-sources-2.6.8-r4 and xorg-x11-6.8.0-r1 worked. Please add the i915 driver to the gentoo-dev-source.
Is this a dupe of bug #63436? i915 is required for use with xorg 6.8
No, it's not a dupe, but it is related. Bug 63436 notes that xorg requires the i915 modules which is not provided in the current kernel, but which is included in the x11-drm package. As posted, I reported that I was having issues with the x11-drm i915 driver, but discovered that the mentioned kernel patch works perfectly. The bug reports are related, but this bug was originally posted to report problems with the x11-drm driver. I believe that is still an issue that needs to be addressed, since the kernel patch driver is known to work without the noted error.
The i915 drm code in linux-2.6.16 works for my i945GM. Can this bug report be closed?
I think so. I use it myself for 855GM.