Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751860Ab3FXAbz (ORCPT ); Sun, 23 Jun 2013 20:31:55 -0400 Received: from terminus.zytor.com ([198.137.202.10]:43831 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750872Ab3FXAby (ORCPT ); Sun, 23 Jun 2013 20:31:54 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <20130624000224.GA2832@khazad-dum.debian.net> References: <51C3DDFA.7050204@zytor.com> <51C69732.1010906@gmail.com> <20130623192936.GA28655@khazad-dum.debian.net> <51C75465.9060007@zytor.com> <20130623215649.GA1288@khazad-dum.debian.net> <51C7725C.5090801@zytor.com> <20130624000224.GA2832@khazad-dum.debian.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: MTRR use in drivers From: "H. Peter Anvin" Date: Sun, 23 Jun 2013 17:31:23 -0700 To: Henrique de Moraes Holschuh CC: Brice Goglin , Linux Kernel Mailing List , David Airlie , dri-devel@lists.freedesktop.org Message-ID: <43cfe710-f22c-4b0b-b7e0-a3c8e6a49096@email.android.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2404 Lines: 67 The aliasing doesn't matter for Linux because we map the high and low half the same. Henrique de Moraes Holschuh wrote: >On Sun, 23 Jun 2013, H. Peter Anvin wrote: >> On 06/23/2013 02:56 PM, Henrique de Moraes Holschuh wrote: >> > >> > And as far as I could find from Intel's not-that-complete public >> > "specification updates", we are applying the errata workaround to a >few more >> > processors than strictly required, but since I have no idea how to >write a >> > test case, I can't whitelist the 3rd-gen Pentium M on my T43, nor >can I get >> > ThinkPad owners to test it for us on 1st and 2nd-gen Pentium M and >report >> > back. >> >> Which specific erratum are you referring to, here? The "WC becomes >UC" >> erratum? I don't think there is a sane testcase for it since it >needs a >> very complicated setup to trigger. > >There are at least two different nasty PAT issues that are not always >critical, and one that outright hangs the processor (if the unsupported >aliasing of WB with UC/WC happens). > >Interestingly enough, most of the P4-Xeons and P4 do not appear to have >the >"WC becomes UC" errata. > >However, LOTS of P4, M-P4, Xeon PIII, Xeon, and Pentium M have a bug >where >the four highest entries in the PAT table are inactive (aliased to the >four >lowest entries) in mode B (PSE) and mode C (PAE) for 4k pages. They >work >fine for large pages. > >Also, lots of them can hang if you ever alias WB with UC or WC (which >is >apparently an unsupported configuration anyway, or so it says in the >errata). > >There are other weird aliasing nasties, such as one where you get >memory >corruption if you alias WB data with code (being accessed as UC or WC) >in >the same cacheline, and some stuff such as weirdness should the page >table >be on WC memory... > >I can track down most of the CPUIDs involved if you want, but someone >from >Intel would be better (I assume they actually have access to the errata >documentation in some less idiotic way than reading a ton of badly >indexed >PDFs that take forever to find in their site). -- Sent from my mobile phone. Please excuse brevity and lack of formatting. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/