From owner-freebsd-current@FreeBSD.ORG Mon Sep 25 01:14:58 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6C8E16A4B3 for ; Mon, 25 Sep 2006 01:14:58 +0000 (UTC) (envelope-from alex.kovalenko@verizon.net) Received: from vms046pub.verizon.net (vms046pub.verizon.net [206.46.252.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7036843D6A for ; Mon, 25 Sep 2006 01:14:52 +0000 (GMT) (envelope-from alex.kovalenko@verizon.net) Received: from RabbitsDen ([70.21.206.89]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0J640016EJGQQLE7@vms046.mailsrvcs.net> for current@freebsd.org; Sun, 24 Sep 2006 20:14:51 -0500 (CDT) Date: Sun, 24 Sep 2006 21:14:48 -0400 From: "Alexandre \"Sunny\" Kovalenko" To: current@freebsd.org Message-id: <1159146888.92313.6.camel@RabbitsDen.RabbitsLawn.verizon.net> MIME-version: 1.0 X-Mailer: Evolution 2.6.3 FreeBSD GNOME Team Port Content-type: multipart/mixed; boundary="Boundary_(ID_SSwUc7p4vsN0N10isZrd2w)" Cc: Subject: Intel 945GM and /dev/agpgart X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Sep 2006 01:14:58 -0000 --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)--