Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2350395ybl; Sat, 24 Aug 2019 15:36:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI+j32w2MKirdiUCqvk3Eq+6lfc5j1OlsXjAAoUvgGKFGKrp8/Olft+GnJjInubPnIZzPc X-Received: by 2002:a17:902:24b:: with SMTP id 69mr11342026plc.250.1566686162888; Sat, 24 Aug 2019 15:36:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566686162; cv=none; d=google.com; s=arc-20160816; b=huLqTep3YauVT6CgvwB4zuG7QX6f2cx8o7g5Y4c15Q1jeJUVcoaGDwHHK4aVgNCCM1 VJAvexMhNGXhmnnlP5uw2Wm2bSOuhmLjaTpaWCdAUfNGa39LfYBHkOnfCHEkO/G6BohY CNNqBAlpvpuQWGXHnGSennBKbfwqRoGF3HYZ2QfgRKWJ8F7lX6lV9fkpyRb0rYVENsSv qHvupHDbvEiiKc5qhe0O+EzFqR8MAyq9GkouCG7puS/1BcmaJhn9VopeZQPwZrRGZkJ4 PHAD/CDZBJtTYLxazAFn0trD+g0nrAQ80hJVVFwKfxhVNBivcyZz1nAH/vhBsFGTWfMc eYEg== 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=agMykA7NOpLtxrvQaiCf5u4T/frKVqtpPyWeSq444W8=; b=g+n9u6V6gJsbyQowaRcSaYc8WEbwowB35st6eWbDHYw9AFG3/a131q/2dQ4F5ax7K9 CInveSPBmlff9Ceak5QCbWSeXahOI6fm6+2dVBXbB3sfJQsZnSTC2WHDmuzSeFOOfMPf AxBNrjs0GFOFon36ivhfQv8bRz+Mk/+bcqy/fG3CAOuPgL9uIo8PTxn7yoNcVcn7F3T1 dBezfQWYAWsVxByU1ZQ0DbnpYKIYK5SfUBDV8zkXXo6YM9c0LvYYzZZcs1S5eiKiFYmi f9pkBpMaMgeQ6ReNOyFlqvwQ+LNtKu5GC2TwV+QJx9GTN/TYYLLAqX+efIHkC5ACn0In B27A== 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 a4si5666024pls.185.2019.08.24.15.35.45; Sat, 24 Aug 2019 15:36:02 -0700 (PDT) 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 S1728157AbfHXWez (ORCPT + 99 others); Sat, 24 Aug 2019 18:34:55 -0400 Received: from verein.lst.de ([213.95.11.211]:37645 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727879AbfHXWez (ORCPT ); Sat, 24 Aug 2019 18:34:55 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id 3E93268AEF; Sun, 25 Aug 2019 00:34:50 +0200 (CEST) Date: Sun, 25 Aug 2019 00:34:49 +0200 From: Christoph Hellwig To: Paul Burton Cc: Christoph Hellwig , "iommu@lists.linux-foundation.org" , Guan Xuetao , Shawn Anastasio , Russell King , Catalin Marinas , Will Deacon , Robin Murphy , James Hogan , Geert Uytterhoeven , "linuxppc-dev@lists.ozlabs.org" , "linux-mips@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-m68k@lists.linux-m68k.org" , "linux-kernel@vger.kernel.org" Subject: Re: cleanup the dma_pgprot handling Message-ID: <20190824223449.GC21729@lst.de> References: <20190816070754.15653-1-hch@lst.de> <20190823215759.zprrwotlbva46y33@pburton-laptop> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190823215759.zprrwotlbva46y33@pburton-laptop> 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 Fri, Aug 23, 2019 at 09:58:04PM +0000, Paul Burton wrote: > So I believe uncached & uncached accelerated are another case like that > described above - they're 2 different CCAs but the same "access type", > namely uncached. > > Section 4.9 then goes on to forbid mixing access types, but not CCAs. > > It would be nice if the precise mapping from CCA to access type was > provided, but I don't see that anywhere. I can check with the > architecture team to be sure, but to my knowledge we're fine to mix > access via kseg1 (ie. uncached) & mappings with CCA=7 (uncached > accelerated). Ok. Looks like we can keep it then and I'll add a comment to the code with the above reference.