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

Commit a4dde7e6 authored by Jagadeesh Ponduru's avatar Jagadeesh Ponduru Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa3: add debug stats in case of pipe setup fail



Adding changes to have a stats when the apps system
pipes failed to setup.

Change-Id: I5cbe23d77736f447665db5258e21386f220d1096
Signed-off-by: default avatarJagadeesh Ponduru <quic_jponduru@quicinc.com>
parent 6bc469fd
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved.
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#ifdef CONFIG_DEBUG_FS
@@ -1359,6 +1360,7 @@ static ssize_t ipa3_read_stats(struct file *file, char __user *ubuf,
		"flow_disable=%u\n"
		"rx_page_drop_cnt=%u\n"
		"lower_order=%u\n",
		"pipe_setup_fail_cnt=%u\n",
		ipa3_ctx->stats.tx_sw_pkts,
		ipa3_ctx->stats.tx_hw_pkts,
		ipa3_ctx->stats.tx_non_linear,
@@ -1376,7 +1378,8 @@ static ssize_t ipa3_read_stats(struct file *file, char __user *ubuf,
		ipa3_ctx->stats.flow_enable,
		ipa3_ctx->stats.flow_disable,
		ipa3_ctx->stats.rx_page_drop_cnt,
		ipa3_ctx->stats.lower_order
		ipa3_ctx->stats.lower_order,
		ipa3_ctx->stats.pipe_setup_fail_cnt
		);
	cnt += nbytes;

+1 −0
Original line number Diff line number Diff line
@@ -1414,6 +1414,7 @@ int ipa3_setup_sys_pipe(struct ipa_sys_connect_params *sys_in, u32 *clnt_hdl)
fail_and_disable_clocks:
	IPA_ACTIVE_CLIENTS_DEC_EP(sys_in->client);
fail_gen:
	IPA_STATS_INC_CNT(ipa3_ctx->stats.pipe_setup_fail_cnt);
	return result;
}

+2 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved.
 * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
 */

#ifndef _IPA3_I_H_
@@ -1449,6 +1450,7 @@ struct ipa3_stats {
	u32 rx_page_drop_cnt;
	struct ipa3_page_recycle_stats page_recycle_stats[2];
	u64 lower_order;
	u32 pipe_setup_fail_cnt;
};

/* offset for each stats */