Bug 12585 - [855GM TTM] X failed to allocate framebuffer if specified large virtual fb
Summary: [855GM TTM] X failed to allocate framebuffer if specified large virtual fb
Status: VERIFIED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Eric Anholt
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
: 13758 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-09-26 23:55 UTC by WuNian
Modified: 2008-06-19 22:58 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
xorg config file (3.55 KB, text/plain)
2007-09-26 23:56 UTC, WuNian
no flags Details
xorg log file (15.54 KB, text/plain)
2007-09-26 23:56 UTC, WuNian
no flags Details
xorg log file (14.64 KB, text/plain)
2007-11-29 22:48 UTC, Pi, Fengming
no flags Details
xorg log file (16.25 KB, text/plain)
2008-01-22 23:20 UTC, Pi, Fengming
no flags Details

Description WuNian 2007-09-26 23:55:53 UTC
On 855GM, if specified "Virtual 2048 1050" in xorg.conf, then start up X, X failed to allocate framebuffer and exit. Below is the error info:

(EE) intel(0): Failed to allocate framebuffer. Is your VideoRAM set too low?
(EE) intel(0): Failed to allocate framebuffer. Is your VideoRAM set too low?
(EE) intel(0): Couldn't allocate video memory

Fatal server error:
AddScreen/ScreenInit failed for driver 0

If remove the "Virtual 2048 1050" option, X can start up.
Comment 1 WuNian 2007-09-26 23:56:36 UTC
Created attachment 11775 [details]
xorg config file
Comment 2 WuNian 2007-09-26 23:56:59 UTC
Created attachment 11776 [details]
xorg log file
Comment 3 Gordon Jin 2007-09-27 19:28:14 UTC
This seems to be caused by i915-unification.
Comment 4 Pi, Fengming 2007-11-29 22:44:24 UTC
Now using the latest git code On 855GM, if specified "Virtual 2048 1050" in xorg.conf, then start up X, it display following error messages and exit. Below is the error info:

Fatal server error:
Couldn't bind memory for BO front buffer
Comment 5 Pi, Fengming 2007-11-29 22:48:02 UTC
Created attachment 12858 [details]
xorg log file
Comment 6 Wang Zhenyu 2008-01-22 06:11:42 UTC
Your last log is corrupted.
Comment 7 Pi, Fengming 2008-01-22 23:20:56 UTC
Created attachment 13873 [details]
xorg log file

(In reply to comment #6)
> Your last log is corrupted.
> 
Thanks,I update a new log which got on latest code from 855gm.
Comment 8 Michael Fu 2008-03-04 17:24:21 UTC
Eric, comment?
Comment 9 Eric Anholt 2008-03-05 11:12:57 UTC
What would help is putting i830_describe_allocations at various points in the memory allocation path, but particularly at the just-failed-an-allocation point.  There may also be dmesg output relevant to this particular bug.

This whole mess will get easier to do right once we move to exa-ttm and remove one of the suballocators that fragments our memory.
Comment 10 WuNian 2008-03-05 17:04:07 UTC
(In reply to comment #9)
> What would help is putting i830_describe_allocations at various points in the
> memory allocation path, but particularly at the just-failed-an-allocation
> point.  There may also be dmesg output relevant to this particular bug.
Do you need us to upload the dmesg?

> This whole mess will get easier to do right once we move to exa-ttm and remove
> one of the suballocators that fragments our memory.
Do you mean the bug will be fixed later when exa-ttm is ready? 
Comment 11 Eric Anholt 2008-03-06 14:37:24 UTC
Yes, if you run dmesg, you may see relevant output from the failure.

And with exa-ttm, chance of success without any other changes just goes from "medium" to "high".
Comment 12 WuNian 2008-03-06 18:01:55 UTC
Now, after specify virtual size as 2048x1050, X failed up and reported:


Fatal server error:
Couldn't bind memory for BO front buffer

I checked the dmesg which had info:

[root@x-855gm ~]# dmesg |grep drm
[drm] Initialized drm 1.1.0 20060810
[drm] Initialized i915 1.12.0 20070209 on minor 0
[drm] Initialized i915 1.12.0 20070209 on minor 1
[drm:drm_buffer_object_validate] *ERROR* Failed moving buffer.
Comment 13 Wang Zhenyu 2008-03-13 19:30:34 UTC
*** Bug 13758 has been marked as a duplicate of this bug. ***
Comment 14 Gordon Jin 2008-03-18 18:38:52 UTC
Eric said this problem would go away with intel-batchbuffer merged.
Comment 15 Shuang He 2008-06-19 22:58:22 UTC
With git tip, no ttm, there's no such issue, so close this one
Comment 16 Shuang He 2008-06-19 22:58:37 UTC
verified


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.