Re: [PATCH 5/7] powerpc/powernv: TCE invalidation for PHB3

2013-04-25 Thread Gavin Shan
On Thu, Apr 25, 2013 at 06:52:37AM +1000, Benjamin Herrenschmidt wrote: > >> 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 @@

Re: [PATCH 5/7] powerpc/powernv: TCE invalidation for PHB3

2013-04-24 Thread Benjamin Herrenschmidt
> 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 iomm

[PATCH 5/7] powerpc/powernv: TCE invalidation for PHB3

2013-04-24 Thread Gavin Shan
The TCE should be invalidated while it's created or free'd. The approach to do that for IODA1 and IODA2 compliant PHBs are different. So the patch differentiate them with different functions called to do that for IODA1 and IODA2 compliant PHBs. It's notable that the PCI address is used to invalidat