mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
msm: pil: bootkpi: Add conditional boot marker for modem
Add conditional boot marker for modem sub-system in peripheral loader driver. Condition is added to find subsystem and place marker only for modem subsystem. Signed-off-by: Remil Ram <remilr@codeaurora.org> Change-Id: I5697b78e0a8322477e78d7b5f9814e1c18b42152
This commit is contained in:
parent
a9eb6ca4c9
commit
cc470bb8af
2 changed files with 13 additions and 1 deletions
|
|
@ -868,6 +868,10 @@ static int pil_init_mmap(struct pil_desc *desc, const struct pil_mdt *mdt)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
#ifdef CONFIG_QGKI_MSM_BOOT_TIME_MARKER
|
||||
if (!strcmp(desc->name, "modem"))
|
||||
place_marker("M - Modem Image Start Loading");
|
||||
#endif
|
||||
|
||||
pil_info(desc, "loading from %pa to %pa\n", &priv->region_start,
|
||||
&priv->region_end);
|
||||
|
|
@ -1324,6 +1328,12 @@ int pil_boot(struct pil_desc *desc)
|
|||
goto err_auth_and_reset;
|
||||
}
|
||||
trace_pil_event("reset_done", desc);
|
||||
|
||||
#ifdef CONFIG_QGKI_MSM_BOOT_TIME_MARKER
|
||||
if (!strcmp(desc->name, "modem"))
|
||||
place_marker("M - Modem out of reset");
|
||||
#endif
|
||||
|
||||
pil_info(desc, "Brought out of reset\n");
|
||||
desc->modem_ssr = false;
|
||||
err_auth_and_reset:
|
||||
|
|
|
|||
|
|
@ -8,7 +8,9 @@
|
|||
#include <linux/mailbox_client.h>
|
||||
#include <linux/mailbox/qmp.h>
|
||||
#include "minidump_private.h"
|
||||
|
||||
#ifdef CONFIG_QGKI_MSM_BOOT_TIME_MARKER
|
||||
#include <soc/qcom/boot_stats.h>
|
||||
#endif
|
||||
#define SECURE_PAGE_MAGIC 0xEEEEEEEE
|
||||
struct device;
|
||||
struct module;
|
||||
|
|
|
|||
Loading…
Reference in a new issue