[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RFC PATCH 0/6] Avoid contention for PCIIOMMUOps between IOMMU and PCIe
From: |
Jason Chien |
Subject: |
[RFC PATCH 0/6] Avoid contention for PCIIOMMUOps between IOMMU and PCIe host |
Date: |
Mon, 16 Dec 2024 08:48:51 +0800 |
When PCIIOMMUOps.get_address_space() is already registered by the pci host,
e.g. TYPE_DESIGNWARE_PCIE_HOST, IOMMU cannot overwrite this hook without
breaking the PCIe translation rule, which means that IOMMU and the pci host
cannot coexist.
This RFC introduces a new callback, PCIIOMMUOps.set_memory_region(), and
an API, pci_setup_iommu_downstream_mem, to avoid the contention for
PCIIOMMUOps.get_address_space().
Jason Chien (6):
include/hw/pci: Add a callback to set the downstream memory region of
a pci bus
hw/pci: Add an API to set the downstream memory region of a PCI bus
hw/pci-host: Enable DW PCIe host to send memory transactions over
specific mr
hw/riscv/riscv-iommu: Allow PCI hosts with iommu_ops registered
connecting to the IOMMU
hw/riscv/riscv-iommu: Acquire device IDs dynamically
include/hw/pci: Send PCI dma requests with memory attributes
containing BDF
hw/pci-host/designware.c | 18 +++++++++++++++---
hw/pci/pci.c | 6 ++++++
hw/riscv/riscv-iommu.c | 21 +++++++++++++++++++--
include/hw/pci-host/designware.h | 2 ++
include/hw/pci/pci.h | 20 ++++++++++++++++++++
include/hw/pci/pci_device.h | 15 ++++++++++++---
6 files changed, 74 insertions(+), 8 deletions(-)
--
2.43.2
- [RFC PATCH 0/6] Avoid contention for PCIIOMMUOps between IOMMU and PCIe host,
Jason Chien <=
- [RFC PATCH 1/6] include/hw/pci: Add a callback to set the downstream memory region of a pci bus, Jason Chien, 2024/12/15
- [RFC PATCH 2/6] hw/pci: Add an API to set the downstream memory region of a PCI bus, Jason Chien, 2024/12/15
- [RFC PATCH 3/6] hw/pci-host: Enable DW PCIe host to send memory transactions over specific mr, Jason Chien, 2024/12/15
- [RFC PATCH 4/6] hw/riscv/riscv-iommu: Allow PCI hosts with iommu_ops registered connecting to the IOMMU, Jason Chien, 2024/12/15
- [RFC PATCH 5/6] hw/riscv/riscv-iommu: Acquire device IDs dynamically, Jason Chien, 2024/12/15
- [RFC PATCH 6/6] include/hw/pci: Send PCI dma requests with memory attributes containing BDF, Jason Chien, 2024/12/15