mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] iommu/amd: Fix amd_iommu_detect() (does not fix any issues).
@ 2015-08-31 22:13 j.glisse
  2015-09-24 14:50 ` Joerg Roedel
  2015-10-26 16:07 ` Konrad Rzeszutek Wilk
  0 siblings, 2 replies; 6+ messages in thread
From: j.glisse @ 2015-08-31 22:13 UTC (permalink / raw)
  To: linux-kernel; +Cc: Jérôme Glisse, Joerg Roedel, iommu

From: Jérôme Glisse <jglisse@redhat.com>

Fix amd_iommu_detect() to return positive value on success, like
intended, and not zero. This will not change anything in the end
as AMD IOMMU disable swiotlb and properly associate itself with
devices even if detect() doesn't return a positive value.

Signed-off-by: Jérôme Glisse <jglisse@redhat.com>
Cc: Joerg Roedel <jroedel@suse.de>
Cc: iommu@lists.linux-foundation.org
---
 drivers/iommu/amd_iommu_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c
index a24495e..360a451 100644
--- a/drivers/iommu/amd_iommu_init.c
+++ b/drivers/iommu/amd_iommu_init.c
@@ -2198,7 +2198,7 @@ int __init amd_iommu_detect(void)
 	iommu_detected = 1;
 	x86_init.iommu.iommu_init = amd_iommu_init;
 
-	return 0;
+	return 1;
 }
 
 /****************************************************************************
-- 
1.8.3.1


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

end of thread, other threads:[~2015-10-27 14:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-31 22:13 [PATCH] iommu/amd: Fix amd_iommu_detect() (does not fix any issues) j.glisse
2015-09-24 14:50 ` Joerg Roedel
2015-10-26 16:07 ` Konrad Rzeszutek Wilk
2015-10-27  0:47   ` Jerome Glisse
2015-10-27  0:53     ` Jerome Glisse
2015-10-27 14:10       ` Konrad Rzeszutek Wilk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome