All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] iommu: Print default strict or lazy mode at init time
@ 2021-05-28 13:37 ` John Garry
  0 siblings, 0 replies; 10+ messages in thread
From: John Garry @ 2021-05-28 13:37 UTC (permalink / raw)
  To: joro, will; +Cc: iommu, linux-kernel, hch, robin.murphy, John Garry

As well as the default domain type, it's useful to know whether strict
or lazy mode is default for DMA domains, so add this info in a separate
print.

Signed-off-by: John Garry <john.garry@huawei.com>

diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
index 808ab70d5df5..f25fae62f077 100644
--- a/drivers/iommu/iommu.c
+++ b/drivers/iommu/iommu.c
@@ -138,6 +138,11 @@ static int __init iommu_subsys_init(void)
 		(iommu_cmd_line & IOMMU_CMD_LINE_DMA_API) ?
 			"(set via kernel command line)" : "");
 
+	pr_info("Default DMA domain mode: %s %s\n",
+		iommu_dma_strict ? "strict" : "lazy",
+		(iommu_cmd_line & IOMMU_CMD_LINE_STRICT) ?
+			"(set via kernel command line)" : "");
+
 	return 0;
 }
 subsys_initcall(iommu_subsys_init);
-- 
2.26.2


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

end of thread, other threads:[~2021-06-01 17:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-28 13:37 [PATCH] iommu: Print default strict or lazy mode at init time John Garry
2021-05-28 13:37 ` John Garry
2021-06-01  9:09 ` Robin Murphy
2021-06-01  9:09   ` Robin Murphy
2021-06-01 15:50   ` John Garry
2021-06-01 15:50     ` John Garry
2021-06-01 16:42     ` Robin Murphy
2021-06-01 16:42       ` Robin Murphy
2021-06-01 17:44       ` John Garry
2021-06-01 17:44         ` John Garry

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.