linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] iommu: apple-dart: Four level page table support
@ 2025-08-14  8:40 Janne Grunau
  2025-08-14  8:40 ` [PATCH 1/3] iommu: apple-dart: Make the hw register fields u32s Janne Grunau
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Janne Grunau @ 2025-08-14  8:40 UTC (permalink / raw)
  To: Sven Peter, Alyssa Rosenzweig, Neal Gompa, Joerg Roedel,
	Will Deacon, Robin Murphy
  Cc: asahi, linux-arm-kernel, iommu, linux-kernel, Janne Grunau,
	Hector Martin

The DART instances found in T602x based SoCs (Apple's M2 Pro/Max/Ultra)
indicate an IAS of 42 bit. This results in alloc_io_pgtable_ops()
failing as io-pgtable-dart supports at most 36-bit IAS.
The t8110 DART design supports 4-level page tables. Implement support
for this in io-pgtable-dart and mark DART stream with more than 36-bit
IAS as 4-level page tables.

Signed-off-by: Janne Grunau <j@jannau.net>
---
Hector Martin (3):
      iommu: apple-dart: Make the hw register fields u32s
      iommu: io-pgtable: Add 4-level page table support
      iommu: apple-dart: Add 4-level page table support

 drivers/iommu/apple-dart.c      |  47 ++++++++-----
 drivers/iommu/io-pgtable-dart.c | 143 ++++++++++++++++++++++++----------------
 include/linux/io-pgtable.h      |   1 +
 3 files changed, 118 insertions(+), 73 deletions(-)
---
base-commit: 8f5ae30d69d7543eee0d70083daf4de8fe15d585
change-id: 20250811-apple-dart-4levels-8f9ae8ac1347

Best regards,
-- 
Janne Grunau <j@jannau.net>



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

end of thread, other threads:[~2025-08-16 15:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14  8:40 [PATCH 0/3] iommu: apple-dart: Four level page table support Janne Grunau
2025-08-14  8:40 ` [PATCH 1/3] iommu: apple-dart: Make the hw register fields u32s Janne Grunau
2025-08-16 13:51   ` Sven Peter
2025-08-14  8:40 ` [PATCH 2/3] iommu: io-pgtable: Add 4-level page table support Janne Grunau
2025-08-16 14:02   ` Sven Peter
2025-08-14  8:40 ` [PATCH 3/3] iommu: apple-dart: " Janne Grunau
2025-08-16 13:50   ` Sven Peter
2025-08-16 14:19     ` Janne Grunau
2025-08-16 15:26       ` Sven Peter

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