From: Jason Gunthorpe <jgg@nvidia.com>
To: Lu Baolu <baolu.lu@linux.intel.com>,
David Woodhouse <dwmw2@infradead.org>,
iommu@lists.linux.dev, Joerg Roedel <joro@8bytes.org>,
Robin Murphy <robin.murphy@arm.com>,
Will Deacon <will@kernel.org>
Cc: Kevin Tian <kevin.tian@intel.com>,
patches@lists.linux.dev, Wei Wang <wei.w.wang@intel.com>
Subject: [PATCH v3 0/7] Reorganize Intel VT-D to be ready for iommupt
Date: Mon, 30 Jun 2025 12:03:50 -0300 [thread overview]
Message-ID: <0-v3-dbbe6f7e7ae3+124ffe-vtd_prep_jgg@nvidia.com> (raw)
This is similar to a series I sent for AMD.
Lightly reorganize some of the page table related code so there is greater
isolation between the first and second stage logic. iommupt will introduce
distinct types and code flows for first and second stages, having them all
combined together is difficult.
Splitting actually makes things generally more understandable anyhow as
they do share only a little code. Most of the registers and logic are in
fact different. That was being obscured by small helper functions that
combine the first and second stage information.
This would replace some of the patches recently sent by Wei.
The full branch including the iommpt conversion is here:
https://github.com/jgunthorpe/linux/commits/iommu_pt_vtd
v3:
- Add intel_domain_is_fs/ss_paging() as wrappers around the ops check
- Set force_snooping for the ss as well
v2: https://patch.msgid.link/r/0-v2-e5c01fc5ce82+26216-vtd_prep_jgg@nvidia.com
- Fix intel_pasid_replace_first_level() signature
- Exit on all the WARN_ON's in intel_iommu_domain_free()
- Update comments and commit messages
v1: https://patch.msgid.link/r/0-v1-20c73f153f4c+1895-vtd_prep_jgg@nvidia.com
Jason Gunthorpe (7):
iommu/vt-d: Lift the __pa to
domain_setup_first_level/intel_svm_set_dev_pasid()
iommu/vt-d: Fold domain_exit() into intel_iommu_domain_free()
iommu/vt-d: Do not wipe out the page table NID when devices detach
iommu/vt-d: Split intel_iommu_domain_alloc_paging_flags()
iommu/vt-d: Create unique domain ops for each stage
iommu/vt-d: Split intel_iommu_enforce_cache_coherency()
iommu/vt-d: Split paging_domain_compatible()
drivers/iommu/intel/cache.c | 5 +-
drivers/iommu/intel/iommu.c | 327 +++++++++++++++++++++--------------
drivers/iommu/intel/iommu.h | 19 +-
drivers/iommu/intel/nested.c | 4 +-
drivers/iommu/intel/pasid.c | 17 +-
drivers/iommu/intel/pasid.h | 11 +-
drivers/iommu/intel/svm.c | 3 +-
7 files changed, 235 insertions(+), 151 deletions(-)
base-commit: e04c78d86a9699d136910cfc0bdcf01087e3267e
--
2.43.0
next reply other threads:[~2025-06-30 15:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-30 15:03 Jason Gunthorpe [this message]
2025-06-30 15:03 ` [PATCH v3 1/7] iommu/vt-d: Lift the __pa to domain_setup_first_level/intel_svm_set_dev_pasid() Jason Gunthorpe
2025-06-30 15:03 ` [PATCH v3 2/7] iommu/vt-d: Fold domain_exit() into intel_iommu_domain_free() Jason Gunthorpe
2025-06-30 15:03 ` [PATCH v3 3/7] iommu/vt-d: Do not wipe out the page table NID when devices detach Jason Gunthorpe
2025-06-30 15:03 ` [PATCH v3 4/7] iommu/vt-d: Split intel_iommu_domain_alloc_paging_flags() Jason Gunthorpe
2025-06-30 15:03 ` [PATCH v3 5/7] iommu/vt-d: Create unique domain ops for each stage Jason Gunthorpe
2025-06-30 15:03 ` [PATCH v3 6/7] iommu/vt-d: Split intel_iommu_enforce_cache_coherency() Jason Gunthorpe
2025-07-02 9:15 ` Tian, Kevin
2025-06-30 15:03 ` [PATCH v3 7/7] iommu/vt-d: Split paging_domain_compatible() Jason Gunthorpe
2025-07-02 9:16 ` Tian, Kevin
2025-07-14 5:03 ` [PATCH v3 0/7] Reorganize Intel VT-D to be ready for iommupt Baolu Lu
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=0-v3-dbbe6f7e7ae3+124ffe-vtd_prep_jgg@nvidia.com \
--to=jgg@nvidia.com \
--cc=baolu.lu@linux.intel.com \
--cc=dwmw2@infradead.org \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=kevin.tian@intel.com \
--cc=patches@lists.linux.dev \
--cc=robin.murphy@arm.com \
--cc=wei.w.wang@intel.com \
--cc=will@kernel.org \
/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