Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cc470bb8 authored by Remil Ram's avatar Remil Ram Committed by Melody Olvera
Browse files

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: default avatarRemil Ram <remilr@codeaurora.org>
Change-Id: I5697b78e0a8322477e78d7b5f9814e1c18b42152
parent a9eb6ca4
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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:
+3 −1
Original line number Diff line number Diff line
@@ -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;