|
@@ -1,7 +1,7 @@
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
/*
|
|
|
* Copyright (c) 2017-2021, The Linux Foundation. All rights reserved.
|
|
|
- * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
+ * Copyright (c) 2022-2023 Qualcomm Innovation Center, Inc. All rights reserved.
|
|
|
*/
|
|
|
|
|
|
#include <linux/debugfs.h>
|
|
@@ -1876,6 +1876,19 @@ int ipa_drop_stats_init(void)
|
|
|
®_idx);
|
|
|
pipe_bitmask[reg_idx] |= mask;
|
|
|
}
|
|
|
+
|
|
|
+ /* Add drop stats for WAN & WAN_COAL if IPA_HW >=5.5 */
|
|
|
+ if (ipa3_ctx->ipa_hw_type >= IPA_HW_v5_5) {
|
|
|
+ mask = ipa_hw_stats_get_ep_bit_n_idx(
|
|
|
+ IPA_CLIENT_APPS_WAN_CONS,
|
|
|
+ ®_idx);
|
|
|
+ pipe_bitmask[reg_idx] |= mask;
|
|
|
+
|
|
|
+ mask = ipa_hw_stats_get_ep_bit_n_idx(
|
|
|
+ IPA_CLIENT_APPS_WAN_COAL_CONS,
|
|
|
+ ®_idx);
|
|
|
+ pipe_bitmask[reg_idx] |= mask;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/* Currently we have option to enable drop stats using debugfs.
|