From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.org (ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 35CB51A006F for ; Mon, 18 May 2015 16:40:27 +1000 (AEST) In-Reply-To: <1431921411.4160.134.camel@kernel.crashing.org> To: Benjamin Herrenschmidt , linuxppc-dev@lists.ozlabs.org From: Michael Ellerman Subject: Re: powerpc/iommu: Support "hybrid" iommu/direct DMA ops for coherent_mask < dma_mask Message-Id: <20150518064027.27A97140D18@ozlabs.org> Date: Mon, 18 May 2015 16:40:27 +1000 (AEST) Cc: Brian King List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2015-18-05 at 03:56:51 UTC, Benjamin Herrenschmidt wrote: > This patch adds the ability to the DMA direct ops to fallback to the IOMMU > ops for coherent alloc/free if the coherent mask of the device isn't > suitable for accessing the direct DMA space and the device also happens > to have an active IOMMU table. Can you do the removal of the union, the #ifdef PPC64 and the static inlines as a precursor patch, that would remove some of the noise in the diff. And can you explain the changes to dart, pseries and powernv. There's also some whitespace changes in iommu.h that I assume you didn't want? cheers