高通平台LCD的打开和关闭流程

开机的时候 SurfaceFlinger open msm_fb device

[    9.468484] mdp4_overlay_pipe_alloc: pipe=c07f7830 ndx=1 num=0 share=0 cnt=0      刚开机的时候 sl open device
[    9.472143] qlay: lcdc on task name SurfaceFlinger
[    9.479310] [] (unwind_backtrace+0x0/0x164) from [] (lcdc_on+0x34/0x124)
[    9.487521] [] (lcdc_on+0x34/0x124) from [] (panel_next_on+0x38/0x44)
[    9.495607] [] (panel_next_on+0x38/0x44) from [] (mdp_lcdc_on+0x340/0x3ac)
[    9.504466] [] (mdp_lcdc_on+0x340/0x3ac) from [] (msm_fb_blank_sub+0x74/0xcc)
[    9.513053] [] (msm_fb_blank_sub+0x74/0xcc) from [] (msm_fb_open+0x54/0x88)
[    9.521931] [] (msm_fb_open+0x54/0x88) from [] (fb_open+0x108/0x140)
[    9.529903] [] (fb_open+0x108/0x140) from [] (chrdev_open+0x198/0x1b8)
[    9.538302] [] (chrdev_open+0x198/0x1b8) from [] (__dentry_open+0x18c/0x2a8)
[    9.546909] [] (__dentry_open+0x18c/0x2a8) from [] (nameidata_to_filp+0x3c/0x50)
[    9.561855] [] (nameidata_to_filp+0x3c/0x50) from [] (do_last+0x4cc/0x610)
[    9.576343] [] (do_last+0x4cc/0x610) from [] (do_filp_open+0x17c/0x4fc)
[    9.590589] [] (do_filp_open+0x17c/0x4fc) from [] (do_sys_open+0x58/0x10c)
[    9.605077] [] (do_sys_open+0x58/0x10c) from [] (ret_fast_syscall+0x0/0x30)
========

开机一段时间后,按了power key,屏灭掉

ScreenOffThread 调用接口

 

[   40.818817] qlay: request_suspend_state ScreenOffThread
[   40.823919] lm3535_backlight_control: intensive 2 on:1
[   40.829491] request_suspend_state: sleep (0->3) at 40750511263 (1970-01-02 00:00:31.486817926 UTC)
[   40.838348] qlay: lightup suspend
[   40.841357] lcdc_samsung_panel_set_backlight: backlight bl_level 0x0
[   40.847635] lm3535_backlight_control: intensive 2 on:0
[   40.897916] CPUFREQ: Per core ondemand sysfs interface is deprecated - sampling_rate
[   41.029041] qlay: lcdc_off task suspend
[   41.029088] [] (unwind_backtrace+0x0/0x164) from [] (lcdc_off+0x2c/0xb0)
[   41.040211] [] (lcdc_off+0x2c/0xb0) from [] (panel_next_off+0x3c/0x48)
[   41.048595] [] (panel_next_off+0x3c/0x48) from [] (mdp_lcdc_off+0x60/0x80)
[   41.057224] [] (mdp_lcdc_off+0x60/0x80) from [] (msm_fb_blank_sub+0xac/0xcc)
[   41.065812] [] (msm_fb_blank_sub+0xac/0xcc) from [] (msm_fb_suspend_sub+0x48/0xe4)
[   41.075275] [] (msm_fb_suspend_sub+0x48/0xe4) from [] (early_suspend+0xa0/0x12c)
[   41.084219] [] (early_suspend+0xa0/0x12c) from [] (worker_thread+0x160/0x1ec)
[   41.093094] [] (worker_thread+0x160/0x1ec) from [] (kthread+0x78/0x80)
[   41.102810] [] (kthread+0x78/0x80) from [] (kernel_thread_exit+0x0/0x8)

$
$

===============

过了一会儿按了powerkey 屏打开了。打开的同时背光也在打开

WindowManagerPo 进程

 

$ [   45.412447] qlay: request_suspend_state WindowManagerPo
[   45.412538] request_suspend_state: wakeup (3->0) at 45333550421 (1970-01-02 00:00:36.069852343 U
TC)
[   45.438831] qlay: led_brightness_store
[   45.459402] qlay: led_brightness_store
[   45.475765] qlay: led_brightness_store
[   45.492308] qlay: led_brightness_store
[   45.492618] qlay: lcdc on task name suspend
[   45.505525] [] (unwind_backtrace+0x0/0x164) from [] (lcdc_on+0x34/0x124)
[   45.505561] [] (lcdc_on+0x34/0x124) from [] (panel_next_on+0x38/0x44)
[   45.521097] qlay: led_brightness_store
[   45.524946] [] (panel_next_on+0x38/0x44) from [] (mdp_lcdc_on+0x340/0x3ac)
[   45.533697] [] (mdp_lcdc_on+0x340/0x3ac) from [] (msm_fb_blank_sub+0x74/0xcc)
[   45.542226] qlay: led_brightness_store
[   45.546459] [] (msm_fb_blank_sub+0x74/0xcc) from [] (msmfb_early_resume+0x58/0x88)
[   45.555514] [] (msmfb_early_resume+0x58/0x88) from [] (late_resume+0x98/0xe8)
[   45.564192] qlay: led_brightness_store
[   45.568122] [] (late_resume+0x98/0xe8) from [] (worker_thread+0x160/0x1ec)
[   45.576789] [] (worker_thread+0x160/0x1ec) from [] (kthread+0x78/0x80)
[   45.585197] qlay: led_brightness_store
[   45.589571] [] (kthread+0x78/0x80) from [] (kernel_thread_exit+0x0/0x8)

