From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH v2 5/7] iommu/dma: Respect bus DMA limit for IOVAs Date: Thu, 26 Jul 2018 10:58:21 +0200 Message-ID: <20180726085821.GB23310@lst.de> References: 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: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Robin Murphy Cc: gregkh-hQyY1W1yCW8ekmWlsbkhG0B+6BGkLq7r@public.gmane.org, x86-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, linux-acpi-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org, robh+dt-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org, sudeep.holla-5wv7dgnIgG8@public.gmane.org, frowand.list-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org, hch-jcswGhMUV9g@public.gmane.org, linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r@public.gmane.org List-Id: linux-acpi@vger.kernel.org On Mon, Jul 23, 2018 at 11:16:10PM +0100, Robin Murphy wrote: > Bonus question: Now that we're collecing DMA API code in kernel/dma/ > do we want to reevaluate dma-iommu? On the one hand it's the bulk of a > dma_ops implementation so should perhaps move, but on the other it's > entirely IOMMU-specific code so should perhaps stay where it is... :/ I think drivers/iommu/ is the right place for it. Higher priorities would be to actually make it a complete dma_map_ops implementation, which should be doable by next merge window, and to actually use it for non-arm(64) iommu drivers.. From mboxrd@z Thu Jan 1 00:00:00 1970 From: hch@lst.de (Christoph Hellwig) Date: Thu, 26 Jul 2018 10:58:21 +0200 Subject: [PATCH v2 5/7] iommu/dma: Respect bus DMA limit for IOVAs In-Reply-To: References: Message-ID: <20180726085821.GB23310@lst.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Mon, Jul 23, 2018 at 11:16:10PM +0100, Robin Murphy wrote: > Bonus question: Now that we're collecing DMA API code in kernel/dma/ > do we want to reevaluate dma-iommu? On the one hand it's the bulk of a > dma_ops implementation so should perhaps move, but on the other it's > entirely IOMMU-specific code so should perhaps stay where it is... :/ I think drivers/iommu/ is the right place for it. Higher priorities would be to actually make it a complete dma_map_ops implementation, which should be doable by next merge window, and to actually use it for non-arm(64) iommu drivers..