From 30f8174d8a2b03795bf5bc7532e64002a95926fd Mon Sep 17 00:00:00 2001 From: Richard Raya Date: Wed, 18 Dec 2024 02:11:25 -0300 Subject: [PATCH] msm-4.14: Bump boosts input timeouts Change-Id: I55077d5fecbf231539ad94ac058226cbc39d1479 Signed-off-by: Richard Raya --- drivers/gpu/drm/drm_atomic.c | 6 +++--- drivers/gpu/drm/msm/sde/sde_crtc.c | 6 +++--- kernel/fork.c | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c index ee3ea9b484ce..7bc66f553742 100644 --- a/drivers/gpu/drm/drm_atomic.c +++ b/drivers/gpu/drm/drm_atomic.c @@ -2264,13 +2264,13 @@ static int __drm_mode_atomic_ioctl(struct drm_device *dev, void *data, /* * Boost upon running an atomic ioctl. Only - * if within 3.2s input timeout. + * if within 7s input timeout. */ if (!(arg->flags & DRM_MODE_ATOMIC_TEST_ONLY)) { - if (cpu_input_boost_within_input(3250)) { + if (cpu_input_boost_within_input(7000)) { cpu_input_boost_kick(); } - if (df_boost_within_input(3250)) { + if (df_boost_within_input(7000)) { devfreq_boost_kick(DEVFREQ_MSM_CPUBW); devfreq_boost_kick(DEVFREQ_MSM_LLCCBW); } diff --git a/drivers/gpu/drm/msm/sde/sde_crtc.c b/drivers/gpu/drm/msm/sde/sde_crtc.c index bcadb64fae9c..d9200101c3eb 100644 --- a/drivers/gpu/drm/msm/sde/sde_crtc.c +++ b/drivers/gpu/drm/msm/sde/sde_crtc.c @@ -4373,12 +4373,12 @@ void sde_crtc_commit_kickoff(struct drm_crtc *crtc, /* * Boost when a new frame is ready to be committed. Only - * if within 3.2s input timeout. + * if within 7s input timeout. */ - if (cpu_input_boost_within_input(3250)) { + if (cpu_input_boost_within_input(7000)) { cpu_input_boost_kick(); } - if (df_boost_within_input(3250)) { + if (df_boost_within_input(7000)) { devfreq_boost_kick(DEVFREQ_MSM_CPUBW); devfreq_boost_kick(DEVFREQ_MSM_LLCCBW); } diff --git a/kernel/fork.c b/kernel/fork.c index 82fd01f4a199..1e928689eb56 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -2248,16 +2248,16 @@ long _do_fork(unsigned long clone_flags, long nr; /* - * Boost to the max for 50 ms when userspace launches an app. Only + * Boost to the max for 500 ms when userspace launches an app. Only * if within 1.5s input timeout. */ if (task_is_zygote(current)) { if (df_boost_within_input(1500)) { - devfreq_boost_kick_max(DEVFREQ_MSM_CPUBW, 50); - devfreq_boost_kick_max(DEVFREQ_MSM_LLCCBW, 50); + devfreq_boost_kick_max(DEVFREQ_MSM_CPUBW, 500); + devfreq_boost_kick_max(DEVFREQ_MSM_LLCCBW, 500); } if (cpu_input_boost_within_input(1500)) { - cpu_input_boost_kick_max(50); + cpu_input_boost_kick_max(500); } }