Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 63829 - i915 x11-drm module doesn't work, but kernel i915 module does
Summary: i915 x11-drm module doesn't work, but kernel i915 module does
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL: http://forums.gentoo.org/viewtopic.ph...
Whiteboard:
Keywords:
: 63828 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-12 14:24 UTC by Clark Torgerson
Modified: 2006-07-06 18:41 UTC (History)
1 user (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 Clark Torgerson 2004-09-12 14:25:53 UTC
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"
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2004-09-12 15:33:16 UTC
*** Bug 63828 has been marked as a duplicate of this bug. ***
Comment 2 Lars S. Jensen 2004-09-18 12:42:48 UTC
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?


Comment 3 Lars S. Jensen 2004-09-18 18:05:10 UTC
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
Comment 4 Clark Torgerson 2004-09-18 21:30:23 UTC
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
Comment 5 Lars S. Jensen 2004-09-19 06:05:28 UTC
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.
Comment 6 Matteo Settenvini 2004-09-21 07:16:34 UTC
Is this a dupe of bug #63436?
i915 is required for use with xorg 6.8
Comment 7 Clark Torgerson 2004-09-21 08:31:46 UTC
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.
Comment 8 Henrik Brix Andersen 2006-04-12 02:43:35 UTC
The i915 drm code in linux-2.6.16 works for my i945GM.

Can this bug report be closed?
Comment 9 Joshua Baergen (RETIRED) gentoo-dev 2006-07-06 18:41:34 UTC
I think so.  I use it myself for 855GM.