From nobody@FreeBSD.org  Tue Aug  1 16:45:53 2006
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 95A5916A4DE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Aug 2006 16:45:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3B91343DC8
	for <freebsd-gnats-submit@FreeBSD.org>; Tue,  1 Aug 2006 16:45:10 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id k71GhatP026169
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 1 Aug 2006 16:43:36 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id k71Ghasf026126;
	Tue, 1 Aug 2006 16:43:36 GMT
	(envelope-from nobody)
Message-Id: <200608011643.k71Ghasf026126@www.freebsd.org>
Date: Tue, 1 Aug 2006 16:43:36 GMT
From: Hannes Hauswedell <hannes.hauswedell@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: NO Support for i945 graphics 
X-Send-Pr-Version: www-2.3

>Number:         101201
>Category:       kern
>Synopsis:       [request] add support for i945 graphics
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    anholt
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 01 16:50:11 GMT 2006
>Closed-Date:    Fri Apr 06 20:45:09 GMT 2007
>Last-Modified:  Fri Apr  6 20:50:05 GMT 2007
>Originator:     Hannes Hauswedell
>Release:        6.1-stable
>Organization:
>Environment:
FreeBSD hannes_laptop_fbsd.lan.home 6.1-STABLE FreeBSD 6.1-STABLE #0: Wed Jul 26 17:06:12 CEST 2006     root@hannes_laptop_fbsd.lan.home:/usr/obj/usr/src/sys/MYKERNEL  i386
>Description:
the last generation of Intel Graphics Chips are not supported.
they are the successor of the i915 chips and can be found CoreDuo-Notebooks.
They seem not to differ much from the last i915-PCI-Express chips, at least
the official specs are the same.

dmesg lines concerning the device:
---
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
---

when hw.pci.allow_unsupported_io_range="1" is set, dmeag also shows:
---
pci0: <display, VGA> at device 2.0 (no driver attached)
pci0: <display> at device 2.1 (no driver attached)
---

pciconf -lv shows:
---
none0@pci0:2:0: class=0x030000 card=0x01d81028 chip=0x27a28086 rev=0x03 hdr=0x00
    vendor   = 'Intel Corporation'
    class    = display
    subclass = VGA
none1@pci0:2:1: class=0x038000 card=0x01d81028 chip=0x27a68086 rev=0x03 hdr=0x00
    vendor   = 'Intel Corporation'
    class    = display
---

vesa works, but widescreen resolutions set with 915resolution cant be used...
and of course DRI doesnt work. 

the chipset is supported fully on GNU/Linux with the regular intel driver
and Xorg's i810.

there are quite a few notebooks and users affected by the problem, so i set
priority to high. if that is inadequate please change it.

thanks for any help! ( this stretched resolution is terrible)
>How-To-Repeat:
its a constant problem ;)
>Fix:

>Release-Note:
>Audit-Trail:

From: Marcus Alves Grando <mnag@FreeBSD.org>
To: bug-followup@FreeBSD.org,  hannes.hauswedell@gmail.com
Cc:  
Subject: Re: kern/101201: [request] add support for i945 graphics
Date: Sun, 27 Aug 2006 17:15:18 -0300

 Hannes,
 
 Can you test this patch:
 http://marcus.grupos.com.br:8080/patch/agp_i810.c.patch
 
 Regards
 
 -- 
 Marcus Alves Grando
 FreeBSD Security Team

