浏览代码

Merge "msm:ipa: add stats for low latency data-path"

qctecmdr 4 年之前
父节点
当前提交
8ca7410b47
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 5 1
      drivers/platform/msm/ipa/ipa_v3/ipa_dp.c
  2. 2 0
      drivers/platform/msm/ipa/ipa_v3/ipa_i.h

+ 5 - 1
drivers/platform/msm/ipa/ipa_v3/ipa_dp.c

@@ -2000,6 +2000,8 @@ fail_kmem_cache_alloc:
 			IPA_STATS_INC_CNT(ipa3_ctx->stats.wan_repl_rx_empty);
 		else if (sys->ep->client == IPA_CLIENT_APPS_LAN_CONS)
 			IPA_STATS_INC_CNT(ipa3_ctx->stats.lan_repl_rx_empty);
+		else if (sys->ep->client == IPA_CLIENT_APPS_WAN_LOW_LAT_CONS)
+			IPA_STATS_INC_CNT(ipa3_ctx->stats.low_lat_repl_rx_empty);
 		pr_err_ratelimited("%s sys=%pK repl ring empty\n",
 				__func__, sys);
 		goto begin;
@@ -2663,8 +2665,10 @@ static void ipa3_fast_replenish_rx_cache(struct ipa3_sys_context *sys)
 			IPA_STATS_INC_CNT(ipa3_ctx->stats.wan_rx_empty);
 		else if (sys->ep->client == IPA_CLIENT_APPS_LAN_CONS)
 			IPA_STATS_INC_CNT(ipa3_ctx->stats.lan_rx_empty);
+		else if (sys->ep->client == IPA_CLIENT_APPS_WAN_LOW_LAT_CONS)
+			IPA_STATS_INC_CNT(ipa3_ctx->stats.low_lat_rx_empty);
 		else
-			WARN_ON(1);
+			WARN_ON_RATELIMIT_IPA(1);
 		queue_delayed_work(sys->wq, &sys->replenish_rx_work,
 				msecs_to_jiffies(1));
 	}

+ 2 - 0
drivers/platform/msm/ipa/ipa_v3/ipa_i.h

@@ -1410,6 +1410,8 @@ struct ipa3_stats {
 	u32 wan_repl_rx_empty;
 	u32 lan_rx_empty;
 	u32 lan_repl_rx_empty;
+	u32 low_lat_rx_empty;
+	u32 low_lat_repl_rx_empty;
 	u32 flow_enable;
 	u32 flow_disable;
 	u32 tx_non_linear;