From: Robin Murphy <robin.murphy@arm.com>
To: Joerg Roedel <joro@8bytes.org>,
iommu@lists.linux-foundation.org,
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH 0/5] Introduce device_iommu_maped() function
Date: Wed, 5 Dec 2018 17:17:29 +0000 [thread overview]
Message-ID: <e34dcbe8-2f1b-31bb-2093-542361635cf5@arm.com> (raw)
In-Reply-To: <20181204172504.19708-1-joro@8bytes.org>
Hi Joerg,
On 04/12/2018 17:24, Joerg Roedel wrote:
> Hi,
>
> here is a patch-set to replace the dev->iommu_group checks
> in the source tree by a proper function call. The pointer
> checks mostly happen to check whether a device is managed my
> an IOMMU. For that purpose a pointer check is not very
> descriptable, so replace it by a function call that make its
> purpose readable.
Nice, we can also clean up a whole load of vague iommu_present() usage
and even one or two odd iommu_get_domain_for_dev() calls once we have this.
> This also starts to remove direct access to the
> dev->iommu_group pointer outside of iommu-code. This is
> another move towards consolidating the various
> iommu-related pointers in 'struct device' into one pointer
> only.
>
> Please review.
>
> Thanks,
>
> Joerg
>
> Joerg Roedel (5):
> driver core: Introduce device_iommu_mapped() function
> iommu/of: Use device_iommu_mapped()
> ACPI/IORT: Use device_iommu_mapped()
> powerpc/iommu: Use device_iommu_mapped()
> xhci: Use device_iommu_mapped()
>
> arch/powerpc/kernel/eeh.c | 2 +-
> arch/powerpc/kernel/iommu.c | 6 +++---
> drivers/acpi/arm64/iort.c | 2 +-
> drivers/iommu/of_iommu.c | 2 +-
> drivers/usb/host/xhci.c | 2 +-
> include/linux/device.h | 10 ++++++++++
> 6 files changed, 17 insertions(+), 7 deletions(-)
There looks to be one more here:
drivers/dma/sh/rcar-dmac.c: rcar_dmac_probe()
Other than that and a minor comment on the OF/IORT part, though, for the
whole series:
Acked-by: Robin Murphy <robin.murphy@arm.com>
next prev parent reply other threads:[~2018-12-05 17:17 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-04 17:24 Joerg Roedel
2018-12-04 17:25 ` [PATCH 1/5] driver core: Introduce device_iommu_mapped() function Joerg Roedel
2018-12-06 12:55 ` Greg Kroah-Hartman
2018-12-06 15:39 ` Joerg Roedel
2018-12-04 17:25 ` [PATCH 2/5] iommu/of: Use device_iommu_mapped() Joerg Roedel
2018-12-05 17:17 ` Robin Murphy
2018-12-06 15:35 ` Joerg Roedel
2018-12-06 17:42 ` Robin Murphy
2018-12-07 9:31 ` Joerg Roedel
2018-12-04 17:25 ` [PATCH 3/5] ACPI/IORT: " Joerg Roedel
2018-12-04 17:25 ` [PATCH 4/5] powerpc/iommu: " Joerg Roedel
2018-12-04 17:25 ` [PATCH 5/5] xhci: " Joerg Roedel
2018-12-05 17:17 ` Robin Murphy [this message]
2018-12-06 15:36 ` [PATCH 0/5] Introduce device_iommu_maped() function 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=e34dcbe8-2f1b-31bb-2093-542361635cf5@arm.com \
--to=robin.murphy@arm.com \
--cc=gregkh@linuxfoundation.org \
--cc=iommu@lists.linux-foundation.org \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.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
all inboxes | Powered by JetHome®