From marcs@riffraff.plig.net  Thu Dec 23 10:08:02 2004
Return-Path: <marcs@riffraff.plig.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 665E616A4CE
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Dec 2004 10:08:02 +0000 (GMT)
Received: from riffraff.plig.net (riffraff.plig.net [195.40.6.40])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1A90443D55
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Dec 2004 10:08:02 +0000 (GMT)
	(envelope-from marcs@riffraff.plig.net)
Received: from localhost (localhost [127.0.0.1])
	by riffraff.plig.net (Postfix) with ESMTP id 29DB6FA2E1
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Dec 2004 10:08:01 +0000 (GMT)
Received: from riffraff.plig.net ([127.0.0.1])
 by localhost (riffraff.plig.net [127.0.0.1]) (amavisd-new, port 10024)
 with LMTP id 41579-01 for <FreeBSD-gnats-submit@freebsd.org>;
 Thu, 23 Dec 2004 10:07:57 +0000 (GMT)
Received: by riffraff.plig.net (Postfix, from userid 3010)
	id 70928FA2CE; Thu, 23 Dec 2004 10:07:57 +0000 (GMT)
Message-Id: <20041223100757.70928FA2CE@riffraff.plig.net>
Date: Thu, 23 Dec 2004 10:07:57 +0000 (GMT)
From: Marc Silver <marcs@draenor.org>
Reply-To: Marc Silver <marcs@draenor.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Xorg 6.8.1 port bug?
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         75425
>Category:       ports
>Synopsis:       xorg-server: i810 broken on 16/24bpp with XAA.
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-x11
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 23 10:10:27 GMT 2004
>Closed-Date:    Sun Jan 02 00:33:35 GMT 2005
>Last-Modified:  Thu Jan  6 17:50:24 GMT 2005
>Originator:     Marc Silver
>Release:        FreeBSD 5.3-STABLE i386
>Organization:
>Environment:
System: FreeBSD bsd.domain.com 5.3-STABLE FreeBSD 5.3-STABLE #5: Wed Dec
15 16:21:56 GMT 2004 keet@bsd.domain.com:/usr/src/sys/compile/BSD i386


>Description:
	Problem with i810 driver?! in Xorg 6.8.1?

	Since upgrading to this I am unable to start Xorg at all, and it
	complains about kernel module i915 and then core dumps with a
	signal 11.  The previous port of Xorg was working fine, so my
	guess is that something is either missing in this new port, or
	there's a bug?

	The script output follows:

Script started on Thu Dec 23 12:01:16 2004
bsd# Xorg -config /root/xorg.conf.new 
_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/bsd.domain.com:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

X Window System Version 6.8.1
Release Date: 17 September 2004
X Protocol Version 11, Revision 0, Release 6.8.1
Build Operating System: FreeBSD 5.3 i386 [ELF] 
Current Operating System: FreeBSD bsd.domain.com 5.3-STABLE FreeBSD 5.3-STABLE #17: Wed Dec 15 16:30:54 SAST 2004     root@bsd.domain.com:/usr/src/sys/i386/compile/BSD i386
Build Date: 23 December 2004
	Before reporting problems, check http://wiki.X.Org
	to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Dec 23 12:01:22 2004
