Thread (37 messages) 37 messages, 2 authors, 2026-01-27

Re: [PATCH v2 03/10] iommu/arm-smmu-v3: Look for existing iotlb tag in smmu_domain->invs

From: Nicolin Chen <hidden>
Date: 2026-01-27 02:50:41
Also in: linux-iommu, linux-patches, lkml

On Mon, Jan 26, 2026 at 05:03:01PM -0400, Jason Gunthorpe wrote:
On Wed, Jan 21, 2026 at 05:24:21PM -0800, Nicolin Chen wrote:
quoted
Once arm_smmu_attach_prepare() installs an iotlb tag to smmu_domain->invs,
arm_smmu_domain_get_iotlb_tag() callers should get the tag from the array.

Only the arm_smmu_domain_get_iotlb_tag() caller for new_smmu_domain in the
arm_smmu_attach_prepare_invs() will be allowed to allocate a new tag.
It would be nicer to have two functions 'alloc' and 'find' instead of
the bool. Alloc would call find.
Yea, that just came to me as well after seeing Will's comments
in another thread.

Nicolin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help