From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: MTRR use in drivers Date: Thu, 20 Jun 2013 22:00:42 -0700 Message-ID: <51C3DDFA.7050204@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: Linux Kernel Mailing List , David Airlie , dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org An awful lot of drivers, mostly DRI drivers, are still mucking with MTRRs directly as opposed to using ioremap_wc() or similar interfaces. In addition to the architecture dependency, this is really undesirable because MTRRs are a limited resource, whereas page table attributes are not. Furthermore, this perpetuates the need for the horrific hack known as "MTRR cleanup". What, if anything, can we do to clean up this mess? -hpa