Received: by 10.223.185.116 with SMTP id b49csp7949630wrg; Thu, 1 Mar 2018 14:08:28 -0800 (PST) X-Google-Smtp-Source: AG47ELvCUkdHn+r+ZLhxh7o/HQajbf8/jL86c7kRx8q290CLF/+KC1QWCMwER8+SYSt0PLKrXOFb X-Received: by 10.98.19.21 with SMTP id b21mr3437749pfj.236.1519942108267; Thu, 01 Mar 2018 14:08:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519942108; cv=none; d=google.com; s=arc-20160816; b=GyK0jQq7EvNLdvTLPj9b62yhAa4CPDk8FZvWZaQJLDf+y9oEA2MPpU7tWCgdcZyYmi Y9AFEk92+7/cMMm+/kwC7meCIhPRie2tMDvqUsH4oP+Y9T4Rnx4GMJHusbuNch6cLpsx 6T+9QAl13F7kEZiD8RSWpR0M7cAOUJaet0Ro/Qk6ei/JehqiQ8dKuE26QQKubNDYNBWD Q47oapbSQiQLhabEZK7zEioQ/xIaUrbyaMDrLTU9f7lM0mb9CvLRvg6JRJ+S6wkzafFi Re0RvUJiFIeUA7H4V6abVWg/3edZZG2LZBtz54H0odApS8ZwhD5KmpCEmGJr8mNYXX6O hbTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-transfer-encoding :mime-version:organization:references:in-reply-to:date:cc:to :reply-to:from:subject:arc-authentication-results; bh=+JrR8hjHnFYLWPk27H5KzHwNxMGdCtngXHoQ6/KsMOs=; b=QoFmPBu2Y2grjlwk9RDie5Jnwz+vlcfxQoPjdce9FgdRrUc7wHtXGattMXjfqXOtM3 NHdqiRw+h2HoehtLrOe/AQqpP1Zsasljm3q7zxiSnklyPyrkUJ8W4qwxweSAc4Sh8ChB 9FxfgNlKlX4lGNZDoKaVw/WQzxK4fVB1DDG47B+j0I7wXWYIgDzFvcOpi2DQF08ex+PW L/c1c0ctMC5I8JTCfDeZmzkZeOX8W6BQg7VSpYzttmt3UckI3bFNvNugKPIdOFTirgGo Ooz2KodOcUa4EZyrDFXKKx0KaXOWkA5OA4fGuwCRMDz8ADmq0tYYMtDcn6rdxxJ4bEXq wBcg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m9-v6si3624879plt.6.2018.03.01.14.08.13; Thu, 01 Mar 2018 14:08:28 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1162471AbeCAWHG (ORCPT + 99 others); Thu, 1 Mar 2018 17:07:06 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37442 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1161413AbeCAWHD (ORCPT ); Thu, 1 Mar 2018 17:07:03 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w21M5OYx123805 for ; Thu, 1 Mar 2018 17:07:02 -0500 Received: from e06smtp14.uk.ibm.com (e06smtp14.uk.ibm.com [195.75.94.110]) by mx0b-001b2d01.pphosted.com with ESMTP id 2ges7thxvr-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 01 Mar 2018 17:07:02 -0500 Received: from localhost by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 1 Mar 2018 22:07:00 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp14.uk.ibm.com (192.168.101.144) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 1 Mar 2018 22:06:55 -0000 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w21M6sa156754196; Thu, 1 Mar 2018 22:06:54 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C5C1FA43C3; Thu, 1 Mar 2018 21:59:56 +0000 (GMT) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 6B01CA43BD; Thu, 1 Mar 2018 21:59:56 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 1 Mar 2018 21:59:56 +0000 (GMT) Received: from pasglop (unknown [9.192.255.229]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id F06E6A001E; Fri, 2 Mar 2018 09:06:52 +1100 (AEDT) Subject: Re: [PATCH v2 00/10] Copy Offload in NVMe Fabrics with P2P PCI Memory From: Benjamin Herrenschmidt Reply-To: benh@au1.ibm.com To: Jason Gunthorpe 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 , =?ISO-8859-1?Q?J=E9r=F4me?= Glisse , Alex Williamson , Oliver OHalloran Date: Fri, 02 Mar 2018 09:06:52 +1100 In-Reply-To: <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> <20180301205315.GJ19007@ziepe.ca> Organization: IBM Australia Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.26.5 (3.26.5-1.fc27) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 18030122-0016-0000-0000-0000052BA54A X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18030122-0017-0000-0000-00002868ABB7 Message-Id: <1519942012.4592.31.camel@au1.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-01_12:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803010270 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-03-01 at 13:53 -0700, Jason Gunthorpe wrote: > 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.. Could be that x86 has the smarts to do the right thing, still trying to untangle the code :-) Cheers, Ben.