Skip to content

RFC iommu_pgsize() improvements to help towards ->[un]map_pages()

Will Deacon linux-arm-kernel linux-iommu 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest6 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6iommu/io-pgtable: Introduce unmap_pages() as a page table opinclude/linux/io-pgtable.h+4 -00 replies
2/6iommu: Add an unmap_pages() op for IOMMU driversinclude/linux/iommu.h+4 -00 replies
3/6iommu: Use bitmap to calculate page size in iommu_pgsize()drivers/iommu/iommu.c+12 -192 replies
4/6iommu: Split 'addr_merge' argument to iommu_pgsize() into separate partsdrivers/iommu/iommu.c+6 -40 replies
5/6iommu: Hook up '->unmap_pages' driver callbackdrivers/iommu/iommu.c+20 -60 replies
6/6iommu: Accomodate larger pages in iommu_pgsize() 'count' calculationdrivers/iommu/iommu.c+32 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/6] iommu_pgsize() improvements to help towards ->[un]map_pages()

Hi Isaac,

I had a go at removing the loop you have in pgsize_bitmap() over at:

https://lore.kernel.org/r/[email protected]

and I ended up with this. It's _very_ lightly tested, but I thought it might be useful to you, especially if you're going to be adding support for '->map_pages' as well.

Cheers,

Will

Cc "Isaac J. Manjarres" <[email protected]>
Cc Pratik Patel <[email protected]>
Cc Robin Murphy <[email protected]>
Cc Lu Baolu <[email protected]>

--->8

Isaac J. Manjarres (2):
iommu/io-pgtable: Introduce unmap_pages() as a page table op
iommu: Add an unmap_pages() op for IOMMU drivers

Will Deacon (4):
iommu: Use bitmap to calculate page size in iommu_pgsize()
iommu: Split 'addr_merge' argument to iommu_pgsize() into separate
parts
iommu: Hook up '->unmap_pages' driver callback
iommu: Accomodate larger pages in iommu_pgsize() 'count' calculation

 drivers/iommu/iommu.c      | 87 +++++++++++++++++++++++++++-----------
 include/linux/io-pgtable.h |  4 ++
 include/linux/iommu.h      |  4 ++
 3 files changed, 70 insertions(+), 25 deletions(-)
Signature · 6 lines
2.31.0.291.g576ba9dcdaf-goog

_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu