mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC PATCH 0/1] Add driver to read secondary bootloader (XBL) log
@ 2023-08-22 12:15 Ninad Naik
  2023-08-22 12:15 ` [RFC PATCH 1/1] soc: qcom: " Ninad Naik
  2023-08-28 17:19 ` [RFC PATCH 0/1] " Arun Kumar Neelakantam
  0 siblings, 2 replies; 18+ messages in thread
From: Ninad Naik @ 2023-08-22 12:15 UTC (permalink / raw)
  To: agross, andersson, konrad.dybcio
  Cc: psodagud, quic_ppareek, quic_kprasan, linux-kernel,
	linux-arm-msm, kernel, Ninad Naik

Boot time logs for Qualcomm secondary boot-loader or XBL can help to
identify different set of information regarding firmware configuration,
SoC boot KPIs. A dedicated region is carved out in the memory map in order
to store this log in the memory.

The objective of this driver is to read the XBL boot log stored in
this memory region post boot-up, and provide an entry in debugfs, which
can be used to read back the logs and print them on to the console.

Further, this log can be parsed to extract different set of information
as required.

For example, one use case can be parsing boot time KPIs to calculate,
 - PBL End time
 - SBL End time
 - UEFI Start/Stop time

Corresponding log contents as captured in /sys/kernel/debug/xbl_log entry
which prints the above counters,

        S -     59378 - PBL, End
        B -     68198 - SBL1, Start
        B -   1308877 - SBL1, End
        UEFI Start     [ 3370]
         - 0x0AF001000 [ 3375] Sec.efi
        UEFI Total : 466 m
        POST Time      [ 3836] OS Loader
         - 0x0ABE10000 [ 3838] LinuxLoader.efi
        Exit EBS        [ 4878] UEFI End

        /* Note - these are few excerpts picked from the complete XBL log
         *        as tested on SA8775p
         */

Ninad Naik (1):
  soc: qcom: Add driver to read secondary bootloader (XBL) log

 drivers/soc/qcom/Kconfig        |  13 +++
 drivers/soc/qcom/Makefile       |   1 +
 drivers/soc/qcom/dump_xbl_log.c | 139 ++++++++++++++++++++++++++++++++
 3 files changed, 153 insertions(+)
 create mode 100644 drivers/soc/qcom/dump_xbl_log.c

-- 
2.41.0


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2023-09-12 16:12 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-22 12:15 [RFC PATCH 0/1] Add driver to read secondary bootloader (XBL) log Ninad Naik
2023-08-22 12:15 ` [RFC PATCH 1/1] soc: qcom: " Ninad Naik
2023-08-22 12:39   ` Pavan Kondeti
2023-08-23 11:06     ` Ninad Naik
2023-08-22 12:43   ` Bryan O'Donoghue
2023-08-22 15:14     ` Jeff Johnson
2023-08-23 11:08       ` Ninad Naik
2023-08-23 11:08     ` Ninad Naik
2023-08-22 13:41   ` Srinivas Kandagatla
2023-08-23 11:09     ` Ninad Naik
2023-08-22 16:08   ` Trilok Soni
2023-08-23 11:16     ` Ninad Naik
2023-08-23 19:32       ` Trilok Soni
2023-08-28 17:19 ` [RFC PATCH 0/1] " Arun Kumar Neelakantam
2023-08-28 18:44   ` Trilok Soni
2023-08-28 19:20     ` Bjorn Andersson
2023-09-12 16:08     ` Nikunj Kela
2023-09-12 16:11       ` Trilok Soni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®