From mboxrd@z Thu Jan 1 00:00:00 1970 From: hch@lst.de (Christoph Hellwig) Date: Mon, 24 Jun 2019 15:50:24 +0200 Subject: [RFC PATCH 00/28] Removing struct page from P2PDMA In-Reply-To: <20190624134641.GA8268@ziepe.ca> References: <20190620161240.22738-1-logang@deltatee.com> <20190620193353.GF19891@ziepe.ca> <20190624073126.GB3954@lst.de> <20190624134641.GA8268@ziepe.ca> Message-ID: <20190624135024.GA11248@lst.de> On Mon, Jun 24, 2019@10:46:41AM -0300, Jason Gunthorpe wrote: > BTW, it is not just offset right? It is possible that the IOMMU can > generate unique dma_addr_t values for each device?? Simple offset is > just something we saw in certain embedded cases, IIRC. Yes, it could. If we are trying to do P2P between two devices on different root ports and with the IOMMU enabled we'll generate a new bus address for the BAR on the other side dynamically everytime we map.