From: Koichiro Den <den@valinux.co.jp>
To: "Joerg Roedel (AMD)" <joro@8bytes.org>,
Will Deacon <will@kernel.org>,
Robin Murphy <robin.murphy@arm.com>,
Magnus Damm <damm+renesas@opensource.se>,
Jason Gunthorpe <jgg@ziepe.ca>,
Lu Baolu <baolu.lu@linux.intel.com>
Cc: Geert Uytterhoeven <geert+renesas@glider.be>,
Marek Vasut <marek.vasut@mailbox.org>,
Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>,
iommu@lists.linux.dev, linux-renesas-soc@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH v2 0/2] iommu/ipmmu-vmsa: Keep shared micro-TLBs enabled while in use
Date: Thu, 5 Nov 2026 11:49:08 +0900 [thread overview]
Message-ID: <20261105024910.1879230-1-den@valinux.co.jp> (raw)
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
next reply other threads:[~2026-11-05 2:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-05 2:49 Koichiro Den [this message]
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
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=20261105024910.1879230-1-den@valinux.co.jp \
--to=den@valinux.co.jp \
--cc=baolu.lu@linux.intel.com \
--cc=damm+renesas@opensource.se \
--cc=geert+renesas@glider.be \
--cc=iommu@lists.linux.dev \
--cc=jgg@ziepe.ca \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=marek.vasut@mailbox.org \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
--cc=yoshihiro.shimoda.uh@renesas.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
all inboxes | Powered by JetHome®