From: Will Deacon <will@kernel.org>
To: iommu@lists.linux-foundation.org
Cc: linux-arm-kernel@lists.infradead.org,
Will Deacon <will@kernel.org>,
"Isaac J. Manjarres" <isaacm@codeaurora.org>,
Pratik Patel <pratikp@codeaurora.org>,
Robin Murphy <robin.murphy@arm.com>,
Lu Baolu <baolu.lu@linux.intel.com>
Subject: [RFC PATCH 0/6] iommu_pgsize() improvements to help towards ->[un]map_pages()
Date: Thu, 1 Apr 2021 17:47:32 +0100 [thread overview]
Message-ID: <20210401164738.9513-1-will@kernel.org> (raw)
Hi Isaac,
I had a go at removing the loop you have in pgsize_bitmap() over at:
https://lore.kernel.org/r/20210331030042.13348-4-isaacm@codeaurora.org
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" <isaacm@codeaurora.org>
Cc: Pratik Patel <pratikp@codeaurora.org>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Lu Baolu <baolu.lu@linux.intel.com>
--->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(-)
--
2.31.0.291.g576ba9dcdaf-goog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next reply other threads:[~2021-04-01 16:50 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-01 16:47 Will Deacon [this message]
2021-04-01 16:47 ` [RFC PATCH 1/6] iommu/io-pgtable: Introduce unmap_pages() as a page table op Will Deacon
2021-04-01 16:47 ` [RFC PATCH 2/6] iommu: Add an unmap_pages() op for IOMMU drivers Will Deacon
2021-04-01 16:47 ` [RFC PATCH 3/6] iommu: Use bitmap to calculate page size in iommu_pgsize() Will Deacon
[not found] ` <7c012a63e8a5ad1856aac08995e6f154@codeaurora.org>
2021-04-06 11:40 ` Will Deacon
2021-04-01 16:47 ` [RFC PATCH 4/6] iommu: Split 'addr_merge' argument to iommu_pgsize() into separate parts Will Deacon
2021-04-01 16:47 ` [RFC PATCH 5/6] iommu: Hook up '->unmap_pages' driver callback Will Deacon
2021-04-01 16:47 ` [RFC PATCH 6/6] iommu: Accomodate larger pages in iommu_pgsize() 'count' calculation Will Deacon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210401164738.9513-1-will@kernel.org \
--to=will@kernel.org \
--cc=baolu.lu@linux.intel.com \
--cc=iommu@lists.linux-foundation.org \
--cc=isaacm@codeaurora.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=pratikp@codeaurora.org \
--cc=robin.murphy@arm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).