From: Joerg Roedel <joro-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
To: Alexey Kardashevskiy <aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org>
Cc: iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Benjamin Herrenschmidt
<benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
Subject: Re: [PATCH] iommu: moving initialization earlier
Date: Thu, 10 Jan 2013 18:09:43 +0100 [thread overview]
Message-ID: <20130110170941.GA2556@8bytes.org> (raw)
In-Reply-To: <1357545112-17375-1-git-send-email-aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org>
On Mon, Jan 07, 2013 at 06:51:52PM +1100, Alexey Kardashevskiy wrote:
> The iommu_init() initializes IOMMU internal structures and data
> required for the IOMMU API as iommu_group_alloc().
> It is registered as a subsys_initcall now.
>
> One of the IOMMU users is going to be a PCI subsystem on POWER.
> It discovers new IOMMU tables during the PCI scan so the logical
> place to call iommu_group_alloc() is the moment when a new group
> is discovered. However PCI scan is done from subsys_initcall hook
> as IOMMU does so PCI hook can be (and is) called before the IOMMU one.
>
> The patch moves IOMMU subsystem initialization one step earlier
> to make sure that IOMMU is initialized before PCI scan begins.
>
> Signed-off-by: Alexey Kardashevskiy <aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org>
Applied, thanks.
WARNING: multiple messages have this Message-ID (diff)
From: Joerg Roedel <joro@8bytes.org>
To: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: Joerg Roedel <joerg.roedel@amd.com>,
Benjamin Herrenschmidt <benh@kernel.crashing.org>,
linux-kernel@vger.kernel.org, iommu@lists.linux-foundation.org
Subject: Re: [PATCH] iommu: moving initialization earlier
Date: Thu, 10 Jan 2013 18:09:43 +0100 [thread overview]
Message-ID: <20130110170941.GA2556@8bytes.org> (raw)
In-Reply-To: <1357545112-17375-1-git-send-email-aik@ozlabs.ru>
On Mon, Jan 07, 2013 at 06:51:52PM +1100, Alexey Kardashevskiy wrote:
> The iommu_init() initializes IOMMU internal structures and data
> required for the IOMMU API as iommu_group_alloc().
> It is registered as a subsys_initcall now.
>
> One of the IOMMU users is going to be a PCI subsystem on POWER.
> It discovers new IOMMU tables during the PCI scan so the logical
> place to call iommu_group_alloc() is the moment when a new group
> is discovered. However PCI scan is done from subsys_initcall hook
> as IOMMU does so PCI hook can be (and is) called before the IOMMU one.
>
> The patch moves IOMMU subsystem initialization one step earlier
> to make sure that IOMMU is initialized before PCI scan begins.
>
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Applied, thanks.
next prev parent reply other threads:[~2013-01-10 17:09 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-07 7:51 [PATCH] iommu: moving initialization earlier Alexey Kardashevskiy
2013-01-07 7:51 ` Alexey Kardashevskiy
[not found] ` <1357545112-17375-1-git-send-email-aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org>
2013-01-10 17:09 ` Joerg Roedel [this message]
2013-01-10 17:09 ` Joerg Roedel
[not found] ` <20130110170941.GA2556-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2013-01-10 20:40 ` Shuah Khan
2013-01-10 20:40 ` Shuah Khan
[not found] ` <CAKocOOP=V=kZ=4661YSs4b+7GLcNqzVvvhb+ONBO=LiR3txvTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-01-10 23:16 ` Shuah Khan
2013-01-10 23:16 ` Shuah Khan
2013-01-11 14:50 ` Joerg Roedel
2013-01-11 14:50 ` Joerg Roedel
[not found] ` <20130111145059.GJ25591-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2013-01-11 16:56 ` Shuah Khan
2013-01-11 16:56 ` Shuah Khan
-- strict thread matches above, loose matches on Subject: below --
2012-12-13 2:29 [PATCH] vfio powerpc: enabled on powernv platform Benjamin Herrenschmidt
2012-12-13 6:28 ` [PATCH] iommu: moving initialization earlier Alexey Kardashevskiy
[not found] ` <1355380115-4518-1-git-send-email-aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org>
2012-12-13 15:48 ` Alex Williamson
2012-12-13 15:48 ` Alex Williamson
[not found] ` <1355413735.2229.1.camel-85EaTFmN5p//9pzu0YdTqQ@public.gmane.org>
2012-12-16 11:20 ` Joerg Roedel
2012-12-16 11:20 ` Joerg Roedel
[not found] ` <20121216112024.GJ1806-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2013-01-04 8:21 ` Alexey Kardashevskiy
2013-01-04 8:21 ` Alexey Kardashevskiy
[not found] ` <50E6910E.7030103-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org>
2013-01-06 9:49 ` Joerg Roedel
2013-01-06 9:49 ` 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=20130110170941.GA2556@8bytes.org \
--to=joro-zlv9swrftaidnm+yrofe0a@public.gmane.org \
--cc=aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org \
--cc=benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org \
--cc=iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.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 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.