summaryrefslogtreecommitdiff
path: root/rotator
diff options
context:
space:
mode:
authorJayaprakash <jmadiset@codeaurora.org>2019-11-14 13:05:51 +0530
committerJayaprakash <jmadiset@codeaurora.org>2019-11-21 19:18:04 +0530
commit69d93f57beeae9012d3000e24ce4e1e166e03d6d (patch)
tree54fa7e62f14480b0328a3069a70d5e5192de31fd /rotator
parente2be37e02f70b24f65296a95feaa8ca9db350e0d (diff)
downloaddisplay-drivers-69d93f57beeae9012d3000e24ce4e1e166e03d6d.tar.gz
disp: rotator: update ot limits for kona family
Update rotator ot limits as per QOS recommendation. Change-Id: I852155902149dc2518b78144658b96f9ee8b4b4d Signed-off-by: Jayaprakash <jmadiset@codeaurora.org>
Diffstat (limited to 'rotator')
-rw-r--r--rotator/sde_rotator_base.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/rotator/sde_rotator_base.c b/rotator/sde_rotator_base.c
index d647b9c9..3cf85075 100644
--- a/rotator/sde_rotator_base.c
+++ b/rotator/sde_rotator_base.c
@@ -240,8 +240,8 @@ u32 sde_mdp_get_ot_limit(u32 width, u32 height, u32 pixfmt, u32 fps, u32 is_rd)
* If (total_source_pixels <= 124416000 && YUV) -> RD/WROT=4 //1080p60
* If (total_source_pixels <= 2160p && YUV && FPS <= 30) -> RD/WROT = 32
*/
- switch (mdata->mdss_version) {
- case SDE_MDP_HW_REV_540:
+ if (IS_SDE_MAJOR_MINOR_SAME(mdata->mdss_version,
+ SDE_MDP_HW_REV_540)) {
if (is_yuv) {
if (res <= (RES_1080p * 30))
ot_lim = 2;
@@ -254,18 +254,13 @@ u32 sde_mdp_get_ot_limit(u32 width, u32 height, u32 pixfmt, u32 fps, u32 is_rd)
} else if (fmt->bpp == 4 && res <= (RES_WQXGA * 60)) {
ot_lim = 16;
}
-
- break;
- default:
- if (is_yuv) {
- if (res <= (RES_1080p * 30))
- ot_lim = 2;
- else if (res <= (RES_1080p * 60))
- ot_lim = 4;
- }
- break;
+ } else if (IS_SDE_MAJOR_SAME(mdata->mdss_version,
+ SDE_MDP_HW_REV_600) || is_yuv) {
+ if (res <= (RES_1080p * 30))
+ ot_lim = 2;
+ else if (res <= (RES_1080p * 60))
+ ot_lim = 4;
}
-
exit:
SDEROT_DBG("ot_lim=%d\n", ot_lim);
return ot_lim;