From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CC40DC43331 for ; Wed, 13 Nov 2019 09:32:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AA53D2196E for ; Wed, 13 Nov 2019 09:32:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727124AbfKMJcC (ORCPT ); Wed, 13 Nov 2019 04:32:02 -0500 Received: from mga05.intel.com ([192.55.52.43]:42593 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726086AbfKMJcC (ORCPT ); Wed, 13 Nov 2019 04:32:02 -0500 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 13 Nov 2019 01:32:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.68,300,1569308400"; d="scan'208";a="257087926" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by FMSMGA003.fm.intel.com with ESMTP; 13 Nov 2019 01:31:56 -0800 Received: from andy by smile with local (Exim 4.93-RC1) (envelope-from ) id 1iUp0E-0000Lp-H8; Wed, 13 Nov 2019 11:31:54 +0200 Date: Wed, 13 Nov 2019 11:31:54 +0200 From: Andy Shevchenko To: Arnd Bergmann Cc: Christoph Hellwig , Luis Chamberlain , Daniel Vetter , Juergen Gross , Tuowen Zhao , AceLan Kao , Mika Westerberg , Roman Gilg , Lee Jones , "Luis R. Rodriguez" , Bartlomiej Zolnierkiewicz , X86 ML , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , linux-ia64@vger.kernel.org, Tony Luck , Fenghua Yu , Maarten Lankhorst , Souptick Joarder , dri-devel , Linux Fbdev development list , Linux Kernel Mailing List Subject: Re: [PATCH] video: fbdev: atyfb: only use ioremap_uc() on i386 and ia64 Message-ID: <20191113093154.GB32742@smile.fi.intel.com> References: <20191111192258.2234502-1-arnd@arndb.de> <20191112105507.GA7122@lst.de> <20191112140631.GA10922@lst.de> <20191112222423.GO11244@42.do-not-panic.com> <20191113072708.GA3213@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 08:38:15AM +0100, Arnd Bergmann wrote: > On Wed, Nov 13, 2019 at 8:27 AM Christoph Hellwig wrote: > > > > On Tue, Nov 12, 2019 at 10:24:23PM +0000, Luis Chamberlain wrote: > > > I think this would be possible if we could flop ioremap_nocache() to UC > > > instead of UC- on x86. Otherwise, I can't see how we can remove this by > > > still not allowing direct MTRR calls. > > > > If everything goes well ioremap_nocache will be gone as of 5.5. > > As ioremap_nocache() just an alias for ioremap(), I suppose the idea would > then be to make x86 ioremap be UC instead of UC-, again matching what the > other architectures do already. I think it's right thing to do, i.e. assume that ioremap() always does strong UC independently on MTRR settings. -- With Best Regards, Andy Shevchenko