Thread (37 messages) 37 messages, 6 authors, 2025-11-24

Re: [PATCH v5 5/5] pci: Suspend iommu function prior to resetting a device

From: Nicolin Chen <hidden>
Date: 2025-11-18 08:17:49
Also in: kvm, linux-acpi, linux-iommu, linux-patches, linux-pci, lkml

On Tue, Nov 18, 2025 at 07:53:27AM +0000, Tian, Kevin wrote:
quoted
From: Nicolin Chen <redacted>
And how do you think of the followings?

/*
 * Per PCIe r6.3, sec 10.3.1 IMPLEMENTATION NOTE, software disables ATS
before
 * initiating a reset. Though not all IOMMU drivers calls pci_enable_ats(), it
 * only gets invoked in IOMMU driver. And it is racy to check dev-
quoted
ats_enabled
 * here, as a concurrent IOMMU attachment can enable ATS right after this
line.
 *
 * Notify the IOMMU driver to stop IOMMU translations until the reset is
done,
 * to ensure that the ATS function and its related invalidations are disabled.
 */
I'd remove the words between "Though not ..." and "after this line", which
could be explained in iommu side following Bjorn's suggestion to not check
pci_ats_supported() in pci core.
OK. Thanks!

Nicolin
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help