Received: by 10.223.185.116 with SMTP id b49csp7872842wrg; Thu, 1 Mar 2018 12:41:25 -0800 (PST) X-Google-Smtp-Source: AG47ELvnk76W6f6Cd8BS1OzOQYosO9oA78usFO0E8wgcHhtTvWTupscpR5aSZr0OdOVCX8Akwgce X-Received: by 10.98.9.5 with SMTP id e5mr3216448pfd.189.1519936884994; Thu, 01 Mar 2018 12:41:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519936884; cv=none; d=google.com; s=arc-20160816; b=miNT5VuPp/rB8DfTHri+h9MEiialmECW/Sx9rH7Bw6BOMSRCPTJFR52NVgbknabNfo K1vgnLQ87qU7F1Aiz6kEHk9JpP7YVCvJqlLqZviM/lvFwlg5CZiVH65nQmGrRpFUJrEJ fdVHIhEYnZOKAZb06u3ePap8CA3RoLu7ve4lrAr6pCGiRgwNLV9yzdrYlJ6xvNZ0COfm u1jYEnab+YpghVVunD6g4UK1+pl2eUkCkYlvnmlmUbwDzJQUiMD4sYV5MVwK0Dfq2f4H 7XVB6DDKHYo98CwXKi6EWS0qvmAejUK7cQzE7xt0wZPqPC4m9ZDSHzHazRgFvBpvF461 WGpg== 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=sAnbY661S8xoD+inJ8FB7yudQ1NTfls4y+0PG8gqkhM=; b=QQ31oGBGQWbqrL+Tm0gGeyJYkMWpNx5UYUjr6Il7kK11zSFfDbD0diTPkb26mHUvqu MuYt3uvKCRzWOT7rzm8mXy/okvpGWPdJnHiM5z+dIyBBhG2BoOXtxn7xT7mhJyo2MsgF 8zEKIAxuyimE/uc7CuVsCZ5wY8gLi8WGB2Pq6regJ3srRxT3cSlKs3of1Nm/LF2hYc+I lrB7rIbjWdqZu+BquEHhbVYecBd4/B948aA3C4Q5bq2AgfK8eDeGVHYz928LSw6G33/T /p6I+hwyU5Sh+OysjLd7WikBWqLq6OpVt/xeequcUGhJHU8jNu4yXSQkO5Pjy89nMIV6 7aZA== 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 f12si2373049pgr.795.2018.03.01.12.41.10; Thu, 01 Mar 2018 12:41:24 -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 S1161647AbeCAUka (ORCPT + 99 others); Thu, 1 Mar 2018 15:40:30 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:57210 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1161578AbeCAUk2 (ORCPT ); Thu, 1 Mar 2018 15:40:28 -0500 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w21KcnKA096602 for ; Thu, 1 Mar 2018 15:40:28 -0500 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0b-001b2d01.pphosted.com with ESMTP id 2geq16chs5-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 01 Mar 2018 15:40:27 -0500 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 1 Mar 2018 20:40:25 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 1 Mar 2018 20:40:20 -0000 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w21KeJ3m58720394; Thu, 1 Mar 2018 20:40:19 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7DAA711C04C; Thu, 1 Mar 2018 20:33:11 +0000 (GMT) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2A3BC11C04A; Thu, 1 Mar 2018 20:33:11 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 1 Mar 2018 20:33:11 +0000 (GMT) Received: from pasglop (unknown [9.192.160.12]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id A8EBCA001E; Fri, 2 Mar 2018 07:40:16 +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: Dan Williams Cc: 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 , Jason Gunthorpe , Max Gurtovoy , =?ISO-8859-1?Q?J=E9r=F4me?= Glisse , Alex Williamson , Oliver OHalloran Date: Fri, 02 Mar 2018 07:40:15 +1100 In-Reply-To: <1519936477.4592.23.camel@au1.ibm.com> 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> 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: 18030120-0040-0000-0000-000004399CFF X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18030120-0041-0000-0000-000020DCA2EF Message-Id: <1519936815.4592.25.camel@au1.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-01_11:,, 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-1803010253 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-03-02 at 07:34 +1100, Benjamin Herrenschmidt wrote: > > But what happens with that PCI memory ? Is it effectively turned into > nromal memory (ie, usable for normal allocations, potentially used to > populate user pages etc...) or is it kept aside ? (What I mean is is it added to the page allocator basically) 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). > Also on ppc64, the physical addresses of PCIe make it so far appart > that there's no way we can map them into the linear mapping at the > normal offset of PAGE_OFFSET + (pfn << PAGE_SHIFT), so things like > page_address or virt_to_page cannot work as-is on PCIe addresses. Talking of which ... is there any documentation on the whole memremap_page ? my grep turned out empty... Cheers, Ben.