ソースを参照

qcacld-3.0: Use only 2 copy engine for RFS in Genoa

Use only 2 copy engine channels for RFS in QCN7605
(Genoa) if IPA is enabled.

Change-Id: Iabc1c21960807c707b2c9c2ad66d2e426dcb38ab
CRs-Fixed: 2265172
Nirav Shah 6 年 前
コミット
23054cfb6d
1 ファイル変更28 行追加0 行削除
  1. 28 0
      core/dp/htt/htt.c

+ 28 - 0
core/dp/htt/htt.c

@@ -325,6 +325,31 @@ void htt_clear_bundle_stats(htt_pdev_handle pdev)
  *
  * Return: 0 for success or error code.
  */
+
+#if defined(QCN7605_SUPPORT) && defined(IPA_OFFLOAD)
+
+/* In case of QCN7605 with IPA offload only 2 CE
+ * are used for RFS
+ */
+static int
+htt_htc_attach_all(struct htt_pdev_t *pdev)
+{
+	if (htt_htc_attach(pdev, HTT_DATA_MSG_SVC))
+		goto flush_endpoint;
+
+	if (htt_htc_attach(pdev, HTT_DATA2_MSG_SVC))
+		goto flush_endpoint;
+
+	return 0;
+
+flush_endpoint:
+	htc_flush_endpoint(pdev->htc_pdev, ENDPOINT_0, HTC_TX_PACKET_TAG_ALL);
+
+	return -EIO;
+}
+
+#else
+
 static int
 htt_htc_attach_all(struct htt_pdev_t *pdev)
 {
@@ -344,6 +369,9 @@ flush_endpoint:
 
 	return -EIO;
 }
+
+#endif
+
 #else
 /**
  * htt_htc_attach_all() - Connect to HTC service for HTT