Closed Bug 877215 Opened 11 years ago Closed 11 years ago

[System] Device does not enter cpu idle state (AP's core 0 voltage)

Categories

(Firefox OS Graveyard :: Gaia::System, defect, P1)

ARM
Gonk (Firefox OS)

Tracking

(blocking-b2g:leo+, b2g18 fixed)

RESOLVED FIXED
1.1 QE2 (6jun)
blocking-b2g leo+
Tracking Status
b2g18 --- fixed

People

(Reporter: julienw, Assigned: gal)

References

Details

(Whiteboard: MiniWW)

Attachments

(2 files)

+++ This bug was initially created as a clone of Bug #853698 +++

1. Title : Device does not enter cpu idle state (AP's core 0 voltage)
2. Precondition : Turn on deivce
3. Tester's Action : Check device state after turn on.
4. Detailed Symptom :  When device is turned on, the AP's core voltage never goes down.
5. Expected : Device should enter cpu idle state (AP's core 0 voltage), when there is no input for certain period of time.
6. Reproducibility: Y
1) Frequency Rate : 100%
7. Gaia revision : 

From Bug 853698 comment 4, it seems that the lockscreen animation prevents the cpu from entering the idle state.

We should stop/restart the animation using the page visibility API to make this possible.
Marking this for work week as per the discussion.
blocking-b2g: leo? → leo+
Whiteboard: MiniWW
Attached patch patch, untestedSplinter Review
Julien, can you please test and grab/land if you like it?
Attachment #755637 - Attachment is patch: true
Attachment #755637 - Attachment mime type: text/x-patch → text/plain
visibilityChange -> visibilityChanged typo, please fix
Alive, I think Julien is out for a week, perhaps you can help with this?

thanks,
Wayne
Flags: needinfo?(alive)
Target Milestone: --- → 1.1 QE2 (6jun)
Taken.
Assignee: nobody → alive
Flags: needinfo?(alive)
Looks like :gal has a patch, so switch the assignee.
The patch looks all good to me.
Assignee: alive → gal
See comment above, :gal made this patch and I am going to r+ it.
Attachment #755729 - Flags: review?
Tester checked this patch, but when applying this patch, device does not enter cpu idle state

So, I change status to ReOpen.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
leo team, there might be another reason why the sleep state is not reached, but we need some diagnosis here. Do you know why the idle state is not entered?
Flags: needinfo?(leo.bugzilla.gaia)
I think the patch is a reasonable fix though it doesn't fix leo's problem. I propose to open another follow(yeah I know this is already a followup) instead of reopening this one.
Does this make sense?
When I role back patch of Bug 838486(apply master git on 3/13), tester said device can enter CPU Idle state.

Patch of Bug 838486 relates lockscreen.js and this patch too.

So, I think system app engineer analyze Patch of Bug 838486, and keep state of this bug.
Flags: needinfo?(leo.bugzilla.gaia)
(In reply to Leo from comment #13)
> When I role back patch of Bug 838486(apply master git on 3/13), tester said
> device can enter CPU Idle state.
> 
> Patch of Bug 838486 relates lockscreen.js and this patch too.
> 
> So, I think system app engineer analyze Patch of Bug 838486, and keep state
> of this bug.

Nice, but the patch of 838486 looks pretty simple and irrelavant to CPU idle...
Me or yuren may investigate it.
Yes, let's open another followup. Generally, we should avoid reopening bugs and open followups, given how we track landings in bugzilla.
Status: REOPENED → RESOLVED
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Leo has filed bug 878142 as a followup.
See Also: → 878142
found this wakelock hold even screen off.
<6>[1980-01-07 05:45:59 KST][  214.146141] active wake lock unknown_suspend, time left 173
We can use this command to get who hold the wakelock
1. adb shell "echo 15 > /sys/module/wakelock/parameters/debug_mask"
and you can run 
2. adb shell cat proc/kmsg, found this suspect:

<6>[1980-01-07 07:21:46 KST][  736.872334] active wake lock unknown_suspend, time left 173
"unknown suspend" is wakelock-timeout message for resolving the issue from deep-sleep to wake state.
We think it is not root cause.
leo, do you still any other timers firing when the device is idle?
hi Leo, can you provide waht is the current power comsumation that you measure?
(In reply to Randy Lin [:rlin] from comment #21)
> hi Leo, can you provide waht is the current power comsumation that you
> measure?

The current is about 178 mA.
(In reply to Andreas Gal :gal from comment #20)
> leo, do you still any other timers firing when the device is idle?

Yes, still firing in idle state.
Flags: in-moztrap-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: