Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4567258ybb; Tue, 24 Mar 2020 00:54:43 -0700 (PDT) X-Google-Smtp-Source: ADFU+vvZ0opU/m/IcA2QnGxZweyv/2NgIxsPWFQVqCL5sCjVIpYGJBeTo1LGWuOqaSo2YbwIhE4r X-Received: by 2002:aca:aa55:: with SMTP id t82mr2458897oie.147.1585036482902; Tue, 24 Mar 2020 00:54:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585036482; cv=none; d=google.com; s=arc-20160816; b=olJJiiK3E6BTjCNyAF8kD7nJG3PqnyQTOpIUJYIN60C0DFqASyUkEosehXLeTY7VL7 BTMqPNFCc3I3Np5Gkxb01GHhPSFzJD7npP9tn+MCAPC6IgoEmIXEXfIF5qK/b1riOkEe kctZS5vyZ43ElfAbj+Lo/mGX3i8IXKdbyRk6Ebcp2Zmw9bwU1XiNmAB1yqdGP0yufdPl hZD5aP/RqbrLHDAxmgz1PaBk7KKBZr1Xvi42Wy8c7Vh1mVPFPQv9CJwSKFrQs8v5r8mB MjGeFUWyxe2b9PksukO2RZJk04ArhWInDEv9k7HPmCEZ9HwANwwM9faTHB4etluOy9h/ vetA== 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=bj4NUf2i85llmPqGoLH78O9UHAfIY0+q1uU+cJ/Nuys=; b=Sl+i6Qw0rBuGwcG6GpreWo4vv7egZBfvCQ5Sdn+wCarX07yXbYJkSNl+LJvSNsNrLw vF0DtS7JLMCoFx91RiiUJr993rWkBK9At5Blnl69hYk4KkqwNBN03+B7EkOIWO2lw5Af YKPmQI2i2VBSIMg+D/iCMf8nMxSRx43fZ0aVpidoTau0IIVM/WcgCzqSR6n1jjzauL5o xVr7+zdckDFmpcV14uPGtN/5r7TemJzP8yxl8TtL38VzHI4uhGqDkcNFOWXiqlHJ6lr+ ZvRrbFXuF+jdSbmfu7XXQU3VbwvT7SBnNZ50hsbOq+u2K3PunSZMgu8WvsQb+8oCHqzw yj/Q== 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 n190si8857701oig.207.2020.03.24.00.54.30; Tue, 24 Mar 2020 00:54:42 -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 S1727486AbgCXHyF (ORCPT + 99 others); Tue, 24 Mar 2020 03:54:05 -0400 Received: from verein.lst.de ([213.95.11.211]:34305 "EHLO verein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725869AbgCXHyF (ORCPT ); Tue, 24 Mar 2020 03:54:05 -0400 Received: by verein.lst.de (Postfix, from userid 2407) id E210B68BFE; Tue, 24 Mar 2020 08:54:02 +0100 (CET) Date: Tue, 24 Mar 2020 08:54:02 +0100 From: Christoph Hellwig To: Alexey Kardashevskiy Cc: Christoph Hellwig , "Aneesh Kumar K.V" , iommu@lists.linux-foundation.org, linuxppc-dev@lists.ozlabs.org, Lu Baolu , Greg Kroah-Hartman , Joerg Roedel , Robin Murphy , linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] dma-mapping: add a dma_ops_bypass flag to struct device Message-ID: <20200324075402.GJ23447@lst.de> References: <20200320141640.366360-1-hch@lst.de> <20200320141640.366360-2-hch@lst.de> <2f31d0dd-aa7e-8b76-c8a1-5759fda5afc9@ozlabs.ru> <20200323083705.GA31245@lst.de> <20200323085059.GA32528@lst.de> <87sghz2ibh.fsf@linux.ibm.com> <20200323172256.GB31269@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 Tue, Mar 24, 2020 at 02:05:54PM +1100, Alexey Kardashevskiy wrote: > This is for persistent memory which you can DMA to/from but yet it does > not appear in the system as a normal memory and therefore requires > special handling anyway (O_DIRECT or DAX, I do not know the exact > mechanics). All other devices in the system should just run as usual, > i.e. use 1:1 mapping if possible. On other systems (x86 and arm) pmem as long as it is page backed does not require any special handling. This must be some weird way powerpc fucked up again, and I suspect you'll have to suffer from it.