]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
iommu/io-pgtable-arm-v7s: Extend to support PA[33:32] for MediaTek
authorYong Wu <yong.wu@mediatek.com>
Sat, 24 Aug 2019 03:01:54 +0000 (11:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 30 Aug 2019 13:57:26 +0000 (15:57 +0200)
commit4c019de653237674d38cf2b3119153b144ffe173
treebc3fe26f138130a39bbf1aa7f1b593deefb84deb
parent73d50811bc91d2a173213a78b6b43ac762f6cc54
iommu/io-pgtable-arm-v7s: Extend to support PA[33:32] for MediaTek

MediaTek extend the arm v7s descriptor to support up to 34 bits PA where
the bit32 and bit33 are encoded in the bit9 and bit4 of the PTE
respectively. Meanwhile the iova still is 32bits.

Regarding whether the pagetable address could be over 4GB, the mt8183
support it while the previous mt8173 don't, thus keep it as is.

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/io-pgtable-arm-v7s.c
include/linux/io-pgtable.h