All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Alexey Kardashevskiy <aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org>
Cc: Benjamin Herrenschmidt
	<benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>,
	iommu
	<iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org>,
	linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] iommu: moving initialization earlier
Date: Thu, 13 Dec 2012 08:48:55 -0700	[thread overview]
Message-ID: <1355413735.2229.1.camel@ul30vt.home> (raw)
In-Reply-To: <1355380115-4518-1-git-send-email-aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org>

Probably a good idea to CC the iommu list and maintainer...

On Thu, 2012-12-13 at 17:28 +1100, Alexey Kardashevskiy wrote:
> The iommu_init() call initializes IOMMU internal structures and data
> required for the API to function such as iommu_group_alloc().
> It is registered as a subsys_initcall.
> 
> One of the IOMMU users is a PCI subsystem on POWER which discovers new
> IOMMU tables during the PCI scan so the most logical place to call
> iommu_group_alloc() is when a new group is just discovered. However
> PCI scan is done from subsys_initcall hook as well what makes
> using of the IOMMU API impossible.
> 
> The patch moves IOMMU subsystem initialization one step earlier.
> 
> Signed-off-by: Alexey Kardashevskiy <aik-sLpHqDYs0B2HXe+LvDLADg@public.gmane.org>
> ---
>  drivers/iommu/iommu.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
> index de857bb..b0afd3d 100644
> --- a/drivers/iommu/iommu.c
> +++ b/drivers/iommu/iommu.c
> @@ -865,7 +865,7 @@ printk("%s %u\n", __func__, __LINE__);
>  
>  	return 0;
>  }
> -subsys_initcall(iommu_init);
> +arch_initcall(iommu_init);
>  
>  int iommu_domain_get_attr(struct iommu_domain *domain,
>  			  enum iommu_attr attr, void *data)

WARNING: multiple messages have this Message-ID (diff)
From: Alex Williamson <alex.williamson@redhat.com>
To: Alexey Kardashevskiy <aik@ozlabs.ru>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>,
	linux-kernel@vger.kernel.org,
	iommu <iommu@lists.linux-foundation.org>,
	joro@8bytes.org
Subject: Re: [PATCH] iommu: moving initialization earlier
Date: Thu, 13 Dec 2012 08:48:55 -0700	[thread overview]
Message-ID: <1355413735.2229.1.camel@ul30vt.home> (raw)
In-Reply-To: <1355380115-4518-1-git-send-email-aik@ozlabs.ru>

Probably a good idea to CC the iommu list and maintainer...

On Thu, 2012-12-13 at 17:28 +1100, Alexey Kardashevskiy wrote:
> The iommu_init() call initializes IOMMU internal structures and data
> required for the API to function such as iommu_group_alloc().
> It is registered as a subsys_initcall.
> 
> One of the IOMMU users is a PCI subsystem on POWER which discovers new
> IOMMU tables during the PCI scan so the most logical place to call
> iommu_group_alloc() is when a new group is just discovered. However
> PCI scan is done from subsys_initcall hook as well what makes
> using of the IOMMU API impossible.
> 
> The patch moves IOMMU subsystem initialization one step earlier.
> 
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
> ---
>  drivers/iommu/iommu.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
> index de857bb..b0afd3d 100644
> --- a/drivers/iommu/iommu.c
> +++ b/drivers/iommu/iommu.c
> @@ -865,7 +865,7 @@ printk("%s %u\n", __func__, __LINE__);
>  
>  	return 0;
>  }
> -subsys_initcall(iommu_init);
> +arch_initcall(iommu_init);
>  
>  int iommu_domain_get_attr(struct iommu_domain *domain,
>  			  enum iommu_attr attr, void *data)




  parent reply	other threads:[~2012-12-13 15:48 UTC|newest]

Thread overview: 134+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20121113033832.GW4696@truffula.fritz.box>
2012-11-20  0:48 ` [PATCH] vfio powerpc: enabled and supported on powernv platform Alexey Kardashevskiy
2012-11-20  0:48   ` Alexey Kardashevskiy
2012-11-20 18:19   ` Alex Williamson
2012-11-20 18:19     ` Alex Williamson
2012-11-22 11:56     ` Sethi Varun-B16395
2012-11-22 11:56       ` Sethi Varun-B16395
2012-11-22 11:56       ` Sethi Varun-B16395
2012-11-23  2:02       ` Alexey Kardashevskiy
2012-11-23  2:02         ` Alexey Kardashevskiy
2012-11-26 15:18         ` Alex Williamson
2012-11-26 15:18           ` Alex Williamson
2012-11-26 18:04           ` Alex Williamson
2012-11-26 18:04             ` Alex Williamson
2012-11-27  0:21             ` Benjamin Herrenschmidt
2012-11-27  0:21               ` Benjamin Herrenschmidt
2012-11-27  3:28             ` Alexey Kardashevskiy
2012-11-27  3:28               ` Alexey Kardashevskiy
2012-11-27  4:23               ` Alex Williamson
2012-11-27  4:23                 ` Alex Williamson
2012-11-26 15:08       ` Alex Williamson
2012-11-26 15:08         ` Alex Williamson
2012-11-23  9:03     ` [PATCH 0/2] vfio powerpc: implemented and enabled Alexey Kardashevskiy
2012-11-23  9:03       ` Alexey Kardashevskiy
2012-11-23  9:03       ` [PATCH 1/2] vfio powerpc: implemented IOMMU driver for VFIO Alexey Kardashevskiy
2012-11-23  9:03         ` Alexey Kardashevskiy
2012-11-26 18:20         ` Alex Williamson
2012-11-26 18:20           ` Alex Williamson
2012-11-27  4:06           ` Alexey Kardashevskiy
2012-11-27  4:06             ` Alexey Kardashevskiy
2012-11-27  4:29             ` Alex Williamson
2012-11-27  4:29               ` Alex Williamson
2012-11-27  4:58               ` Alexey Kardashevskiy
2012-11-27  4:58                 ` Alexey Kardashevskiy
2012-11-27  5:06                 ` David Gibson
2012-11-27  5:06                   ` David Gibson
2012-11-27  5:07                 ` Alex Williamson
2012-11-27  5:07                   ` Alex Williamson
2012-11-28  7:21                   ` [PATCH] " Alexey Kardashevskiy
2012-11-28  7:21                     ` Alexey Kardashevskiy
2012-11-28 21:01                     ` Alex Williamson
2012-11-28 21:01                       ` Alex Williamson
2012-11-29  3:51                       ` Alexey Kardashevskiy
2012-11-29  3:51                         ` Alexey Kardashevskiy
2012-11-23  9:03       ` [PATCH 2/2] vfio powerpc: enabled on powernv platform Alexey Kardashevskiy
2012-11-23  9:03         ` Alexey Kardashevskiy
2012-11-27  4:41         ` Alex Williamson
2012-11-27  4:41           ` Alex Williamson
2012-11-28  7:18           ` [PATCH] " Alexey Kardashevskiy
2012-11-28  7:18             ` Alexey Kardashevskiy
2012-11-28 21:30             ` Alex Williamson
2012-11-28 21:30               ` Alex Williamson
2012-11-29  3:53               ` Alexey Kardashevskiy
2012-11-29  3:53                 ` Alexey Kardashevskiy
2012-11-29  4:20                 ` Alex Williamson
2012-11-29  4:20                   ` Alex Williamson
2012-11-30  6:14                   ` Alexey Kardashevskiy
2012-11-30  6:14                     ` Alexey Kardashevskiy
2012-11-30 16:48                     ` Alex Williamson
2012-11-30 16:48                       ` Alex Williamson
2012-12-01  0:14                       ` Alexey Kardashevskiy
2012-12-01  0:14                         ` Alexey Kardashevskiy
2012-11-30  6:16                   ` Alexey Kardashevskiy
2012-11-30  6:16                     ` Alexey Kardashevskiy
2012-12-03  2:52       ` [PATCH 0/2] vfio on power: yet another try Alexey Kardashevskiy
2012-12-03  2:52         ` Alexey Kardashevskiy
2012-12-03  2:52         ` [PATCH 1/2] vfio powerpc: enabled on powernv platform Alexey Kardashevskiy
2012-12-03  2:52           ` Alexey Kardashevskiy
2012-12-03 17:35           ` Alex Williamson
2012-12-03 17:35             ` Alex Williamson
2012-12-04  8:12             ` Alexey Kardashevskiy
2012-12-04  8:12               ` Alexey Kardashevskiy
2012-12-04 15:51               ` Alex Williamson
2012-12-04 15:51                 ` Alex Williamson
2012-12-07  7:35                 ` [PATCH] " Alexey Kardashevskiy
2012-12-07  7:35                   ` Alexey Kardashevskiy
2012-12-07 17:38                   ` Alex Williamson
2012-12-07 17:38                     ` Alex Williamson
2012-12-12  6:14                     ` Alexey Kardashevskiy
2012-12-12  6:14                       ` Alexey Kardashevskiy
2012-12-12 14:34                       ` Alex Williamson
2012-12-12 14:34                         ` Alex Williamson
2012-12-13  2:29                         ` Benjamin Herrenschmidt
2012-12-13  2:29                           ` Benjamin Herrenschmidt
2012-12-13  6:27                           ` Alexey Kardashevskiy
2012-12-13  6:27                             ` Alexey Kardashevskiy
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 [this message]
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
2012-12-12 12:34                     ` [PATCH] vfio powerpc: enabled on powernv platform Alexey Kardashevskiy
2012-12-12 12:34                       ` Alexey Kardashevskiy
2012-12-12 12:38                       ` Alexey Kardashevskiy
2012-12-12 12:38                         ` Alexey Kardashevskiy
2012-12-12 23:30                       ` Alex Williamson
2012-12-12 23:30                         ` Alex Williamson
2012-12-13  2:24                         ` Alexey Kardashevskiy
2012-12-13  2:24                           ` Alexey Kardashevskiy
2012-12-13  2:39                         ` Benjamin Herrenschmidt
2012-12-13  2:39                           ` Benjamin Herrenschmidt
2012-12-13  2:57                         ` Benjamin Herrenschmidt
2012-12-13  2:57                           ` Benjamin Herrenschmidt
2012-12-13  3:22                           ` Alex Williamson
2012-12-13  3:22                             ` Alex Williamson
2012-12-03  2:52         ` [PATCH 2/2] vfio powerpc: implemented IOMMU driver for VFIO Alexey Kardashevskiy
2012-12-03  2:52           ` Alexey Kardashevskiy
2012-12-03 17:53           ` Alex Williamson
2012-12-03 17:53             ` Alex Williamson
2012-12-07  7:34             ` [PATCH] " Alexey Kardashevskiy
2012-12-07  7:34               ` Alexey Kardashevskiy
2012-12-07 17:01               ` Alex Williamson
2012-12-07 17:01                 ` Alex Williamson
2012-12-12  6:59                 ` Alexey Kardashevskiy
2012-12-12  6:59                   ` Alexey Kardashevskiy
2012-12-12 14:36                   ` Alex Williamson
2012-12-12 14:36                     ` Alex Williamson
2012-12-12 12:35                 ` Alexey Kardashevskiy
2012-12-12 12:35                   ` Alexey Kardashevskiy
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
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

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=1355413735.2229.1.camel@ul30vt.home \
    --to=alex.williamson-h+wxahxf7alqt0dzr+alfa@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.