Received: by 10.223.185.116 with SMTP id b49csp7883289wrg; Thu, 1 Mar 2018 12:54:40 -0800 (PST) X-Google-Smtp-Source: AG47ELtiCyz+/OG38ik3Mh+vTIdIEdAh7jd4TjO+oSa/uCdMHFMW4n1Be7K8nSmNbP48riaAALps X-Received: by 2002:a17:902:8f95:: with SMTP id z21-v6mr3068534plo.132.1519937680651; Thu, 01 Mar 2018 12:54:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519937680; cv=none; d=google.com; s=arc-20160816; b=Ef0V/UnF16f1nmWsljEDQc4Chwi9iPDt92m+iQ4/rDZ0iwqgrZe9u1F1NETzR8Go9G jMLCBBdKRGub74BydXFRi49IvC/9Ml3jG205uIH4Gp4Ghr64zI0CTYfCMkZ4KhsXRimn fxfk2qeA6yGn69ONnsCnoEvZcv4EhpDHuErPH/ZXbQNXYx672RxuT5RWtJFggpn9vZCp iauQy0YoeNeyat1Zm9tlEvkjNzf1t5mGXDOUnLoBZWKG942Aez6i08jwRP/BVSwgNGUQ UCwIZ9+toN0X4OpLOmyREHuWBWyadE1J0x2xyOQ8RkuVDlObIsLj3FsQE1k8GN4uArzK 6MIA== 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:dkim-signature:arc-authentication-results; bh=xJXnpzvoPjNPbtqXqU5gV2OMAoTOBSaUGZn8QmLhkEo=; b=B+zxLScYwvf0Jpykyl8e/l9jvhQjijTgb4t0CyNFNrTQH7hjleniRR8NoHg45CGVrW lK68hiwde/aWyN79ZqRrm9AbqdHzt007n+b8aqJfhpJiO/25kn9mVHZXzEG2jc7o8RGh B2fboIb5eQBsnOjDEOuy7xNTFm4iMkfU68h2Dibm8RjhEb+94Js4ZC1EBKHZVfwI+3qP Q//ZVeyZyFvJZLNMg4bICm3kApMeYI0cQpOJd3XiTKcIQ+BDSdExgHIrYZ+Cw1a0x8pn jzxkAoRDc3Ip4aJWYN2HSxy4cAMT+H4DpFqovsZk0boRmWHi9jGlI3Vo8ZzPNkxoLL0/ Q2Lg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=STHwjkwQ; 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 s24si3557657pfe.227.2018.03.01.12.54.24; Thu, 01 Mar 2018 12:54:40 -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; dkim=pass header.i=@ziepe.ca header.s=google header.b=STHwjkwQ; 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 S1161722AbeCAUx0 (ORCPT + 99 others); Thu, 1 Mar 2018 15:53:26 -0500 Received: from mail-wr0-f195.google.com ([209.85.128.195]:38478 "EHLO mail-wr0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161674AbeCAUxX (ORCPT ); Thu, 1 Mar 2018 15:53:23 -0500 Received: by mail-wr0-f195.google.com with SMTP id n7so7987267wrn.5 for ; Thu, 01 Mar 2018 12:53:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=xJXnpzvoPjNPbtqXqU5gV2OMAoTOBSaUGZn8QmLhkEo=; b=STHwjkwQM254LBZb9DNqgLIuMYvvpqlU/WCRUO9BdMyxQI6HKSVtHRKJsrYtLVjcFO 5nSLuTSTi7mNhkrprDZmTL6aBRrglVADH7l2vUnDBlhafHkXP9QXqGVbBHG17X4VjcEs LZuTxxaNYREHb4odPb3BeU25xcV0sj1lOo6gj46ofmdATc1GZ+aWqrJH34/DzVucBLUp yQiwx2OMzAm1fprvQlhPMFwtZHE0p2XbRuqFlqBlphhSweFHnA8SGXGppbV069fcah+y grOfgqR08oE6t0tAjWRgHu7LLZpCqxtWlaRfuhTbZXBWVCAnCJjYu+bYD6NW8pmlt3Fg 5i5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=xJXnpzvoPjNPbtqXqU5gV2OMAoTOBSaUGZn8QmLhkEo=; b=XfiKpX9YdDekSS/ec8uR90b5GIgFzdvU98eG3A1KO5QaUxFB4v7wUQfB+9pT7jm0Nz 1Iu3ceCEyYCXfBHWJJGgkbCNOZJISICHB50hx3STVYcOl90yxi1G4zlDMhScjwP8wcLI +4JavqWUAKIbGLtvnVJz4CUhvC4QctkWx/48S4V0jMDjEHzxl5RdE+l6hy7mzMPH1kvh nLKWM4eU95aomqn6FGvuJOQD3CtjQnV5qIftD9lyAJcy6fGg/c8rBKGjucaqHkescEqw ILz7apx3+SvIy8zKo0qBvq05fuHV1Qhipvecj77aTJvPWIjJWpnNrGGo6jmoYxoBg7XV RDdQ== X-Gm-Message-State: APf1xPCXJ9dp4h8vlE/9jiMMgADAcCyiMw8fHizFiAQMlXiJrXItLL0L TsZWSBtwow49/96U6aGkzOUNMA== X-Received: by 10.223.150.42 with SMTP id b39mr2814299wra.55.1519937602486; Thu, 01 Mar 2018 12:53:22 -0800 (PST) Received: from ziepe.ca (S010614cc2056d97f.ed.shawcable.net. [70.74.179.152]) by smtp.gmail.com with ESMTPSA id e67sm5060929wmd.7.2018.03.01.12.53.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Mar 2018 12:53:21 -0800 (PST) Received: from jgg by mlx.ziepe.ca with local (Exim 4.86_2) (envelope-from ) id 1erVCV-0004Xe-HC; Thu, 01 Mar 2018 13:53:15 -0700 Date: Thu, 1 Mar 2018 13:53:15 -0700 From: Jason Gunthorpe To: Benjamin Herrenschmidt Cc: Dan Williams , Logan Gunthorpe , Linux Kernel Mailing List , linux-pci@vger.kernel.org, linux-nvme@lists.infradead.org, linux-rdma , linux-nvdimm , linux-block@vger.kernel.org, Stephen Bates , Christoph Hellwig , Jens Axboe , Keith Busch , Sagi Grimberg , Bjorn Helgaas , Max Gurtovoy , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Alex Williamson , Oliver OHalloran Subject: Re: [PATCH v2 00/10] Copy Offload in NVMe Fabrics with P2P PCI Memory Message-ID: <20180301205315.GJ19007@ziepe.ca> References: <20180228234006.21093-1-logang@deltatee.com> <1519876489.4592.3.camel@kernel.crashing.org> <1519876569.4592.4.camel@au1.ibm.com> <1519936477.4592.23.camel@au1.ibm.com> <1519936815.4592.25.camel@au1.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1519936815.4592.25.camel@au1.ibm.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 02, 2018 at 07:40:15AM +1100, Benjamin Herrenschmidt wrote: > Also we need to be able to hard block MEMREMAP_WB mappings of non-RAM > on ppc64 (maybe via an arch hook as it might depend on the processor > family). Server powerpc cannot do cachable accesses on IO memory > (unless it's special OpenCAPI or nVlink, but not on PCIe). I think you are right on this - even on x86 we must not create cachable mappings of PCI BARs - there is no way that works the way anyone would expect. I think this series doesn't have a problem here only because it never touches the BAR pages with the CPU. BAR memory should be mapped into the CPU as WC at best on all arches.. Jason