Skip to content

iommu/amd: Updates and Cleanups

Joerg Roedel linux-iommu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10iommu/amd: Move AMD IOMMU driver to a subdirectoryMAINTAINERS drivers/iommu/Makefile drivers/iommu/amd/amd_iommu.h +7 more+6 -61 reply
2/10iommu/amd: Unexport get_dev_data()drivers/iommu/amd/amd_iommu_proto.h drivers/iommu/amd/iommu.c drivers/iommu/amd/iommu_v2.c+11 -112 replies
3/10iommu/amd: Let free_pagetable() not rely on domain->pt_rootdrivers/iommu/amd/iommu.c+16 -200 replies
4/10iommu/amd: Allocate page-table in protection_domain_init()drivers/iommu/amd/iommu.c+22 -260 replies
5/10iommu/amd: Free page-table in protection_domain_free()drivers/iommu/amd/iommu.c+6 -50 replies
6/10iommu/amd: Consolidate domain allocation/freeingdrivers/iommu/amd/iommu.c+27 -890 replies
7/10iommu/amd: Remove PD_DMA_OPS_MASKdrivers/iommu/amd/iommu.c+7 -170 replies
8/10iommu/amd: Merge private header filesdrivers/iommu/amd/amd_iommu.h drivers/iommu/amd/amd_iommu_proto.h drivers/iommu/amd/debugfs.c +3 more+100 -1100 replies
9/10iommu/amd: Store dev_data as device iommu private datadrivers/iommu/amd/iommu.c+22 -220 replies
10/10iommu/amd: Remove redundant devid checksdrivers/iommu/amd/iommu.c+2 -110 replies

Reviews trailers per patch

None of the 10 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchSuravee Suthikulpanit
SeriesR-b
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/10] iommu/amd: Updates and Cleanups

Hi,

here is a collection of patches that clean up a few things in the AMD IOMMU driver. Foremost, it moves all related files of the driver into a separate subdirectory.

But the patches also remove usage of dev->archdata.iommu and clean up dev_data handling and domain allocation.

Patches are runtime-tested, including device-assignment.

Please review.

Regards,

Joerg

Joerg Roedel (10):
iommu/amd: Move AMD IOMMU driver to a subdirectory iommu/amd: Unexport get_dev_data()
iommu/amd: Let free_pagetable() not rely on domain->pt_root iommu/amd: Allocate page-table in protection_domain_init() iommu/amd: Free page-table in protection_domain_free() iommu/amd: Consolidate domain allocation/freeing iommu/amd: Remove PD_DMA_OPS_MASK
iommu/amd: Merge private header files
iommu/amd: Store dev_data as device iommu private data iommu/amd: Remove redundant devid checks

 MAINTAINERS                                   |   2 +-
 drivers/iommu/Makefile                        |   6 +-
 .../{amd_iommu_proto.h => amd/amd_iommu.h}    |  20 +-
 drivers/iommu/{ => amd}/amd_iommu_types.h     |   0
 .../{amd_iommu_debugfs.c => amd/debugfs.c}    |   5 +-
 .../iommu/{amd_iommu_init.c => amd/init.c}    |   6 +-
 drivers/iommu/{amd_iommu.c => amd/iommu.c}    | 265 ++++++------------
 .../iommu/{amd_iommu_v2.c => amd/iommu_v2.c}  |  14 +-
 .../{amd_iommu_quirks.c => amd/quirks.c}      |   0
 drivers/iommu/amd_iommu.h                     |  14 -
 10 files changed, 117 insertions(+), 215 deletions(-)
 rename drivers/iommu/{amd_iommu_proto.h => amd/amd_iommu.h} (88%)
 rename drivers/iommu/{ => amd}/amd_iommu_types.h (100%)
 rename drivers/iommu/{amd_iommu_debugfs.c => amd/debugfs.c} (89%)
 rename drivers/iommu/{amd_iommu_init.c => amd/init.c} (99%)
 rename drivers/iommu/{amd_iommu.c => amd/iommu.c} (95%)
 rename drivers/iommu/{amd_iommu_v2.c => amd/iommu_v2.c} (98%)
 rename drivers/iommu/{amd_iommu_quirks.c => amd/quirks.c} (100%)
 delete mode 100644 drivers/iommu/amd_iommu.h
Signature · 1 line
2.17.1