From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 5/9] PCI: host: brcmstb: add dma-ranges for inbound traffic Date: Fri, 20 Oct 2017 16:57:52 +0200 Message-ID: <20171020145752.GA4694@lst.de> References: <1507761269-7017-6-git-send-email-jim2101024@gmail.com> <589c04cb-061b-a453-3188-79324a02388e@arm.com> <20171017081422.GA19475@lst.de> <20171018065316.GA11183@lst.de> <20171019091644.GA14983@lst.de> <20171020073730.GA12937@lst.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Sender: linux-pci-owner@vger.kernel.org To: Jim Quinlan Cc: Christoph Hellwig , Robin Murphy , linux-kernel@vger.kernel.org, Mark Rutland , Linux-MIPS , Florian Fainelli , devicetree@vger.kernel.org, linux-pci , Kevin Cernekee , Will Deacon , Ralf Baechle , Rob Herring , bcm-kernel-feedback-list , Gregory Fong , Catalin Marinas , Bjorn Helgaas , Brian Norris , linux-arm-kernel@lists.infradead.org, Marek Szyprowski , iommu@lists.linux-foun List-Id: iommu@lists.linux-foundation.org On Fri, Oct 20, 2017 at 10:41:56AM -0400, Jim Quinlan wrote: > I am not sure I understand your comment -- the size of the request > shouldn't be a factor. Let's look at your example of the DMA request > of 3fffff00 to 4000000f (physical memory). Lets say it is for 15 > pages. If we block out the last page [0x3ffff000..0x3fffffff] from > what is available, there is no 15 page span that can happen across the > 0x40000000 boundary. For SG, there can be no merge that connects a > page from one region to another region. Can you give an example of > the scenario you are thinking of? What prevents a merge from say the regions of 0....3fffffff and 40000000....7fffffff?