Bug 10808

Summary: Intel driver texture space can't be allocated.
Product: xorg Reporter: Raúl <rasasi78>
Component: Driver/intelAssignee: Eric Anholt <eric>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: freedesktop-bugs, zeekec
Version: 7.2 (2007.02)   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
Xorg log when cachelines takes default value(bad)
none
Xorg configuration file with the proposed cachelines value.
none
Current (good) Xorg log.
none
Fresher Xorg log.
none
Xorg log without the cachelines option. DRI disabled.
none
Xorg log with the cachelines option. DRI enbled.
none
Xorg log with the cachelines option. DRI enbled.
none
Xorg log without the cachelines option. DRI disabled.
none
Log without the cachelines option and without virtual directive. none

Description Raúl 2007-04-29 04:17:47 UTC
The driver chooses the default cachelines value and can't allocate the texture space. This prevents dri to be activated which also leads the i915 module not to be loaded.

Adding the option "Cachelines" "3582" solves the problem.

My system is a Dell Inspiron 510m with an intel 855GM graphics card running Debian unstable.

I attach now my Xorg logs (not working and working) and my config file.
Comment 1 Raúl 2007-04-29 04:18:50 UTC
Created attachment 9790 [details]
Xorg log when cachelines takes default value(bad)
Comment 2 Raúl 2007-04-29 04:19:29 UTC
Created attachment 9791 [details]
Xorg configuration file with the proposed cachelines value.
Comment 3 Raúl 2007-04-29 04:20:11 UTC
Created attachment 9792 [details]
Current (good) Xorg log.
Comment 4 Michel Dänzer 2007-05-17 15:00:42 UTC
Someone on the xorg list pointed out that this only seems to happen when increasing the virtual resolution in xorg.conf. Can you confirm that? If so, maybe the driver doesn't take the virtual resolution into account properly when calculating the default CacheLines value.
Comment 5 Julien Cristau 2007-05-17 16:12:05 UTC
(In reply to comment #4)
> Someone on the xorg list pointed out that this only seems to happen when
> increasing the virtual resolution in xorg.conf. 

This issue has also been reported as http://bugs.debian.org/423416, and the xorg.conf included there doesn't change the virtual resolution afaics.
Comment 6 Scott Cassidy 2007-06-05 16:55:50 UTC
*** Bug 11157 has been marked as a duplicate of this bug. ***
Comment 7 Raúl 2007-08-11 04:24:56 UTC
Created attachment 11092 [details]
Fresher Xorg log.

This is just to provide up to date log with the latest intel git version. The situation stays the same, DRI works, but still there are some warnings in the log.
Comment 8 sbeh 2007-08-27 11:47:47 UTC
I too had this problem 20minutes ago, I am using a xorg-configuration where I have 2 Monitor-, 2 Device- and 2 Screen-Sections. Adding VideoRam 32768 (16384 was not enough) to both Device-Sections _solved_ this error.

$ cat /etc/X11/xorg.conf
Section		"ServerLayout"
	Identifier	"l0"
	Screen		"s0"
	Screen		"s1"	LeftOf	"s0"
	InputDevice	"p0"	"CorePointer"
	InputDevice	"k0"	"CoreKeyboard"
EndSection

Section		"ServerFlags"
	Option		"XkbDisable"	"true"
	Option		"BlankTime"	"0"
	Option		"StandbyTime"	"0"
	Option		"SuspendTime"	"0"
	Option		"OffTime"	"12"
EndSection

Section		"Files"
	FontPath	"/usr/share/fonts/terminus"
	FontPath	"/usr/share/fonts/corefonts"
	FontPath	"/usr/share/fonts/intlfonts"
	FontPath	"/usr/share/fonts/freefonts"
	FontPath	"/usr/share/fonts/sharefonts"
	FontPath	"/usr/share/fonts/misc"
	FontPath	"/usr/share/fonts/Type1"
	FontPath	"/usr/share/fonts/ttf-bitstream-vera"
	FontPath	"/usr/share/fonts/75dpi"
	FontPath	"/usr/share/fonts/100dpi"
	ModulePath	"/usr/lib/xorg/modules"
	RgbPath		"/usr/share/X11/rgb"
EndSection

Section		"Module"
	Load		"dbe"
	SubSection	"extmod"
		Option		"omit xfree86-dga"
	EndSubSection
	Load		"glx"
	Load		"dri"
	Load		"freetype"
	Load		"type1"
EndSection

Section		"InputDevice"
	Identifier	"k0"
	Driver		"kbd"
	Option		"AutoRepeat"	"200	80"
EndSection

Section		"InputDevice"
	Identifier	"p0"
	Driver		"mouse"
	Option		"Protocol"	"ImPS/2"
	Option		"Device"	"/dev/input/mice"
	Option		"ZAxisMapping"	"4 5 6 7"
EndSection

Section		"Device"
	Identifier	"c0"
	Driver		"i810"
	BusID		"PCI:0:2:0"
	Option		"MonitorLayout"		"CRT,LFP"
	Option		"DevicePresence"	"true"
	VideoRam	32768
	Screen		0
EndSection

Section		"Monitor"
	Identifier	"m0"
	Option		"DPMS"
EndSection

Section		"Screen"
	Identifier	"s0"
	Device		"c0"
	Monitor		"m0"
	DefaultDepth	24
	SubSection	"Display"
		Modes		"1024x768"
		ViewPort	0	0
		Depth		24
	EndSubSection
EndSection

Section		"Device"
	Identifier	"c1"
	Driver		"i810"
	BusID		"PCI:0:2:0"
	VideoRam	32768
	Screen		1
EndSection

Section		"Monitor"
	Identifier	"m1"
	Option		"DPMS"
EndSection

Section		"Screen"
	Identifier	"s1"
	Device		"c1"
	Monitor		"m1"
	DefaultDepth	24
	SubSection	"Display"
		Modes		"1280x1024"
		ViewPort	0	0
		Depth		24
	EndSubSection
EndSection
$ xdriinfo 
Screen 0: i915
Screen 1: not direct rendering capable.
Comment 9 Michel Dänzer 2007-08-28 00:06:32 UTC
(In reply to comment #8)
> Adding VideoRam 32768 (16384 was not enough) to both Device-Sections _solved_
> this error.

As of xf86-video-intel 2.0, the VideoRam directive can only decrease the amount of memory available to the driver, never increase it, so it's generally a bad idea to use it at all.


P.S. please don't paste files into comments.

P.P.S. Raúl, there have been recent changes in the xf86-video-intel GIT master branch that I think might have an impact on this problem. Can you still reproduce the problem with that?
Comment 10 Raúl 2007-08-31 10:10:42 UTC
I do reproduce the problem. If I don't add the Cachelines option, the texture memory is not allocated and DRI is not enabled. Look the attached logs. Xorg.0.log uses the cachelines option, Xorg.0.log.old doesn't
Comment 11 Raúl 2007-08-31 10:12:42 UTC
Created attachment 11359 [details]
Xorg log without the cachelines option. DRI disabled.
Comment 12 Raúl 2007-08-31 10:15:14 UTC
Created attachment 11360 [details]
Xorg log with the cachelines option. DRI enbled.

Both xorg log files have been obtained using and uptodate git version.
Comment 13 Raúl 2007-09-07 18:35:37 UTC
Hello:

Ok guys, I think I have one important track here. I get to build the git latest driver and following Keith advises, I removed the xorg.conf files. You know, memory allocation worked finally!. That make me think since I had previously tried again with and without cachelines parameter.

What I did is keep my xorg.conf file and get rid of the virtual directive and the cachelines option. That way it works. So I think the driver is probably not taking seriously the virtual directive.

I'm attaching Xorg log for all the possibilities.

Thanks.
Comment 14 Raúl 2007-09-07 18:38:26 UTC
Created attachment 11465 [details]
Xorg log with the cachelines option. DRI enbled.
Comment 15 Raúl 2007-09-07 18:39:28 UTC
Created attachment 11466 [details]
Xorg log without the cachelines option. DRI disabled.
Comment 16 Raúl 2007-09-07 18:41:45 UTC
Created attachment 11467 [details]
Log without the cachelines option and without virtual directive.

Please ask for Xorg log without xorg.conf file if you need it.
Comment 17 Jesse Barnes 2007-10-31 13:52:04 UTC
Sounds like this particular issue has been fixed.

Please open a new bug if you find that the "virtual" option isn't working for you (works for me at least).

Generally you shouldn't need VideoRAM or cachelines directives anymore.  If you do, I'd consider *that* a bug. :)

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.