From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arnd Bergmann Subject: Re: [RFC PATCH v2 7/7] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops Date: Tue, 02 Sep 2014 20:14:24 +0200 Message-ID: <6595943.s3o5K6pyp9@wuerfel> References: <1409680587-29818-1-git-send-email-will.deacon@arm.com> <1409680587-29818-8-git-send-email-will.deacon@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1409680587-29818-8-git-send-email-will.deacon-5wv7dgnIgG8@public.gmane.org> 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: Will Deacon Cc: jroedel-l3A5Bk7waGM@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, laurent.pinchart-ryLnwIuWjnjg/C1BVhZhaw@public.gmane.org, Varun.Sethi-KZfg59tc24xl57MIdRCFDg@public.gmane.org, dwmw2-wEGCiKHe2LqWVfeAwA7xHQ@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: iommu@lists.linux-foundation.org On Tuesday 02 September 2014 18:56:27 Will Deacon wrote: > This patch plumbs the existing ARM IOMMU DMA infrastructure (which isn't > actually called outside of a few drivers) into arch_setup_dma_ops, so > that we can use IOMMUs for DMA transfers in a more generic fashion. > > Since this significantly complicates the arch_setup_dma_ops function, > it is moved out of line into dma-mapping.c. If CONFIG_ARM_DMA_USE_IOMMU > is not set, the iommu paramater is ignored and the normal ops are used > instead. > > Signed-off-by: Will Deacon > Looks great to me. Arnd From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Tue, 02 Sep 2014 20:14:24 +0200 Subject: [RFC PATCH v2 7/7] arm: dma-mapping: plumb our iommu mapping ops into arch_setup_dma_ops In-Reply-To: <1409680587-29818-8-git-send-email-will.deacon@arm.com> References: <1409680587-29818-1-git-send-email-will.deacon@arm.com> <1409680587-29818-8-git-send-email-will.deacon@arm.com> Message-ID: <6595943.s3o5K6pyp9@wuerfel> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tuesday 02 September 2014 18:56:27 Will Deacon wrote: > This patch plumbs the existing ARM IOMMU DMA infrastructure (which isn't > actually called outside of a few drivers) into arch_setup_dma_ops, so > that we can use IOMMUs for DMA transfers in a more generic fashion. > > Since this significantly complicates the arch_setup_dma_ops function, > it is moved out of line into dma-mapping.c. If CONFIG_ARM_DMA_USE_IOMMU > is not set, the iommu paramater is ignored and the normal ops are used > instead. > > Signed-off-by: Will Deacon > Looks great to me. Arnd