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>
This commit is contained in:
Jayaprakash
2019-11-14 13:05:51 +05:30
committed by Gerrit - the friendly Code Review server
parent 08a2bea751
commit 975f864784

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only // SPDX-License-Identifier: GPL-2.0-only
/* /*
* Copyright (c) 2012, 2015-2019, The Linux Foundation. All rights reserved. * Copyright (c) 2012, 2015-2020, The Linux Foundation. All rights reserved.
*/ */
#define pr_fmt(fmt) "%s: " fmt, __func__ #define pr_fmt(fmt) "%s: " fmt, __func__
@@ -250,8 +250,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 <= 124416000 && YUV) -> RD/WROT=4 //1080p60
* If (total_source_pixels <= 2160p && YUV && FPS <= 30) -> RD/WROT = 32 * If (total_source_pixels <= 2160p && YUV && FPS <= 30) -> RD/WROT = 32
*/ */
switch (mdata->mdss_version) { if (IS_SDE_MAJOR_MINOR_SAME(mdata->mdss_version,
case SDE_MDP_HW_REV_540: SDE_MDP_HW_REV_540)) {
if (is_yuv) { if (is_yuv) {
if (res <= (RES_1080p * 30)) if (res <= (RES_1080p * 30))
ot_lim = 2; ot_lim = 2;
@@ -264,18 +264,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)) { } else if (fmt->bpp == 4 && res <= (RES_WQXGA * 60)) {
ot_lim = 16; ot_lim = 16;
} }
} else if (IS_SDE_MAJOR_SAME(mdata->mdss_version,
break; SDE_MDP_HW_REV_600) || is_yuv) {
default:
if (is_yuv) {
if (res <= (RES_1080p * 30)) if (res <= (RES_1080p * 30))
ot_lim = 2; ot_lim = 2;
else if (res <= (RES_1080p * 60)) else if (res <= (RES_1080p * 60))
ot_lim = 4; ot_lim = 4;
} }
break;
}
exit: exit:
SDEROT_DBG("ot_lim=%d\n", ot_lim); SDEROT_DBG("ot_lim=%d\n", ot_lim);
return ot_lim; return ot_lim;