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

Commit 0acc91ab authored by Raviteja Tamatam's avatar Raviteja Tamatam Committed by Gerrit - the friendly Code Review server
Browse files

msm: mdss: Allow mdss driver to carry more lazy buffers



SMMU Virtulization limit depends on the page table format
for a 32bit table we can have 4GB as a limit.

Increase the virtual map range for mdss driver so that
it can allow more lazy buffers to be mapped.

This will help in cases where apps which are queued
once to display and are parked in background.

Change-Id: I08f8cbff267630f0ade33299762c4900c04f611b
Signed-off-by: default avatarRaviteja Tamatam <travitej@codeaurora.org>
parent 64120cd2
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@
#include "mdss_smmu.h"
#include "mdss_debug.h"

#define SZ_4G 0xF0000000

static DEFINE_MUTEX(mdp_iommu_lock);

void mdss_iommu_lock(void)
@@ -531,13 +533,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_128K, (SZ_1G - SZ_128K)};
	"mdp_0", MDSS_IOMMU_DOMAIN_UNSECURE, SZ_128K, (SZ_4G - SZ_128K)};
static struct mdss_smmu_domain mdss_rot_unsec = {
	NULL, MDSS_IOMMU_DOMAIN_ROT_UNSECURE, SZ_128K, (SZ_1G - SZ_128K)};
	NULL, MDSS_IOMMU_DOMAIN_ROT_UNSECURE, SZ_128K, (SZ_4G - SZ_128K)};
static struct mdss_smmu_domain mdss_mdp_sec = {
	"mdp_1", MDSS_IOMMU_DOMAIN_SECURE, SZ_1G, SZ_2G};
	"mdp_1", MDSS_IOMMU_DOMAIN_SECURE, SZ_128K, (SZ_4G - SZ_128K)};
static struct mdss_smmu_domain mdss_rot_sec = {
	NULL, MDSS_IOMMU_DOMAIN_ROT_SECURE, SZ_1G, SZ_2G};
	NULL, MDSS_IOMMU_DOMAIN_ROT_SECURE, SZ_128K, (SZ_4G - SZ_128K)};

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