Re: [PATCH kernel v10 04/34] powerpc/iommu: Put IOMMU group explicitly

2015-05-12 Thread Gavin Shan
On Tue, May 12, 2015 at 01:38:53AM +1000, Alexey Kardashevskiy wrote: >So far an iommu_table lifetime was the same as PE. Dynamic DMA windows >will change this and iommu_free_table() will not always require >the group to be released. > >This moves iommu_group_put() out of iommu_free_table(). > >Thi

[PATCH kernel v10 04/34] powerpc/iommu: Put IOMMU group explicitly

2015-05-11 Thread Alexey Kardashevskiy
So far an iommu_table lifetime was the same as PE. Dynamic DMA windows will change this and iommu_free_table() will not always require the group to be released. This moves iommu_group_put() out of iommu_free_table(). This adds a iommu_pseries_free_table() helper which does iommu_group_put() and i