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:16:59
Also in: kvm, linux-acpi, linux-iommu, linux-patches, linux-pci, lkml

On Mon, Nov 17, 2025 at 04:58:52PM -0600, Bjorn Helgaas wrote:
On Mon, Nov 10, 2025 at 09:12:55PM -0800, Nicolin Chen wrote:
quoted
+int pci_reset_iommu_prepare(struct pci_dev *dev)
+{
+	if (pci_ats_supported(dev))
+		return iommu_dev_reset_prepare(&dev->dev);
Why bother checking pci_ats_supported() here?  That could be done
inside iommu_dev_reset_prepare(), since iommu.c already uses
dev_is_pci() and pci_ats_supported() is already exported outside
drivers/pci/.
Ack. I will fix all of these.

Thanks for the review!
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