Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3dc611b4 authored by Raviteja Tamatam's avatar Raviteja Tamatam Committed by Animesh Kishore
Browse files

msm: mdss: align smmu domain mapping to 128 MB



Change the size of smmu create mapping to have
128 MB alignnment as kernel upstream code on
32-bit mode expects 128 MB aligned virtual
address.

Change-Id: I5e533f948bbcf4e82ba22b273b1bcad068e4959c
Signed-off-by: default avatarRaviteja Tamatam <travitej@codeaurora.org>
parent af3795d2
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -692,13 +692,13 @@ int mdss_smmu_init(struct mdss_data_type *mdata, struct device *dev)
}

static struct mdss_smmu_domain mdss_mdp_unsec = {
	"mdp_0", MDSS_IOMMU_DOMAIN_UNSECURE, SZ_1M, (SZ_4G - SZ_1M)};
	"mdp_0", MDSS_IOMMU_DOMAIN_UNSECURE, SZ_128K, (SZ_4G - SZ_128M)};
static struct mdss_smmu_domain mdss_rot_unsec = {
	NULL, MDSS_IOMMU_DOMAIN_ROT_UNSECURE, SZ_1M, (SZ_4G - SZ_1M)};
	NULL, MDSS_IOMMU_DOMAIN_ROT_UNSECURE, SZ_128K, (SZ_4G - SZ_128M)};
static struct mdss_smmu_domain mdss_mdp_sec = {
	"mdp_1", MDSS_IOMMU_DOMAIN_SECURE, SZ_1M, (SZ_4G - SZ_1M)};
	"mdp_1", MDSS_IOMMU_DOMAIN_SECURE, SZ_128K, (SZ_4G - SZ_128M)};
static struct mdss_smmu_domain mdss_rot_sec = {
	NULL, MDSS_IOMMU_DOMAIN_ROT_SECURE, SZ_1M, (SZ_4G - SZ_1M)};
	NULL, MDSS_IOMMU_DOMAIN_ROT_SECURE, SZ_128K, (SZ_4G - SZ_128M)};

static const struct of_device_id mdss_smmu_dt_match[] = {
	{ .compatible = "qcom,smmu_mdp_unsec", .data = &mdss_mdp_unsec},