Bug 13253

Summary: Memory allocation falls back poorly
Product: xorg Reporter: WuNian <nian.wu>
Component: Driver/intelAssignee: Jesse Barnes <jbarnes>
Status: VERIFIED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: jbarnes, michael.fu, rasasi78, xhejtman, zhenyu.z.wang
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
xorg log file none

Description WuNian 2007-11-14 19:31:02 UTC
If we specify virtual screen as 1680x1680 or 1800x1800, when X start up, the xorg.conf will have the warning info:
(WW) intel(0): Failed to allocate texture space.

If the virtual screen is 1024x1024 or 2048x2048, the bug does not exist.
Is the bug because the virtual screen size need be times of 512?
Comment 1 WuNian 2007-11-14 19:34:10 UTC
Created attachment 12564 [details]
xorg log file

we tested on Q965. 

source version:
drm   master
        commit 448ccf13ba647a4b649857c661ab9c64bce91795
xf86_video_intel   master
        commit ad3bc0158d37e98fcbbe6a8e31413c142a260424
xserver   master
        commit f7dd0c72b8f861f4d5443a43d1013e3fe3db43ca
Comment 2 WuNian 2007-11-14 21:59:26 UTC

*** This bug has been marked as a duplicate of bug 13245 ***
Comment 3 Gordon Jin 2007-11-15 18:22:56 UTC
reopening as the duplicated bug#13245 was closed but I do think this is a unresolved bu.
Comment 4 WuNian 2007-12-04 18:02:36 UTC
I produced this bug on 945GM. After I set the virtual size as 1680x1680 in xorg.conf, the xorg.log had info:

(**) intel(0): Tiling enabled
(II) intel(0): Attempting memory allocation with tiled buffers.
(WW) intel(0): Failed to allocate texture space.
(WW) intel(0): Couldn't allocate tiled memory, fb compression disabled
(II) intel(0): Attempting memory allocation with untiled buffers.
(II) intel(0): Success.


Now the fbc also is disabled.
Comment 5 WuNian 2007-12-04 18:04:26 UTC
*** Bug 13490 has been marked as a duplicate of this bug. ***
Comment 6 Jesse Barnes 2007-12-11 17:12:30 UTC
I have this fixed (I think) in my cleanup tree at git://people.freedesktop.org/~jbarnes/xf86-video-intel.  I'm still waiting on more review before I merge that tree into master.
Comment 7 Jesse Barnes 2007-12-11 17:21:03 UTC
*** Bug 13032 has been marked as a duplicate of this bug. ***
Comment 8 Michael Fu 2008-01-25 01:21:01 UTC
Jesse, any update about the testing in your cleanup tree? can we mark this bug as resolved?
Comment 9 Lukas Hejtmanek 2008-01-25 01:25:42 UTC
I'm using it couple of weeks without problems. But please, do not close the bug till the patch is merged into master of standard git repository.
Comment 10 Michael Fu 2008-01-27 16:53:51 UTC
Jesse, has the patch checked in?
Comment 11 Jesse Barnes 2008-01-27 21:10:15 UTC
No, this one won't make 2.2.1.  The changes are too invasive for a point release.  We can include the patch in 2.3 though.
Comment 12 Jesse Barnes 2008-03-06 14:46:22 UTC
Zhenyu, you pulled the fixes from my personal repo to fix this bug, right?  Nian, can you re-test with the git tree?
Comment 13 Lukas Hejtmanek 2008-03-06 14:56:12 UTC
(In reply to comment #12)
> Zhenyu, you pulled the fixes from my personal repo to fix this bug, right? 
> Nian, can you re-test with the git tree?
> 

both the current git and the 2.2.0 driver do not fail with texture space or tiling. 

(II) intel(0): Attempting memory allocation with tiled buffers.
(II) intel(0): Tiled allocation successful.
[...]
(II) intel(0): Fixed memory allocation layout:
(II) intel(0): 0x00000000-0x0001ffff: ring buffer (128 kB)
(II) intel(0): 0x00020000-0x00029fff: HW cursors (40 kB)
(II) intel(0): 0x0002a000-0x00031fff: logical 3D context (32 kB)
(II) intel(0): 0x00032000-0x00041fff: exa G965 state buffer (64 kB)
(II) intel(0): 0x00100000-0x00c7bfff: front buffer (11760 kB) X tiled
(II) intel(0): 0x0077f000:            end of stolen memory
(II) intel(0): 0x00c7c000-0x02eeffff: exa offscreen (35280 kB)
(II) intel(0): 0x02ef0000-0x03a6bfff: back buffer (11760 kB) X tiled
(II) intel(0): 0x03a6c000-0x045e7fff: depth buffer (11760 kB) Y tiled
(II) intel(0): 0x045e8000-0x065e7fff: classic textures (32768 kB)
(II) intel(0): 0x10000000:            end of aperture
Comment 14 Wang Zhenyu 2008-03-06 16:49:13 UTC
yeah, I think we can close this one now.
Comment 15 WuNian 2008-03-06 17:34:08 UTC
Verified. Thanks.

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.