From nobody@FreeBSD.org  Fri Feb 22 21:49:41 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 4399A16A401
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Feb 2008 21:49:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 3E40913C448
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Feb 2008 21:49:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1MLl4RY022743
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 22 Feb 2008 21:47:04 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m1MLl4eV022742;
	Fri, 22 Feb 2008 21:47:04 GMT
	(envelope-from nobody)
Message-Id: <200802222147.m1MLl4eV022742@www.freebsd.org>
Date: Fri, 22 Feb 2008 21:47:04 GMT
From: Dominic Fandrey <kamikaze@bsdforen.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [dri] intel i915.ko does not create /dev/dri with 965GM
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         120978
>Category:       kern
>Synopsis:       [dri] intel i915.ko does not create /dev/dri with 965GM
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    remko
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 22 21:50:04 UTC 2008
>Closed-Date:    Fri Mar 07 14:59:29 UTC 2008
>Last-Modified:  Fri Mar  7 15:00:06 UTC 2008
>Originator:     Dominic Fandrey
>Release:        RELENG_7
>Organization:
private
>Environment:
FreeBSD mobileKamikaze.norad 7.0-PRERELEASE FreeBSD 7.0-PRERELEASE #3: Wed Feb 13 17:52:28 CET 2008     root@mobileKamikaze.norad:/usr/obj/HP6510b/amd64/usr/src/sys/HP6510b  amd64
>Description:
> glxinfo | grep -i rendering
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)

