]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/io-pgtable-arm-v7s: Add a quirk to allow pgtable PA up to 35bit
authorYunfei Wang <yf.wang@mediatek.com>
Thu, 30 Jun 2022 09:29:25 +0000 (17:29 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Aug 2022 09:45:48 +0000 (11:45 +0200)
commitb4f50e13d7eab6f806b214c4168e797a3acbc34c
treede1f19ba199eee7c60e68b35c5272fa8eeea3582
parenta80016c40cc797c7f3e5a705b8e12ae447280335
iommu/io-pgtable-arm-v7s: Add a quirk to allow pgtable PA up to 35bit

[ Upstream commit bfdd231374181254742c5e2faef0bef2d30c0ee4 ]

Single memory zone feature will remove ZONE_DMA32 and ZONE_DMA and
cause pgtable PA size larger than 32bit.

Since Mediatek IOMMU hardware support at most 35bit PA in pgtable,
so add a quirk to allow the PA of pgtables support up to bit35.

Signed-off-by: Ning Li <ning.li@mediatek.com>
Signed-off-by: Yunfei Wang <yf.wang@mediatek.com>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20220630092927.24925-2-yf.wang@mediatek.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iommu/io-pgtable-arm-v7s.c
include/linux/io-pgtable.h