Auger Eric
2019-Sep-16 09:14 UTC
[PATCH 0/5] iommu: Implement iommu_put_resv_regions_simple()
Hi Thierry, On 8/29/19 1:17 PM, Thierry Reding wrote:> From: Thierry Reding <treding at 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.If I am not wrong, all the drivers now use the iommu_put_resv_regions_simple helper. So we can wonder if the callback is still relevant? Thanks Eric> > 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: virt: 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(-) >
Seemingly Similar Threads
- [PATCH v2 0/5] iommu: Implement iommu_put_resv_regions_simple()
- [PATCH v2 2/5] iommu: arm: Use iommu_put_resv_regions_simple()
- [PATCH 1/5] iommu: Implement iommu_put_resv_regions_simple()
- [PATCH v2 5/5] iommu: virtio: Use iommu_put_resv_regions_simple()
- [PATCH v3 0/5] iommu: Implement generic_iommu_put_resv_regions()