From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753313AbaIJTvF (ORCPT ); Wed, 10 Sep 2014 15:51:05 -0400 Received: from g4t3425.houston.hp.com ([15.201.208.53]:28887 "EHLO g4t3425.houston.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752716AbaIJTvC (ORCPT ); Wed, 10 Sep 2014 15:51:02 -0400 Message-ID: <1410378027.28990.268.camel@misato.fc.hp.com> Subject: Re: [PATCH v2 3/6] x86, mm, asm-gen: Add ioremap_wt() for WT From: Toshi Kani To: Andy Lutomirski Cc: "H. Peter Anvin" , Thomas Gleixner , Ingo Molnar , Andrew Morton , Arnd Bergmann , "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , Juergen Gross , Stefan Bader , Henrique de Moraes Holschuh , Yigal Korman , Konrad Rzeszutek Wilk Date: Wed, 10 Sep 2014 13:40:27 -0600 In-Reply-To: References: <1410367910-6026-1-git-send-email-toshi.kani@hp.com> <1410367910-6026-4-git-send-email-toshi.kani@hp.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.8.5 (3.8.5-2.fc19) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2014-09-10 at 11:29 -0700, Andy Lutomirski wrote: > On Wed, Sep 10, 2014 at 9:51 AM, Toshi Kani wrote: : > > +#ifndef ARCH_HAS_IOREMAP_WT > > +#define ioremap_wt ioremap_nocache > > +#endif > > + > > This is a little bit sad. I wouldn't be too surprised if there are > eventually users who prefer WC or WB over UC if WT isn't available > (and they'll want a corresponding way to figure out what kind of fence > to use). Right, this redirection is not ideal for the performance, but it is done this way for the correctness. WT & UC have strongly ordered writes, but WB & WC do not. Thanks, -Toshi