From owner-freebsd-hackers Sat Mar 6 20:34:13 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from rf900.physics.usyd.edu.au (rf900.physics.usyd.edu.au [129.78.129.109]) by hub.freebsd.org (Postfix) with ESMTP id D34F3151B4 for ; Sat, 6 Mar 1999 20:34:08 -0800 (PST) (envelope-from dawes@rf900.physics.usyd.edu.au) Received: (from dawes@localhost) by rf900.physics.usyd.edu.au (8.9.1a/8.9.1) id PAA00777 for hackers@freebsd.org; Sun, 7 Mar 1999 15:33:50 +1100 (EST) Message-ID: <19990307153350.P4858@rf900.physics.usyd.edu.au> Date: Sun, 7 Mar 1999 15:33:50 +1100 From: David Dawes To: hackers@freebsd.org Subject: Setting MTRRs from the X server Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG For XFree86 4.0, we really need to be able to have the X server request specific MTRR settings for different parts of a video card's physical memory address space. While turning WC on for the framebuffer is a big performance boost, a more critical issue is being able to make sure that WC is turned off for areas that are used for memory mapped I/O. We've found that some BIOSs enable WC in areas that our drivers want to use for MMIO. One example is the 0xb0000-0xbffff range. So what I'm looking for is an interface that our X server can use to request MTRR settings. An interface for this is present in the Linux 2.2.x kernel (and we recently added code to use it), although it doesn't currently allow changing the settings for the low 1MB of address space (but I'm told that will be added at some point). David To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message