Thread (18 messages) 18 messages, 5 authors, 2025-02-11
STALE533d

[PATCH 3/5] iommu/dart: Set DMA domain for locked DARTs

From: Alyssa Rosenzweig <hidden>
Date: 2025-02-10 19:40:26
Also in: asahi, linux-iommu, lkml
Subsystem: arm/apple machine support, iommu subsystem, the rest · Maintainers: Sven Peter, Janne Grunau, Joerg Roedel, Will Deacon, Linus Torvalds

This is required.

Signed-off-by: Alyssa Rosenzweig <redacted>
---
 drivers/iommu/apple-dart.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/drivers/iommu/apple-dart.c b/drivers/iommu/apple-dart.c
index 9c74a95eb7e819e94ab2fb47ed0d411a1eba8bf7..9c6f780dc7220096ed6bba692fa1a4bd859b0d61 100644
--- a/drivers/iommu/apple-dart.c
+++ b/drivers/iommu/apple-dart.c
@@ -941,6 +941,8 @@ static int apple_dart_def_domain_type(struct device *dev)
 		return IOMMU_DOMAIN_IDENTITY;
 	if (!cfg->stream_maps[0].dart->supports_bypass)
 		return IOMMU_DOMAIN_DMA;
+	if (cfg->stream_maps[0].dart->locked)
+		return IOMMU_DOMAIN_DMA;
 
 	return 0;
 }
-- 
2.48.1

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help