Bug #114334

Bug #111192: 【Figure】【EVT3】【EE】【启动时间1分6秒】【Performance】

【BSP】【Touch】【EVT】需要把TP的驱动ko化,以优化1.2s的开机时间。

Added by CD SYSTEM-龚元祝 over 2 years ago. Updated over 2 years ago.

Status:CLOSEDStart date:2022-12-06
Priority:NormalDue date:2023-02-15
Assignee:移动测试一组_CDTS 刘强% Done:

100%

Category:BSP
Target version:-
Need_Info:-- Found Version:every version
Resolution:FIXED Degrated:--
Severity:Normal Verified Version:
Reproducibility:Every time Fixed Version:
Test Type:ST Root cause:驱动加载冗余,增加了开机时长

Description

Line 921: [ 1.776541] cyttsp7_i2c_adapter 0-0024: cyttsp7_init: INIT CYTTSP RST gpio=1106 and IRQ gpio=1107 ERR gpio=1123
Line 923: [ 1.868047] cyttsp7_i2c_adapter 0-0024: cyttsp7_xres: RESET CYTTSP gpio=1106 r=0
Line 925: [ 1.868207] cyttsp7_i2c_adapter 0-0024: cyttsp7_handle_work_function: Fail read adapter r=-107
Line 941: [ 2.880055] cyttsp7_i2c_adapter 0-0024: cyttsp7_wait_bl_heartbeat: tmo waiting bl heartbeat cd->mode=0
Line 942: [ 2.880065] cyttsp7_i2c_adapter 0-0024: cyttsp7_startup_: Error on h/w reset r=-62
Line 943: [ 2.880073] cyttsp7_i2c_adapter 0-0024: cyttsp7_startup_: cyttsp7_exit startup rc=-19...
Line 945: [ 2.880223] cyttsp7_i2c_adapter 0-0024: cyttsp7_core_sleep_device: Fail read adapter r=-107
Line 946: [ 2.880231] cyttsp7_i2c_adapter 0-0024: _cyttsp7_core_sleep
: sleep state rc -107
Line 947: [ 2.924074] cyttsp7_i2c_adapter 0-0024: cyttsp7_core_rt_suspend: Error on sleep
Line 948: [ 2.924082] cyttsp7_i2c_adapter 0-0024: cyttsp7_probe: Fail initial startup r=-19
Line 949: [ 2.924165] cyttsp7_i2c_adapter 0-0024: cyttsp7_probe failed.

d.txt Magnifier (482 KB) 移动测试一组_CDTS 刘强, 2022-12-13 19:53

l.txt Magnifier (2.78 MB) 移动测试一组_CDTS 刘强, 2022-12-13 19:53

History

#1 Updated by CDTS-TEST 周婷 over 2 years ago

  • Target version set to VX1_MCE_FSE_V5.0_20221230

#2 Updated by CD SYSTEM-龚元祝 over 2 years ago

  • Assignee changed from CD BSP-余霄 to CD SYSTEM-龚元祝
  • Target version deleted (VX1_MCE_FSE_V5.0_20221230)

max96755 和 cyttsp7 驱动ko化,提升开机时间1.6s左右。
代码提交如下:
https://dev.thundercomm.com/gerrit/c/general/platform/vendor/opensource/display-drivers/+/168624
https://dev.thundercomm.com/gerrit/c/general/platform/vendor/qcom/kona/+/168260
https://dev.thundercomm.com/gerrit/c/general/kernel/msm-4.19/+/168261

