From owner-cvs-src@FreeBSD.ORG Fri Jul 13 16:28:12 2007 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7C18316A404; Fri, 13 Jul 2007 16:28:12 +0000 (UTC) (envelope-from anholt@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 6E6AC13C4BF; Fri, 13 Jul 2007 16:28:12 +0000 (UTC) (envelope-from anholt@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l6DGSCOF003265; Fri, 13 Jul 2007 16:28:12 GMT (envelope-from anholt@repoman.freebsd.org) Received: (from anholt@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l6DGSCNx003264; Fri, 13 Jul 2007 16:28:12 GMT (envelope-from anholt) Message-Id: <200707131628.l6DGSCNx003264@repoman.freebsd.org> From: Eric Anholt Date: Fri, 13 Jul 2007 16:28:12 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/pci agp.c agp_i810.c agppriv.h agpreg.h X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Jul 2007 16:28:12 -0000 anholt 2007-07-13 16:28:12 UTC FreeBSD src repository Modified files: sys/pci agp.c agp_i810.c agppriv.h agpreg.h Log: Add support for G965/Q965/GM965/GME965/GME945 AGP. This adds a function to agp.c to set the aperture resource ID if it's not the usual AGP_APBASE. Previously, agp.c had been assuming AGP_APBASE, which resulted in incorrect agp_info, and contortions by agp_i810.c to work around it. This also adds functions to agp.c for default AGP_GET_APERTURE() and AGP_SET_APERTURE(), which return the aperture resource size and disallow aperture size changes. Moving to these for our AGP drivers will likely result in stability improvements. This should fix 855-class aperture size detection. Additionally, refuse to attach agp_i810 when some RAM is above 4GB and the GART can't reference memory that high. This should be very rare. The correct solution would be bus_dma conversion for agp, which is beyond the scope of this change. Other AGP drivers could likely use this change as well. G33/Q35/Q33 AGP support is also included, but disconnected by default due to lack of testing. PR: kern/109724 (855 aperture issue) Submitted by: FUJIMOTO Kou Approved by: re (hrs) Revision Changes Path 1.56 +52 -5 src/sys/pci/agp.c 1.40 +306 -224 src/sys/pci/agp_i810.c 1.6 +5 -0 src/sys/pci/agppriv.h 1.19 +25 -2 src/sys/pci/agpreg.h