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>
Tue, 18 Jan 2022 11:20:16 +0000 (20:20 +0900)
commit047108dcf191c73a2ab21f6d72b77ffaff8ec6f0
treeb8f52b0eff8276b20975a0e4d575b8865924b155
parent784f59af2e3de20b505e48af68875b5cdd8a065d
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