Bug 5901 - i915: libGL error: drmMap of framebuffer failed (Invalid argument)
Summary: i915: libGL error: drmMap of framebuffer failed (Invalid argument)
Status: CLOSED FIXED
Alias: None
Product: DRI
Classification: Unclassified
Component: libGL (show other bugs)
Version: DRI git
Hardware: Other other
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-16 13:37 UTC by Bernhard Rosenkraenzer
Modified: 2010-07-01 02:09 UTC (History)
7 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Xorg.0.log file (67.69 KB, text/plain)
2006-05-31 06:32 UTC, Geronimo Orozco
no flags Details

Description Bernhard Rosenkraenzer 2006-02-16 13:37:57 UTC
"LIBGL_DEBUG=verbose glxinfo"
in current CVS (CVS drm modules + Mesa + xorg-server + xorg-proto-devel + 
libdrm, xf86-video-i810 1.5.0.0, everything else from X.org 7.0) on an i915 
results in

name of display: :0.0
libGL: XF86DRIGetClientDriverName: 1.5.0 i915 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/i915_dri.so
drmOpenByBusid: Search for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 5, (OK)
drmOpenByBusid: drmOpenMinor returns 5
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering

Except for a line saying "Bad V_BIOS checksum", everything in the X startup 
logs (including the DRI/DRM related parts, and "direct rendering: Enabled") 
looks right.

2D acceleration works fine.
Comment 1 Alan Hourihane 2006-02-16 13:48:38 UTC
Update your xorg i810 driver from CVS. It's already fixed.
Comment 2 Geronimo Orozco 2006-05-31 06:32:57 UTC
Created attachment 5766 [details]
Xorg.0.log file
Comment 3 Geronimo Orozco 2006-05-31 06:33:35 UTC
I have seen this message when start compiz.
I am using packages for ubuntu and I followed steps to get it installed with
this howto: http://www.ubuntuforums.org/showthread.php?t=145068

However when I start compiz maually this is what it shows.


$compiz-start
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering
compiz.real: No stencil buffer. Clipping of transformed windows is not going to
be correct when screen is transformed.

I am using xorg-air

I attached /var/log/Xorg.0.log
Comment 4 Geronimo Orozco 2006-05-31 06:34:29 UTC
Using laptop dell inspiron i915
Comment 5 Michal Suchanek 2006-10-11 05:50:22 UTC
Not fixed for me.

LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 1.7.0 i915 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/tls/i915_dri.so
libGL: OpenDriver: trying /usr/lib/dri/i915_dri.so
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering
display: :0  screen: 0



* media-libs/mesa 
     Installed:           6.5.1-r1

* sys-kernel/gentoo-sources 
     Installed:           2.6.17-r8

* x11-base/xorg-server 
     Installed:           1.1.1-r1

* x11-drivers/xf86-video-i810 
     Installed:           1.7.0-r1

* x11-libs/libdrm 
     Installed:           2.0.2
Comment 6 Michal Suchanek 2006-10-11 05:56:16 UTC
Hmm, it goes away when I turn off the Rotate option. Perhaps it should be
mentioned in the man page that Rotate does not work with DRI/OpenGL/whatever?
Comment 7 Erik Zeek 2008-01-24 20:08:38 UTC
There also a report of this on the Gentoo bugzilla:

http://bugs.gentoo.org/show_bug.cgi?id=201030

Comment 8 Erik Zeek 2008-01-24 20:45:51 UTC
This was working with x11-drivers/xf86-video-i810-2.1.1 but is broken in 2.2.0 and 2.2.1_pre20080123

My information:

LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 1.9.0 i915 (screen 0)
libGL: OpenDriver: trying /usr/lib/dri/i915_dri.so
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: Searching for BusID pci:0000:00:02.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
libGL error: drmMap of framebuffer failed (Invalid argument)
libGL error: reverting to (slow) indirect rendering
display: :0  screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)