From: "Hannes Hauswedell" <hannes.hauswedell@gmail.com>
To: "Marcus Alves Grando" <mnag@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: kern/101201: [request] add support for i945 graphics
Date: Mon, 28 Aug 2006 13:18:33 +0200

 hi marcus,
 the patch actually makes the card visible to agp:
 
 agp0: <Intel 82945GM (945GM GMCH) SVGA controller> port 0xeff8-0xefff
 mem 0xdff00000-0xdff7ffff,0xc0000000-0xcfffffff,0xdfec0000-0xdfefffff
 irq 16 at device 2.0 on pci0
 agp0: detected 7932k stolen memory
 agp0: aperture size is 256M
 
 pciconf now shows:
 -----
 agp0@pci0:2:0:  class=0x030000 card=0x01d81028 chip=0x27a28086 rev=0x03 hdr=0x00
     vendor   = 'Intel Corporation'
     class    = display
     subclass = VGA
 none0@pci0:2:1: class=0x038000 card=0x01d81028 chip=0x27a68086 rev=0x03 hdr=0x00
     vendor   = 'Intel Corporation'
     class    = display
 ------
 
 
 but X still doesnt recognize the card, when set the driver to i810, it
 wont start:
 -----
 (II) LoadModule: "i810"
 (II) Loading /usr/X11R6/lib/modules/drivers/i810_drv.so
 (II) Module i810: vendor="X.Org Foundation"
         compiled for 6.9.0, module version = 1.4.1
         Module class: X.Org Video Driver
         ABI class: X.Org Video Driver, version 0.8
 (II) LoadModule: "mouse"
 (II) Loading /usr/X11R6/lib/modules/input/mouse_drv.so
 (II) Module mouse: vendor="X.Org Foundation"
         compiled for 6.9.0, module version = 1.0.3
         Module class: X.Org XInput Driver
         ABI class: X.Org XInput driver, version 0.5
 (II) LoadModule: "kbd"
 (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
 (II) Module kbd: vendor="X.Org Foundation"
         compiled for 6.9.0, module version = 1.0.1
         Module class: X.Org XInput Driver
         ABI class: X.Org XInput driver, version 0.5
 (II) I810: Driver for Intel Integrated Graphics Chipsets: i810, i810-dc100,
         i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G, E7221 (i915),
         915GM, 945G
 (II) Primary Device is: PCI 00:02:0
 (WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
 (EE) No devices detected.
 
 Fatal server error:
 no screens found
 -----
 
 the warning about BusID PCI:0:2:1 is not critical, it appears on
 gnu/linux aswell; but apparently the device is still not detected.
 
 thanks for your help!
 hannes
 
 
 2006/8/27, Marcus Alves Grando <mnag@freebsd.org>:
 > Hannes,
 >
 > Can you test this patch:
 > http://marcus.grupos.com.br:8080/patch/agp_i810.c.patch
 >
 > Regards
 >
 > --
 > Marcus Alves Grando
 > FreeBSD Security Team
 >

From: Marcus Alves Grando <mnag@FreeBSD.org>
To: Hannes Hauswedell <hannes.hauswedell@gmail.com>
Cc: bug-followup@freebsd.org
Subject: Re: kern/101201: [request] add support for i945 graphics
Date: Mon, 28 Aug 2006 09:36:49 -0300

 Hi Hannes,
 
 Hannes Hauswedell wrote:
 > hi marcus,
 > the patch actually makes the card visible to agp:
 > 
 > agp0: <Intel 82945GM (945GM GMCH) SVGA controller> port 0xeff8-0xefff
 > mem 0xdff00000-0xdff7ffff,0xc0000000-0xcfffffff,0xdfec0000-0xdfefffff
 > irq 16 at device 2.0 on pci0
 > agp0: detected 7932k stolen memory
 > agp0: aperture size is 256M
 > 
 ...
 > but X still doesnt recognize the card, when set the driver to i810, it
 > wont start:
 > -----
 > (II) LoadModule: "i810"
 > (II) Loading /usr/X11R6/lib/modules/drivers/i810_drv.so
 > (II) Module i810: vendor="X.Org Foundation"
 >        compiled for 6.9.0, module version = 1.4.1
 >        Module class: X.Org Video Driver
 >        ABI class: X.Org Video Driver, version 0.8
 > (II) LoadModule: "mouse"
 > (II) Loading /usr/X11R6/lib/modules/input/mouse_drv.so
 > (II) Module mouse: vendor="X.Org Foundation"
 >        compiled for 6.9.0, module version = 1.0.3
 >        Module class: X.Org XInput Driver
 >        ABI class: X.Org XInput driver, version 0.5
 > (II) LoadModule: "kbd"
 > (II) Loading /usr/X11R6/lib/modules/input/kbd_drv.so
 > (II) Module kbd: vendor="X.Org Foundation"
 >        compiled for 6.9.0, module version = 1.0.1
 >        Module class: X.Org XInput Driver
 >        ABI class: X.Org XInput driver, version 0.5
 > (II) I810: Driver for Intel Integrated Graphics Chipsets: i810, i810-dc100,
 >        i810e, i815, i830M, 845G, 852GM/855GM, 865G, 915G, E7221 (i915),
 >        915GM, 945G
 > (II) Primary Device is: PCI 00:02:0
 > (WW) I810: No matching Device section for instance (BusID PCI:0:2:1) found
 > (EE) No devices detected.
 
 Reinstall xorg-server. I already commit patch to X support 945GM.
 
 Regards
 
 > 
 > Fatal server error:
 > no screens found
 > -----
 > 
 > the warning about BusID PCI:0:2:1 is not critical, it appears on
 > gnu/linux aswell; but apparently the device is still not detected.
 > 
 > thanks for your help!
 > hannes
 > 
 > 
 > 2006/8/27, Marcus Alves Grando <mnag@freebsd.org>:
 >> Hannes,
 >>
 >> Can you test this patch:
 >> http://marcus.grupos.com.br:8080/patch/agp_i810.c.patch
 >>
 >> Regards
 >>
 >> -- 
 >> Marcus Alves Grando
 >> FreeBSD Security Team
 >>
 
 
 -- 
 Marcus Alves Grando
 marcus(at)corp.grupos.com.br  |  Grupos Internet S/A
   mnag(at)FreeBSD.org         |  FreeBSD.org

From: "Hannes Hauswedell" <hannes.hauswedell@gmail.com>
To: "Marcus Alves Grando" <mnag@freebsd.org>
Cc: bug-followup@freebsd.org
Subject: Re: kern/101201: [request] add support for i945 graphics
Date: Tue, 29 Aug 2006 00:25:42 +0200

 hi marcus,
 
 IT WORKS!
 
 :) :) :)
 
 thank you very much! the only thing that is not working yet is DRI...
 whenever i run something that would use opengl, like glxgears or glxinfo, i get:
 Unrecognized deviceID 27a2
 
 if you need more info let me know!
 
 greetings
 hannes