(++) Using config file: "/root/xorg.conf.new"
[drm] failed to load kernel module "i915"
(EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.

   *** If unresolved symbols were reported above, they might not
   *** be the reason for the server aborting.

Fatal server error:
Caught signal 11.  Server aborting


Please consult the The X.Org Foundation support 
	 at http://wiki.X.Org
 for help. 
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

>How-To-Repeat:
	Upgrade to 6.8.1 if you have an Intel i810 graphic card?!
>Fix:

	I have no idea on a fix... but would appreciate if some
	Xorg/XFree Guru could look at this please...


>Release-Note:
>Audit-Trail:

From: Eric Anholt <eta@lclark.edu>
To: gnats <freebsd-gnats-submit@FreeBSD.ORG>
Cc:  
Subject: Re: ports/75425: Xorg 6.8.1 port bug?
Date: Thu, 23 Dec 2004 13:37:09 -0800

 Does it still happen if you remove Load "dri" from your config file?
 
 -- 
 Eric Anholt                                eta@lclark.edu          
 http://people.freebsd.org/~anholt/         anholt@FreeBSD.org
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-x11 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Dec 23 22:04:22 GMT 2004 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75425 

From: "Alex Matveev" <amatveev@autoprise.com>
To: <freebsd-gnats-submit@FreeBSD.org>, <marcs@draenor.org>
Cc: <anholt@FreeBSD.org>
Subject: Re: ports/75425: Xorg 6.8.1 port bug?
Date: Thu, 23 Dec 2004 14:33:23 -0800

 I am not original submitter for that bug, just having the same problem
 (laptop Sony R505-EL).
 
 Here is what I found so far:
 
 1. If you disable DRI it still happens.
 2. If you add option "NoAccel" you are able to start xorg. Just no
 acceleration obviously.
 
 Alex
 

From: Eric Anholt <eta@lclark.edu>
To: gnats <freebsd-gnats-submit@FreeBSD.ORG>
Cc:  
Subject: Re: ports/75425
Date: Fri, 24 Dec 2004 14:21:51 -0800

 The conclusion of this so far has been that there's some bug in our
 6.8.1 such that i810s are crashing at 16 and 24 depth.  So, an ugly
 workaround is to run at 8bpp for now.  I posted a patch at
 http://people.freebsd.org/~anholt/X/patch-i810-6_8 to update the i810
 bits to the latest CVS, and it has helped 0/1 people so far.  At this
 point, the best bet for debugging this is probably to do a dlloader
 build so that gdb can be used.  One bit of info about the dlloader is
 at:
 http://lists.freedesktop.org/pipermail/xorg/2004-November/004566.html.
 
 If people seeing this problem could post to this gnats entry with what
 iXXX integrated graphics they happen to have, that could be useful.  
 
 -- 
 Eric Anholt                                eta@lclark.edu          
 http://people.freebsd.org/~anholt/         anholt@FreeBSD.org

From: Peter Thoenen <eol1@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org, marcs@draenor.org
Cc:  
Subject: Re: ports/75425: Xorg 6.8.1 port bug?
Date: Sat, 25 Dec 2004 15:25:20 -0800 (PST)

 Seeing this also.  Chipset is: 852GM/855GM.
 
 In addition to the issues mentioned above (DRI False, NoAccel True), I also
 have to set SWCursor True otherwise I get a hardware cursor error and X fails
 to start.  Only warnings in log (with above settings) follows:
 
 (WW) I810(0): Bad V_BIOS checksum
 (II) I810(0): Primary V_BIOS segment is: 0xc000

From: Dave Horsfall <dave@horsfall.org>
To: freebsd-gnats-submit@FreeBSD.org, marcs@draenor.org
Cc:  
Subject: Re: ports/75425
Date: Fri, 31 Dec 2004 23:43:37 +1100 (EST)

 [ Re-sent, due to mail-server problems]
 
 Same problem observed on Thinkpad R31 with 830M graphics chip.
 
 Commenting out 'Load "dri"' and setting "SWCursor" fixed the error 
 messages.
 
 Interestingly enough, setting "NoAccel" stopped the SIGSEGV and I was able 
 to get the server started.  Before trying out the patch (the original was 
 installed from packages so I'll need a massive compile) I'll see if I can 
 bootstrap the configuration by hand, since xorgcfg falls over the same 
 way.
 
 
 -- Dave

From: Dave Horsfall <dave@horsfall.org>
To: freebsd-gnats-submit@FreeBSD.org, marcs@draenor.org
Cc:  
Subject: Re: ports/75425
Date: Fri, 31 Dec 2004 23:47:44 +1100 (EST)

 [ Re-sent again ]
 
 > Interestingly enough, setting "NoAccel" stopped the SIGSEGV and I was 
 > able to get the server started.  Before trying out the patch (the 
 > original was installed from packages so I'll need a massive compile) 
 > I'll see if I can bootstrap the configuration by hand, since xorgcfg 
 > falls over the same way.
 
 The compile went quicker than I thought, but not much difference:
 
 -----
 
 # xorgcfg
 
 [...]
 
 (EE) I810(0): Failed to allocate HW (ARGB) cursor space.
 [drm] failed to load kernel module "i915"
 (EE) I810(0): [dri] DRIScreenInit failed. Disabling DRI.
 
     *** If unresolved symbols were reported above, they might not
     *** be the reason for the server aborting.
 
 Fatal server error:
 Caught signal 11.  Server aborting
 
 -----
 
 Basically, the X server is still unable to bootstrap itself.  I'll keep 
 plodding along with constructing an xorg.conf file by hand, but it won't 
 be done any time this year :-)
 
 -- Dave
State-Changed-From-To: open->analyzed 
State-Changed-By: anholt 
State-Changed-When: Sun Jan 2 00:18:19 GMT 2005 
State-Changed-Why:  
The patch at http://people.freebsd.org/~anholt/X/xorg-server-update.diff 
fixes it for me, and is waiting for portmgr approval. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75425 
State-Changed-From-To: analyzed->closed 
State-Changed-By: anholt 
State-Changed-When: Sun Jan 2 00:32:47 GMT 2005 
State-Changed-Why:  
Shoudl be fixed in CVS.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=75425 

Adding (in case it is needed) to audit trail from misfiled PR 75659:
Date: Thu, 30 Dec 2004 17:57:41 +0200
From: dmitri don <ddon@fotki.com>
Subject: Re: ports/75425: xorg-server: i810 broken on 16/24bpp with XAA.

 *I am also not original submitter for the bug, but I am having the same 
 problem. I have a workstation with Intel MB D865GBF/D865PERC with i810 
 chipset. Disabling DRI in xorg.conf doesn't help, and I am able to start 
 X with NoAccel. Tried to replace i810 driver 
 **(/usr/X11R6/lib/modules/drivers/i810_drv.o) **with a newer version, 
 also it didn't help.
 
 My system is
     FreeBSD 5.3-RELEASE #0: Fri Nov  5 04:19:18 UTC 2004
     root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
 *

From: Ryan Falkenberg <falkenbe@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org, marcs@draenor.org
Cc:  
Subject: Re: ports/75425: xorg-server: i810 broken on 16/24bpp with XAA
Date: Mon, 3 Jan 2005 14:53:04 -0700

 I have an i830 video card.  I upgraded to xorg-server 6.8.1_1 but I'm
 still having the same problem, I must set "NoAccel" in order for X to
 start.  Commenting out the load  dri instruction and adding the
 SWCursor does not work for me, "NoAccel" is the only thing that will
 get X to start.
 
 Is there anything else I can try to fix this?

From: Ryan Falkenberg <falkenbe@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org, marcs@draenor.org
Cc:  
Subject: Re: ports/75425: xorg-server: i810 broken on 16/24bpp with XAA.
Date: Thu, 6 Jan 2005 10:44:42 -0700

 The modules/drivers directory for 6.8.1_1 was not being installed
 properly and so I was using the old 6.8.1 video drivers.  Now that I'm
 actually using the correct drivers everything is working properly. 
 Thanks.
>Unformatted:
