在 Qualcomm chip 裡有一個 hardware block 名為 MPM。
在 RPM CPU halts 後,MPM 會保持在 on 的狀態用來處理 全系統 sleep process 的最後步驟。
MPM 也會保持在 on 的狀態,依據 MPM interrupt controller 設定來 monitor systen wake event。

Flow



注解

MPM supports VDD minimization , also known as VDD_CORE rentation mode, 減少 digital logic 電路的漏電流,但還可以保持 register 和 memory 的狀態。

Source Code

msm8917-pm.dtsi

qcom,mpm@601d0 {
...
qcom,gic-map = <2 216>, /* tsens_upper_lower_int */
<49 172>, /* usb1_hs_async_wakeup_irq */
<58 166>, /* usb_hs_irq */ 

166 是 GIC interrupt,
58 是 MPM pin,
也就是 GIC interrupt is routed to MPM pin,
在 MPM 的設定中 (Q1 有提到)
MPM 除了可以接受 GIC interrupt,

Reference

in kernel/msm-3.18/Documentation/devicetree/bindings/arm/msm/mpm.txt

24 - qcom,gic-map: Provides a mapping of how a GIC interrupt is connect to a MPM. The
25 mapping is presented in tuples. Each tuple represents a MPM pin and
26 which GIC interrupt is routed to it. Since MPM monitors interrupts
27 only during system wide low power mode, system interrupts originating
28 from other processors can be ignored and assigned an MPM pin mapping
29 of 0xff.

Questioon

Q1

MPM pin 要去那一個 document 查 ?

Q1-answer

沒有 document 查,
只有 source code,
這個寫在 evernote 裡,

Q2

GIC interrupt 是指 GPIO number 嗎?
e.g. GPIO_19

Q2-answer

GIC 可以接受多個 中斷 (GIC interrupt),
一個 system 有多個 gpio 控制器,
其中有幾隻是 gpio 控制器發出來的(GIC interrupt),
一個 gpio 控制器 有多根 gpio (GPIO number )。

Q3

從 MPM 的設定中(Q1 有提到),也可以直接接受 GPIO ?

Q3-answer

MPM 接受的中斷,除了 GPIO 外,也可以是 internal hardware 發出的。

Q4

如何得知 GIC 的所有中斷?

Q4-answer

can get the supported GIC interrupts from the below adb command,
adb root
adb shell
cat /proc/interrupts

Reference

Qualcomm document

Abbreviation

MPM
MSM Power Management
Modem Power Management

最新文章

  1. C# - 网络编程 之 Socket
  2. Python控制window进行简单的消息弹窗
  3. Apriori原理与实践
  4. 求双连通分量的详解。(根据刘汝佳的训练指南p314)
  5. c++ algorithm 的用法
  6. 树莓派配置AP模式
  7. android 模拟器定在了任务栏出不来了
  8. angularJS--神奇的$scope
  9. ContentType 属性 MIME
  10. [leetcode-561-Array Partition I]
  11. ( 转 ) WebApiTestClient 的使用
  12. apply的应用和匿名函数的封装应用
  13. FFmpeg使用基础
  14. 【二十八】xml编程(dom\xpath\simplexml)
  15. 爬虫模块之解决IO
  16. vsftpd只能连接不能上传文件问题
  17. Newifi2(D1) 刷入pb-boot和breed的记录
  18. 一:php配置注意
  19. 致Python初学者:Anaconda入门使用指南
  20. Android Studio添加文件注释头模板?

热门文章

  1. 13.VUE学习之控制行内样式
  2. day23-python之日志 re模块
  3. C++ vector 实例
  4. 南阳 ACM16 矩形嵌套 动态规划
  5. Scrapy框架中选择器的用法【转】
  6. linux centos6 系统优化脚本-经典
  7. Unable to execute dex: Multiple dex files define Lcom/myapp/R$array;
  8. mysql进阶二
  9. 如何使用PowerShell管理Windows服务
  10. ogre3D学习基础2 -- 顶点程序与片断程序