All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luis R. Rodriguez" <mcgrof@kernel.org>
To: joro@8bytes.org, iommu@lists.linux-foundation.org
Cc: linux-kernel@vger.kernel.org, "Luis R. Rodriguez" <mcgrof@kernel.org>
Subject: [RFT] iommu/amd: use subsys_initcall() on amdv2 iommu
Date: Tue, 15 Mar 2016 15:12:06 -0700	[thread overview]
Message-ID: <1458079926-18716-1-git-send-email-mcgrof@kernel.org> (raw)

We need to ensure amd iommu v2 initializes before
driver uses such as drivers/gpu/drm/amd/amdkfd/kfd_module.c,
to do this make its init routine a subsys_initcall() which
ensures its load init is called first than modules when
built-in.

Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
---

Can someone test if this patch enables both CONFIG_AMD_IOMMU_V2 and
CONFIG_HSA_AMD to be =y (built-in) without any conflicts ?

 drivers/iommu/amd_iommu_v2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/amd_iommu_v2.c b/drivers/iommu/amd_iommu_v2.c
index 56999d2fac07..60df645b9927 100644
--- a/drivers/iommu/amd_iommu_v2.c
+++ b/drivers/iommu/amd_iommu_v2.c
@@ -1004,5 +1004,5 @@ static void __exit amd_iommu_v2_exit(void)
 	destroy_workqueue(iommu_wq);
 }
 
-module_init(amd_iommu_v2_init);
+subsys_initcall(amd_iommu_v2_init);
 module_exit(amd_iommu_v2_exit);
-- 
2.7.2

             reply	other threads:[~2016-03-15 22:12 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-03-15 22:12 Luis R. Rodriguez [this message]
     [not found] ` <1458079926-18716-1-git-send-email-mcgrof-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-03-16  7:02   ` [RFT] iommu/amd: use subsys_initcall() on amdv2 iommu Oded Gabbay
2016-03-16  7:02     ` Oded Gabbay
     [not found]     ` <CAFCwf13RT9VyzhJ4AhAGd1ndd8f=Cd0TRnnRcDwBGHbOzyc5BQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-03-16 10:14       ` Joerg Roedel
2016-03-16 10:14         ` Joerg Roedel
2016-03-16 10:16         ` Oded Gabbay
2016-03-16 16:17           ` Luis R. Rodriguez
2016-03-16 16:39             ` Joerg Roedel
2016-03-16 16:57               ` Luis R. Rodriguez
     [not found]                 ` <20160316165747.GN1990-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2016-03-16 17:17                   ` Joerg Roedel
2016-03-16 17:17                     ` Joerg Roedel
     [not found]                     ` <20160316171719.GE2195-zLv9SwRftAIdnm+yROfE0A@public.gmane.org>
2016-03-29 17:41                       ` [RFT v2] " Luis R. Rodriguez
2016-03-29 17:41                         ` Luis R. Rodriguez
     [not found]                         ` <1459273313-5139-1-git-send-email-mcgrof-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2016-04-09  0:25                           ` Luis R. Rodriguez
2016-04-09  0:25                             ` Luis R. Rodriguez
     [not found]                             ` <CAB=NE6XCmMk4sraQo34XQJfjWu_yRc1rar_eQRSET8Q7VR9EOw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-11 13:28                               ` Christian König
2016-04-11 13:28                                 ` Christian König
     [not found]                                 ` <570BA694.8040900-5C7GfCeVMHo@public.gmane.org>
2016-04-11 13:39                                   ` Oded Gabbay
2016-04-11 13:39                                     ` Oded Gabbay
     [not found]                                     ` <CAFCwf10oD9c3MOW3+J8A5MVjVkX0nNRGCEE2pWcQxOy7mjUsBw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-11 13:52                                       ` Christian König
2016-04-11 13:52                                         ` Christian König
     [not found]                                         ` <570BAC2B.4090508-5C7GfCeVMHo@public.gmane.org>
2016-04-12 22:07                                           ` Luis R. Rodriguez
2016-04-12 22:07                                             ` Luis R. Rodriguez
     [not found]                                             ` <20160412220715.GL1990-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2016-04-18  6:48                                               ` Oded Gabbay
2016-04-18  6:48                                                 ` Oded Gabbay
     [not found]                                                 ` <CAFCwf12SJ-dTv6PC0_KfHbtC9951xb_4v8wu5uSjXO-V3TgdkA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-18  6:55                                                   ` Luis R. Rodriguez
     [not found]                                                     ` <CAB=NE6WL7j_azrFxQUG3bybXtu67ew51CyzYvkBct6tCdARKDg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-18  7:02                                                       ` Oded Gabbay
2016-04-18  7:02                                                         ` Oded Gabbay
     [not found]                                                         ` <CAFCwf12B6TQ5kYEG4+hYoWriv2rnTcngQLX_Cvtbz=64fo35Qg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-04-18 12:03                                                           ` Luis R. Rodriguez
2016-04-18 12:03                                                             ` Luis R. Rodriguez
     [not found]                                                             ` <20160418120350.GE1990-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2016-04-19  2:02                                                               ` Wan Zongshun
2016-04-19  2:02                                                                 ` Wan Zongshun
     [not found]                                                                 ` <571591CC.40700-6ukY98dZOFrYtjvyW6yDsg@public.gmane.org>
2016-05-27  0:12                                                                   ` Luis R. Rodriguez
2016-05-27  0:12                                                                     ` Luis R. Rodriguez
2016-04-25 10:23                                                               ` Joerg Roedel
2016-04-25 10:23                                                                 ` Joerg Roedel
2016-05-27  0:46                                                                 ` Luis R. Rodriguez
2016-05-27  1:18                                                                   ` [RFT v3] drm: use late_initcall() for amdkfd and radeon Luis R. Rodriguez
2016-05-29 14:49                                                                     ` Oded Gabbay
2016-05-29 14:49                                                                       ` Oded Gabbay
     [not found]                                                                       ` <CAFCwf12kzUharmGfLch1OgdngLk6=YoaTb9rJ65hG+y9p5Nvjg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-05-31 17:15                                                                         ` Luis R. Rodriguez
2016-05-31 17:15                                                                           ` Luis R. Rodriguez
2016-05-31 17:33                                                                           ` Oded Gabbay
2016-05-31 17:33                                                                             ` Oded Gabbay
2016-05-29 18:27                                                                     ` Daniel Vetter
2016-05-29 18:27                                                                       ` Daniel Vetter
2016-05-31 16:58                                                                       ` Luis R. Rodriguez
2016-05-31 19:04                                                                         ` Daniel Vetter
2016-05-31 19:04                                                                           ` Daniel Vetter
2016-06-01 21:11                                                                           ` Luis R. Rodriguez
     [not found]                                                                             ` <20160601211159.GO11948-B4tOwbsTzaBolqkO4TVVkw@public.gmane.org>
2016-11-10 22:12                                                                               ` Luis R. Rodriguez
2016-11-10 22:12                                                                                 ` Luis R. Rodriguez

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=1458079926-18716-1-git-send-email-mcgrof@kernel.org \
    --to=mcgrof@kernel.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 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.