**************************************************************************************
Line 12: 01-01 10:11:47.538 0 0 I : Booting Linux on physical CPU 0x0000000000 [0x51df805e]
Line 1216: 01-01 10:11:48.783 0 0 I init : init first stage started!
Line 1268: 01-01 10:11:50.126 0 0 I init : init second stage started!
Line 1793: 01-01 10:11:51.250 504 504 F DEBUG : Cmdline: /system/bin/init second_stage
Line 3084: 01-01 10:11:52.292 668 668 I boot_progress_start: 5364
Line 3204: 01-01 10:11:52.718 668 668 I boot_progress_preload_start: 5790
Line 3644: 01-01 10:11:53.668 668 668 I boot_progress_preload_end: 6740
Line 3799: 01-01 10:11:54.107 1489 1489 I boot_progress_system_run: 7179
Line 4273: 01-01 10:11:54.938 1489 1489 I boot_progress_pms_start: 8010
Line 4459: 01-01 10:11:55.014 1489 1489 I boot_progress_pms_system_scan_start: 8086
Line 4502: 01-01 10:11:55.393 1489 1489 I boot_progress_pms_data_scan_start: 8465
Line 4511: 01-01 10:11:55.397 1489 1489 I boot_progress_pms_scan_end: 8469
Line 4521: 01-01 10:11:55.456 1489 1489 I boot_progress_pms_ready: 8528
Line 5654: 12-08 19:44:51.471 1489 1489 I boot_progress_ams_ready: 9126
Line 7033: 12-08 19:44:52.196 1489 1575 I boot_progress_enable_screen: 9852

#3 Updated by CD SYSTEM-龚元祝 over 2 years ago

  • Status changed from New to RESOLVED
  • Assignee changed from CD SYSTEM-龚元祝 to CDTS_TEST 王成

请用以下VB验证开机时间,并对屏幕和触摸做压测,看是否会发生异常。
/Pre_figure/VerifyBuild/Pre_figure_turbox-c2130c-la1.1-qssi12-dev/20221208/202212081841-1724

#4 Updated by CDTS_TEST 王成 over 2 years ago

  • Assignee changed from CDTS_TEST 王成 to 移动测试一组_CDTS 刘强

logcat -b events | grep boot_progress 看最后那个时间 用现在的user版和这个VB版本各跑5次 对比一下看是不是提升了1.6s(触摸优化1.2s display芯片优化了400ms)左右。没优化的版本kernel到enable_screen花的时间大概11-12秒,优化后大概在9.8-10秒左右

#5 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Status changed from RESOLVED to VERIFY_FAILED
  • Assignee changed from 移动测试一组_CDTS 刘强 to CD SYSTEM-龚元祝

验证版本:1724_FlatBuild_HH_VX1_MCE_FSE.M.D.user.01.00.X101.202212082110
验证结果:验证失败,该版本烧机启动后,触控无法使用

#6 Updated by CD SYSTEM-龚元祝 over 2 years ago

  • Status changed from VERIFY_FAILED to RESOLVED
  • Assignee changed from CD SYSTEM-龚元祝 to 移动测试一组_CDTS 刘强

请用下面这个VB验证一下VC1和VX1的触摸屏是否能正常使用:
/Pre_figure/VerifyBuild/Pre_figure_turbox-c2130c-la1.1-qssi12-dev/20221213/202212131605-1776

如果不能正常使用,请在开机后抓取如下log:
adb root
adb shell dmesg > d.txt
adb logcat > l.txt

#7 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • File d.txtMagnifier added
  • File l.txtMagnifier added
  • Assignee changed from 移动测试一组_CDTS 刘强 to CD SYSTEM-龚元祝

验证失败,设备烧机后,屏幕亮了,但是没有任何画面,点击屏幕也没有反应
抓取了以下日志:
adb shell dmesg > d.txt
adb logcat > l.txt

#8 Updated by CD SYSTEM-龚元祝 over 2 years ago

  • Category set to SYSTEM

#9 Updated by CD SYSTEM-龚元祝 over 2 years ago

  • Category deleted (SYSTEM)
  • Assignee changed from CD SYSTEM-龚元祝 to 移动测试一组_CDTS 刘强

请用下面的VB验证开机时间。
/Pre_figure/VerifyBuild/Pre_figure_turbox-c2130c-la1.1-qssi12-dev/20221215/202212151447-1818

#10 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

vb验证通过:之前版本在11.52s左右
01-01 08:09:30.298 658 658 I boot_progress_start: 5429
01-01 08:09:30.758 658 658 I boot_progress_preload_start: 5889
01-01 08:09:31.738 658 658 I boot_progress_preload_end: 6869
01-01 08:09:31.990 1499 1499 I boot_progress_system_run: 7121
01-01 08:09:32.793 1499 1499 I boot_progress_pms_start: 7924
01-01 08:09:32.871 1499 1499 I boot_progress_pms_system_scan_start: 8002
01-01 08:09:33.263 1499 1499 I boot_progress_pms_data_scan_start: 8394
01-01 08:09:33.267 1499 1499 I boot_progress_pms_scan_end: 8398
01-01 08:09:33.321 1499 1499 I boot_progress_pms_ready: 8452
12-15 15:22:41.601 1499 1499 I boot_progress_ams_ready: 9166
12-15 15:22:42.412 1499 1578 I boot_progress_enable_screen: 9978

#11 Updated by IoT scm over 2 years ago

Gerrit Merge Information
ID Project Branch Uploader
168624 general/platform/vendor/opensource/display-drivers Pre_figure_turbox-c2130c-la1.1-vendor-dev
SYSTEM:PERFORMANCE: max96755,cyttsp7 and atmel_mxt driver changed to ko. 1/3
1 max96755 cyttsp7 atmel_mxt driver changed to ko.
2 insmod them in early-init.
3 shorten boot time about 1.6s.
TC-RID: 1200-0800202
IssueID: TS-R-DF-114334
Change-Id: Id9319d398a51002e74782e508706a71ce11a9d70

#12 Updated by IoT scm over 2 years ago

Gerrit Merge Information
ID Project Branch Uploader
168261 general/kernel/msm-4.19 Pre_figure_turbox-c2130c-la1.1-vendor-dev
SYSTEM:PERFORMANCE: cyttsp7 and atmel_mxt driver changed to ko. 3/3
1 cyttsp7 and atmel_mxt driver changed to ko.
2 insmod them in early-init.
3 shorten boot time about 1.6s.
TC-RID: 1200-0800202
IssueID: TS-R-DF-114334
Change-Id: I7e6a9f7169969d7796f3b0c2aaebb366214fc6f0

#13 Updated by IoT scm over 2 years ago

Gerrit Merge Information
ID Project Branch Uploader
170808 general/vendor/thundercomm/products/figure Pre_figure_turbox-c2130c-la1.1-vendor-dev
SYSTEM:PERFORMANCE: cyttsp7 and atmel_mxt driver changed to ko. 2/3
1 cyttsp7 and atmel_mxt driver changed to ko.
2 insmod them in boot stage.
3 shorten boot time about 1.6s.
Change-Id: Ib17368e3c42632d40047e5c0ed9064751219d1fe
TC-RID: 1200-0800202
IssueID: TS-R-DF-114334

#14 Updated by IoT scm over 2 years ago

Gerrit Merge Information
ID Project Branch Uploader
171347 general/kernel/msm-4.19 Pre_figure_turbox-c2130c-la1.1-vendor-ftm-dvt1
SYSTEM:PERFORMANCE: cyttsp7 and atmel_mxt driver changed to ko. 3/3
1 cyttsp7 and atmel_mxt driver changed to ko.
2 insmod them in early-init.
3 shorten boot time about 1.6s.
TC-RID: 1200-0800202
IssueID: TS-R-DF-114334
Change-Id: I7e6a9f7169969d7796f3b0c2aaebb366214fc6f0

#15 Updated by IoT scm over 2 years ago

Gerrit Merge Information
ID Project Branch Uploader
171283 general/vendor/thundercomm/products/figure Pre_figure_turbox-c2130c-la1.1-vendor-ftm-dvt1
SYSTEM:PERFORMANCE: cyttsp7 and atmel_mxt driver changed to ko. 2/3
1 cyttsp7 and atmel_mxt driver changed to ko.
2 insmod them in boot stage.
3 shorten boot time about 1.6s.
Change-Id: Ib17368e3c42632d40047e5c0ed9064751219d1fe
TC-RID: 1200-0800202
IssueID: TS-R-DF-114334

#16 Updated by IoT scm over 2 years ago

Gerrit Merge Information
ID Project Branch Uploader
171284 general/platform/vendor/opensource/display-drivers Pre_figure_turbox-c2130c-la1.1-vendor-ftm-dvt1
SYSTEM:PERFORMANCE: max96755,cyttsp7 and atmel_mxt driver changed to ko. 1/3
1 max96755 cyttsp7 atmel_mxt driver changed to ko.
2 insmod them in early-init.
3 shorten boot time about 1.6s.
TC-RID: 1200-0800202
IssueID: TS-R-DF-114334
Change-Id: Id9319d398a51002e74782e508706a71ce11a9d70

#17 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Status changed from RESOLVED to VERIFIED

测试版本:FlatBuild_HH_VX1_MCE_FSE.M.R.userdebug.01.00.0060.X101
验证结果:对比修改之前11.67s,缩短约1.8s
λ aadb logcat b events | grep boot_progress
waiting for device -
01-01 08:07:36.293 660 660 I boot_progress_start: 5170
01-01 08:07:36.773 660 660 I boot_progress_preload_start: 5650
01-01 08:07:37.932 660 660 I boot_progress_preload_end: 6809
01-01 08:07:38.219 1519 1519 I boot_progress_system_run: 7096
01-01 08:07:38.824 1519 1519 I boot_progress_pms_start: 7701
01-01 08:07:38.903 1519 1519 I boot_progress_pms_system_scan_start: 7780
01-01 08:07:39.276 1519 1519 I boot_progress_pms_data_scan_start: 8153
01-01 08:07:39.278 1519 1519 I boot_progress_pms_scan_end: 8155
01-01 08:07:39.335 1519 1519 I boot_progress_pms_ready: 8213
12-20 17:06:04.833 1519 1519 I boot_progress_ams_ready: 9154
12-20 17:06:05.457 1519 1597 I boot_progress_enable_screen: 9778

#18 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Status changed from VERIFIED to CLOSED

#19 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Category set to BSP

#20 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Status changed from CLOSED to New

该修改会导致偶现触控不可用问题,因此reopen

#21 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Assignee changed from 移动测试一组_CDTS 刘强 to CD SYSTEM-胡兵

#22 Updated by CD SYSTEM-胡兵 over 2 years ago

  • Assignee changed from CD SYSTEM-胡兵 to CD BSP-杜磊

#23 Updated by CD BSP-杜磊 over 2 years ago

  • % Done changed from 0 to 40

当前优先优化VC1 touch开机时间问题

#24 Updated by CD BSP-杜磊 over 2 years ago

  • Due date changed from 2022-12-24 to 2023-02-07

#25 Updated by CD BSP-杜磊 over 2 years ago

当前状态:
VX1 优化后:
01-01 08:30:13.285 665 665 I boot_progress_start: 6135
01-01 08:30:13.728 665 665 I boot_progress_preload_start: 6578
01-01 08:30:14.596 665 665 I boot_progress_preload_end: 7445
01-01 08:30:14.787 1517 1517 I boot_progress_system_run: 7637
01-01 08:30:15.224 1517 1517 I boot_progress_pms_start: 8073
01-01 08:30:15.310 1517 1517 I boot_progress_pms_system_scan_start: 8159
01-01 08:30:15.850 1517 1517 I boot_progress_pms_data_scan_start: 8699
01-01 08:30:15.853 1517 1517 I boot_progress_pms_scan_end: 8702
01-01 08:30:15.922 1517 1517 I boot_progress_pms_ready: 8771
01-30 20:21:47.730 1517 1517 I boot_progress_ams_ready: 9648
01-30 20:21:48.610 1517 1604 I boot_progress_enable_screen: 10529

DB版本优化前:
01-01 08:05:44.304 666 666 I boot_progress_start: 7408
01-01 08:05:44.759 666 666 I boot_progress_preload_start: 7863
01-01 08:05:45.603 666 666 I boot_progress_preload_end: 8707
01-01 08:05:45.802 1518 1518 I boot_progress_system_run: 8906
01-01 08:05:46.226 1518 1518 I boot_progress_pms_start: 9330
01-01 08:05:46.312 1518 1518 I boot_progress_pms_system_scan_start: 9416
01-01 08:05:46.838 1518 1518 I boot_progress_pms_data_scan_start: 9942
01-01 08:05:46.840 1518 1518 I boot_progress_pms_scan_end: 9944
01-01 08:05:46.904 1518 1518 I boot_progress_pms_ready: 10008
02-01 10:51:38.633 1518 1518 I boot_progress_ams_ready: 10799
02-01 10:51:39.533 1518 1611 I boot_progress_enable_screen: 11699

#26 Updated by CD BSP-杜磊 over 2 years ago

  • Status changed from New to NEED_INFO
  • Assignee changed from CD BSP-杜磊 to 移动测试一组_CDTS 刘强

刘强,

帮忙用VC1验证一下开机时间是否达标, 由于优化了Touch, 所有要验证touch反复重启后是否能正常工作
ftp://cdiot@192.168.87.46/Pre_figure/VerifyBuild/Pre_figure_turbox-c2130c-la1.1-qssi12-dev/20230203/202302032005-2450/FlatBuild_HH_VX1_MCE_FSE.M.D.user.01.00.X101.202302032238.zip

谢谢

#27 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Status changed from NEED_INFO to ASSIGNED
  • Assignee changed from 移动测试一组_CDTS 刘强 to CD BSP-杜磊

验证版本:FlatBuild_HH_VX1_MCE_FSE.M.D.user.01.00.X101.202302032238
验证结果:开机时间对比之前11.52s,优化约1.7s

01-01 08:00:07.658 672 672 I boot_progress_start: 5420
01-01 08:00:08.105 672 672 I boot_progress_preload_start: 5868
01-01 08:00:08.908 672 672 I boot_progress_preload_end: 6670
01-01 08:00:09.095 1505 1505 I boot_progress_system_run: 6858
01-01 08:00:09.568 1505 1505 I boot_progress_pms_start: 7330
01-01 08:00:09.652 1505 1505 I boot_progress_pms_system_scan_start: 7415
01-01 08:00:10.168 1505 1505 I boot_progress_pms_data_scan_start: 7930
01-01 08:00:10.171 1505 1505 I boot_progress_pms_scan_end: 7933
01-01 08:00:10.255 1505 1505 I boot_progress_pms_ready: 8018
02-03 20:55:50.687 1505 1505 I boot_progress_ams_ready: 8859
02-03 20:55:51.553 1505 1604 I boot_progress_enable_screen: 9725

重启验证:目前断电重启32次,未复现触控不可用情况

#28 Updated by IoT scm over 2 years ago

Gerrit Merge Information
ID Project Branch Uploader
177177 general/kernel/msm-4.19 Pre_figure_turbox-c2130c-la1.1-vendor-dev
BSP:TP: Optimize VC1 touch startup time
Optimize VC1 touch startup time
TC-RID: 1201-0100401
IssueID: TS-R-DF-114334
Change-Id: I3d82c320b258c901aee6c6394dad376306c0de74

#29 Updated by CD BSP-杜磊 over 2 years ago

Hi,刘强,

帮忙验证一下这个VB版本,VX1的Touch 开机时间和反复重启后能否正常使用,热插拔。
ftp://cdiot@192.168.87.46/Pre_figure/VerifyBuild/Pre_figure_turbox-c2130c-la1.1-qssi12-dev/20230209/202302091941-2529

#30 Updated by CD BSP-杜磊 over 2 years ago

  • Subject changed from 需要把TP的驱动ko化,以优化1.2s的开机时间。 to 【BSP】【Touch】【EVT】需要把TP的驱动ko化,以优化1.2s的开机时间。

#31 Updated by CDTS-TEST 周婷 over 2 years ago

  • Due date changed from 2023-02-07 to 2023-02-15

#32 Updated by CD BSP-杜磊 over 2 years ago

  • Status changed from ASSIGNED to NEED_INFO
  • Assignee changed from CD BSP-杜磊 to 移动测试一组_CDTS 刘强
  • % Done changed from 40 to 60

#33 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Status changed from NEED_INFO to ASSIGNED

