mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v2 0/2] iommu/ipmmu-vmsa: Keep shared micro-TLBs enabled while in use
@ 2026-11-05  2:49 Koichiro Den
  2026-11-05  2:49 ` [PATCH v2 1/2] iommu/ipmmu-vmsa: Propagate errors from iommu_fwspec_add_ids() Koichiro Den
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Koichiro Den @ 2026-11-05  2:49 UTC (permalink / raw)
  To: Joerg Roedel (AMD),
	Will Deacon, Robin Murphy, Magnus Damm, Jason Gunthorpe,
	Lu Baolu
  Cc: Geert Uytterhoeven, Marek Vasut, Yoshihiro Shimoda, iommu,
	linux-renesas-soc, linux-kernel

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.)

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@valinux.co.jp/


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-12-02 14:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-05  2:49 [PATCH v2 0/2] iommu/ipmmu-vmsa: Keep shared micro-TLBs enabled while in use Koichiro Den
2026-11-05  2:49 ` [PATCH v2 1/2] iommu/ipmmu-vmsa: Propagate errors from iommu_fwspec_add_ids() Koichiro Den
2026-11-05  2:49 ` [PATCH v2 2/2] iommu/ipmmu-vmsa: Keep shared micro-TLBs enabled while in use Koichiro Den
2026-12-02 13:24 ` [PATCH v2 0/2] " Koichiro Den
2026-12-02 14:00   ` Robin Murphy
2026-12-02 14:42     ` Koichiro Den

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®