Skip to content

iommu: Implement iommu_put_resv_regions_simple()

Thierry Reding linux-arm-kernel linux-iommu lkml virtualization 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 5 repliesIn review
  2. v15 patches 8 repliesSuperseded

Changes in v2 from the cover letter

- change subject prefix to "iommu: virtio: " for virtio-iommu.c driver

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5iommu: Implement iommu_put_resv_regions_simple()drivers/iommu/iommu.c include/linux/iommu.h+21 -00 replies
1/5iommu: Implement iommu_put_resv_regions_simple()drivers/iommu/iommu.c include/linux/iommu.h+21 -00 replies
2/5iommu: arm: Use iommu_put_resv_regions_simple()drivers/iommu/arm-smmu-v3.c drivers/iommu/arm-smmu.c+2 -200 replies
2/5iommu: arm: Use iommu_put_resv_regions_simple()drivers/iommu/arm-smmu-v3.c drivers/iommu/arm-smmu.c+2 -202 replies
3/5iommu: amd: Use iommu_put_resv_regions_simple()drivers/iommu/amd_iommu.c+1 -100 replies
3/5iommu: amd: Use iommu_put_resv_regions_simple()drivers/iommu/amd_iommu.c+1 -100 replies
4/5iommu: intel: Use iommu_put_resv_regions_simple()drivers/iommu/intel-iommu.c+1 -100 replies
4/5iommu: intel: Use iommu_put_resv_regions_simple()drivers/iommu/intel-iommu.c+1 -100 replies
5/5iommu: virtio: Use iommu_put_resv_regions_simple()drivers/iommu/virtio-iommu.c+3 -110 replies
5/5iommu: virtio: Use iommu_put_resv_regions_simple()drivers/iommu/virtio-iommu.c+3 -111 reply

Reviews trailers per patch

4 of 10 patches have a Reviewed-by or Acked-by.

PatchJean-Philippe BruckerWill Deacon
1/5
1/5
2/5A-b A-b
2/5A-b A-b
3/5
3/5
4/5
4/5
5/5R-b
5/5R-b

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

Read the v2 thread

Cover letter [PATCH v2 0/5] iommu: Implement iommu_put_resv_regions_simple()

From: Thierry Reding <[email protected]>

Most IOMMU drivers only need to free the memory allocated for each reserved region. Instead of open-coding the loop to do this in each driver, extract the code into a common function that can be used by all these drivers.

Changes in v2:
- change subject prefix to "iommu: virtio: " for virtio-iommu.c driver

Thierry

Thierry Reding (5):
iommu: Implement iommu_put_resv_regions_simple()
iommu: arm: Use iommu_put_resv_regions_simple()
iommu: amd: Use iommu_put_resv_regions_simple()
iommu: intel: Use iommu_put_resv_regions_simple()
iommu: virtio: Use iommu_put_resv_regions_simple()

 drivers/iommu/amd_iommu.c    | 11 +----------
 drivers/iommu/arm-smmu-v3.c  | 11 +----------
 drivers/iommu/arm-smmu.c     | 11 +----------
 drivers/iommu/intel-iommu.c  | 11 +----------
 drivers/iommu/iommu.c        | 19 +++++++++++++++++++
 drivers/iommu/virtio-iommu.c | 14 +++-----------
 include/linux/iommu.h        |  2 ++
 7 files changed, 28 insertions(+), 51 deletions(-)
Signature · 1 line
2.23.0