From: alex.williamson@redhat.com (Alex Williamson)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 00/16 v2] iommu: Move domain allocation into drivers
Date: Fri, 27 Mar 2015 22:24:22 -0600 [thread overview]
Message-ID: <1427516662.3643.906.camel@redhat.com> (raw)
In-Reply-To: <1427373799-18662-1-git-send-email-joro@8bytes.org>
On Thu, 2015-03-26 at 13:43 +0100, Joerg Roedel wrote:
> Changes v1-v2:
>
> * Rebased to v4.0-rc5
> * Converted domain-types to a bit-field
>
> Hi,
>
> here is patch-set to replace the existing domain_init and
> domain_destroy iommu-ops with the new domain_alloc and
> domain_free callbacks
>
> The new callbacks move the allocation of iommu domains into
> the iommu driver, allowing them to put a generic
> iommu_domain struct into their own domain struct. This makes
> domain handling in the drivers more cache efficient and
> prepares the introduction of default domains in another
> patch-set.
>
> While at it, this patch-set also introduces domain types.
> These are internal to the iommu core code for now, there are
> three of them:
>
> * DMA-API domains
> * Identity mapped domains
> * Domains unmanaged by the iommu-core, used for
> iommu-api so that the users can create their own
> mappings
>
> The patches have been compile tested for x86, ARM and PPC
> and runtime tested on x86 (Intel VT-d and AMD IOMMU).
>
> Please review.
For 1-5,16
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
My only comment/question is whether you'd want to consider using
ERR_PTR() return values from domain_alloc(). It's an alloc functions,
so NULL == -ENOMEM is pretty standard, but we could at least have the
interface to the iommu driver return more info even if we continue to
mask that as NULL out to the IOMMU API users for now. Thanks,
Alex
next prev parent reply other threads:[~2015-03-28 4:24 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-26 12:43 [PATCH 00/16 v2] iommu: Move domain allocation into drivers Joerg Roedel
2015-03-26 12:43 ` [PATCH 01/16] iommu: Introduce domain_alloc and domain_free iommu_ops Joerg Roedel
2015-03-26 12:43 ` [PATCH 02/16] iommu: Introduce iommu domain types Joerg Roedel
2015-03-26 12:52 ` Swapna Nannapaneni
2015-03-26 12:43 ` [PATCH 03/16] iommu: Only allow iommu_map/unmap for paging domains Joerg Roedel
2015-03-26 12:43 ` [PATCH 04/16] iommu/amd: Make use of domain_alloc and domain_free Joerg Roedel
2015-03-26 12:43 ` [PATCH 05/16] iommu/vt-d: " Joerg Roedel
2015-03-26 12:43 ` [PATCH 06/16] iommu/omap: " Joerg Roedel
2015-03-26 12:43 ` [PATCH 07/16] iommu/arm-smmu: " Joerg Roedel
2015-03-26 12:43 ` [PATCH 08/16] iommu/exynos: " Joerg Roedel
2015-03-26 12:43 ` [PATCH 09/16] iommu/tegra-smmu: " Joerg Roedel
2015-03-27 10:59 ` Thierry Reding
2015-03-26 12:43 ` [PATCH 10/16] iommu/tegra-gart: " Joerg Roedel
2015-03-27 11:00 ` Thierry Reding
2015-03-26 12:43 ` [PATCH 11/16] iommu/msm: " Joerg Roedel
2015-03-26 12:43 ` [PATCH 12/16] iommu/shmobile: " Joerg Roedel
2015-03-26 12:43 ` [PATCH 13/16] iommu/ipmmu-vmsa: " Joerg Roedel
2015-03-26 12:43 ` [PATCH 14/16] iommu/rockchip: " Joerg Roedel
2015-03-26 12:43 ` [PATCH 15/16] iommu/fsl: " Joerg Roedel
2015-04-12 14:25 ` Varun Sethi
2015-03-26 12:43 ` [PATCH 16/16] iommu: Remove domain_init and domain_free iommu_ops Joerg Roedel
2015-03-27 11:03 ` [PATCH 00/16 v2] iommu: Move domain allocation into drivers Thierry Reding
2015-03-27 16:39 ` Heiko Stuebner
2015-03-28 4:24 ` Alex Williamson [this message]
2015-03-31 13:14 ` Joerg Roedel
2015-03-30 17:43 ` Will Deacon
2015-03-31 13:18 ` Joerg Roedel
2015-03-31 13:33 ` Joerg Roedel
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=1427516662.3643.906.camel@redhat.com \
--to=alex.williamson@redhat.com \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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;
as well as URLs for NNTP newsgroup(s).