From: "Hannes Hauswedell" <hannes.hauswedell@gmail.com>
To: bug-followup@FreeBSD.org
Cc: "Marcus Alves Grando" <mnag@FreeBSD.org>
Subject: Re: kern/101201: [request] add support for i945 graphics
Date: Fri, 22 Dec 2006 20:20:35 +0100

 what is the state of this PR?
 
 has there been any luck getting DRM/DRI working? i'd really like to
 dump  the linux i keep around for gaming...
 
 have the other patches already been commited to -stable or -current?
 
 is there anything i can do to speed the development up?
 
 thanks a lot!
 
 greetings & happy holidays!
 
 hannes
Responsible-Changed-From-To: freebsd-bugs->anholt 
Responsible-Changed-By: remko 
Responsible-Changed-When: Mon Dec 25 18:24:11 UTC 2006 
Responsible-Changed-Why:  
Hello Eric, can you please have a look at the mentioned PR? 

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

From: Hannes Hauswedell <hannes@soulrebel.in-berlin.de>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: kern/101201: [request] add support for i945 graphics
Date: Sat, 20 Jan 2007 20:17:09 +0100

 --Boundary-00=_1qmsFguBPzn+bOv
 Content-Type: text/plain;
   charset="us-ascii"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 ok wrote patches myself and got it working:
 
 three files 
 in /usr/ports/graphics/dri/work/Mesa-6.4.1/src/mesa/drivers/dri/i915 need to 
 be patched. i have attached the diffs, would be great if someone could make a 
 proper patch of them and commit it to graphics/dri !
 thanks!
 
 in solidarity
 hannes
 
 --Boundary-00=_1qmsFguBPzn+bOv
 Content-Type: text/x-diff;
   charset="us-ascii";
   name="intel_context.c.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="intel_context.c.patch"
 
 --- intel_context.c.orig	Sat Jan 20 17:11:51 2007
 +++ intel_context.c	Sat Jan 20 17:12:12 2007
 @@ -118,6 +118,8 @@
  	 chipset = "Intel(R) 915GM"; break;
        case PCI_CHIP_I945_G:
  	 chipset = "Intel(R) 945G"; break;
 +      case PCI_CHIP_I945_GM:
 +	 chipset = "Intel(R) 945GM"; break;
        default:
  	 chipset = "Unknown Intel Chipset"; break;
        }
 
 --Boundary-00=_1qmsFguBPzn+bOv
 Content-Type: text/x-diff;
   charset="us-ascii";
   name="intel_context.h.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="intel_context.h.patch"
 
 --- intel_context.h.orig	Sat Jan 20 17:10:15 2007
 +++ intel_context.h	Sat Jan 20 17:09:26 2007
 @@ -413,6 +413,7 @@
  #define PCI_CHIP_I915_G			0x2582
  #define PCI_CHIP_I915_GM		0x2592
  #define PCI_CHIP_I945_G			0x2772
 +#define PCI_CHIP_I945_GM		0x27A2
  
  
  /* ================================================================
 
 --Boundary-00=_1qmsFguBPzn+bOv
 Content-Type: text/x-diff;
   charset="us-ascii";
   name="intel_screen.c.patch"
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment;
 	filename="intel_screen.c.patch"
 
 --- intel_screen.c.orig	Sat Jan 20 16:39:55 2007
 +++ intel_screen.c	Sat Jan 20 16:40:35 2007
 @@ -340,6 +340,7 @@
     case PCI_CHIP_I915_G:
     case PCI_CHIP_I915_GM:
     case PCI_CHIP_I945_G:
 +   case PCI_CHIP_I945_GM:
        return i915CreateContext( mesaVis, driContextPriv, 
  			       sharedContextPrivate );
   
 
 --Boundary-00=_1qmsFguBPzn+bOv--
State-Changed-From-To: open->closed 
State-Changed-By: mnag 
State-Changed-When: Fri Apr 6 20:43:13 UTC 2007 
State-Changed-Why:  
Kernel part already added in CURRENT and RELENG_6. 

For the graphics/dri part i sent one new PR to anholt and its will be 
commited soon. Thanks for your patches. 

Now thats PR can be closed. Thanks 

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

From: Marcus Alves Grando <mnag@FreeBSD.org>
To: Hannes Hauswedell <hannes.hauswedell@gmail.com>
Cc: bug-followup@FreeBSD.org,  anholt@freebsd.org
Subject: Re: kern/101201: [request] add support for i945 graphics
Date: Sat, 07 Apr 2007 17:46:51 -0300

 Hannes Hauswedell wrote:
 > what is the state of this PR?
 > 
 > has there been any luck getting DRM/DRI working? i'd really like to
 > dump  the linux i keep around for gaming...
 > 
 > have the other patches already been commited to -stable or -current?
 > 
 > is there anything i can do to speed the development up?
 > 
 > thanks a lot!
 > 
 > greetings & happy holidays!
 > 
 > hannes
 
 I close this PR because src part already added. Now exists one PR in 
 ports to add support in graphics/dri. Thanks for your help.
 
 http://www.freebsd.org/cgi/query-pr.cgi?pr=111333
 
 Regards	
 
 -- 
 Marcus Alves Grando
 marcus(at)sbh.eng.br | Personal
 mnag(at)FreeBSD.org  | FreeBSD.org
>Unformatted:
