soc: qcom: boot_stats: Add driver support for boot_stats
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest3 patches 19 repliesIn review
- v53 patches 4 repliesSuperseded
- v43 patches 14 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 3 patches | 4 replies | Superseded | |
| v2 | 3 patches | 10 replies | Superseded | |
| v1 | 4 patches | 17 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dt-bindings: sram: qcom,imem: Add Boot Stat region within IMEMDocumentation/ | +22 | 9 replies | |
| 2/3 | soc: qcom: boot_stat: Add Driver Support for Boot StatsDocumentation/ drivers/ drivers/ +1 more | +128 | 10 replies | |
| 3/3 | MAINTAINERS: Add the entry for boot_stats driver supportMAINTAINERS | +7 | 0 replies |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Krzysztof Kozlowski |
|---|---|
| 1/3 | R-b |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH V6 0/3] soc: qcom: boot_stats: Add driver support for boot_stats
Qualcomm's proprietary Android boot-loaders capture boot time stats, like the time when the bootloader started execution and at what point the bootloader handed over control to the kernel etc. in the IMEM region. This information is captured in a specific format by this driver by mapping a structure to the IMEM memory region and then accessing the members of the structure to log the information in a debugfs file. This information is useful in verifying if existing boot KPIs have regressed or not.
A sample log in SM8450(waipio) device is as follows:-
/sys/kernel/debug/qcom_boot_stats # cat abl_time 17898 ms/sys/kernel/debug/qcom_boot_stats # cat pre_abl_time 2879 ms
The Module Power Manager(MPM) sleep counter starts ticking at the PBL stage and the timestamp generated by the sleep counter is logged by the Qualcomm proprietary bootloader(ABL) at two points-> First when it starts execution which is logged here as "pre_abl_time" and the second when it is about to load the kernel logged as "abl_time". Both these values are read up by the driver from IMEM region and printed as above.
Changes in V6
*Implemented the comments on V4 and V5 of the patch
Souradeep Chowdhury (3):
dt-bindings: sram: qcom,imem: Add Boot Stat region within IMEM
soc: qcom: boot_stat: Add Driver Support for Boot Stats
MAINTAINERS: Add the entry for boot_stats driver support
.../ABI/testing/debugfs-driver-bootstat | 17 +++ .../devicetree/bindings/sram/qcom,imem.yaml | 22 ++++ MAINTAINERS | 7 ++ drivers/soc/qcom/Kconfig | 10 ++ drivers/soc/qcom/Makefile | 1 + drivers/soc/qcom/boot_stats.c | 100 ++++++++++++++++++ 6 files changed, 157 insertions(+) create mode 100644 Documentation/ABI/testing/debugfs-driver-bootstat create mode 100644 drivers/soc/qcom/boot_stats.c
Signature · 1 line
2.17.1