net: ipc_router: Boot kpi for qmi readiness
Adding boot kpi marker to identify qmi readiness.
It will log qmi readiness for modem services.
Change-Id: I15f31b4ef7f8f11f9fde8fa5cc01a37e1c672e2f
Signed-off-by: Arun Prakash <app@codeaurora.org>
diff --git a/net/ipc_router/ipc_router_core.c b/net/ipc_router/ipc_router_core.c
index d62b582..0e5571d 100644
--- a/net/ipc_router/ipc_router_core.c
+++ b/net/ipc_router/ipc_router_core.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -430,12 +430,19 @@
(xchng_type == IPC_ROUTER_LOG_EVENT_RX ? "RX" :
(xchng_type == IPC_ROUTER_LOG_EVENT_TX ? "TX" : "ERR")),
msg->cmd, msg->cli.node_id, msg->cli.port_id);
- else if (msg->cmd == IPC_ROUTER_CTRL_CMD_HELLO && hdr)
+ else if (msg->cmd == IPC_ROUTER_CTRL_CMD_HELLO && hdr) {
IPC_RTR_INFO(log_ctx,
"CTL MSG %s cmd:0x%x ADDR:0x%x",
(xchng_type == IPC_ROUTER_LOG_EVENT_RX ? "RX" :
(xchng_type == IPC_ROUTER_LOG_EVENT_TX ? "TX" : "ERR")),
msg->cmd, hdr->src_node_id);
+ if (hdr->src_node_id == 0 || hdr->src_node_id == 3)
+ pr_err("%s: Modem QMI Readiness %s cmd:0x%x ADDR:0x%x\n",
+ __func__,
+ (xchng_type == IPC_ROUTER_LOG_EVENT_RX ? "RX" :
+ (xchng_type == IPC_ROUTER_LOG_EVENT_TX ? "TX" :
+ "ERR")), msg->cmd, hdr->src_node_id);
+ }
else
IPC_RTR_INFO(log_ctx,
"%s UNKNOWN cmd:0x%x",