|
@@ -254,60 +254,86 @@ static struct resource msm_iommu_gfx2d0_resources[] = {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
+static struct resource msm_iommu_gfx2d1_resources[] = {
|
|
|
+ {
|
|
|
+ .start = MSM_IOMMU_GFX2D1_PHYS,
|
|
|
+ .end = MSM_IOMMU_GFX2D1_PHYS + MSM_IOMMU_GFX2D1_SIZE - 1,
|
|
|
+ .name = "physbase",
|
|
|
+ .flags = IORESOURCE_MEM,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .name = "nonsecure_irq",
|
|
|
+ .start = SMMU_GFX2D1_CB_SC_NON_SECURE_IRQ,
|
|
|
+ .end = SMMU_GFX2D1_CB_SC_NON_SECURE_IRQ,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ .name = "secure_irq",
|
|
|
+ .start = SMMU_GFX2D1_CB_SC_SECURE_IRQ,
|
|
|
+ .end = SMMU_GFX2D1_CB_SC_SECURE_IRQ,
|
|
|
+ .flags = IORESOURCE_IRQ,
|
|
|
+ },
|
|
|
+};
|
|
|
+
|
|
|
static struct platform_device msm_root_iommu_dev = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = -1,
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev jpegd_smmu = {
|
|
|
+static struct msm_iommu_dev jpegd_iommu = {
|
|
|
.name = "jpegd",
|
|
|
.clk_rate = -1
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev vpe_smmu = {
|
|
|
+static struct msm_iommu_dev vpe_iommu = {
|
|
|
.name = "vpe"
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev mdp0_smmu = {
|
|
|
+static struct msm_iommu_dev mdp0_iommu = {
|
|
|
.name = "mdp0"
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev mdp1_smmu = {
|
|
|
+static struct msm_iommu_dev mdp1_iommu = {
|
|
|
.name = "mdp1"
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev rot_smmu = {
|
|
|
+static struct msm_iommu_dev rot_iommu = {
|
|
|
.name = "rot"
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev ijpeg_smmu = {
|
|
|
+static struct msm_iommu_dev ijpeg_iommu = {
|
|
|
.name = "ijpeg"
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev vfe_smmu = {
|
|
|
+static struct msm_iommu_dev vfe_iommu = {
|
|
|
.name = "vfe",
|
|
|
.clk_rate = -1
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev vcodec_a_smmu = {
|
|
|
+static struct msm_iommu_dev vcodec_a_iommu = {
|
|
|
.name = "vcodec_a"
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev vcodec_b_smmu = {
|
|
|
+static struct msm_iommu_dev vcodec_b_iommu = {
|
|
|
.name = "vcodec_b"
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev gfx3d_smmu = {
|
|
|
+static struct msm_iommu_dev gfx3d_iommu = {
|
|
|
.name = "gfx3d",
|
|
|
.clk_rate = 27000000
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_dev gfx2d0_smmu = {
|
|
|
+static struct msm_iommu_dev gfx2d0_iommu = {
|
|
|
.name = "gfx2d0",
|
|
|
.clk_rate = 27000000
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_jpegd = {
|
|
|
+static struct msm_iommu_dev gfx2d1_iommu = {
|
|
|
+ .name = "gfx2d1",
|
|
|
+ .clk_rate = 27000000
|
|
|
+};
|
|
|
+
|
|
|
+static struct platform_device msm_device_iommu_jpegd = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 0,
|
|
|
.dev = {
|
|
@@ -317,7 +343,7 @@ static struct platform_device msm_device_smmu_jpegd = {
|
|
|
.resource = msm_iommu_jpegd_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_vpe = {
|
|
|
+static struct platform_device msm_device_iommu_vpe = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 1,
|
|
|
.dev = {
|
|
@@ -327,7 +353,7 @@ static struct platform_device msm_device_smmu_vpe = {
|
|
|
.resource = msm_iommu_vpe_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_mdp0 = {
|
|
|
+static struct platform_device msm_device_iommu_mdp0 = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 2,
|
|
|
.dev = {
|
|
@@ -337,7 +363,7 @@ static struct platform_device msm_device_smmu_mdp0 = {
|
|
|
.resource = msm_iommu_mdp0_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_mdp1 = {
|
|
|
+static struct platform_device msm_device_iommu_mdp1 = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 3,
|
|
|
.dev = {
|
|
@@ -347,7 +373,7 @@ static struct platform_device msm_device_smmu_mdp1 = {
|
|
|
.resource = msm_iommu_mdp1_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_rot = {
|
|
|
+static struct platform_device msm_device_iommu_rot = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 4,
|
|
|
.dev = {
|
|
@@ -357,7 +383,7 @@ static struct platform_device msm_device_smmu_rot = {
|
|
|
.resource = msm_iommu_rot_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_ijpeg = {
|
|
|
+static struct platform_device msm_device_iommu_ijpeg = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 5,
|
|
|
.dev = {
|
|
@@ -367,7 +393,7 @@ static struct platform_device msm_device_smmu_ijpeg = {
|
|
|
.resource = msm_iommu_ijpeg_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_vfe = {
|
|
|
+static struct platform_device msm_device_iommu_vfe = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 6,
|
|
|
.dev = {
|
|
@@ -377,7 +403,7 @@ static struct platform_device msm_device_smmu_vfe = {
|
|
|
.resource = msm_iommu_vfe_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_vcodec_a = {
|
|
|
+static struct platform_device msm_device_iommu_vcodec_a = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 7,
|
|
|
.dev = {
|
|
@@ -387,7 +413,7 @@ static struct platform_device msm_device_smmu_vcodec_a = {
|
|
|
.resource = msm_iommu_vcodec_a_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_vcodec_b = {
|
|
|
+static struct platform_device msm_device_iommu_vcodec_b = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 8,
|
|
|
.dev = {
|
|
@@ -397,7 +423,7 @@ static struct platform_device msm_device_smmu_vcodec_b = {
|
|
|
.resource = msm_iommu_vcodec_b_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_gfx3d = {
|
|
|
+static struct platform_device msm_device_iommu_gfx3d = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 9,
|
|
|
.dev = {
|
|
@@ -407,7 +433,7 @@ static struct platform_device msm_device_smmu_gfx3d = {
|
|
|
.resource = msm_iommu_gfx3d_resources,
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_smmu_gfx2d0 = {
|
|
|
+static struct platform_device msm_device_iommu_gfx2d0 = {
|
|
|
.name = "msm_iommu",
|
|
|
.id = 10,
|
|
|
.dev = {
|
|
@@ -417,6 +443,16 @@ static struct platform_device msm_device_smmu_gfx2d0 = {
|
|
|
.resource = msm_iommu_gfx2d0_resources,
|
|
|
};
|
|
|
|
|
|
+struct platform_device msm_device_iommu_gfx2d1 = {
|
|
|
+ .name = "msm_iommu",
|
|
|
+ .id = 11,
|
|
|
+ .dev = {
|
|
|
+ .parent = &msm_root_iommu_dev.dev,
|
|
|
+ },
|
|
|
+ .num_resources = ARRAY_SIZE(msm_iommu_gfx2d1_resources),
|
|
|
+ .resource = msm_iommu_gfx2d1_resources,
|
|
|
+};
|
|
|
+
|
|
|
static struct msm_iommu_ctx_dev jpegd_src_ctx = {
|
|
|
.name = "jpegd_src",
|
|
|
.num = 0,
|
|
@@ -519,41 +555,36 @@ static struct msm_iommu_ctx_dev vcodec_b_mm2_ctx = {
|
|
|
.mids = {0, 1, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, -1}
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_ctx_dev gfx3d_rbpa_ctx = {
|
|
|
- .name = "gfx3d_rbpa",
|
|
|
+static struct msm_iommu_ctx_dev gfx3d_user_ctx = {
|
|
|
+ .name = "gfx3d_user",
|
|
|
.num = 0,
|
|
|
- .mids = {-1}
|
|
|
+ .mids = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, -1}
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_ctx_dev gfx3d_cpvgttc_ctx = {
|
|
|
- .name = "gfx3d_cpvgttc",
|
|
|
+static struct msm_iommu_ctx_dev gfx3d_priv_ctx = {
|
|
|
+ .name = "gfx3d_priv",
|
|
|
.num = 1,
|
|
|
- .mids = {0, 1, 2, 3, 4, 5, 6, 7, -1}
|
|
|
-};
|
|
|
-
|
|
|
-static struct msm_iommu_ctx_dev gfx3d_smmu_ctx = {
|
|
|
- .name = "gfx3d_smmu",
|
|
|
- .num = 2,
|
|
|
- .mids = {8, 9, 10, 11, 12, -1}
|
|
|
+ .mids = {16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
|
|
|
+ 31, -1}
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_ctx_dev gfx2d0_pixv1_ctx = {
|
|
|
- .name = "gfx2d0_pixv1_smmu",
|
|
|
+static struct msm_iommu_ctx_dev gfx2d0_2d0_ctx = {
|
|
|
+ .name = "gfx2d0_2d0",
|
|
|
.num = 0,
|
|
|
- .mids = {0, 3, 4, -1}
|
|
|
+ .mids = {0, 1, 2, 3, 4, 5, 6, 7, -1}
|
|
|
};
|
|
|
|
|
|
-static struct msm_iommu_ctx_dev gfx2d0_texv3_ctx = {
|
|
|
- .name = "gfx2d0_texv3_smmu",
|
|
|
- .num = 1,
|
|
|
- .mids = {1, 6, 7, -1}
|
|
|
+static struct msm_iommu_ctx_dev gfx2d1_2d1_ctx = {
|
|
|
+ .name = "gfx2d1_2d1",
|
|
|
+ .num = 0,
|
|
|
+ .mids = {0, 1, 2, 3, 4, 5, 6, 7, -1}
|
|
|
};
|
|
|
|
|
|
static struct platform_device msm_device_jpegd_src_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 0,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_jpegd.dev,
|
|
|
+ .parent = &msm_device_iommu_jpegd.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -561,7 +592,7 @@ static struct platform_device msm_device_jpegd_dst_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 1,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_jpegd.dev,
|
|
|
+ .parent = &msm_device_iommu_jpegd.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -569,7 +600,7 @@ static struct platform_device msm_device_vpe_src_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 2,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_vpe.dev,
|
|
|
+ .parent = &msm_device_iommu_vpe.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -577,7 +608,7 @@ static struct platform_device msm_device_vpe_dst_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 3,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_vpe.dev,
|
|
|
+ .parent = &msm_device_iommu_vpe.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -585,7 +616,7 @@ static struct platform_device msm_device_mdp_vg1_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 4,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_mdp0.dev,
|
|
|
+ .parent = &msm_device_iommu_mdp0.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -593,7 +624,7 @@ static struct platform_device msm_device_mdp_rgb1_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 5,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_mdp0.dev,
|
|
|
+ .parent = &msm_device_iommu_mdp0.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -601,7 +632,7 @@ static struct platform_device msm_device_mdp_vg2_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 6,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_mdp1.dev,
|
|
|
+ .parent = &msm_device_iommu_mdp1.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -609,7 +640,7 @@ static struct platform_device msm_device_mdp_rgb2_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 7,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_mdp1.dev,
|
|
|
+ .parent = &msm_device_iommu_mdp1.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -617,7 +648,7 @@ static struct platform_device msm_device_rot_src_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 8,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_rot.dev,
|
|
|
+ .parent = &msm_device_iommu_rot.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -625,7 +656,7 @@ static struct platform_device msm_device_rot_dst_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 9,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_rot.dev,
|
|
|
+ .parent = &msm_device_iommu_rot.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -633,7 +664,7 @@ static struct platform_device msm_device_ijpeg_src_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 10,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_ijpeg.dev,
|
|
|
+ .parent = &msm_device_iommu_ijpeg.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -641,7 +672,7 @@ static struct platform_device msm_device_ijpeg_dst_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 11,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_ijpeg.dev,
|
|
|
+ .parent = &msm_device_iommu_ijpeg.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -649,7 +680,7 @@ static struct platform_device msm_device_vfe_imgwr_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 12,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_vfe.dev,
|
|
|
+ .parent = &msm_device_iommu_vfe.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -657,7 +688,7 @@ static struct platform_device msm_device_vfe_misc_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 13,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_vfe.dev,
|
|
|
+ .parent = &msm_device_iommu_vfe.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -665,7 +696,7 @@ static struct platform_device msm_device_vcodec_a_stream_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 14,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_vcodec_a.dev,
|
|
|
+ .parent = &msm_device_iommu_vcodec_a.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -673,7 +704,7 @@ static struct platform_device msm_device_vcodec_a_mm1_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 15,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_vcodec_a.dev,
|
|
|
+ .parent = &msm_device_iommu_vcodec_a.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
@@ -681,76 +712,70 @@ static struct platform_device msm_device_vcodec_b_mm2_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 16,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_vcodec_b.dev,
|
|
|
+ .parent = &msm_device_iommu_vcodec_b.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_gfx3d_rbpa_ctx = {
|
|
|
+static struct platform_device msm_device_gfx3d_user_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 17,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_gfx3d.dev,
|
|
|
+ .parent = &msm_device_iommu_gfx3d.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_gfx3d_cpvgttc_ctx = {
|
|
|
+static struct platform_device msm_device_gfx3d_priv_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 18,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_gfx3d.dev,
|
|
|
+ .parent = &msm_device_iommu_gfx3d.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_gfx3d_smmu_ctx = {
|
|
|
+static struct platform_device msm_device_gfx2d0_2d0_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 19,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_gfx3d.dev,
|
|
|
+ .parent = &msm_device_iommu_gfx2d0.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
|
-static struct platform_device msm_device_gfx2d0_pixv1_ctx = {
|
|
|
+static struct platform_device msm_device_gfx2d1_2d1_ctx = {
|
|
|
.name = "msm_iommu_ctx",
|
|
|
.id = 20,
|
|
|
.dev = {
|
|
|
- .parent = &msm_device_smmu_gfx2d0.dev,
|
|
|
- },
|
|
|
-};
|
|
|
-
|
|
|
-static struct platform_device msm_device_gfx2d0_texv3_ctx = {
|
|
|
- .name = "msm_iommu_ctx",
|
|
|
- .id = 21,
|
|
|
- .dev = {
|
|
|
- .parent = &msm_device_smmu_gfx2d0.dev,
|
|
|
+ .parent = &msm_device_iommu_gfx2d1.dev,
|
|
|
},
|
|
|
};
|
|
|
|
|
|
static struct platform_device *msm_iommu_devs[] = {
|
|
|
- &msm_device_smmu_jpegd,
|
|
|
- &msm_device_smmu_vpe,
|
|
|
- &msm_device_smmu_mdp0,
|
|
|
- &msm_device_smmu_mdp1,
|
|
|
- &msm_device_smmu_rot,
|
|
|
- &msm_device_smmu_ijpeg,
|
|
|
- &msm_device_smmu_vfe,
|
|
|
- &msm_device_smmu_vcodec_a,
|
|
|
- &msm_device_smmu_vcodec_b,
|
|
|
- &msm_device_smmu_gfx3d,
|
|
|
- &msm_device_smmu_gfx2d0,
|
|
|
+ &msm_device_iommu_jpegd,
|
|
|
+ &msm_device_iommu_vpe,
|
|
|
+ &msm_device_iommu_mdp0,
|
|
|
+ &msm_device_iommu_mdp1,
|
|
|
+ &msm_device_iommu_rot,
|
|
|
+ &msm_device_iommu_ijpeg,
|
|
|
+ &msm_device_iommu_vfe,
|
|
|
+ &msm_device_iommu_vcodec_a,
|
|
|
+ &msm_device_iommu_vcodec_b,
|
|
|
+ &msm_device_iommu_gfx3d,
|
|
|
+ &msm_device_iommu_gfx2d0,
|
|
|
+ &msm_device_iommu_gfx2d1,
|
|
|
};
|
|
|
|
|
|
static struct msm_iommu_dev *msm_iommu_data[] = {
|
|
|
- &jpegd_smmu,
|
|
|
- &vpe_smmu,
|
|
|
- &mdp0_smmu,
|
|
|
- &mdp1_smmu,
|
|
|
- &rot_smmu,
|
|
|
- &ijpeg_smmu,
|
|
|
- &vfe_smmu,
|
|
|
- &vcodec_a_smmu,
|
|
|
- &vcodec_b_smmu,
|
|
|
- &gfx3d_smmu,
|
|
|
- &gfx2d0_smmu,
|
|
|
+ &jpegd_iommu,
|
|
|
+ &vpe_iommu,
|
|
|
+ &mdp0_iommu,
|
|
|
+ &mdp1_iommu,
|
|
|
+ &rot_iommu,
|
|
|
+ &ijpeg_iommu,
|
|
|
+ &vfe_iommu,
|
|
|
+ &vcodec_a_iommu,
|
|
|
+ &vcodec_b_iommu,
|
|
|
+ &gfx3d_iommu,
|
|
|
+ &gfx2d0_iommu,
|
|
|
+ &gfx2d1_iommu,
|
|
|
};
|
|
|
|
|
|
static struct platform_device *msm_iommu_ctx_devs[] = {
|
|
@@ -771,11 +796,10 @@ static struct platform_device *msm_iommu_ctx_devs[] = {
|
|
|
&msm_device_vcodec_a_stream_ctx,
|
|
|
&msm_device_vcodec_a_mm1_ctx,
|
|
|
&msm_device_vcodec_b_mm2_ctx,
|
|
|
- &msm_device_gfx3d_rbpa_ctx,
|
|
|
- &msm_device_gfx3d_cpvgttc_ctx,
|
|
|
- &msm_device_gfx3d_smmu_ctx,
|
|
|
- &msm_device_gfx2d0_pixv1_ctx,
|
|
|
- &msm_device_gfx2d0_texv3_ctx,
|
|
|
+ &msm_device_gfx3d_user_ctx,
|
|
|
+ &msm_device_gfx3d_priv_ctx,
|
|
|
+ &msm_device_gfx2d0_2d0_ctx,
|
|
|
+ &msm_device_gfx2d1_2d1_ctx,
|
|
|
};
|
|
|
|
|
|
static struct msm_iommu_ctx_dev *msm_iommu_ctx_data[] = {
|
|
@@ -796,14 +820,13 @@ static struct msm_iommu_ctx_dev *msm_iommu_ctx_data[] = {
|
|
|
&vcodec_a_stream_ctx,
|
|
|
&vcodec_a_mm1_ctx,
|
|
|
&vcodec_b_mm2_ctx,
|
|
|
- &gfx3d_rbpa_ctx,
|
|
|
- &gfx3d_cpvgttc_ctx,
|
|
|
- &gfx3d_smmu_ctx,
|
|
|
- &gfx2d0_pixv1_ctx,
|
|
|
- &gfx2d0_texv3_ctx,
|
|
|
+ &gfx3d_user_ctx,
|
|
|
+ &gfx3d_priv_ctx,
|
|
|
+ &gfx2d0_2d0_ctx,
|
|
|
+ &gfx2d1_2d1_ctx,
|
|
|
};
|
|
|
|
|
|
-static int msm8x60_iommu_init(void)
|
|
|
+static int __init msm8x60_iommu_init(void)
|
|
|
{
|
|
|
int ret, i;
|
|
|
|
|
@@ -826,7 +849,7 @@ static int msm8x60_iommu_init(void)
|
|
|
ret = platform_device_register(msm_iommu_devs[i]);
|
|
|
|
|
|
if (ret != 0) {
|
|
|
- pr_err("platform_device_register smmu failed, "
|
|
|
+ pr_err("platform_device_register iommu failed, "
|
|
|
"i = %d\n", i);
|
|
|
goto failure_unwind;
|
|
|
}
|
|
@@ -837,7 +860,7 @@ static int msm8x60_iommu_init(void)
|
|
|
msm_iommu_ctx_data[i],
|
|
|
sizeof(*msm_iommu_ctx_devs[i]));
|
|
|
if (ret != 0) {
|
|
|
- pr_err("platform_device_add_data smmu failed, "
|
|
|
+ pr_err("platform_device_add_data iommu failed, "
|
|
|
"i = %d\n", i);
|
|
|
goto failure_unwind2;
|
|
|
}
|
|
@@ -863,7 +886,7 @@ failure:
|
|
|
return ret;
|
|
|
}
|
|
|
|
|
|
-static void msm8x60_iommu_exit(void)
|
|
|
+static void __exit msm8x60_iommu_exit(void)
|
|
|
{
|
|
|
int i;
|
|
|
|