This is a snippet from the Xorg.0.log:
(II) intel(0): Integrated Graphics Chipset: Intel(R) 965GM
..
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: open result is -1, (No such file or directory)
drmOpenDevice: Open failed
[drm] failed to load kernel module "i915"
(EE) [drm] drmOpen failed.
(EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI.

This is from kldstat:
13    2 0xffffffff8082f000 e640     agp.ko
23    1 0xffffffffaeec9000 4901     i915.ko
24    1 0xffffffffaeece000 cf98     drm.ko

> dmesg | grep -i agp                   1 /home/kamikaze
agp0: <Intel GM965 SVGA controller> on vgapci0
agp0: detected 7676k stolen memory
agp0: aperture size is 256M

>How-To-Repeat:
Try to get dri running on a notebook with 965GM Intel graphics. Mine is a HP Compaq 6510b (GR695EA#ABD) with the latest BIOS version F.10.
>Fix:


>Release-Note:
>Audit-Trail:

From: Dominic Fandrey <kamikaze@bsdforen.de>
To: bug-followup@FreeBSD.org, kamikaze@bsdforen.de
Cc:  
Subject: Re: misc/120978: [dri] intel i915.ko does not create /dev/dri with
 965GM
Date: Fri, 22 Feb 2008 23:09:19 +0100

 Forgot to say so, I used misc, because I don't have any idea weather this is 
 an Xorg (ports) or a kernel (kern) problem.

From: Dominic Fandrey <kamikaze@bsdforen.de>
To: bug-followup@FreeBSD.org, kamikaze@bsdforen.de
Cc:  
Subject: [patch] Re: kern/120978: [dri] intel i915.ko does not create /dev/dri
 with 965GM
Date: Sun, 24 Feb 2008 22:59:01 +0100

 I got it working. Ioquake3 and glxgears both work now. Changes were necessary 
 in drm and in the dri port. Those are the required patches:
 
 
 
 diff -u sys/dev/drm/drm_pciids.h.orig sys/dev/drm/drm_pciids.h
 --- sys/dev/drm/drm_pciids.h.orig	2008-02-24 21:30:07.000000000 +0100
 +++ sys/dev/drm/drm_pciids.h	2008-02-24 21:31:34.000000000 +0100
 @@ -293,6 +293,7 @@
   	{0x8086, 0x2982, 0, "Intel i965G"}, \
   	{0x8086, 0x2992, 0, "Intel i965Q"}, \
   	{0x8086, 0x29A2, 0, "Intel i965G"}, \
 +	{0x8086, 0x2A02, 0, "Intel i965GM"}, \
   	{0, 0, 0, NULL}
 
   #define imagine_PCI_IDS \
 
 
 
 diff -Pur graphics/dri.orig/Makefile graphics/dri/Makefile
 --- graphics/dri.orig/Makefile	2008-02-24 22:42:28.000000000 +0100
 +++ graphics/dri/Makefile	2008-02-24 22:38:29.000000000 +0100
 @@ -42,6 +42,7 @@
   	${INSTALL_PROGRAM} ${WRKSRC}/lib/tdfx_dri.so ${DRIMODDIR}
   .elif ${ARCH} == amd64
   	${INSTALL_PROGRAM} ${WRKSRC}/lib/i915_dri.so ${DRIMODDIR}
 +	${INSTALL_PROGRAM} ${WRKSRC}/lib/i965_dri.so ${DRIMODDIR}
   .endif
   	${INSTALL_PROGRAM} ${WRKSRC}/lib/mach64_dri.so ${DRIMODDIR}
   	${INSTALL_PROGRAM} ${WRKSRC}/lib/mga_dri.so ${DRIMODDIR}
 diff -Pur graphics/dri.orig/pkg-plist graphics/dri/pkg-plist
 --- graphics/dri.orig/pkg-plist	2008-02-24 22:42:28.000000000 +0100
 +++ graphics/dri/pkg-plist	2008-02-24 22:43:42.000000000 +0100
 @@ -1,5 +1,6 @@
   %%I386%%lib/dri/i810_dri.so
   %%I386_AMD64%%lib/dri/i915_dri.so
 +%%I386_AMD64%%lib/dri/i965_dri.so
   %%I386%%lib/dri/i965_dri.so
   lib/dri/mach64_dri.so
   lib/dri/mga_dri.so
Responsible-Changed-From-To: freebsd-bugs->remko 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Feb 25 07:03:57 UTC 2008 
Responsible-Changed-Why:  
I am already working on this one 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/120978: commit references a PR
Date: Wed, 27 Feb 2008 10:15:05 +0000 (UTC)

 remko       2008-02-27 10:14:58 UTC
 
   FreeBSD src repository
 
   Modified files:
     sys/dev/drm          drm_pciids.h 
   Log:
   Add support for the 965GM.
   
   PR:             kern/120978
   Submitted by:   Dominic Fandrey <kamikaze at bsdforen dot de>
   Approved by:    imp (mentor, implicit), anholt (drm maintainer)
   MFC after:      3 days
   
   Revision  Changes    Path
   1.8       +1 -0      src/sys/dev/drm/drm_pciids.h
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Dominic Fandrey <kamikaze@bsdforen.de>
To: bug-followup@FreeBSD.org, kamikaze@bsdforen.de
Cc:  
Subject: Re: kern/120978: [dri] intel i915.ko does not create /dev/dri with
 965GM
Date: Wed, 27 Feb 2008 18:27:19 +0100

 Thanks a lot.
 
 Should I open a new PR for the change in graphics/dri?
State-Changed-From-To: open->patched 
State-Changed-By: linimon 
State-Changed-When: Fri Feb 29 02:21:38 UTC 2008 
State-Changed-Why:  
Set at MFC reminder. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=120978 
State-Changed-From-To: patched->closed 
State-Changed-By: remko 
State-Changed-When: Fri Mar 7 14:59:28 UTC 2008 
State-Changed-Why:  
Patched in HEAD, RELENG_6 and RELENG_7, thanks for the submission!! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/120978: commit references a PR
Date: Fri,  7 Mar 2008 14:58:10 +0000 (UTC)

 remko       2008-03-07 14:58:01 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_7)
     sys/dev/drm          drm_pciids.h 
   Log:
   MFC rev 1.8 drm_pciids.h
   
      Add support for the 965GM.
   
      PR:             kern/120978
      Submitted by:   Dominic Fandrey <kamikaze at bsdforen dot de>
      Approved by:    imp (mentor, implicit), anholt (drm maintainer)
      MFC after:      3 days
   
   Approved by:    imp (mentor, implicit)
   
   Revision  Changes    Path
   1.7.2.1   +1 -0      src/sys/dev/drm/drm_pciids.h
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/120978: commit references a PR
Date: Fri,  7 Mar 2008 14:58:58 +0000 (UTC)

 remko       2008-03-07 14:58:50 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     sys/dev/drm          drm_pciids.h 
   Log:
   MFC rev 1.8 drm_pciids.h
   
      Add support for the 965GM.
   
      PR:             kern/120978
      Submitted by:   Dominic Fandrey <kamikaze at bsdforen dot de>
      Approved by:    imp (mentor, implicit), anholt (drm maintainer)
      MFC after:      3 days
   
   Approved by:    imp (mentor, implicit)
   
   Revision  Changes    Path
   1.2.2.5   +1 -0      src/sys/dev/drm/drm_pciids.h
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
