立即注册
查看: 2839|回复: 8

[问题] MTK智能机重启之Oops追踪至regulator报错

已绑定手机
发表于 2017-12-19 09:46:20 | 显示全部楼层 |阅读模式 来自 广东省深圳市南山区
最近移植LCM和tp代码导致在没进入系统时不断重启,分析Oops追到regulator/core.c代码,不能往下分析,望老铁们帮分析。
alps/kernel-3.18/drivers/regulator/core.c
1903 /**
1904  * regulator_enable - enable regulator output
1905  * @regulator: regulator source
1906  *
1907  * Request that the regulator be enabled with the regulator output at
1908  * the predefined voltage or current value.  Calls to regulator_enable()
1909  * must be balanced with calls to regulator_disable().
1910  *
1911  * NOTE: the output value can be set by other drivers, boot loader or may be
1912  * hardwired in the regulator.
1913  */
1914 int regulator_enable(struct regulator *regulator)


/**
2009  * regulator_disable - disable regulator output
2010  * @regulator: regulator source
2011  *
2012  * Disable the regulator output voltage or current.  Calls to
2013  * regulator_enable() must be balanced with calls to
2014  * regulator_disable().
2015  *
2016  * NOTE: this will only disable the regulator output if no other consumer
2017  * devices have it enabled, the regulator device supports disabling and
2018  * machine constraints permit this operation.
2019  */
2020 int regulator_disable(struct regulator *regulator)
我知道答案 回答被采纳将会获得5 RD币 已有8人回答

奖励

参与人数 1RD币 +5 收起 理由
enjoy啸狼 + 5 提问奖励

查看全部评分

已绑定手机
发表于 2017-12-19 10:15:13 | 显示全部楼层 来自 湖北省武汉市
把出错时的log贴出来啊,贴这个有什么用
已绑定手机
 楼主| 发表于 2017-12-19 11:07:41 | 显示全部楼层 来自 广东省深圳市南山区
