| From: |
| Joshua Peraza <jperaza-AT-google.com> |
| To: |
| gregkh-AT-linuxfoundation.org |
| Subject: |
| [v8 PATCH 0/2] PCI/ACPI: Support Microsoft's "DmaProperty" |
| Date: |
| Mon, 18 Nov 2024 19:30:22 +0000 |
| Message-ID: |
| <20241118193024.2695876-1-jperaza@google.com> |
| Cc: |
| baolu.lu-AT-linux.intel.com, bhelgaas-AT-google.com, dtor-AT-google.com, dwmw2-AT-infradead.org, helgaas-AT-kernel.org, iommu-AT-lists.linux-foundation.org, jean-philippe-AT-linaro.org, joro-AT-8bytes.org, jperaza-AT-google.com, jsbarnes-AT-google.com, lenb-AT-kernel.org, linux-acpi-AT-vger.kernel.org, linux-kernel-AT-vger.kernel.org, linux-pci-AT-vger.kernel.org, mika.westerberg-AT-linux.intel.com, oohall-AT-gmail.com, pavel-AT-denx.de, rafael.j.wysocki-AT-intel.com, rafael-AT-kernel.org, rajatja-AT-google.com, rajatxjain-AT-gmail.com, will-AT-kernel.org |
| Archive-link: |
| Article |
This patchset rebases two previously posted patches supporting
recognition of Microsoft's DmaProperty.
v8: Joshua renames untrusted_dma to requires_dma_protection and updates
some comments, reducing use of the word "trust" to refer to PCI devices
and matching the word choice in Microsoft's documentation.
v7: Rajat updates a comment with Robin's suggestion. Joshua re-sends and
Greg requests clarity and documentation on why untrusted_dma is the
right name.
v6: Rajat renames pci_dev_has_dma_property and links to Microsoft's
documentation in the commit message. Robin suggests clarifying a
comment.
v5: Rajat changes the name to untrusted_dma. Bjorn suggesting changing
another function's name pci_acpi_check_for_dma_protection to
pci_dev_has_dma_property and seeks clarified documentation.
v4: Rajat changes the name to poses_dma_risk. Christoph suggests this
name doesn't capture the intent as well as untrusted_dma and Rafael
agrees.
v1,v2,v3: Greg suggests that (un)trusted is the wrong word for referring
to PCI devices, recommending a name something like "platform wants to
protect dma access for this device."
Rajat Jain (2):
PCI/ACPI: Support Microsoft's "DmaProperty"
PCI: Rename pci_dev->untrusted to pci_dev->requires_dma_protection
drivers/acpi/property.c | 3 +++
drivers/iommu/amd/iommu.c | 3 +--
drivers/iommu/dma-iommu.c | 16 ++++++++--------
drivers/iommu/intel/iommu.c | 10 +++++-----
drivers/iommu/iommu.c | 5 ++---
drivers/pci/ats.c | 2 +-
drivers/pci/pci-acpi.c | 22 ++++++++++++++++++++++
drivers/pci/pci.c | 2 +-
drivers/pci/probe.c | 8 ++++----
drivers/pci/quirks.c | 4 ++--
include/linux/pci.h | 7 ++++---
11 files changed, 53 insertions(+), 29 deletions(-)
base-commit: 2d5404caa8c7bb5c4e0435f94b28834ae5456623
--
2.47.0.338.g60cca15819-goog