Re: [PATCH kernel 2/9] powerpc/iommu: Cleanup iommu_table disposal

2016-12-11 Thread David Gibson
On Thu, Dec 08, 2016 at 07:19:49PM +1100, Alexey Kardashevskiy wrote: > At the moment iommu_table can be disposed by either calling > iommu_table_free() directly or it_ops::free(); the only implementation > of free() is in IODA2 - pnv_ioda2_table_free() - and it calls > iommu_table_free() anyway.

[PATCH kernel 2/9] powerpc/iommu: Cleanup iommu_table disposal

2016-12-08 Thread Alexey Kardashevskiy
At the moment iommu_table can be disposed by either calling iommu_table_free() directly or it_ops::free(); the only implementation of free() is in IODA2 - pnv_ioda2_table_free() - and it calls iommu_table_free() anyway. As we are going to have reference counting on tables, we need an unified way