From owner-freebsd-current@FreeBSD.ORG Wed Dec 14 22:19:42 2005 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 6234116A41F; Wed, 14 Dec 2005 22:19:42 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from speedfactory.net (mail6.speedfactory.net [66.23.216.219]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47A4643D49; Wed, 14 Dec 2005 22:19:41 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (unverified [66.23.211.162]) by speedfactory.net (SurgeMail 3.5b3) with ESMTP id 3819891 for multiple; Wed, 14 Dec 2005 17:17:39 -0500 Received: from localhost (john@localhost [127.0.0.1]) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id jBEMJa7M061528; Wed, 14 Dec 2005 17:19:36 -0500 (EST) (envelope-from jhb@freebsd.org) From: John Baldwin To: current@freebsd.org Date: Wed, 14 Dec 2005 17:20:00 -0500 User-Agent: KMail/1.8.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512141720.01572.jhb@freebsd.org> X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.8 required=4.2 tests=ALL_TRUSTED autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx X-Server: High Performance Mail Server - http://surgemail.com r=1653887525 Cc: anholt@freebsd.org Subject: hostb(4) and vgapci(4) patch 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: Wed, 14 Dec 2005 22:19:42 -0000 I have a patch that is an attempt to untangle a few things in relation to Host-PCI bridges and VGA PCI devices. Basically, the change is to create a more "real" hostb driver as well as a new vgapci driver and to change agp, drm, and acpi_video to attach to these drivers. This means among other things: - In theory you can now kldload agp after boot since it still has a place to attach to. - i830/915 drm is no longer a child of agp, instead both become children of vgapci0. - You can now use acpi_video with drm as both attach as children of vgapci0. - This provides a way for us to possibly solve the DPMS problem for suspend/resume (including a cleaner way to do the hack dpms patch I posted to acpi@ a long while ago that several people still use). Some other details include: - agp devices no longer map the _entire_ aperture into contiguous KVA meaning that it might be possible now to use a 256 MB aperture without panicing - I've added a new pci_if.m method for locating a specific capability for a PCI device. I have tested this on my laptop and verified that dri still works, but it needs some wider testing, especially the i830/i915 case is slightly more complicated. Also, this is not going to work with the nvidia-driver currently, but that's something that can be fixed in the future. If the agp non-mapping does fix the 256 MB aperture issues then I will probably MFC that part to RELENG_6. http://www.FreeBSD.org/~jhb/patches/agp_cvs.patch -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org