验证版本:ftp://cdiot@192.168.87.46/Pre_figure/VerifyBuild/Pre_figure_turbox-c2130c-la1.1-qssi12-dev/20230209/202302091941-2529
开机时间VC1 板子:
从上电开始-屏幕亮屏出现开机动画耗时:13.91s
从上电开始-到进入操作界面=44.36s;其中开机动画占约30s,因此,合计开机时间约14s左右,目前符合要求,等后续开机动画正式版本
λ adb logcat -b all | grep boot_progress
01-01 11:06:05.312 664 664 I boot_progress_start: 5623
01-01 11:06:05.794 664 664 I boot_progress_preload_start: 6105
01-01 11:06:06.826 664 664 I boot_progress_preload_end: 7137
01-01 11:06:07.103 1497 1497 I boot_progress_system_run: 7414
01-01 11:06:07.540 1497 1497 I boot_progress_pms_start: 7852
01-01 11:06:07.627 1497 1497 I boot_progress_pms_system_scan_start: 7938
01-01 11:06:08.101 1497 1497 I boot_progress_pms_data_scan_start: 8413
01-01 11:06:08.103 1497 1497 I boot_progress_pms_scan_end: 8415
01-01 11:06:08.164 1497 1497 I boot_progress_pms_ready: 8475
02-09 21:28:02.651 1497 1497 I boot_progress_ams_ready: 9258
02-09 21:28:03.437 1497 1599 I boot_progress_enable_screen: 10044

开机时间VX1:
从上电开始-屏幕亮屏出现开机动画耗时:14.16s
从上电开始-到进入操作界面=44.50s;其中开机动画占约30s,因此,合计开机时间约14s左右,目前符合要求,等后续开机动画正式版本
liuqiang0703@xp027325 ~
λ adb logcat b all | grep boot_progress
waiting for device -
01-01 08:00:08.294 669 669 I boot_progress_start: 5975
01-01 08:00:08.715 669 669 I boot_progress_preload_start: 6395
01-01 08:00:09.726 669 669 I boot_progress_preload_end: 7406
01-01 08:00:09.965 1512 1512 I boot_progress_system_run: 7645
01-01 08:00:10.463 1512 1512 I boot_progress_pms_start: 8144
01-01 08:00:10.554 1512 1512 I boot_progress_pms_system_scan_start: 8234
01-01 08:00:10.973 1512 1512 I boot_progress_pms_data_scan_start: 8653
01-01 08:00:10.975 1512 1512 I boot_progress_pms_scan_end: 8656
01-01 08:00:11.032 1512 1512 I boot_progress_pms_ready: 8712
02-09 21:28:02.713 1512 1512 I boot_progress_ams_ready: 9549
02-09 21:28:03.442 1512 1588 I boot_progress_enable_screen: 10278

综上目前开机时间符合要求,等正式开机动画合入

#34 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Assignee changed from 移动测试一组_CDTS 刘强 to CD BSP-杜磊

#35 Updated by IoT scm over 2 years ago

Gerrit Merge Information
ID Project Branch Uploader
178194 general/kernel/msm-4.19 Pre_figure_turbox-c2130c-la1.1-vendor-dev
BSP:TP: Optimize VX1 touch startup time
Optimize VX1 touch startup time
TC-RID: 1201-0100401
IssueID: TS-R-DF-114334
Change-Id: Ic5ae10722d949a6e990b38c5cd5f11e17c8e294b

#36 Updated by CD BSP-杜磊 over 2 years ago

此问题已fix, 代码已入库,请close此任务。

#37 Updated by CD BSP-杜磊 over 2 years ago

  • Status changed from ASSIGNED to RESOLVED
  • Assignee changed from CD BSP-杜磊 to 移动测试一组_CDTS 刘强
  • % Done changed from 60 to 100
  • Resolution changed from -- to FIXED
  • Root cause set to 驱动加载冗余,增加了开机时长

#38 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Status changed from RESOLVED to VERIFIED

验证版本:FlatBuild_HH_VX1_MCE_FSE.M.R.user.01.00.0075.X101
验证结果:从上电至亮屏14s左右,进入操作界面约44s,满足15s内的要求

#39 Updated by 移动测试一组_CDTS 刘强 over 2 years ago

  • Status changed from VERIFIED to CLOSED

Also available in: Atom PDF