From owner-freebsd-bugs@FreeBSD.ORG Sat Sep 9 19:30:20 2006 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 04B6F16A47B for ; Sat, 9 Sep 2006 19:30:20 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D16A43D4C for ; Sat, 9 Sep 2006 19:30:19 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k89JUJqR031009 for ; Sat, 9 Sep 2006 19:30:19 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k89JUJ6o031008; Sat, 9 Sep 2006 19:30:19 GMT (envelope-from gnats) Resent-Date: Sat, 9 Sep 2006 19:30:19 GMT Resent-Message-Id: <200609091930.k89JUJ6o031008@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marcus Alves Grando Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E04216A40F; Sat, 9 Sep 2006 19:23:05 +0000 (UTC) (envelope-from root@marcus.grupos.com.br) Received: from corp.grupos.com.br (corp.grupos.com.br [200.193.29.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id D55E143D5C; Sat, 9 Sep 2006 19:23:04 +0000 (GMT) (envelope-from root@marcus.grupos.com.br) Received: from marcus.grupos.com.br (marcus.grupos.com.br [192.168.10.10]) by corp.grupos.com.br (Postfix) with ESMTP id 90EA05C80; Sat, 9 Sep 2006 16:23:02 -0300 (BRT) Received: by marcus.grupos.com.br (Postfix, from userid 0) id 7975828472; Sat, 9 Sep 2006 16:23:02 -0300 (BRT) Message-Id: <20060909192302.7975828472@marcus.grupos.com.br> Date: Sat, 9 Sep 2006 16:23:02 -0300 (BRT) From: Marcus Alves Grando To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: anholt@FreeBSD.org Subject: kern/103079: Add support to 945GM and fix how recognize agp aperture size X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus Alves Grando List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Sep 2006 19:30:20 -0000 >Number: 103079 >Category: kern >Synopsis: Add support to 945GM and fix how recognize agp aperture size >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Sep 09 19:30:18 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Marcus Alves Grando >Release: FreeBSD 6.1-STABLE i386 >Organization: Grupos Internet S/A >Environment: System: FreeBSD marcus.grupos.com.br 6.1-STABLE FreeBSD 6.1-STABLE #1: Fri Sep 8 00:25:53 BRT 2006 root@marcus.grupos.com.br:/usr/obj/usr/src/sys/MARCUS i386 >Description: - Add support to 945GM and fix how recognize agp aperture size, based on how linux does. >How-To-Repeat: >Fix: --- agp_i810.c.current-patch begins here --- Index: agp_i810.c =================================================================== RCS file: /home/ncvs/src/sys/pci/agp_i810.c,v retrieving revision 1.38 diff -u -r1.38 agp_i810.c --- agp_i810.c 27 Jun 2006 14:05:11 -0000 1.38 +++ agp_i810.c 9 Sep 2006 19:19:50 -0000 @@ -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; --- agp_i810.c.current-patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: