From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751656AbbCTJ1G (ORCPT ); Fri, 20 Mar 2015 05:27:06 -0400 Received: from mailgw01.mediatek.com ([210.61.82.183]:36413 "EHLO mailgw01.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751408AbbCTJ07 (ORCPT ); Fri, 20 Mar 2015 05:26:59 -0400 X-Listener-Flag: 11101 Subject: Re: [PATCH 00/15] iommu: Move domain allocation into drivers From: Yingjoe Chen To: Joerg Roedel CC: , Alexandre Courbot , , Heiko Stuebner , Arnd Bergmann , Stephen Warren , Will Deacon , , , Alex Williamson , Kukjin Kim , Thierry Reding , , , David Woodhouse , , Hiroshi Doyu , Tomasz Figa , Yong Wu =?UTF-8?Q?=28=E5=90=B4=E5=8B=87=29?= , Robin Murphy In-Reply-To: <1422316305-19216-1-git-send-email-joro@8bytes.org> References: <1422316305-19216-1-git-send-email-joro@8bytes.org> Content-Type: text/plain; charset="UTF-8" Date: Fri, 20 Mar 2015 17:24:18 +0800 Message-ID: <1426843458.23931.17.camel@mtksdaap41> MIME-Version: 1.0 X-Mailer: Evolution 2.28.3 Content-Transfer-Encoding: 7bit X-MTK: N Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2015-01-27 at 00:51 +0100, Joerg Roedel wrote: > From: Joerg Roedel > > Hi, > > here is patch-set to replace the existing domain_init and > domain_destroy iommu-ops with the new domain_alloc and > domain_free callbacks > > The new callbacks move the allocation of iommu domains into > the iommu driver, allowing them to put a generic > iommu_domain struct into their own domain struct. This makes > domain handling in the drivers more cache efficient and > prepares the introduction of default domains in another > patch-set. Hi Joerg, What's the status of this patchset? While porting MTK IOMMU driver[1], we need to use a global variable because we need to do dma_alloc_coherent in our domain_init. I think we can remove that global variable if we base on this series. Joe.C [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/328461.html