iommu/amd: Use generic IOVA allocator
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | iommu: Add apply_dm_region call-back to iommu-opsdrivers/ include/ | +6 | 0 replies | |
| 2/20 | iommu/amd: Select IOMMU_IOVA for AMD IOMMUdrivers/ | +1 | 0 replies | |
| 3/20 | iommu/amd: Allocate iova_domain for dma_ops_domaindrivers/ | +19 | 0 replies | |
| 4/20 | iommu/amd: Create a list of reserved iova addressesdrivers/ | +69 | 0 replies | |
| 5/20 | iommu/amd: Implement apply_dm_region call-backdrivers/ | +15 | 0 replies | |
| 6/20 | iommu/amd: Pass gfp-flags to iommu_map_page()drivers/ | +4 | 0 replies | |
| 7/20 | iommu/amd: Remove special mapping code for dma_ops pathdrivers/ | +14 | 4 replies | |
| 8/20 | iommu/amd: Make use of the generic IOVA allocatordrivers/ | +26 | 0 replies | |
| 9/20 | iommu/amd: Remove other remains of old address allocatordrivers/ | +5 | 0 replies | |
| 10/20 | iommu/amd: Remove align-parameter from __map_single()drivers/ | +3 | 0 replies | |
| 11/20 | iommu/amd: Set up data structures for flush queuedrivers/ | +39 | 0 replies | |
| 12/20 | iommu/amd: Allow NULL pointer parameter for domain_flush_complete()drivers/ | +1 | 0 replies | |
| 13/20 | iommu/amd: Implement flush queuedrivers/ | +67 | 0 replies | |
| 14/20 | iommu/amd: Implement timeout to flush unmap queuesdrivers/ | +28 | 0 replies | |
| 15/20 | iommu/amd: Introduce dir2prot() helperdrivers/ | +13 | 0 replies | |
| 16/20 | iommu/amd: Optimize map_sg and unmap_sgdrivers/ | +52 | 4 replies | |
| 17/20 | iommu/amd: Use dev_data->domain in get_domain()drivers/ | +1 | 0 replies | |
| 18/20 | iommu/amd: Handle IOMMU_DOMAIN_DMA in ops->domain_free call-backdrivers/ | +17 | 0 replies | |
| 19/20 | iommu/amd: Flush iova queue before releasing dma_ops_domaindrivers/ | +14 | 0 replies | |
| 20/20 | iommu/amd: Use container_of to get dma_ops_domaindrivers/ drivers/ | +27 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/20] iommu/amd: Use generic IOVA allocator
Hi,
here is a patch-set to make the AMD IOMMU driver use the generic IOVA allocator, which is already used in the Intel VT-d driver and a few other places.
The main reason for the conversion is to make the driver benefit from the recent scalability improvements to the IOVA code. Some of these improvements happened in the Intel VT-d driver, these are not re-used but, for now, re-implemented.
This leaves more room for merging things together into common code for the future.
The allocator that was previously used will be removed with these patches.
Please review.
Thanks,
Joerg
Joerg Roedel (20):
iommu: Add apply_dm_region call-back to iommu-ops iommu/amd: Select IOMMU_IOVA for AMD IOMMU
iommu/amd: Allocate iova_domain for dma_ops_domain iommu/amd: Create a list of reserved iova addresses iommu/amd: Implement apply_dm_region call-back iommu/amd: Pass gfp-flags to iommu_map_page()
iommu/amd: Remove special mapping code for dma_ops path iommu/amd: Make use of the generic IOVA allocator iommu/amd: Remove other remains of old address allocator iommu/amd: Remove align-parameter from __map_single() iommu/amd: Set up data structures for flush queue iommu/amd: Allow NULL pointer parameter for domain_flush_complete() iommu/amd: Implement flush queue
iommu/amd: Implement timeout to flush unmap queues iommu/amd: Introduce dir2prot() helper
iommu/amd: Optimize map_sg and unmap_sg
iommu/amd: Use dev_data->domain in get_domain() iommu/amd: Handle IOMMU_DOMAIN_DMA in ops->domain_free call-back iommu/amd: Flush iova queue before releasing dma_ops_domain iommu/amd: Use container_of to get dma_ops_domain
drivers/iommu/Kconfig | 1 + drivers/iommu/amd_iommu.c | 976 ++++++++++++++++------------------------ drivers/iommu/amd_iommu_types.h | 1 - drivers/iommu/iommu.c | 3 + include/linux/iommu.h | 3 + 5 files changed, 387 insertions(+), 597 deletions(-)
Signature · 1 line
1.9.1