=============

 

再次灭掉,同时进入睡眠状态

[   52.744714] qlay: request_suspend_state ScreenOffThread
[   52.749827] lm3535_backlight_control: intensive 2 on:1
[   52.755088] qlay: lightup suspend
[   52.758309] lcdc_samsung_panel_set_backlight: backlight bl_level 0x0
[   52.764679] request_suspend_state: sleep (0->3) at 52685703855 (1970-01-02 00:00:43.422010370 UTC)
[   52.804564] lm3535_backlight_control: intensive 2 on:0
[   52.929094] qlay: lcdc_off task suspend
[   52.929145] [] (unwind_backtrace+0x0/0x164) from [] (lcdc_off+0x2c/0xb0)
[   52.940272] [] (lcdc_off+0x2c/0xb0) from [] (panel_next_off+0x3c/0x48)
[   52.948651] [] (panel_next_off+0x3c/0x48) from [] (mdp_lcdc_off+0x60/0x80)
[   52.957281] [] (mdp_lcdc_off+0x60/0x80) from [] (msm_fb_blank_sub+0xac/0xcc)
[   52.965868] [] (msm_fb_blank_sub+0xac/0xcc) from [] (msm_fb_suspend_sub+0x48/0xe4)
[   52.975332] [] (msm_fb_suspend_sub+0x48/0xe4) from [] (early_suspend+0xa0/0x12c)
[   52.984271] [] (early_suspend+0xa0/0x12c) from [] (worker_thread+0x160/0x1ec)
[   52.993227] [] (worker_thread+0x160/0x1ec) from [] (kthread+0x78/0x80)
[   53.002879] [] (kthread+0x78/0x80) from [] (kernel_thread_exit+0x0/0x8)
[   53.186668] PM: Syncing filesystems ... done.
[   53.193190] Freezing user space processes ... (elapsed 0.01 seconds) done.
[   53.210721] Freezing remaining freezable tasks ... (elapsed 0.02 seconds) done.
[   53.236312] Suspending console(s) (use no_console_suspend to debug)

 

 

 

============

睡眠唤醒过程

[   53.245699] radio-tavaruatavarua_suspend: radio suspend
[   53.245706]
[   53.247391] local_clk_disable_nolock: Reference counts are incorrect for clock 100!
[   53.247401] local_clk_disable_nolock: Reference counts are incorrect for clock 121!
[   53.247410] local_clk_disable_nolock: Reference counts are incorrect for clock 122!
[   53.274894] PM: suspend of devices complete after 29.993 msecs
[   53.275716] PM: late suspend of devices complete after 0.807 msecs
[   53.275726] Disabling non-boot CPUs ...
[   53.275788] msm_pm_enter
[   53.275788] msm_pm_enter: power collapse
[   53.275788] msm_pm_enter: return
[   53.276225] PM: early resume of devices complete after 0.367 msecs
[   53.276471] wakeup wake lock: event1-201
[   53.504385] msm_kgsl: initialized dev=0 mmu=on per_process_pagetable=off
[   53.512652] hdmi_core_power(on): success
[   53.512678] hdmi_enable_5v(on): success
[   53.514445] radio-tavaruatavarua_resume: radio resume
[   53.514451]
[   53.514981] PM: resume of devices complete after 238.431 msecs
[   53.608123] Restarting tasks ...
[   53.610503] rmt_storage_ioctl: wait for request ioctl
[   53.620984] qlay: request_suspend_state WindowManagerPo
[   53.621018] request_suspend_state: wakeup (3->0) at 53542039854 (1970-01-02 00:00:45.009320145 UTC)
[   53.637453] done.
[   53.637537] suspend: exit suspend, ret = 0 (1970-01-02 00:00:45.025842812 UTC)

 

==========

从睡眠状态中过来

WindowManagerPo 使得屏幕亮起

 

[   53.620984] qlay: request_suspend_state WindowManagerPo

[   53.646214] qlay: led_brightness_store
[   53.665536] qlay: led_brightness_store
[   53.681911] qlay: led_brightness_store
[   53.697361] qlay: led_brightness_store
[   53.714666] qlay: led_brightness_store
[   53.734233] qlay: led_brightness_store
[   53.755495] qlay: led_brightness_store
[   53.771700] qlay: led_brightness_store
[   53.784831] qlay: lcdc on task name suspend
[   53.784876] [] (unwind_backtrace+0x0/0x164) from [] (lcdc_on+0x34/0x124)
[   53.796463] qlay: led_brightness_store
[   53.800395] [] (lcdc_on+0x34/0x124) from [] (panel_next_on+0x38/0x44)
[   53.808203] [] (panel_next_on+0x38/0x44) from [] (mdp_lcdc_on+0x340/0x3ac)
[   53.817175] qlay: led_brightness_store
[   53.824171] [] (mdp_lcdc_on+0x340/0x3ac) from [] (msm_fb_blank_sub+0x74/0xcc
)
[   53.824206] [] (msm_fb_blank_sub+0x74/0xcc) from [] (msmfb_early_resume+0x58
/0x88)
[   53.841377] qlay: led_brightness_store
[   53.845211] [] (msmfb_early_resume+0x58/0x88) from [] (late_resume+0x98/0xe8
)
[   53.853759] [] (late_resume+0x98/0xe8) from [] (worker_thread+0x160/0x1ec)
[   53.862614] qlay: led_brightness_store
[   53.866287] [] (worker_thread+0x160/0x1ec) from [] (kthread+0x78/0x80)
[   53.874583] [] (kthread+0x78/0x80) from [] (kernel_thread_exit+0x0/0x8)

你可能感兴趣的:(高通平台LCD的打开和关闭流程)