Modem2G/3G/4G/5G:功耗管理:高通Thermal架构与配置方法(一):Thermal Zone与Cooling Device

本文介绍了高通平台Modem的功耗管理,特别是Thermal Zone和Cooling Device的概念及配置方法。Thermal Zone是温度传感器,通过Thermal Governor控制冷却设备,如Modem的PA、proc、VDD和current,防止过热。文章讨论了Thermal框架概览,解释了cooling device如何生效,并展示了8937平台的Thermal Zone配置示例。
摘要由CSDN通过智能技术生成

By:GentlemanTsao

Thermal框架概览

在这里插入图片描述

认识thermal sysfs

Thermal sysfs是UE中的文件节点,暴露了thermal sensor,可以通过adb读取和修改。

在UE的/sys/class/thermal目录下查看,可以得到cooling_device和thermal zone列表,如下所示:

在这里插入图片描述

每个cooling_device都有自己的类型(type),以区分其他device。我们可以cat cooling_device11 ~14,看到这几个属于modem,依次对应于:

PA
Modem proc
Modem VDD
Modem current

如下所示:
在这里插入图片描述

Cooling_device结构,如下所示:

在这里插入图片描述
Thermal zone结构,如下所示:
在这里插入图片描述

接下来分别阐述这两者及其关系。

Cooling device

定义:

任何可以通过节流/限频以实现降温的设备。

Cooling device包含下面几部分:

在这里插入图片描述

如何生效:

每个cooling device都关联一个thermal zone的 trip。
具体实现请参考下面一段代码(位于kernel中):
Thermal_core.c
(amss\linux\android\kernel\msm-4.9\drivers\thermal)



/**

 *thermal_zone_bind_cooling_device() - bind a cooling device to a thermal zone
 *@tz:             pointer to struct thermal_zone_device
 * @trip: indicates which trip point the cooling devices is
 *              associated with in this thermal zone.
 *@cdev:        pointer to struct thermal_cooling_device
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

GentlemanTsao

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值