Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755224AbcJZNjs (ORCPT ); Wed, 26 Oct 2016 09:39:48 -0400 Received: from mail-oi0-f46.google.com ([209.85.218.46]:34052 "EHLO mail-oi0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754307AbcJZNjo (ORCPT ); Wed, 26 Oct 2016 09:39:44 -0400 MIME-Version: 1.0 In-Reply-To: References: <1476826937-20665-1-git-send-email-sbates@raithlin.com> From: Dan Williams Date: Wed, 26 Oct 2016 06:39:05 -0700 Message-ID: Subject: Re: [PATCH 0/3] iopmem : A block device for PCIe memory To: Haggai Eran Cc: Stephen Bates , "linux-kernel@vger.kernel.org" , "linux-nvdimm@lists.01.org" , linux-rdma@vger.kernel.org, linux-block@vger.kernel.org, Linux MM , Ross Zwisler , Matthew Wilcox , Jason Gunthorpe , Christoph Hellwig , Jens Axboe , Jonathan Corbet , jim.macdonald@everspin.com, sbates@raithin.com, Logan Gunthorpe , David Woodhouse , "Raj, Ashok" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 582 Lines: 14 On Wed, Oct 26, 2016 at 1:24 AM, Haggai Eran wrote: [..] >> I wonder if we could (ab)use a >> software-defined 'pasid' as the requester id for a peer-to-peer >> mapping that needs address translation. > Why would you need that? Isn't it enough to map the peer-to-peer > addresses correctly in the iommu driver? > You're right, we might already have enough... We would just need to audit iommu drivers to undo any assumptions that the page being mapped is always in host memory and apply any bus address translations between source device and target device.