From 63e11434734f47ea4add8d3140ae8c5938357918 Mon Sep 17 00:00:00 2001 From: Utkarsh Saxena Date: Sun, 22 Jan 2017 22:04:13 +0530 Subject: msm: ipa: Fix WDI2.0 stats New stat param "num_qmb_int_handled" is added to rx_ch_stats by IPA uC in WDI2.0. This results in a size mismatch and WDI stats feature is broken. Make a change to update the new param "num_qmb_int_handled" in rx_ch_stats structure. Also make a change to read all the rx_ch_stats to avoid printing stale values. Change-Id: I5d141f531f1cfdab0bd0056041e22acb26657960 Acked-by: Chaitanya Pratapa Signed-off-by: Utkarsh Saxena --- include/linux/ipa.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/linux/ipa.h') diff --git a/include/linux/ipa.h b/include/linux/ipa.h index d545604cc22d..c11a5c4afece 100644 --- a/include/linux/ipa.h +++ b/include/linux/ipa.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. +/* Copyright (c) 2012-2017, 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 @@ -901,6 +901,7 @@ struct IpaHwRingStats_t { * injected due to vdev_id change * @num_ic_inj_fw_desc_change : Number of times the Imm Cmd is * injected due to fw_desc change + * @num_qmb_int_handled : Number of QMB interrupts handled */ struct IpaHwStatsWDIRxInfoData_t { u32 max_outstanding_pkts; @@ -914,6 +915,7 @@ struct IpaHwStatsWDIRxInfoData_t { u32 num_pkts_in_dis_uninit_state; u32 num_ic_inj_vdev_change; u32 num_ic_inj_fw_desc_change; + u32 num_qmb_int_handled; u32 reserved1; u32 reserved2; } __packed; -- cgit v1.2.3