Thread (15 messages) 15 messages, 2 authors, 5d ago

Re: [PATCH v3 6/8] iommu/arm-smmu-v3: Populate the tlbi at the top of the call chain

From: Nicolin Chen <hidden>
Date: 2026-07-14 21:30:11
Also in: linux-iommu, linux-patches

On Tue, Jul 14, 2026 at 03:46:06PM -0300, Jason Gunthorpe wrote:
+/*
+ * Called by io-pgtable-arm.c for each single table level it wants to remove.
+ * size is the size of the table level and granule is the tg in bytes. This must
+ * clear the walk cache and any leaves within the range.
+ */
 static void arm_smmu_tlb_inv_walk(unsigned long iova, size_t size,
 				  size_t granule, void *cookie)
 {
 	struct arm_smmu_domain *smmu_domain = cookie;
+	struct arm_smmu_tlbi tlbi = {
+		.tgsz_lg2 = smmu_domain->tgsz_lg2,
+		.iova = iova,
+		.size = size,
+		.iopte_size = smmu_domain->tgsz_lg2,
Sashiko reported a typo here, though this gets fixed in patch-7.

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