linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFT] iommu/amd: use subsys_initcall() on amdv2 iommu
@ 2016-03-15 22:12 Luis R. Rodriguez
  2016-03-16  7:02 ` Oded Gabbay
  0 siblings, 1 reply; 30+ messages in thread
From: Luis R. Rodriguez @ 2016-03-15 22:12 UTC (permalink / raw)
  To: joro, iommu; +Cc: linux-kernel, Luis R. Rodriguez

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

^ permalink raw reply related	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2016-11-10 22:13 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-15 22:12 [RFT] iommu/amd: use subsys_initcall() on amdv2 iommu Luis R. Rodriguez
2016-03-16  7:02 ` Oded Gabbay
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
2016-03-16 17:17             ` Joerg Roedel
2016-03-29 17:41               ` [RFT v2] " Luis R. Rodriguez
2016-04-09  0:25                 ` Luis R. Rodriguez
2016-04-11 13:28                   ` Christian König
2016-04-11 13:39                     ` Oded Gabbay
2016-04-11 13:52                       ` Christian König
2016-04-12 22:07                         ` Luis R. Rodriguez
2016-04-18  6:48                           ` Oded Gabbay
     [not found]                             ` <CAB=NE6WL7j_azrFxQUG3bybXtu67ew51CyzYvkBct6tCdARKDg@mail.gmail.com>
2016-04-18  7:02                               ` Oded Gabbay
2016-04-18 12:03                                 ` Luis R. Rodriguez
2016-04-19  2:02                                   ` Wan Zongshun
2016-05-27  0:12                                     ` Luis R. Rodriguez
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-31 17:15                                           ` Luis R. Rodriguez
2016-05-31 17:33                                             ` Oded Gabbay
2016-05-29 18:27                                         ` Daniel Vetter
2016-05-31 16:58                                           ` Luis R. Rodriguez
2016-05-31 19:04                                             ` Daniel Vetter
2016-06-01 21:11                                               ` Luis R. Rodriguez
2016-11-10 22:12                                                 ` Luis R. Rodriguez

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).