From 94c6261fe77c6c6c3d5acd7e8496ed200f9b38d7 Mon Sep 17 00:00:00 2001 From: Veera Sundaram Sankaran <veeras@codeaurora.org> Date: Wed, 24 Feb 2016 16:00:41 -0800 Subject: [PATCH] msm: mdss: fix simulator panel SW-TE parameters In simulator panel SW-TE approach, we rely on the sync config height, init, start_pos and read ptr TE parameters. Set start_pos, init and read ptr with respect to panel yres, as it is done in the default settings when it is used with an actual panel. Setting these parameters with respect to 0 causes fps drops. Change-Id: I9acf4d1558767e7789a5e37dc2444f947d11eb21 Signed-off-by: Veera Sundaram Sankaran <veeras@codeaurora.org> --- drivers/video/fbdev/msm/mdss_panel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/msm/mdss_panel.c b/drivers/video/fbdev/msm/mdss_panel.c index fef1c7497b70..213963e2ee58 100644 --- a/drivers/video/fbdev/msm/mdss_panel.c +++ b/drivers/video/fbdev/msm/mdss_panel.c @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -524,9 +524,9 @@ void mdss_panel_debugfs_cleanup(struct mdss_panel_info *panel_info) void mdss_panel_override_te_params(struct mdss_panel_info *pinfo) { pinfo->te.sync_cfg_height = mdss_panel_get_vtotal(pinfo); - pinfo->te.vsync_init_val = 0; - pinfo->te.start_pos = 5; - pinfo->te.rd_ptr_irq = 1; + pinfo->te.vsync_init_val = pinfo->yres; + pinfo->te.start_pos = pinfo->yres; + pinfo->te.rd_ptr_irq = pinfo->yres + 1; pr_debug("SW TE override: read_ptr:%d,start_pos:%d,height:%d,init_val:%d\n", pinfo->te.rd_ptr_irq, pinfo->te.start_pos, pinfo->te.sync_cfg_height,