Power Debug Guide

本文介绍如何通过启用debug mask记录内核日志中断信息,检查APSS(应用处理器子系统)被唤醒的原因,以及如何检查设备在睡眠状态下的电流泄漏,包括来自电源键、未正确配置的GPIO垫和未禁用的外设导致的泄漏。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

  • Check APSS wakeups

    1.Enable the following debug mask to log the interrupt information in the kernel logs:

                  echo 1 > /sys/module/msm_show_resume_irq/parameters/debug_mask

    2.Check prints in the kernel log to identify which interrupt is causing the APSS to wake up. The
     following snippet shows that the APSS is awakened by qpnp_kpdpwr_status, which is the power
     key press interrupt:      

                  <6>[0414 06:51:27.872744]@0 @0 __qpnpint_handle_irq: 288 triggered [0x0,
                      0x08,0x0] qpnp_kpdpwr_status
                  <6>[0414 06:51:27.872751]@0 @0 gic_show_resume_irq: 200 triggered qcom,smdrpm
                  <6>[0414 06:51:27.872758]@0 @0 gic_show_resume_irq: 203 triggered
                        601d0.qcom,mpm
                  <6>[0414 06:51:27.872765]@0 @0 gic_show_resume_irq: 222 triggered
                        200f000.qcom,spmi

  • Check leakage in sleep current  

     1.If the base current is higher than expected, even after the device successfully enters VDD
     minimization, there are one or more leakage sources on the device contributing to the total current
     consumption.

     Leakage can occur from multiple sources, such as the following:

     ■ Leakage from SMPS and LDOs not used during sleep but are kept enabled; a PMIC dump is
        helpful in checking possible leakage from SMPS and LDOs
     ■ Leakage from GPIO pads if one or more GPIOs are not configured correctly in their lowest
        leakage settings; a GPIO dump can be helpful in determining the sleep configuration of the MSM™
        GPIOs
     ■ Leakage from peripherals and external components not disabled or put in Low Power mode
        configuration

转载于:https://www.cnblogs.com/rainey-forrest/p/11492037.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值