From: Robin Murphy Subject: Re: [PATCH] iommu: Allow io-pgtable to be used outside of drivers/iommu/ Date: Tue, 5 Feb 2019 17:12:29 +0000 Message-ID: References: <20190205163731.17864-1-robh@kernel.org> <20190205165528.GA20157@infradead.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190205165528.GA20157-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Christoph Hellwig , Rob Herring Cc: linux-arm-msm-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Will Deacon , iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, linux-mediatek-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org, Matthias Brugger , linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-arm-msm@vger.kernel.org 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. Robin.