Implement SMMU passthrough using the default domain
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | iommu/arm-smmu: Restrict domain attributes to UNMANAGED domainsdrivers/ drivers/ | +12 | 3 replies | |
| 1/5 | iommu/arm-smmu: Restrict domain attributes to UNMANAGED domains | +0 | 0 replies | |
| 2/5 | iommu/arm-smmu: Install bypass S2CRs for IOMMU_DOMAIN_IDENTITY domainsdrivers/ | +17 | 1 reply | |
| 3/5 | iommu/arm-smmu-v3: Install bypass STEs for IOMMU_DOMAIN_IDENTITY domainsdrivers/ | +12 | 1 reply | |
| 4/5 | arm64: dma-mapping: Only swizzle DMA ops for IOMMU_DOMAIN_DMAarch/ | +12 | 1 reply | |
| 4/5 | arm64: dma-mapping: Only swizzle DMA ops for IOMMU_DOMAIN_DMA | +0 | 0 replies | |
| 5/5 | iommu: Allow default domain type to be set on the kernel command linedrivers/ | +17 | 2 replies | |
| 5/5 | iommu: Allow default domain type to be set on the kernel command line | +0 | 0 replies |
Reviews trailers per patch
3 of 8 patches have a Reviewed-by or Acked-by.
| Patch | Robin Murphy |
|---|---|
| 1/5 | |
| 1/5 | |
| 2/5 | R-b |
| 3/5 | |
| 4/5 | R-b |
| 4/5 | R-b |
| 5/5 | |
| 5/5 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/5] Implement SMMU passthrough using the default domain
Hi all,
A number of people have expressed interest in having the SMMU come up in a passthrough configuration, and then allow subsequent translation for things such as VFIO. Rather than do this in each SMMU driver, it's much cleaner to allow the default domain to be configured to be something other than DMA.
This patch series implements a command-line option to configure the default domain type. Currently, it supports "dma" and "identity" which is sufficient for the passthrough use-case.
Tested on an ARM fastmodel.
All feedback welcome,
Will
--->8
Will Deacon (5):
iommu/arm-smmu: Restrict domain attributes to UNMANAGED domains iommu/arm-smmu: Install bypass S2CRs for IOMMU_DOMAIN_IDENTITY domains iommu/arm-smmu-v3: Install bypass STEs for IOMMU_DOMAIN_IDENTITY
domains
arm64: dma-mapping: Only swizzle DMA ops for IOMMU_DOMAIN_DMA
iommu: Allow default domain type to be set on the kernel command line
arch/arm64/mm/dma-mapping.c | 17 ++++++++++++----- drivers/iommu/arm-smmu-v3.c | 20 ++++++++++++++++++-- drivers/iommu/arm-smmu.c | 26 +++++++++++++++++++++++--- drivers/iommu/iommu.c | 19 +++++++++++++++++-- 4 files changed, 70 insertions(+), 12 deletions(-)
Signature · 1 line
2.1.4