All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] iommu: Implement iommu_put_resv_regions_simple()
@ 2019-12-09 14:50 ` Thierry Reding
  0 siblings, 0 replies; 36+ messages in thread
From: Thierry Reding @ 2019-12-09 14:50 UTC (permalink / raw)
  To: Joerg Roedel
  Cc: Jean-Philippe Brucker, Will Deacon, linux-kernel, virtualization,
	iommu, Robin Murphy, David Woodhouse, linux-arm-kernel

From: Thierry Reding <treding@nvidia.com>

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(-)

-- 
2.23.0

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply	[flat|nested] 36+ messages in thread

end of thread, other threads:[~2019-12-17 10:59 UTC | newest]

Thread overview: 36+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-09 14:50 [PATCH v2 0/5] iommu: Implement iommu_put_resv_regions_simple() Thierry Reding
2019-12-09 14:50 ` Thierry Reding
2019-12-09 14:50 ` Thierry Reding
2019-12-09 14:50 ` Thierry Reding
2019-12-09 14:50 ` [PATCH v2 1/5] " Thierry Reding
2019-12-09 14:50 ` Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-09 14:50 ` [PATCH v2 2/5] iommu: arm: Use iommu_put_resv_regions_simple() Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-17 10:59   ` Will Deacon
2019-12-17 10:59   ` Will Deacon
2019-12-17 10:59     ` Will Deacon
2019-12-17 10:59     ` Will Deacon
2019-12-09 14:50 ` Thierry Reding
2019-12-09 14:50 ` [PATCH v2 3/5] iommu: amd: " Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-09 14:50 ` Thierry Reding
2019-12-09 14:50 ` [PATCH v2 4/5] iommu: intel: " Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-09 14:50 ` Thierry Reding
2019-12-09 14:50 ` [PATCH v2 5/5] iommu: virtio: " Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-09 14:50   ` Thierry Reding
2019-12-11 15:44   ` Jean-Philippe Brucker
2019-12-11 15:44     ` Jean-Philippe Brucker
2019-12-11 15:44     ` Jean-Philippe Brucker
2019-12-11 15:44     ` Jean-Philippe Brucker
2019-12-09 14:50 ` Thierry Reding
2019-12-17 10:08 ` [PATCH v2 0/5] iommu: Implement iommu_put_resv_regions_simple() Joerg Roedel
2019-12-17 10:08   ` Joerg Roedel
2019-12-17 10:08   ` Joerg Roedel
2019-12-17 10:08 ` Joerg Roedel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.