soc/qcom/hyp_core_ctl: Track VPM Group state for VM

VM has to go into suspend state outside of use case boundary. Delay in
transitioning to system suspend or spurious wake-ups after the use case
is completed will result in a system regression.
Adding a mechanism to track both the scenarios of delay in system
suspend and spurious wake-ups of the VM by checking the VPM Group state
associated with the VM.

Change-Id: I2a5990989033ffd3cc57ae1cba93b8ba6b63a3c7
Signed-off-by: Sai Harshini Nimmala <snimmala@codeaurora.org>
This commit is contained in:
Sai Harshini Nimmala 2020-09-18 12:53:34 -07:00
commit f89f67ece0
5 changed files with 134 additions and 14 deletions

View file

@ -134,6 +134,10 @@ static unsigned long one_ul = 1;
static unsigned long long_max = LONG_MAX;
static int one_hundred = 100;
static int one_thousand = 1000;
#ifdef CONFIG_QCOM_HYP_CORE_CTL
static int five_hundred = 500;
static int five_thousand = 5000;
#endif
#ifdef CONFIG_PRINTK
static int ten_thousand = 10000;
#endif
@ -346,6 +350,17 @@ static struct ctl_table kern_table[] = {
.mode = 0644,
.proc_handler = proc_dointvec,
},
#ifdef CONFIG_QCOM_HYP_CORE_CTL
{
.procname = "hh_suspend_timeout_ms",
.data = &sysctl_hh_suspend_timeout_ms,
.maxlen = sizeof(unsigned int),
.mode = 0644,
.proc_handler = proc_douintvec_minmax,
.extra1 = &five_hundred,
.extra2 = &five_thousand,
},
#endif
#ifdef CONFIG_SCHED_WALT
{
.procname = "sched_user_hint",