public inbox for linux-arm-kernel@lists.infradead.org 
 help / color / mirror / Atom feed
From: Thierry Reding <thierry.reding@gmail•com>
To: Joerg Roedel <joro@8bytes•org>
Cc: Jean-Philippe Brucker <jean-philippe@linaro•org>,
	Will Deacon <will@kernel•org>,
	linux-kernel@vger•kernel.org,
	virtualization@lists•linux-foundation.org,
	iommu@lists•linux-foundation.org,
	Robin Murphy <robin.murphy@arm•com>,
	David Woodhouse <dwmw2@infradead•org>,
	linux-arm-kernel@lists•infradead.org
Subject: [PATCH 0/5] iommu: Implement iommu_put_resv_regions_simple()
Date: Thu, 29 Aug 2019 13:17:47 +0200	[thread overview]
Message-ID: <20190829111752.17513-1-thierry.reding@gmail.com> (raw)

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.

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

-- 
2.22.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists•infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

             reply	other threads:[~2019-08-29 11:18 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-29 11:17 Thierry Reding [this message]
2019-08-29 11:17 ` [PATCH 1/5] iommu: Implement iommu_put_resv_regions_simple() Thierry Reding
2019-09-18 15:37   ` Will Deacon
2019-10-16 12:46     ` Thierry Reding
2019-08-29 11:17 ` [PATCH 2/5] iommu: arm: Use iommu_put_resv_regions_simple() Thierry Reding
2019-08-29 11:17 ` [PATCH 3/5] iommu: amd: " Thierry Reding
2019-08-29 11:17 ` [PATCH 4/5] iommu: intel: " Thierry Reding
2019-08-29 11:17 ` [PATCH 5/5] iommu: virt: " Thierry Reding
2019-09-03  6:54   ` Christoph Hellwig
2019-09-16  9:14 ` [PATCH 0/5] iommu: Implement iommu_put_resv_regions_simple() Auger Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190829111752.17513-1-thierry.reding@gmail.com \
    --to=thierry.reding@gmail$(echo .)com \
    --cc=dwmw2@infradead$(echo .)org \
    --cc=iommu@lists$(echo .)linux-foundation.org \
    --cc=jean-philippe@linaro$(echo .)org \
    --cc=joro@8bytes$(echo .)org \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=robin.murphy@arm$(echo .)com \
    --cc=virtualization@lists$(echo .)linux-foundation.org \
    --cc=will@kernel$(echo .)org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox