Re: [PATCH v2 0/2] iommu/ipmmu-vmsa: Keep shared micro-TLBs enabled while in use
From: Robin Murphy
Date: Wed Dec 02 2026 - 09:01:07 EST
On 02/12/2026 1:24 pm, Koichiro Den wrote:
On Thu, Nov 05, 2026 at 11:49:08AM +0900, Koichiro Den wrote:
Hi,
Removing one PCI function can disable the micro-TLB still used by other
functions, causing their DMA to bypass the IOMMU. This series leaves
shared micro-TLBs unchanged on device release and cleans them up when
their domain's context is destroyed.
v2 was retested in the same manner as v1 (with the Linux PCI endpoint
framework exposing two functions to an R-Car S4 Spider host, by removing
an unused function that shares a micro-TLB with the remaining function.)
Hi Joerg, Robin,
If it looks fine, could you please queue this on renesas/ipmmu for 7.5-rc1?
Ah, indeed I had looked and thought "yeah, that looks pretty neat now", but it probably helps if I transmit that thought beyond the inside of my head...
Reviewed-by: Robin Murphy <robin.murphy@xxxxxxx>
Best regards,
Koichiro Den
Best regards,
Koichiro Den
---
v1->v2 changes:
- Move micro-TLB cleanup from device release to context destruction,
drop per-device reference counting. (Robin)
- Drop v1 patch 2, as it is no longer needed.
v1: https://lore.kernel.org/r/20261104162251.1749998-1-den@xxxxxxxxxxxxx/
Koichiro Den (2):
iommu/ipmmu-vmsa: Propagate errors from iommu_fwspec_add_ids()
iommu/ipmmu-vmsa: Keep shared micro-TLBs enabled while in use
drivers/iommu/ipmmu-vmsa.c | 42 ++++++++++++++++----------------------
1 file changed, 18 insertions(+), 24 deletions(-)
base-commit: 528280c12a26c9da2449c42c5ab4a5c4fe6dbb9c
--
2.54.0