mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
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: Jagadeesh Ponduru <quic_jponduru@quicinc.com>
This commit is contained in:
parent
6bc469fdf0
commit
a4dde7e6f9
3 changed files with 7 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// 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;
|
||||
|
||||
|
|
|
|||
|
|
@ -1414,6 +1414,7 @@ fail_wq:
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
/* 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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue