iommu/io-pgtable: Add DART PTE support for t6000
authorSven Peter <sven@svenpeter.dev>
Tue, 2 Nov 2021 17:10:53 +0000 (18:10 +0100)
committerHector Martin <marcan@marcan.st>
Sat, 19 Feb 2022 07:52:28 +0000 (16:52 +0900)
commit1f26a6ceb37e6a49431474a67818df3ef1303304
treedfb909b739e8038c70759fd1f8cfc6655c2faa34
parent31e66a50523aa1e579faddf50edb6934592c237b
iommu/io-pgtable: Add DART PTE support for t6000

The DARTs present in the M1 Pro/Max SoC support a 42bit physical address
space by shifting the paddr and extending its mask inside the PTE.
They also come with mandatory sub-page protection now which we just
configure to always allow access to the entire page. This feature is
already present but optional on the previous DARTs which allows to
unconditionally configure it.

Signed-off-by: Sven Peter <sven@svenpeter.dev>
drivers/iommu/io-pgtable-arm.c
include/linux/io-pgtable.h