Re: [PATCH 05/16] iommu/io-pgtable-arm-v7s: use page allocation function provided by iommu-pages.h

2023-11-28 Thread Pasha Tatashin
On Tue, Nov 28, 2023 at 6:08 PM Robin Murphy wrote: > > On 2023-11-28 10:55 pm, Pasha Tatashin wrote: > >>>kmem_cache_free(data->l2_tables, table); > > > > We only account page allocations, not subpages, however, this is > > something I was surprised about this particular

Re: [PATCH 05/16] iommu/io-pgtable-arm-v7s: use page allocation function provided by iommu-pages.h

2023-11-28 Thread Pasha Tatashin
> > kmem_cache_free(data->l2_tables, table); We only account page allocations, not subpages, however, this is something I was surprised about this particular architecture of why do we allocate l2 using kmem ? Are the second level tables on arm v7s really sub-page in size? Pasha

[PATCH 05/16] iommu/io-pgtable-arm-v7s: use page allocation function provided by iommu-pages.h

2023-11-28 Thread Pasha Tatashin
Convert iommu/io-pgtable-arm-v7s.c to use the new page allocation functions provided in iommu-pages.h. Signed-off-by: Pasha Tatashin --- drivers/iommu/io-pgtable-arm-v7s.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/io-pgtable-arm-v7s.c