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)
committerJens Axboe <axboe@kernel.dk>
Tue, 1 Mar 2022 17:32:46 +0000 (10:32 -0700)
commit57eb69f509d024d0e62b3c6e38e36627bd0666a5
tree5c404a48fce74dbdb682e223bd51b9f0359e5ad6
parent16963d7209882cd57bf399e5c74b6833549259af
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