Commit Graph

23 Commits

Author SHA1 Message Date
Super Liu
7f3d415097 redfin: dumpstate: collect touch calibration info
Bug: 145262526
Test: check bugreport for touch snapshots
Change-Id: I0760eafcd0b9a395a00112eb7f9b7fc280945e91
2020-05-29 21:19:56 +08:00
Super Liu
6efd6a14e1 redfin: dumpstate: adjust touch snapshoots sequence
Bug: 144538796
Test: check bugreport for touch snapshots
Change-Id: If72c659349895146bf0b7d37ab5616f372552788
Signed-off-by: Super Liu <supercjliu@google.com>
2020-05-29 21:19:54 +08:00
YiHsiang Peng
3538cf4813 dumpstate: add wireless charging info in dumpstate
Bug: 146817163
Test: check dumpstate result
Change-Id: I38d9ffd31acab1208419bee792d0914cce936078
Signed-off-by: YiHsiang Peng <yihsiangpeng@google.com>
2020-05-29 21:18:52 +08:00
Jack Wu
89ba696591 dumpstate: add ttf*, smblib log and ssoc in dumpstate
also remove unused code for WLC and MAXFG

Bug: 146775451
Test: check dumpstate result
Change-Id: I3bbcfec007b1be3eb056e6e9fea92b34d19729f8
Signed-off-by: Jack Wu <wjack@google.com>
2020-05-29 21:18:52 +08:00
Gary Jian
ae6d0a3bc8 Merge "Put vendor. prefix to radio sysprops" into qt-qpr1-dev
Change-Id: I8f058961263908be1f10f2e75fc4d34b2d5ad87d
2020-05-29 21:18:47 +08:00
Gary Jian
2ba107119b Put vendor. prefix to radio sysprops
-Starting from Q-launching devices, sysprops defined in vendor partition
 should have vendor. prefix.
-porting from ag/9008775

