* [BUG] mach-msm/msm_vibrator.c - very long vibration if CPU suspends
@ 2013-09-04 21:24 abhilash jindal
2013-09-11 19:47 ` David Brown
0 siblings, 1 reply; 3+ messages in thread
From: abhilash jindal @ 2013-09-04 21:24 UTC (permalink / raw)
To: linux-arm-msm; +Cc: davidb, dwalker, bryanh
msm_vibrator.c uses hrtimer to switch off the phone vibration as follows-
hrtimer_start(&vibe_timer, ktime_set(value / 1000, (value % 1000) *
1000000), HRTIMER_MODE_REL);
However, hrtimer does not get fired after the CPU suspends. Hence, if
the CPU suspends before the timer gets fired, the phone continues
vibrating until the next time when CPU wakes up causing unnecessary
battery drain (which can be as long as 15 minutes).
IMHO, one way to fix it would be to replace hrtimer by android alarm timer.
Thanks
Abhilash Jindal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] mach-msm/msm_vibrator.c - very long vibration if CPU suspends
2013-09-04 21:24 [BUG] mach-msm/msm_vibrator.c - very long vibration if CPU suspends abhilash jindal
@ 2013-09-11 19:47 ` David Brown
2013-09-12 14:18 ` abhilash jindal
0 siblings, 1 reply; 3+ messages in thread
From: David Brown @ 2013-09-11 19:47 UTC (permalink / raw)
To: abhilash jindal; +Cc: linux-arm-msm, dwalker, bryanh
On Wed, Sep 04, 2013 at 05:24:50PM -0400, abhilash jindal wrote:
>msm_vibrator.c uses hrtimer to switch off the phone vibration as follows-
>
>hrtimer_start(&vibe_timer, ktime_set(value / 1000, (value % 1000) *
>1000000), HRTIMER_MODE_REL);
>
>However, hrtimer does not get fired after the CPU suspends. Hence, if
>the CPU suspends before the timer gets fired, the phone continues
>vibrating until the next time when CPU wakes up causing unnecessary
>battery drain (which can be as long as 15 minutes).
>
>IMHO, one way to fix it would be to replace hrtimer by android alarm timer.
It looks like this file exists only in the codeaurora.org MSM tree,
and not in the mainline kernel. The first thing I'd mention is that
if you are an MSM customer, you'll be much better off reporting this
through the customer support chain.
Otherwise, I can forward this information internally. I'm not sure if
they'll be any response, since it doesn't appear to be used in any
recent targets.
David
--
sent by an employee of the Qualcomm Innovation Center, Inc.
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
hosted by The Linux Foundation
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [BUG] mach-msm/msm_vibrator.c - very long vibration if CPU suspends
2013-09-11 19:47 ` David Brown
@ 2013-09-12 14:18 ` abhilash jindal
0 siblings, 0 replies; 3+ messages in thread
From: abhilash jindal @ 2013-09-12 14:18 UTC (permalink / raw)
To: David Brown; +Cc: linux-arm-msm, dwalker, bryanh
Thanks for the reply ! I reported it here because the bug is present
in the main android tree:
https://android.googlesource.com/kernel/msm.git/+/android-msm-2.6.35/arch/arm/mach-msm/msm_vibrator.c
abhilash
On Wed, Sep 11, 2013 at 3:47 PM, David Brown <davidb@codeaurora.org> wrote:
> On Wed, Sep 04, 2013 at 05:24:50PM -0400, abhilash jindal wrote:
>>
>> msm_vibrator.c uses hrtimer to switch off the phone vibration as follows-
>>
>> hrtimer_start(&vibe_timer, ktime_set(value / 1000, (value % 1000) *
>> 1000000), HRTIMER_MODE_REL);
>>
>> However, hrtimer does not get fired after the CPU suspends. Hence, if
>> the CPU suspends before the timer gets fired, the phone continues
>> vibrating until the next time when CPU wakes up causing unnecessary
>> battery drain (which can be as long as 15 minutes).
>>
>> IMHO, one way to fix it would be to replace hrtimer by android alarm
>> timer.
>
>
> It looks like this file exists only in the codeaurora.org MSM tree,
> and not in the mainline kernel. The first thing I'd mention is that
> if you are an MSM customer, you'll be much better off reporting this
> through the customer support chain.
>
> Otherwise, I can forward this information internally. I'm not sure if
> they'll be any response, since it doesn't appear to be used in any
> recent targets.
>
> David
>
> --
> sent by an employee of the Qualcomm Innovation Center, Inc.
> The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
> hosted by The Linux Foundation
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-09-12 14:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-04 21:24 [BUG] mach-msm/msm_vibrator.c - very long vibration if CPU suspends abhilash jindal
2013-09-11 19:47 ` David Brown
2013-09-12 14:18 ` abhilash jindal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).