From: Hiroshi Doyu Subject: Re: [PATCHv3 06/19] iommu/tegra: smmu: Select ARM_DMA_USE_IOMMU in Kconfig Date: Thu, 31 Oct 2013 09:16:01 +0100 Message-ID: <20131031.101601.1966768312584871868.hdoyu@nvidia.com> References: <1382092020-13170-1-git-send-email-hdoyu@nvidia.com><1382092020-13170-7-git-send-email-hdoyu@nvidia.com><527184E4.1070800@wwwdotorg.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <527184E4.1070800-3lzwWm7+Weoh9ZMKESR00Q@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: "swarren-3lzwWm7+Weoh9ZMKESR00Q@public.gmane.org" Cc: "linux-tegra-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Stephen Warren , "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" List-Id: iommu@lists.linux-foundation.org Stephen Warren wrote @ Wed, 30 Oct 2013 23:15:00 +0100: > On 10/18/2013 04:26 AM, Hiroshi Doyu wrote: > > SMMU expects ARM_DMA_USE_IOMMU to be enabled to use DMA mapping API by > > default. > > Is the select required for the driver to be useful at all (in which case > it's fine), or simply for things to work "better" (define "better"), in > which case perhaps leaving it optional is more correct. Practically DMA API is the only interface for IOMMU(ARM_DMA_USE_IOMMU) for us, but technically they are/should be independent. SMMU driver attaches a device to some specific "map" out of multiple maps. "map" is the concept from DMA API. Attaching a device to a specific "map" belongs to "policy", which board files used to deal with. But I couldn't find any good place to do this now. Any idea?