Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp6006794ybx; Mon, 11 Nov 2019 02:17:02 -0800 (PST) X-Google-Smtp-Source: APXvYqz9AK6UBmx1CCaa39KhrNRFRNKqp0dce8XSiVDGy0SvANxrU5NHiF5UUqIequ7IunlKLWMJ X-Received: by 2002:a17:906:5fd0:: with SMTP id k16mr21597591ejv.243.1573467422715; Mon, 11 Nov 2019 02:17:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573467422; cv=none; d=google.com; s=arc-20160816; b=wzgLWJXYq6Y5yje47L5fL5O2l89JPxVlLuHpEEr7g8Dy7KYFSVwRX70CvSdIQYjQ5y FJP7CApPBU0/aQkMj4X2pxxsrkL5BYV3Vk40G1EM2enWj0gpaY6TgrEZczT4cjiP9PCz zSfYT+c/SNNGfbFoz3vUgz2fhnEwrLhU4OIcOcbKPm/uDE9GMNB7GOhrYDXYGsGejpDJ Jg5hvIvav4qswQjLkvx2vSSI4Qh7fjm33hOdNgy4r0PXIZ8tx1JoJTYu0hSwYuOW+FGI DtRXEis5xXjNzj+v3bhAkfVFZOELDOqexLjCPWYFHMf4DF7/xGE6X9CrUZJg7r2C2XUA TbqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=P6uFguB1klYkt/l8UdHrMtfKgsFA5mSTCECOv2IEFFo=; b=RgvjE+GZwt9bEX4ZKzwXYmkhkd/X85xGRQ0YGppsTW8m3jc6YMSqH3HnwJrDr1BHOK RFJtQHHQ5QCU7IgIC2rniUzFh+W+Q4pgfToAHrTbG1fxD5cWdufDWQwwllO+N0utLNrh 6TuHVuUQ8qjKXnyDuE2FU+FdTZRRAiVbswe0P8ovcwJ+du6u1wvDxrB1UPoqziwgRMzS g10CEOVEsll1i/a+SUHIqHUX36A365ff2cVncT4FoYLqvbYq5z7UG4K7tiqHEi4TPk3o 9YRThrwQTDWtZ27GkY6v7udKCgNfx7yJ/HWQBKHLuKl1vUTJNcdIrA16wELlg0sACUhl XVow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o16si11039266edi.158.2019.11.11.02.16.39; Mon, 11 Nov 2019 02:17:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726964AbfKKKPh (ORCPT + 99 others); Mon, 11 Nov 2019 05:15:37 -0500 Received: from verein.lst.de ([213.95.11.211]:48523 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726829AbfKKKPg (ORCPT ); Mon, 11 Nov 2019 05:15:36 -0500 Received: by verein.lst.de (Postfix, from userid 2407) id 8B1EE68BE1; Mon, 11 Nov 2019 11:15:31 +0100 (CET) Date: Mon, 11 Nov 2019 11:15:31 +0100 From: Christoph Hellwig To: Arnd Bergmann Cc: Christoph Hellwig , Guo Ren , Michal Simek , Greentime Hu , Vincent Chen , Guan Xuetao , the arch/x86 maintainers , alpha , "open list:SYNOPSYS ARC ARCHITECTURE" , Linux ARM , "open list:QUALCOMM HEXAGON..." , linux-ia64@vger.kernel.org, linux-m68k , linux-mips@vger.kernel.org, "moderated list:NIOS2 ARCHITECTURE" , openrisc@lists.librecores.org, Parisc List , linux-riscv@lists.infradead.org, linux-s390 , Linux-sh list , sparclinux , linux-xtensa@linux-xtensa.org, linux-mtd , linux-arch , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH 10/21] asm-generic: ioremap_uc should behave the same with and without MMU Message-ID: <20191111101531.GA12294@lst.de> References: <20191029064834.23438-1-hch@lst.de> <20191029064834.23438-11-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 11, 2019 at 11:09:05AM +0100, Arnd Bergmann wrote: > Maybe we could move the definition into the atyfb driver itself? > > As I understand it, the difference between ioremap()/ioremap_nocache() > and ioremap_uc() only exists on pre-PAT x86-32 systems (i.e. 486, P5, > Ppro, PII, K6, VIA C3), while on more modern systems (all non-x86, > PentiumIII, Athlon, VIA C7) those three are meant to be synonyms > anyway. That's not how I understood it. Based on the code and the UC- explanation ioremap_uc always overrides the MTRR, which can still be present on more modern x86 systems. In fact I remember a patch floating around very recently adding another ioremap_uc caller in some Atom platform device driver that works around buggy MTRR tables. Also this series actually adds a new override and a few callers for ia64 platform code, which works very similar to x86 based on the comments in the code. That being said I'm not sure the callers in ia64 are really required, but it was the safest thing to do as part of this cleanup.