summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSophia Wang <yodagump@google.com>2023-05-23 16:34:36 -0700
committerRuofei Ma <ruofeim@google.com>2023-07-07 19:34:33 +0000
commit0857cfdb510205e1ee3bffdfed5cebb8a9aa6ec5 (patch)
tree1dd5adf4209ceb156e23c33e37b872395309d25f
parentddb7cb2e9c5a144041387a853afbfe8af6ffbb06 (diff)
downloadgchips-android-gs-shusky-5.15-android14-d1.tar.gz
Reduce MIF max freq from 3744000 to 2028000 for HDR 4K 60bps video. Bug: 279963177 Change-Id: Ic06811e6963054a31d6295819f15df728d78bf08 Signed-off-by: Sophia Wang <yodagump@google.com>
-rw-r--r--bigo_pm.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/bigo_pm.c b/bigo_pm.c
index 0dad241..871b68f 100644
--- a/bigo_pm.c
+++ b/bigo_pm.c
@@ -18,7 +18,6 @@
#include "bigo_io.h"
#define BIGW_A0_CSR_PROG_FREQ 166000
-#define LARGE_LOAD_MIF_FLOOR 3744000
static inline u32 bigo_get_total_load(struct bigo_core *core)
{
@@ -46,31 +45,6 @@ static inline u32 bigo_get_total_load(struct bigo_core *core)
return load;
}
-static inline void update_mif_floor(struct bigo_core *core)
-{
- struct bigo_inst *inst;
- u32 load = 0;
- u32 curr_load = 0;
-
- if (!list_empty(&core->instances)) {
- list_for_each_entry(inst, &core->instances, list) {
- if (inst->idle)
- continue;
- curr_load = inst->width * inst->height * inst->fps * inst->bpp / 1024;
- load += curr_load;
- }
- }
-
- if (load > core->pm.max_load) {
- if (!exynos_pm_qos_request_active(&core->pm.qos_req_mif))
- exynos_pm_qos_add_request(&core->pm.qos_req_mif, PM_QOS_BUS_THROUGHPUT, LARGE_LOAD_MIF_FLOOR);
- else
- exynos_pm_qos_update_request(&core->pm.qos_req_mif, LARGE_LOAD_MIF_FLOOR);
- } else if (exynos_pm_qos_request_active(&core->pm.qos_req_mif)) {
- exynos_pm_qos_remove_request(&core->pm.qos_req_mif);
- }
-}
-
static inline u32 bigo_get_target_freq(struct bigo_core *core, u32 load)
{
struct bigo_opp *opp;
@@ -172,7 +146,6 @@ void bigo_update_qos(struct bigo_core *core)
if (rc)
pr_warn("%s: failed to scale bandwidth: %d\n", __func__, rc);
- update_mif_floor(core);
bigo_scale_freq(core);
core->qos_dirty = false;
}