From owner-cvs-all@FreeBSD.ORG Tue May 27 13:13:45 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25A1737B405; Tue, 27 May 2003 13:13:45 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id CF0EE43F85; Tue, 27 May 2003 13:13:44 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h4RKDi0U047474; Tue, 27 May 2003 13:13:44 -0700 (PDT) (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h4RKDix4047473; Tue, 27 May 2003 13:13:44 -0700 (PDT) Message-Id: <200305272013.h4RKDix4047473@repoman.freebsd.org> From: John Baldwin Date: Tue, 27 May 2003 13:13:44 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/pci agp_intel.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 May 2003 20:13:45 -0000 jhb 2003/05/27 13:13:44 PDT FreeBSD src repository Modified files: sys/pci agp_intel.c Log: Fix support for 256 MB aperture sizes on chipsets such as the 845 and 865. The APSIZE register has a variable-sized field of enabled bits. To figure out how many bits a specific host bridge supports, write the maximum width and see how many bits are set in the hardware. We then use this mask for setting and getting the aperture size. Prior to this, the agp(4) driver would treat an aperture size of 256 MB as 128 MB and would not allocate enough physical memory for the GART as a result. MFC after: 3 days Sponsored by: The Weather Channel Approved by: re (rwatson) Revision Changes Path 1.15 +16 -5 src/sys/pci/agp_intel.c