19:58:32][    9.684507] <1>-(1)[1:swapper/0]Internal error: Oops: 5 [#1] PREEMPT SMP ARM
[19:58:32][    9.685380] disable aee kernel api
[19:58:32][    9.685788] <1>-(1)[1:swapper/0]CPU: 1 PID: 1 Comm: swapper/0 Tainted: G        W      3.18.19 #4
[19:58:32][    9.686912] <1>-(1)[1:swapper/0]task: db435000 ti: db438000 task.ti: db438000
[19:58:32][    9.687808] <1>-(1)[1:swapper/0]PC is at regulator_enable+0xc/0x134
[19:58:32][    9.688585] <1>-(1)[1:swapper/0]LR is at tpd_i2c_probe+0x3c/0x2e0
[19:58:32][    9.689343] <1>-(1)[1:swapper/0]pc : [<c0291cd0>]    lr : [<c055207c>]    psr: 60000113
[19:58:32][    9.689343] <1>sp : db439c30  ip : db439c50  fp : db439c4c
[19:58:32][    9.691021] <1>-(1)[1:swapper/0]r10: c0c50f58  r9 : 00000009  r8 : da851004
[19:58:32][    9.691890] <1>-(1)[1:swapper/0]r7 : c0552040  r6 : da851000  r5 : c0c51468  r4 : da851020
[19:58:32][    9.692920] <1>-(1)[1:swapper/0]r3 : da71ff80  r2 : 00000063  r1 : 00000000  r0 : 00000000
[19:58:32][    9.693952] <1>-(1)[1:swapper/0]Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[19:58:32][    9.695078] <1>-(1)[1:swapper/0]Control: 10c0383d  Table: 4000406a  DAC: 00000015
[19:58:32][    9.696010] <1>-(1)[1:swapper/0]
[19:58:32][    9.696010] <1>PC: 0xc0291c50:
[19:58:32][    9.696788] 1c50  c0964314 c09642cc c0964330 e1a0c00d e92dd878 e24cb004 e5d0300c e5905030
[19:58:32][    9.697808] 1c70  e3130001 0a000001 e3a00000 e89da878 e2856040 e1a00006 eb14fc7d e1a00005
[19:58:32][    9.698827] 1c90  ebffffb4 e1a04000 e1a00006 eb14fbbc e3540000 1a000004 e5950164 e3500000
[19:58:32][    9.699847] 1cb0  0afffff0 ebffffe8 eaffffee e1a00004 e89da878 e1a0c00d e92dd878 e24cb004
[19:58:32][    9.700866] 1cd0  e5d0300c e5904030 e3130001 0a000001 e3a05000 ea000040 e5940164 e3500000
[19:58:32][    9.701886] 1cf0  1a000006 e2846040 e1a00006 eb14fc60 e5943160 e3530000 1a000005 ea000009
[19:58:32][    9.702905] 1d10  ebffffeb e3500000 0afffff5 e1a05000 ea000031 e593301c e3130010 0a000001
[19:58:32][    9.703925] 1d30  e1a00004 ebffff47 e5943008 e3530000 1a000015 e1a00004 ebfff7d4 e3700016
[19:58:32][    9.704947] <1>-(1)[1:swapper/0]
[19:58:32][    9.704947] <1>LR: 0xc0551ffc:
[19:58:32][    9.705725] 1ffc  13a03001 e3550004 13a03000 e3530000 1a000003 e2844080 eaffffa3 e3a00001
[19:58:32][    9.706745] 201c  ea000005 e3a00000 ea000003 e2855001 e3550005 1affffa3 eaffffef e24bd028
[19:58:32][    9.707764] 203c  e89daff0 e1a0c00d e92dd8f0 e24cb004 e24dd020 e59f327c e59f527c e1d330b0
[19:58:32][    9.708784] 205c  e5850004 e14b32be e3a03046 e1c030b2 e59f3268 e5933000 e5930004 ebf4ff11
[19:58:32][    9.709803] 207c  e3500000 0a000001 e59f0254 eb09d458 e3a00064 e3a06070 ebed0b9e e3a01001
[19:58:32][    9.710823] 209c  e3a00000 ebfff67f e3a00064 ebed0b99 e3a00000 e1a01000 ebfff67a e3a00064
[19:58:32][    9.711842] 20bc  ebed0b94 e3a01001 e3a00000 ebfff675 e3a00064 ebed0b8f e5950004 e54b6024
[19:58:32][    9.712862] 20dc  e3a03032 e54b3023 e24b1024 e5d03002 e3002102 e3833b06 e1c030b2 eb00205a
[19:58:32][    9.713884] <1>-(1)[1:swapper/0]
[19:58:32][    9.713884] <1>SP: 0xdb439bb0:
[19:58:32][    9.714662] 9bb0  c07d293c c0049bbc db439bf4 db439bc8 db408740 00000000 c0291cd0 60000113
[19:58:32][    9.715682] 9bd0  ffffffff db439c1c db439c4c db439be8 c0013098 c0008488 00000000 00000000
[19:58:32][    9.716702] 9bf0  00000063 da71ff80 da851020 c0c51468 da851000 c0552040 da851004 00000009
[19:58:32][    9.717721] 9c10  c0c50f58 db439c4c db439c50 db439c30 c055207c c0291cd0 60000113 ffffffff
[19:58:32][    9.718741] 9c30  da71ff80 da851020 c0c51468 da851000 db439c8c db439c50 c055207c c0291cd0
[19:58:32][    9.719760] 9c50  db439c84 db439c60 c017cca8 0720a218 da851020 c0b131b8 db439c8c db439c78
[19:58:32][    9.720780] 9c70  da851020 c0853578 da851000 c0552040 db439cb4 db439c90 c0558af8 c055204c
[19:58:32][    9.721799] 9c90  c0558a48 da851020 c0b79830 00000000 c0b131b8 c0b7983c db439cdc db439cb8
[19:58:32][    9.722821] <1>-(1)[1:swapper/0]
[19:58:32][    9.722821] <1>IP: 0xdb439bd0:
[19:58:32][    9.723600] 9bd0  ffffffff db439c1c db439c4c db439be8 c0013098 c0008488 00000000 00000000
[19:58:32][    9.724619] 9bf0  00000063 da71ff80 da851020 c0c51468 da851000 c0552040 da851004 00000009
[19:58:32][    9.725639] 9c10  c0c50f58 db439c4c db439c50 db439c30 c055207c c0291cd0 60000113 ffffffff
[19:58:32][    9.726659] 9c30  da71ff80 da851020 c0c51468 da851000 db439c8c db439c50 c055207c c0291cd0
[19:58:32][    9.727678] 9c50  db439c84 db439c60 c017cca8 0720a218 da851020 c0b131b8 db439c8c db439c78
[19:58:32][    9.728697] 9c70  da851020 c0853578 da851000 c0552040 db439cb4 db439c90 c0558af8 c055204c
[19:58:32][    9.729717] 9c90  c0558a48 da851020 c0b79830 00000000 c0b131b8 c0b7983c db439cdc db439cb8
[19:58:32][    9.730736] 9cb0  c02ada04 c0558a54 da851020 da851054 c0b131b8 00000000 c0b13174 db659a10
[19:58:32][    9.731758] <1>-(1)[1:swapper/0]
[19:58:32][    9.731758] <1>FP: 0xdb439bcc:
[19:58:32][    9.732537] 9bcc  60000113 ffffffff db439c1c db439c4c db439be8 c0013098 c0008488 00000000
[19:58:32][    9.733556] 9bec  00000000 00000063 da71ff80 da851020 c0c51468 da851000 c0552040 da851004
[19:58:32][    9.734576] 9c0c  00000009 c0c50f58 db439c4c db439c50 db439c30 c055207c c0291cd0 60000113
[19:58:32][    9.735596] 9c2c  ffffffff da71ff80 da851020 c0c51468 da851000 db439c8c db439c50 c055207c
[19:58:32][    9.736615] 9c4c  c0291cd0 db439c84 db439c60 c017cca8 0720a218 da851020 c0b131b8 db439c8c
[19:58:32][    9.737635] 9c6c  db439c78 da851020 c0853578 da851000 c0552040 db439cb4 db439c90 c0558af8
[19:58:32][    9.738654] 9c8c  c055204c c0558a48 da851020 c0b79830 00000000 c0b131b8 c0b7983c db439cdc
[19:58:32][    9.739674] 9cac  db439cb8 c02ada04 c0558a54 da851020 da851054 c0b131b8 00000000 c0b13174
[19:58:32][    9.740696] <1>-(1)[1:swapper/0]
已绑定手机
已实名认证
在一切变得简单之前,唯一答案:努力去做!
发表于 2017-12-19 11:08:55 | 显示全部楼层 来自 福建省福州市
路过!!!!!
已绑定手机
 楼主| 发表于 2017-12-19 11:09:22 | 显示全部楼层 来自 广东省深圳市南山区
完整的log,帮忙看看@felixchenjia
2017-12-19 11:08 上传
文件大小:
646.16 KB
下载次数:
6
本地下载

16RD supports Paypal , Payment is calculated at the exchange rate of the day. Unable to download please contact 18902843661 (WhatsApp OR wechat number)

关于一牛网在微软浏览器(Microsoft Edge、IE浏览器)警报通告&解决方案!(无法下载直接更换浏览器即可)

*附件为作者发布,与本站无关,如有侵权,请联系客服删除

已绑定手机
 楼主| 发表于 2017-12-19 11:11:12 | 显示全部楼层 来自 广东省深圳市南山区
felixchenjia 发表于 2017-12-19 10:15
把出错时的log贴出来啊,贴这个有什么用

完整的log,帮忙看看@felixchenjia
已绑定手机
发表于 2017-12-19 11:29:48 | 显示全部楼层 来自 湖北省武汉市
log打不开,乱码,检查tpd_i2c_probe函数,调用regulator_enable前
已绑定手机
发表于 2017-12-19 11:46:11 | 显示全部楼层 来自 广东省深圳市
:):):)
已绑定手机
 楼主| 发表于 2017-12-20 13:29:43 | 显示全部楼层 来自 广东省深圳市南山区
我也关注到这个Oops,所以追踪到了alps/kernel-3.18/drivers/regulator/core.c这个文件中regulator_enable和regulator_disable
addr2line -e out/target/product/tek6737t_36g_a_n/obj/KERNEL_OBJ/vmlinux -f -C 0xc0291c50
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

合作/建议

TEL: 19168984579

工作时间:
周一到周五 9:00-11:30 13:30-19:30
  • 扫一扫关注公众号
  • 扫一扫打开小程序
Copyright © 2013-2024 一牛网 版权所有 All Rights Reserved. 帮助中心|隐私声明|联系我们|手机版|粤ICP备13053961号|营业执照|EDI证
在本版发帖搜索
微信客服扫一扫添加微信客服
QQ客服返回顶部
快速回复 返回顶部 返回列表