Skip to contentSkip to conversation

iommu/mediatek: Add PGTABLE_PA_35_EN to mt8186 platform data

PATCH Applied Konrad Adamczyk 3 participants 3 messages Oct 17, 2024 – Oct 29, 2024

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iommu/mediatek: Add PGTABLE_PA_35_EN to mt8186 platform data

The MT8186 chip supports 35-bit physical addresses in page table [1]. Set this platform flag.

[1] MT8186G_Application Processor Functional Specification_v1.0

---
 drivers/iommu/mtk_iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/mtk_iommu.c +1 -1
index 6a2707fe7a78..c45313c43b9e 100644
@@ -1599,7 +1599,7 @@ static const unsigned int mt8186_larb_region_msk[MT8192_MULTI_REGION_NR_MAX][MTK
 static const struct mtk_iommu_plat_data mt8186_data_mm = {
 	.m4u_plat       = M4U_MT8186,
 	.flags          = HAS_BCLK | HAS_SUB_COMM_2BITS | OUT_ORDER_WR_EN |
-			  WR_THROT_EN | IOVA_34_EN | MTK_IOMMU_TYPE_MM,
+			  WR_THROT_EN | IOVA_34_EN | MTK_IOMMU_TYPE_MM | PGTABLE_PA_35_EN,
 	.larbid_remap   = {{0}, {1, MTK_INVALID_LARBID, 8}, {4}, {7}, {2}, {9, 11, 19, 20},
 			   {MTK_INVALID_LARBID, 14, 16},
 			   {MTK_INVALID_LARBID, 13, MTK_INVALID_LARBID, 17}},
Signature · 1 line
2.47.0.105.g07ac214952-goog
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Konrad Adamczyk

External email : Please do not click links or open attachments until you have verified the sender or the content.
The MT8186 chip supports 35-bit physical addresses in page table
[1].
Set this platform flag.

[1] MT8186G_Application Processor Functional Specification_v1.0

Quoted 22 lines
---
 drivers/iommu/mtk_iommu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iommu/mtk_iommu.c +0 -0
index 6a2707fe7a78..c45313c43b9e 100644
@@ -1599,7 +1599,7 @@ static const unsigned int

mt8186_larb_region_msk[MT8192_MULTI_REGION_NR_MAX][MTK
static const struct mtk_iommu_plat_data mt8186_data_mm = {
.m4u_plat = M4U_MT8186,
.flags = HAS_BCLK | HAS_SUB_COMM_2BITS | OUT_ORDER_WR_EN |

drivers/iommu/mtk_iommu.c +1 -1
-  WR_THROT_EN | IOVA_34_EN | MTK_IOMMU_TYPE_MM,
+  WR_THROT_EN | IOVA_34_EN | MTK_IOMMU_TYPE_MM | PGTABLE_PA_35_EN,
 .larbid_remap   = {{0}, {1, MTK_INVALID_LARBID, 8}, {4}, {7}, {2},

{9, 11, 19, 20},

    {MTK_INVALID_LARBID, 14, 16},
    {MTK_INVALID_LARBID, 13, MTK_INVALID_LARBID, 17}},
Signature · 1 line
2.47.0.105.g07ac214952-goog