Skip to content

Commit 7597e3c

Browse files
YongWu-HFjoergroedel
authored andcommitted
iommu/mediatek: mt8195: Enable multi banks for infra iommu
Enable the multi-bank functions for infra-iommu. We put PCIE in bank0 and USB in the last bank(bank4). and we don't use the other banks currently, disable them. Signed-off-by: Yong Wu <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: Matthias Brugger <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent d7127de commit 7597e3c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/iommu/mtk_iommu.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1456,8 +1456,11 @@ static const struct mtk_iommu_plat_data mt8195_data_infra = {
14561456
MTK_IOMMU_TYPE_INFRA | IFA_IOMMU_PCIE_SUPPORT,
14571457
.pericfg_comp_str = "mediatek,mt8195-pericfg_ao",
14581458
.inv_sel_reg = REG_MMU_INV_SEL_GEN2,
1459-
.banks_num = 1,
1460-
.banks_enable = {true},
1459+
.banks_num = 5,
1460+
.banks_enable = {true, false, false, false, true},
1461+
.banks_portmsk = {[0] = GENMASK(19, 16), /* PCIe */
1462+
[4] = GENMASK(31, 20), /* USB */
1463+
},
14611464
.iova_region = single_domain,
14621465
.iova_region_nr = ARRAY_SIZE(single_domain),
14631466
};

0 commit comments

Comments
 (0)