Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Sep 2006 21:14:48 -0400
From:      "Alexandre \"Sunny\" Kovalenko" <alex.kovalenko@verizon.net>
To:        current@freebsd.org
Subject:   Intel 945GM and /dev/agpgart
Message-ID:  <1159146888.92313.6.camel@RabbitsDen.RabbitsLawn.verizon.net>

next in thread | raw e-mail | index | archive | help

--Boundary_(ID_SSwUc7p4vsN0N10isZrd2w)
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: 8BIT

Attached patch is the 7.0-CURRENT (September 23) adaptation of 

http://marcus.grupos.com.br:8080/patch/agp_i810.c.patch

which gives me /dev/agpgart and allows me to use Xv extension on my
ThinkPad X60. Still no direct rendering, though.

Posting here just in case someone running -CURRENT on that chipset wants
to watch full screen movies ;)

-- 
Alexandre "Sunny" Kovalenko (Олександр Коваленко)

--Boundary_(ID_SSwUc7p4vsN0N10isZrd2w)
Content-type: text/x-patch; name=agp_i810.c.patch; charset=UTF-8
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=agp_i810.c.patch

--- /usr/src/sys/pci/agp_i810.c.ORIG	Sun Sep 24 17:00:54 2006
+++ /usr/src/sys/pci/agp_i810.c	Sun Sep 24 19:47:09 2006
@@ -121,14 +121,14 @@
 	    "Intel 82915G (915G GMCH) SVGA controller"},
 	{0x25928086, CHIP_I915, 0x00020000,
 	    "Intel 82915GM (915GM GMCH) SVGA controller"},
+	{0x27A28086, CHIP_I915, 0x00020000,
+	    "Intel 82945GM (945GM GMCH) SVGA controller"},
 	/* XXX: I believe these chipsets should work, but they haven't been
 	 * tested yet.
 	 */
 	/*
 	{0x27728086, CHIP_I915, 0x00020000,
 	    "Intel 82945G (945G GMCH) SVGA controller"},
-	{0x27A28086, CHIP_I915, 0x00020000,
-	    "Intel 82945GM (945GM GMCH) SVGA controller"},
 	*/
 	{0, 0, 0, NULL}
 };
@@ -510,9 +510,8 @@
 	case CHIP_I855:
 		return 128 * 1024 * 1024;
 	case CHIP_I915:
-		temp = pci_read_config(dev, AGP_I915_MSAC, 1);
-		if ((temp & AGP_I915_MSAC_GMASIZE) ==
-		    AGP_I915_MSAC_GMASIZE_128) {
+		temp = pci_read_config(dev, AGP_I915_GMADR, 1);
+		if (temp & 1<<27) {
 			return 128 * 1024 * 1024;
 		} else {
 			return 256 * 1024 * 1024;

--Boundary_(ID_SSwUc7p4vsN0N10isZrd2w)--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1159146888.92313.6.camel>