Bug 10322

Summary: xf86-video-intel: memory allocation fails
Product: xorg Reporter: Todd Merrill <turmlos>
Component: Driver/intelAssignee: Eric Anholt <eric>
Status: RESOLVED NOTABUG QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: aflist2
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 10102    
Attachments:
Description Flags
log of failure
none
log of success
none
xorg.conf
none
mgregson@csclub.uwaterloo.ca xorg.conf
none
error log none

Description Todd Merrill 2007-03-16 19:00:18 UTC
xf86-video-intel commit 213394fbaaf353404cbb3aaa4c20860f48ee1079 seems to have broken memory allocation on my 945GM.  I get the following messages in my log:

(II) intel(0): Attempting memory allocation with tiled buffers and 
               large DRI memory manager reservation:
(WW) intel(0): xf86AllocateGARTMemory: allocation of 10 pages failed
        (Cannot allocate memory)
(WW) intel(0): Disabling HW cursor because the cursor memory allocation failed.

The parent commit works as expected.
Comment 1 Todd Merrill 2007-03-18 08:28:12 UTC
Commit 9118122a232d4cf7760bcb0874fe970c25251378 has fixed the problem.
Comment 2 aflist2 2008-08-19 02:00:51 UTC
i'm experiencing this bug with xf86-video-intel 2.4.1 on 855gm.

if i boot and start X right away, DRI is not enabled and these messages are located in the logfile.

(II) intel(0): Attempting memory allocation with tiled buffers.
(WW) intel(0): xf86AllocateGARTMemory: allocation of 10 pages failed
        (Cannot allocate memory)
(WW) intel(0): xf86AllocateGARTMemory: allocation of 4 pages failed
        (Cannot allocate memory)
(WW) intel(0): Disabling HW cursor because the cursor memory allocation failed.
(II) intel(0): Tiled allocation successful.
(--) intel(0): DRI is disabled because it needs HW cursor, 2D accel and AGPGART.

if i do something system-intensive like compiling several software packages before starting X, the cursor allocation succeeds and DRI loads and works great.

Comment 3 aflist2 2008-08-19 02:04:07 UTC
Created attachment 18374 [details]
log of failure
Comment 4 aflist2 2008-08-19 02:05:49 UTC
Created attachment 18375 [details]
log of success
Comment 5 aflist2 2008-08-19 02:07:31 UTC
Created attachment 18376 [details]
xorg.conf
Comment 6 Michael Gregson 2008-10-30 13:57:13 UTC
(In reply to comment #5)
> Created an attachment (id=18376) [details]
> xorg.conf
> 

I'm getting this error now as well.  Attaching xorg.conf and Xorg.0.log.
Comment 7 Michael Gregson 2008-10-30 13:59:30 UTC
Created attachment 19968 [details]
mgregson@csclub.uwaterloo.ca  xorg.conf

Using driver version 2.5.0
Comment 8 Michael Gregson 2008-10-30 14:00:37 UTC
Created attachment 19969 [details]
error log

error log
Comment 9 Wang Zhenyu 2008-12-08 01:00:28 UTC
Driver will try a single large physical space first for hw cursor, if failed, then try two smaller physical spaces, if still failed, fallback to soft cursor which disable DRI too. This isn't not our driver bug, you should have linear free physical pages for this, otherwise the best thing driver can do is fallback to soft cursor.

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.