Bug: 145484169
Test: build pass and sanity test
Change-Id: I0a4cb358e25cca692da1f2f69539f1af7bf66918
2020-05-29 21:18:47 +08:00
Gary Jian
c2d20a0e0d Merge "Add IPA statistics to bugreport" into qt-qpr1-dev
Change-Id: Iad2aba51c5dedc7097134af7c4ccdc61ba7f773b
2020-05-29 21:18:45 +08:00
Gary Jian
c1799dc575 Add IPA statistics to bugreport
-So far, It's hard to capture the IPA related debug info
 when issue happen because user need run adb command (cat /sys/kernel/debug/ipa/*)
 to trigger IPA dump the debug message.
 So add IPA statistics to bugreport for IPA related issues.
-porting from ag/9769398

Bug: 140913343
Test: 1. build pass
      2. make sure ipa_statistics_msg could be dumped into dumpstate_board.bin
         in bugreport
Change-Id: I446949fe84c6472e773a19f724fc80536660138a
2019-12-11 08:33:40 +00:00
YiHo Cheng
e892b89317 Revert "redfin:dumpstate: Temporarily disable Temperatures from dumpstate_board.bin"
This reverts commit 69484bcb07.

Reason for revert: <"Temperatures dumpstate command without timeout">

Change-Id: I291ec6f7a706b904643d0a56a500d9a3783ed6ae
2019-12-09 11:18:54 +00:00
Jason Chiu
69484bcb07 redfin:dumpstate: Temporarily disable Temperatures from dumpstate_board.bin
Bug: 145258138
Bug: 145345795
Change-Id: I6df95cc21d7fb57bc04279a0e8226160b9e3df53
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
2019-12-02 16:58:12 +08:00
TreeHugger Robot
da93f57eaf Merge "dumpstate: Remove unused codes" into qt-qpr1-dev 2019-12-02 08:04:48 +00:00
SalmaxChang
4d5a2062e8 dumpstate: Remove unused codes
Bug: 144332391
Change-Id: Id7292c62ab76fb96b6591520d6fad72cd3b93b4c
2019-12-02 13:55:22 +08:00
TeYuan Wang
0a94f25001 dumpstate: add CPU scaling_max_freq info
Bug: 145253434
Test: check dumpstate_board.txt from bugreport
Change-Id: Ie91d429990b87087babba545ac45503fe5728eeb
Signed-off-by: TeYuan Wang <kamewang@google.com>
2019-11-27 14:35:28 +08:00
TreeHugger Robot
0b423b568e Merge "dumpstate: Trigger modemstat as doing dumpstate" into qt-qpr1-dev 2019-11-20 06:07:25 +00:00
SalmaxChang
23b9c25f02 dumpstate: Trigger modemstat as doing dumpstate
Bug: 144735086

Synced from P19 I274bfdbf048131df17e7b108db43eaab7c180c68

Change-Id: I9f4863b04c2bfb6ac98b984d58e8056bf5f491b5
2019-11-19 16:45:07 +08:00
Super Liu
e42af1cfe6 redfin: dumpstate: collect touch snapshots
Bug: 144538796
Test: check bugreport for touch snapshots
Change-Id: I20edc4eefb602541987a856d90b1957a25f0a286
Signed-off-by: Super Liu <supercjliu@google.com>
2019-11-19 10:11:36 +08:00
Leo Liou
41c0c58f43 lito: dumpstate: refactor UFS dump
* show the format of req_stats
* show the format of io_stats
* Remove show_hba & err_stats

dumpstate_board:
------ UFS io_stats (/vendor/bin/sh ... ------
		ReadCnt    ReadBytes  WriteCnt   WriteBytes RWCnt      RWBytes
Started: 	28083      2026180608 6217       102711296  34300      2128891904
Completed: 	28083      2026180608 6217       102711296  34300      2128891904
MaxDiff: 	32         1855488    32         5419008    32         5861376
------ UFS req_stats (/vendor/bin/sh -c ... ------
	All        Write      Read       Read(urg)  Write(urg) Flush      Discard
Min:	27         29         27         0          47         49         402
Max:	82030      12480      37678      0          82030      3751       523
Avg.:	719        654        640        0          6383       429        468
Count:	26821579   20109241   3762901    0          2853377    92778      3282

Bug: 137150088
Test: run bugreport and capture dumpstate_board
Change-Id: I519d4d751028e127abffcd0230d0e7664aa13386
Signed-off-by: Leo Liou <leoliou@google.com>
2019-11-15 16:13:13 +08:00
Rick Chen
19d43eaa58 dumpstate: dump sensor logs to bugreport
Bug: 143451200
Test: Trigger bugreport and see sensor logs are in dumpstate_board.txt
Change-Id: I82be69e1eee5b72c86e8a43c8bf9a693dedfd636
Signed-off-by: Rick Chen <rickctchen@google.com>
Signed-off-by: emilchung <emilchung@google.com>
2019-11-07 15:57:28 +08:00
Leo Liou
bcc039b439 device: dumpstate: expand f2fs dump script
With the recent changes in partition mapping, multiple f2fs partitions
exists and is not fixed to specific dm-x. To address this, update the
script to dynamically locate f2fs partitions.

New log:
------ F2FS - fragmentation (/vendor/bin/sh -c for d in $(ls /proc/fs/f2fs/); ...
dm-4: /dev/block/mapper/scratch -> /dev/block/dm-4
format: segment_type|valid_blocks
segment_type(0:HD, 1:WD, 2:CD, 3:HN, 4:WN, 5:CN)
0         3|18  4|2   5|0   0|1   0|0   0|0   0|0   0|0   0|0   0|0
10        0|0   0|0   0|0   0|0   0|0   0|0   0|0   0|0   0|0   0|0
...
dm-5: /dev/block/mapper/userdata -> /dev/block/dm-5
format: segment_type|valid_blocks
segment_type(0:HD, 1:WD, 2:CD, 3:HN, 4:WN, 5:CN)
0         3|330 0|147 5|5   0|68  0|32  0|77  4|112 3|13  0|42  0|75
10        4|30  3|69  0|98  0|45  0|56  0|128 0|185 0|36  0|104 3|84
...

Bug: 137150088
Test: run bugreport and check f2fs dump
Change-Id: I5546f35f543628282a58dae38a72a379d5e56b0b
Signed-off-by: Leo Liou <leoliou@google.com>
2019-10-28 23:28:22 +08:00
Ocean Chen
bac2713bca dumpstate: health descriptor name changed
The health descriptor folder name was changed
from "health" to "health_descriptor".

log:
------ UFS health (/vendor/bin/sh -c for f in $(find /sys/devices/...------
--- /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/life_time_estimation_a
0x01
--- /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/life_time_estimation_b
0x01
--- /sys/devices/platform/soc/1d84000.ufshc/health_descriptor/eol_info
0x01

Bug: 137150088
Bug: 141666555
Test: Run bugreport and check ufs health
Change-Id: Iaf693cf2b259240238160f1bc10362118a2538ba
Signed-off-by: Ocean Chen <oceanchen@google.com>
2019-10-24 21:17:02 +08:00
Leo Liou
db63ecacf6 device: lito: dumpstate: cat ufs info from /proc/scsi/scsi
Bug: 137150088
Test: trigger bugreport and check the result
Change-Id: I77d89b8a09066511b50c129197367d85dad35790
2019-10-14 19:30:00 +08:00
ChengYou Ho
a7e0f4632c Update to latest and remove common part
to common folder

Bug: 140363359
Change-Id: I9319e1451dbccc9d19568bf4ae4719b2d04450eb
2019-09-10 10:59:47 +08:00
Alex Hong
1c2dbd8222 Create aosp_redfin target
Bug: 139478768
Change-Id: I061f89a72b5e7b81280406abf85cca479b86f340
2019-08-19 12:39:55 +08:00