From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e34.co.us.ibm.com (e34.co.us.ibm.com [32.97.110.152]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id EBF331A0008 for ; Sat, 16 May 2015 08:19:59 +1000 (AEST) Received: from /spool/local by e34.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 May 2015 16:19:57 -0600 Received: from b03cxnp07028.gho.boulder.ibm.com (b03cxnp07028.gho.boulder.ibm.com [9.17.130.15]) by d03dlp02.boulder.ibm.com (Postfix) with ESMTP id 730EC3E40044 for ; Fri, 15 May 2015 16:19:54 -0600 (MDT) Received: from d03av05.boulder.ibm.com (d03av05.boulder.ibm.com [9.17.195.85]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id t4FMHmC535389480 for ; Fri, 15 May 2015 15:17:48 -0700 Received: from d03av05.boulder.ibm.com (localhost [127.0.0.1]) by d03av05.boulder.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id t4FMJrgR030421 for ; Fri, 15 May 2015 16:19:54 -0600 Message-ID: <55567108.7020601@linux.vnet.ibm.com> Date: Fri, 15 May 2015 17:19:52 -0500 From: Brian King MIME-Version: 1.0 To: Benjamin Herrenschmidt Subject: Re: [RFC/PATCH v3] powerpc/iommu: Support "hybrid" iommu/direct DMA ops for coherent_mask < dma_mask References: <555279A8.6060906@linux.vnet.ibm.com> <2214146.EzgWBA6g23@wuerfel> <5553505D.50102@linux.vnet.ibm.com> <10045033.4fV0qQU90u@wuerfel> <55535BDF.6020502@linux.vnet.ibm.com> <1431550613.20218.88.camel@kernel.crashing.org> <5553C428.5090806@linux.vnet.ibm.com> <1431641034.4160.71.camel@kernel.crashing.org> In-Reply-To: <1431641034.4160.71.camel@kernel.crashing.org> Content-Type: text/plain; charset=utf-8 Cc: Daniel Kreling , linuxppc-dev@lists.ozlabs.org, linux-scsi , Arnd Bergmann , Sreekanth Reddy List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 05/14/2015 05:03 PM, 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. > > Signed-off-by: Benjamin Herrenschmidt > --- > Thanks. This one works fine for me with mpt2sas. Tested-by: Brian King -Brian -- Brian King Power Linux I/O IBM Linux Technology Center