msm: kgsl: Fix state transition action from deep_nap state
Deep nap removes the quality of service latency vote. Restore device before powering back the GPU while coming out of deep nap. Change-Id: I9366ffa6f5f2768cb3ea10f9117678ba8cf8d190 Signed-off-by: Prakash Kamliya <pkamliya@codeaurora.org> Signed-off-by: Divya Ponnusamy <pdivya@codeaurora.org>
This commit is contained in:
parent
56ed9e43b7
commit
f5d225e2ff
1 changed files with 5 additions and 2 deletions
|
@ -1982,11 +1982,14 @@ static int _init(struct kgsl_device *device)
|
||||||
{
|
{
|
||||||
int status = 0;
|
int status = 0;
|
||||||
switch (device->state) {
|
switch (device->state) {
|
||||||
case KGSL_STATE_NAP:
|
|
||||||
case KGSL_STATE_DEEP_NAP:
|
case KGSL_STATE_DEEP_NAP:
|
||||||
case KGSL_STATE_SLEEP:
|
pm_qos_update_request(&device->pwrctrl.pm_qos_req_dma,
|
||||||
|
device->pwrctrl.pm_qos_active_latency);
|
||||||
/* Get the device out of retention */
|
/* Get the device out of retention */
|
||||||
kgsl_pwrctrl_retention_clk(device, KGSL_PWRFLAGS_ON);
|
kgsl_pwrctrl_retention_clk(device, KGSL_PWRFLAGS_ON);
|
||||||
|
/* fall through */
|
||||||
|
case KGSL_STATE_NAP:
|
||||||
|
case KGSL_STATE_SLEEP:
|
||||||
/* Force power on to do the stop */
|
/* Force power on to do the stop */
|
||||||
status = kgsl_pwrctrl_enable(device);
|
status = kgsl_pwrctrl_enable(device);
|
||||||
case KGSL_STATE_ACTIVE:
|
case KGSL_STATE_ACTIVE:
|
||||||
|
|
Loading…
Add table
Reference in a new issue