From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: DMA mapping API(IOMMU) for ARM64? Date: Tue, 18 Jun 2013 16:15:27 +0200 Message-ID: <201306181615.27341.arnd@arndb.de> References: <20130618.053955.305832937374936961.hdoyu@nvidia.com> <20130618.140137.1551430695673122122.hdoyu@nvidia.com> <20130618125054.GL9930@arm.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130618125054.GL9930-5wv7dgnIgG8@public.gmane.org> Sender: linux-tegra-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Catalin Marinas Cc: Hiroshi Doyu , Will Deacon , "linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org" , "linaro-mm-sig-cunTk1MwBs8s++Sfvej+rw@public.gmane.org" , "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , "m.szyprowski-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org" , "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" List-Id: linux-tegra@vger.kernel.org On Tuesday 18 June 2013, Catalin Marinas wrote: > > 1, Copy arch/arm/mm/dma-mapping.c arch/arm64/mm/dma-mapping.c(+swiotlb) > > 2, Adapt arch/arm64/mm/dma-mapping.c(+swiotlb) to 64bit compatible. > > 3, Factor out the common code from them into mm/dma-mapping.c > > Or add the relevant code to something like lib/iommu-helper.c, convert > arm64 to use that and we can work on converting arm and other > architectures afterwards. Yes, that would work too. Arnd