From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH] iommu: Allow io-pgtable to be used outside of drivers/iommu/ Date: Tue, 5 Feb 2019 22:55:41 -0800 Message-ID: <20190206065541.GA860@infradead.org> References: <20190205163731.17864-1-robh@kernel.org> <20190205165528.GA20157@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Robin Murphy Cc: Rob Herring , linux-arm-msm@vger.kernel.org, Joerg Roedel , Will Deacon , Christoph Hellwig , iommu@lists.linux-foundation.org, linux-mediatek@lists.infradead.org, Matthias Brugger , linux-arm-kernel@lists.infradead.org List-Id: iommu@lists.linux-foundation.org On Tue, Feb 05, 2019 at 05:12:29PM +0000, Robin Murphy wrote: > On 05/02/2019 16:55, Christoph Hellwig wrote: > > On Tue, Feb 05, 2019 at 10:37:31AM -0600, Rob Herring wrote: > > > Move io-pgtable.h to include/linux/ and export alloc_io_pgtable_ops > > > and free_io_pgtable_ops. This enables drivers outside drivers/iommu/ to > > > use the ARM page table library. Specifically, some ARM Mali GPUs use the > > > ARM page table formats. > > > > Maybe rename it to arm-io-pgtable.h to make the usage a little more > > clear? > > It's not Arm-specific, though - the whole point of io-pgtable is to be an > architecture-agnostic library of IOMMU pagetable code. It just happens that > the only formats implemented so far are the Arm ones that already have more > than one in-tree user each. Oh, ok. I always thought of it as an ARM thing, but then I missed the intention behind it.