From: Pranjal Shrivastava <praan@google.com>
To: iommu@lists.linux.dev, linux-pci@vger.kernel.org,
linux-kernel@vger.kernel.org
Cc: Joerg Roedel <joro@8bytes.org>,
Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>,
Vasant Hegde <vasant.hegde@amd.com>,
Ankit Soni <ankit.soni@amd.com>,
Jason Gunthorpe <jgg@nvidia.com>,
Bjorn Helgaas <bhelgaas@google.com>,
Samiullah Khawaja <skhawaja@google.com>,
Pranjal Shrivastava <praan@google.com>
Subject: [PATCH v2 0/5] iommu/amd: Refactors for ATS robustness
Date: Fri, 14 Aug 2026 01:56:42 +0000 [thread overview]
Message-ID: <20260814015647.3370124-1-praan@google.com> (raw)
This series forms the second half of the subsystem-wide ATS robustness
updates. The first part (focusing on the core subsystem, Intel, and ARM
SMMUv3) has already been merged upstream [1]. This half addresses the
AMD IOMMU driver and standardizes the PCI ATS API.
In v2, the series has been significantly restructured based on feedback
on v1.
[v2]
- Patch 1 Refctors the probe path, isolating capabilities into
iommu_init_device_caps().
- Patch 2 renames iommu_ignore_device() to iommu_disable_device_dma().
Following Jason's suggestion, it invalidates the hardware DTE by
clearing the Valid bit (lower 128 bits) followed by the upper
128 bits.
- Patch 3 splits the probe error paths to ensure that devices with
config failures (like PD_MODE_NONE or ATS mismatches) can preserve
their rlookup_table entries, successfully keeping IRQ remapping
functional for bypassed devices.
- Patch 4 implements the "Fail Hard" pattern for ATS in the AMD driver,
failing the probe and throwing a WARN_ON() upon ATS configuration or
enablement failures.
- Patch 5 enforces the checking of pci_ats_supported() prior to calling
pci_prepare_ats() across the entire kernel PCI subsystem.
[v1]
- https://lore.kernel.org/all/20260601134204.2150602-1-praan@google.com/
Thanks,
Praan
[1] https://lore.kernel.org/all/20260615235037.259909-1-praan@google.com/
Pranjal Shrivastava (5):
iommu/amd: Refactor device probe and capability initialization
iommu/amd: Fix DTE clearing and rename iommu_ignore_device()
iommu/amd: Split probe error paths to preserve IRQ remapping
iommu/amd: Fail probe on ATS configuration failure
PCI/ATS: Mandate checking pci_ats_supported() before pci_prepare_ats()
drivers/iommu/amd/iommu.c | 196 +++++++++++++++++++++++---------------
drivers/pci/ats.c | 6 +-
2 files changed, 122 insertions(+), 80 deletions(-)
--
2.55.0.691.gc56d675ccc-goog
next reply other threads:[~2026-08-14 1:56 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-14 1:56 Pranjal Shrivastava [this message]
2026-08-14 1:56 ` [PATCH v2 1/5] iommu/amd: Refactor device probe and capability initialization Pranjal Shrivastava
2026-08-14 2:13 ` sashiko-bot
2026-08-14 1:56 ` [PATCH v2 2/5] iommu/amd: Fix DTE clearing and rename iommu_ignore_device() Pranjal Shrivastava
2026-08-14 2:34 ` sashiko-bot
2026-08-14 1:56 ` [PATCH v2 3/5] iommu/amd: Split probe error paths to preserve IRQ remapping Pranjal Shrivastava
2026-08-14 2:54 ` sashiko-bot
2026-08-14 1:56 ` [PATCH v2 4/5] iommu/amd: Fail probe on ATS configuration failure Pranjal Shrivastava
2026-08-14 3:05 ` sashiko-bot
2026-08-14 1:56 ` [PATCH v2 5/5] PCI/ATS: Mandate checking pci_ats_supported() before pci_prepare_ats() Pranjal Shrivastava
2026-08-14 3:11 ` sashiko-bot
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=20260814015647.3370124-1-praan@google.com \
--to=praan@google.com \
--cc=ankit.soni@amd.com \
--cc=bhelgaas@google.com \
--cc=iommu@lists.linux.dev \
--cc=jgg@nvidia.com \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=skhawaja@google.com \
--cc=suravee.suthikulpanit@amd.com \
--cc=vasant.hegde@amd.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