sys-kernel/gentoo-sources-2.6.23-r6
media-libs/mesa-7.0.2
x11-base/xorg-server-1.4.0.90-r2
x11-libs/libdrm-2.3.0
x11-drivers/xf86-video-i810-2.2.1_pre20080123
Comment 9 Rémi Cardona 2008-01-25 01:15:59 UTC
Gordon, this bug is still happening with the 2.2.1 snapshot I took yesterday. Is this related at all to the intel driver? maybe the kernel drm?
Comment 10 Gordon Jin 2008-01-25 04:30:48 UTC
I heard such error went away after upgrading xserver from 1.3 to 1.4: http://lists.freedesktop.org/archives/xorg/2007-October/028963.html

Can you try that?
Comment 11 Erik Zeek 2008-01-25 06:46:19 UTC
(In reply to comment #10)
> I heard such error went away after upgrading xserver from 1.3 to 1.4:
> http://lists.freedesktop.org/archives/xorg/2007-October/028963.html
> 
> Can you try that?
> 

I am using x11-base/xorg-server-1.4.0.90-r2 from Gentoo portage.  Is there a newer version I should try?

I should also note that I tried the snapshot version with and without:

Option "CacheLines" "800"

in the Device section.  This was needed to get OpenGL working with x11-drivers/xf86-video-i810-2.1.1.
Comment 12 Erik Zeek 2008-02-03 06:33:56 UTC
x11-drivers/xf86-video-i810-2.2.1_pre20080125 from gentoo portage gives the same results.
Comment 13 Sérgio M. Basto 2008-02-04 03:01:44 UTC
(In reply to comment #8)
> This was working with x11-drivers/xf86-video-i810-2.1.1 but is broken in 2.2.0
> and 2.2.1_pre20080123
> 
> My information:
> 
> LIBGL_DEBUG=verbose glxinfo
> name of display: :0.0
> libGL: XF86DRIGetClientDriverName: 1.9.0 i915 (screen 0)
> libGL: OpenDriver: trying /usr/lib/dri/i915_dri.so
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is 4, (OK)
> drmOpenByBusid: Searching for BusID pci:0000:00:02.0
> drmOpenDevice: node name is /dev/dri/card0
> drmOpenDevice: open result is 4, (OK)
> drmOpenByBusid: drmOpenMinor returns 4
> drmOpenByBusid: drmGetBusid reports pci:0000:00:02.0
> libGL error: drmMap of framebuffer failed (Invalid argument)
> libGL error: reverting to (slow) indirect rendering
> display: :0  screen: 0
> direct rendering: No (If you want to find out why, try setting
> LIBGL_DEBUG=verbose)
> 
> 
> sys-kernel/gentoo-sources-2.6.23-r6
> media-libs/mesa-7.0.2
> x11-base/xorg-server-1.4.0.90-r2
> x11-libs/libdrm-2.3.0
> x11-drivers/xf86-video-i810-2.2.1_pre20080123
> 

the order of compiling things matters ,
1ª kernel and libdrm
2ª mesa 
3º xorg-server with mesa sources 
4º xf86-video-i810
Comment 14 Simonas Leleiva 2008-02-05 12:50:41 UTC
(In reply to comment #13)
> the order of compiling things matters ,
> 1ª kernel and libdrm
> 2ª mesa 
> 3º xorg-server with mesa sources 
> 4º xf86-video-i810

Wait, but how does it come to this: everything worked with 2.1.1, but now the only thing that has changed it's the driver (xf86-video-i810 2.1.1->2.2.1)

And as there are no reverse deps, the list you've provided has already kernel, librdm, mesa and xorg-server compiled.

Now we got the change of driver's version, we compile only it.

Correct me if I'm wrong, thanks

-- 
sledge
Comment 15 Sérgio M. Basto 2008-02-05 13:09:30 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > the order of compiling things matters ,
> > 1ª kernel and libdrm
> > 2ª mesa 
> > 3º xorg-server with mesa sources 
> > 4º xf86-video-i810
> 
> Wait, but how does it come to this: everything worked with 2.1.1, but now the
> only thing that has changed it's the driver (xf86-video-i810 2.1.1->2.2.1)
> 
> And as there are no reverse deps, the list you've provided has already kernel,
> librdm, mesa and xorg-server compiled.
> 
> Now we got the change of driver's version, we compile only it.
> 
> Correct me if I'm wrong, thanks


the "drmMap of framebuffer failed (Invalid argument)", seems to me, that happens , or happen to me , to be more correctly, when I had use a git libdrm , and not the released libdrm-2.3.0.
My theory, I don't read all report, is a wrong compiling order things, which is not invalid if is worked with 2.1.1 , because the 2.2.1 has stuff to work with stable and stuff to work with git drm. 
So for clearly things .
Make sure that you have lidrm 2.3.0 installed without any git stuff, and recompile mesa 7.0.x after that recompile xorg-server 1.4.0.x 


 
Comment 16 Bernhard Rosenkraenzer 2008-02-05 23:56:09 UTC
It works for me after upgrading everything (libdrm, mesa, xserver) to current git, so that set of upgrades may be another solution.
Comment 17 Simonas Leleiva 2008-02-06 04:45:20 UTC
(In reply to comment #15)
> the "drmMap of framebuffer failed (Invalid argument)", seems to me, that
> happens , or happen to me , to be more correctly, when I had use a git libdrm ,
> and not the released libdrm-2.3.0.
> My theory, I don't read all report, is a wrong compiling order things, which is
> not invalid if is worked with 2.1.1 , because the 2.2.1 has stuff to work with
> stable and stuff to work with git drm. 
> So for clearly things .
> Make sure that you have lidrm 2.3.0 installed without any git stuff, and
> recompile mesa 7.0.x after that recompile xorg-server 1.4.0.x 

I re-emerged (recompiled, Gentoo) the following in this order:
emerge (1 of 4) x11-libs/libdrm-2.3.0
emerge (2 of 4) media-libs/mesa-7.0.2
emerge (3 of 4) x11-base/xorg-server-1.3.0.0-r5
emerge (4 of 4) x11-drivers/xf86-video-i810-2.2.1_pre20080125

but it didn't solve the problem. Would eventually try the git`ted ones, if you won't point out any other alternatives.. Thanks!
Comment 18 Rémi Cardona 2008-02-06 04:48:02 UTC
Try rebuiding with xorg 1.4.0.90
Comment 19 Simonas Leleiva 2008-02-06 06:17:24 UTC
(In reply to comment #18)
> Try rebuiding with xorg 1.4.0.90
> 

Yes, thank you, this worked.

So now the git-free solving combination is this:
(Gentoo portage latest versions):
x11-libs/libdrm-2.3.0
media-libs/mesa-7.0.2
x11-base/xorg-server-1.4.0.90-r3
x11-drivers/xf86-video-i810-2.2.1_pre20080125

For the gentoo folks to take off the burden:
echo x11-base/xorg-server >> /etc/portage/package.keywords
echo x11-libs/xtrans >> /etc/portage/package.keywords
echo x11-proto/renderproto >> /etc/portage/package.keywords
echo x11-libs/libXrender >> /etc/portage/package.keywords
echo x11-drivers/xf86-input-keyboard >> /etc/portage/package.keywords
echo x11-libs/pixman >> /etc/portage/package.keywords

echo x11-libs/xtrans >> /etc/portage/package.unmask
echo x11-proto/renderproto >> /etc/portage/package.unmask
echo x11-libs/libXrender >> /etc/portage/package.unmask
echo x11-drivers/xf86-input-keyboard >> /etc/portage/package.unmask
echo x11-libs/pixman >> /etc/portage/package.unmask

after xf86-video-i810 emerge xf86-input-mouse, too
Comment 20 Erik Zeek 2008-05-01 21:29:56 UTC
Sorry I haven't replied earlier.  Real life got in the way.

I'm still getting this error.  Currently I've got:

sys-kernel/gentoo-sources-2.6.25-r1
x11-libs/libdrm-2.3.0
media-libs/mesa-7.0.3
x11-base/xorg-server-1.4.0.90-r3
x11-drivers/xf86-video-i810-2.3.0

Is there anyway to get better diagnostics than from "LIBGL_DEBUG=verbose glxinfo".  "Invalid argument" isn't much to go on.
Comment 21 Sérgio M. Basto 2010-06-30 15:53:21 UTC
Could you close this bug ?  since things seems to working.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.