iommu/mediatek: mt8195: Add iova_region_larb_msk
authorYong Wu <yong.wu@mediatek.com>
Tue, 11 Apr 2023 09:31:36 +0000 (17:31 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 13 Apr 2023 09:59:25 +0000 (11:59 +0200)
commita43e767d4e1b913a22a80074a703bd29c644a41b
tree484ad79873421020af13add3a6fc36fc681710c9
parent6b1317f92874cc82719d9f38b7c298dadfc16a6b
iommu/mediatek: mt8195: Add iova_region_larb_msk

Add iova_region_larb_msk for mt8195. We separate the 16GB iova regions
by each device's larbid/portid.
Refer to include/dt-bindings/memory/mt8195-memory-port.h

Signed-off-by: Yong Wu <yong.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20230411093144.2690-7-yong.wu@mediatek.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu.c