From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 072D82C0103 for ; Thu, 25 Apr 2013 06:53:01 +1000 (EST) Message-ID: <1366836757.2869.18.camel@pasglop> Subject: Re: [PATCH 5/7] powerpc/powernv: TCE invalidation for PHB3 From: Benjamin Herrenschmidt To: Gavin Shan Date: Thu, 25 Apr 2013 06:52:37 +1000 In-Reply-To: <1366796259-29412-6-git-send-email-shangw@linux.vnet.ibm.com> References: <1366796259-29412-1-git-send-email-shangw@linux.vnet.ibm.com> <1366796259-29412-6-git-send-email-shangw@linux.vnet.ibm.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Cc: linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > diff --git a/arch/powerpc/include/asm/iommu.h b/arch/powerpc/include/asm/iommu.h > index cbfe678..0db308e 100644 > --- a/arch/powerpc/include/asm/iommu.h > +++ b/arch/powerpc/include/asm/iommu.h > @@ -76,6 +76,7 @@ struct iommu_table { > struct iommu_pool large_pool; > struct iommu_pool pools[IOMMU_NR_POOLS]; > unsigned long *it_map; /* A simple allocation bitmap for now */ > + void *sysdata; > }; You should be able to avoid adding that field by using the container_of trick to get to the PE and moving the iommu ops for ioda into pci-ioda.c instead of sharing them with the non-ioda stuff. Cheers, Ben.