微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 手机设计讨论 > MTK手机平台交流 > 在任意界面同时按下音量+与音量-键一定时间后,手机定屏死机

在任意界面同时按下音量+与音量-键一定时间后,手机定屏死机

时间:10-02 整理:3721RD 点击:
[DESCRIPTION]
在任意界面同时按下音量+与音量-键一定时间后,手机定屏死机
[SOLUTION ]
这个是正常的设计 ,在eng build上,同时按下volum down + volum up key 15 秒钟,就
会手动的触发 aee dump 。
对应的log如下
<4>[ 109.712044] (0)[0:swapper/0]Pressed Volup + Voldown5s~15s then
trigger aee manual dump.
<5>[ 109.713101] (0)[0:swapper/0][aee/aek] kernel_reportAPI,manual
dump,</work/wjw/13079_tp_reset/MT6572_V1.37_DEV_ROM/kernel/mediatek/platfo
rm/mt6572/kernel/drivers/keypad/kpd.c:493> Trigger Vol Up +Vol Down 5s,0x0
<6>[ 109.715489] (0)[0:swapper/0][aee/aek] ke_gen_ind_msg oops ce1ca000
代码在kpd.c 中,AEE_ENABLE_5_15 包起来的部分。
这个功能在user load上是关闭的。
在user load和eng load上,相应的代码都会跑,具体的控制是在
if(hrtimer_cancel(&aee_timer))
内完成。
具体的Log参考如下,user load同样的操作下的trace如下
5 1904 <4>[ 250.864089] (0)[0:swapper/0]kpd: aee_timer started
24 2199 <4>[ 252.178232] (0)[0:swapper/0]kpd: try to cancel hrtimer
25 2200 <4>[ 252.178250] (0)[0:swapper/0]kpd: aee_timer canceled
26 2201 <4>[ 252.178268] (0)[0:swapper/0]kpd: try to cancel hrtimer (5s)
27 2202 <4>[ 252.178286] (0)[0:swapper/0]kpd: aee_timer canceled (5s)
86 2377 <4>[ 254.726483] (0)[2672:mobile_log_d]kpd: aee_timer started
105 2440 <4>[ 255.634282] (0)[2466:ndroid.launcher]kpd: try to cancel
hrtimer
106 2441 <4>[ 255.634301] (0)[2466:ndroid.launcher]kpd: aee_timer canceled
107 2442 <4>[ 255.634320] (0)[2466:ndroid.launcher]kpd: try to cancel
hrtimer (5s)
108 2443 <4>[ 255.634339] (0)[2466:ndroid.launcher]kpd: aee_timer canceled
(5s)
147 2573 <4>[ 258.160931] (0)[25:pMIC_thread_kth]kpd: aee_timer started
150 3128 <4>[ 260.625782] (0)[0:swapper/0]kpd: try to cancel hrtimer
151 3129 <4>[ 260.625800] (0)[0:swapper/0]kpd: aee_timer canceled
152 3130 <4>[ 260.625818] (0)[0:swapper/0]kpd: try to cancel hrtimer (5s)
153 3131 <4>[ 260.625835] (0)[0:swapper/0]kpd: aee_timer canceled (5s)
176 3304 <4>[ 264.673903] (0)[0:swapper/0]kpd: aee_timer started
195 3894 <4>[ 267.257729] (0)[2672:mobile_log_d]kpd: try to cancel hrtimer
196 3895 <4>[ 267.257748] (0)[2672:mobile_log_d]kpd: aee_timer canceled
197 3896 <4>[ 267.257767] (0)[2672:mobile_log_d]kpd: try to cancel hrtimer
(5s)
198 3897 <4>[ 267.257785] (0)[2672:mobile_log_d]kpd: aee_timer canceled
(5s)
237 4077 <4>[ 269.050580] (0)[25:PMIC_thread_kth]kpd: aee_timer started
240 4084 <4>[ 269.215003] (0)[2672:mobile_log_d]kpd: try to cancel hrtimer
241 4085 <4>[ 269.215021] (0)[2672:mobile_log_d]kpd: aee_timer canceled
242 4086 <4>[ 269.215039] (0)[2672:mobile_log_d]kpd: try to cancel hrtimer
(5s)
243 4087 <4>[ 269.215058] (0)[2672:mobile_log_d]kpd: aee_timer canceled
(5s)
266 4229 <4>[ 271.306280] (0)[0:swapper/0]kpd: aee_timer started
285 4322 <4>[ 272.134574] (0)[0:swapper/0]kpd: try to cancel hrtimer
286 4323 <4>[ 272.134592] (0)[0:swapper/0]kpd: aee_timer canceled
287 4324 <4>[ 272.134609] (0)[0:swapper/0]kpd: try to cancel hrtimer (5s)
288 4325 <4>[ 272.134627] (0)[0:swapper/0]kpd: aee_timer canceled (5s)
327 4444 <4>[ 274.480539] (0)[25:pmic_thread_kth]kpd: aee_timer started
330 4981 <4>[ 277.032776] (0)[0:swapper/0]kpd: try to cancel hrtimer
331 4982 <4>[ 277.032794] (0)[0:swapper/0]kpd: aee_timer canceled
332 4983 <4>[ 277.032813] (0)[0:swapper/0]kpd: try to cancel hrtimer (5s)
333 4984 <4>[ 277.032830] (0)[0:swapper/0]kpd: aee_timer canceled (5s)
372 5437 <4>[ 281.120653] (1)[25:pmic_thread_kth]kpd: aee_timer started
375 6292 <4>[ 310.957116] (0)[0:swapper/0]kpd: aee_timer canceled
376 6293 <4>[ 310.957133] (0)[0:swapper/0]kpd: aee_timer canceled (5s)
而eng load
20 2041 <4>[ 95.240213] (0)[809:Binder_4]kpd: aee_timer started
38 2630 <4>[ 109.711397] (0)[0:swapper/0]kpd: try to cancel hrtimer
39 2634 <4>[ 109.715534] (0)[0:swapper/0]kpd: aee_timer canceled
40 2636 <4>[ 109.716874] (0)[0:swapper/0]kpd: aee_timer canceled (5s)
92 3083 <4>[ 114.925227] (0)[2135:mobile_log_d]kpd: aee_timer started
因为去dump时,会受到flags_5s 的控制,所以如果在aee_timer started后5s内,能将
aee_timer cancel掉,就不会进入aee_kernel_reminding 做aee dump.
具体的代码参考 kpd_update_aee_state 和 hrtimer_cancel 方法。

签到专用组  

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top