summaryrefslogtreecommitdiff
path: root/drivers/video/fbdev
diff options
context:
space:
mode:
authorSandeep Panda <spanda@codeaurora.org>2014-10-20 10:29:31 -0700
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 20:35:10 -0700
commitba3682e21266569ea2e551c8d366abee4f5c55b8 (patch)
tree0865d790537e827b4aa891685df559311e48c012 /drivers/video/fbdev
parente4943e49236ca8b43500a671e5813881c24c49fa (diff)
msm: mdss: increase MDP ab vote to avoid under run
This change updates the bandwidth calculation for mdp3 hardware based on 8909 requirements, otherwise under run is seen when USB is disconnected. Change-Id: I49f7c225b57c43eca5ba8c6ac7b889e53cce6037 Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
Diffstat (limited to 'drivers/video/fbdev')
-rw-r--r--drivers/video/fbdev/msm/mdp3.h2
-rw-r--r--drivers/video/fbdev/msm/mdp3_ctrl.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/fbdev/msm/mdp3.h b/drivers/video/fbdev/msm/mdp3.h
index 0d80fdf074d5..5da2cf472721 100644
--- a/drivers/video/fbdev/msm/mdp3.h
+++ b/drivers/video/fbdev/msm/mdp3.h
@@ -26,7 +26,7 @@
#include "mdss.h"
#define MDP_VSYNC_CLK_RATE 19200000
-#define MDP_CORE_CLK_RATE 100000000
+#define MDP_CORE_CLK_RATE 307200000
#define KOFF_TIMEOUT msecs_to_jiffies(84)
enum {
diff --git a/drivers/video/fbdev/msm/mdp3_ctrl.c b/drivers/video/fbdev/msm/mdp3_ctrl.c
index 1be8bb94a615..c016ff911ef6 100644
--- a/drivers/video/fbdev/msm/mdp3_ctrl.c
+++ b/drivers/video/fbdev/msm/mdp3_ctrl.c
@@ -351,7 +351,7 @@ static int mdp3_ctrl_res_req_bus(struct msm_fb_data_type *mfd, int status)
struct mdss_panel_info *panel_info = mfd->panel_info;
u64 ab = 0;
u64 ib = 0;
- ab = panel_info->xres * panel_info->yres * 4;
+ ab = panel_info->xres * panel_info->yres * 4 * 2;
ab *= panel_info->mipi.frame_rate;
ib = (ab * 3) / 2;
rc = mdp3_bus_scale_set_quota(MDP3_CLIENT_DMA_P, ab, ib);