Re: [kernel] powerpc/powernv/ioda2: Remove redundand free of TCE pages

2018-06-04 Thread Michael Ellerman
On Wed, 2018-05-30 at 09:22:50 UTC, Alexey Kardashevskiy wrote: > When IODA2 creates a PE, it creates an IOMMU table with it_ops::free > set to pnv_ioda2_table_free() which calls pnv_pci_ioda2_table_free_pages(). > > Since iommu_tce_table_put() calls it_ops::free when the last reference > to the

[PATCH kernel] powerpc/powernv/ioda2: Remove redundand free of TCE pages

2018-05-30 Thread Alexey Kardashevskiy
When IODA2 creates a PE, it creates an IOMMU table with it_ops::free set to pnv_ioda2_table_free() which calls pnv_pci_ioda2_table_free_pages(). Since iommu_tce_table_put() calls it_ops::free when the last reference to the table is released, explicit call to pnv_pci_ioda2_table_free_pages() is