소스 검색

qcacmn: Add WBM2SW4 support

To support IPA TX two pipes, WBM2SW4 is added as second WBM2IPA TX
transfer ring.

Change-Id: Id0762003c1d91e3614b15df2bc51f90e27add43c
CRs-Fixed: 2750073
Jia Ding 5 년 전
부모
커밋
ebe1849453
3개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      hal/wifi3.0/hal_tx.h
  2. 4 0
      hal/wifi3.0/qca6390/hal_6390.c
  3. 4 0
      hal/wifi3.0/qca6490/hal_6490.c

+ 4 - 1
hal/wifi3.0/hal_tx.h

@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2021 The Linux Foundation. All rights reserved.
  *
  * Permission to use, copy, modify, and/or distribute this software for
  * any purpose with or without fee is hereby granted, provided that the
@@ -136,6 +136,9 @@ enum hal_tx_ret_buf_manager {
 	HAL_WBM_SW1_BM_ID = 4,
 	HAL_WBM_SW2_BM_ID = 5,
 	HAL_WBM_SW3_BM_ID = 6,
+#ifdef IPA_WDI3_TX_TWO_PIPES
+	HAL_WBM_SW4_BM_ID = 7,
+#endif
 };
 
 /*---------------------------------------------------------------------------

+ 4 - 0
hal/wifi3.0/qca6390/hal_6390.c

@@ -1491,7 +1491,11 @@ struct hal_hw_srng_config hw_srng_table_6390[] = {
 	},
 	{ /* WBM2SW_RELEASE */
 		.start_ring_id = HAL_SRNG_WBM2SW0_RELEASE,
+#ifdef IPA_WDI3_TX_TWO_PIPES
+		.max_rings = 5,
+#else
 		.max_rings = 4,
+#endif
 		.entry_size = sizeof(struct wbm_release_ring) >> 2,
 		.lmac_ring = FALSE,
 		.ring_dir = HAL_SRNG_DST_RING,

+ 4 - 0
hal/wifi3.0/qca6490/hal_6490.c

@@ -2083,7 +2083,11 @@ struct hal_hw_srng_config hw_srng_table_6490[] = {
 	},
 	{ /* WBM2SW_RELEASE */
 		.start_ring_id = HAL_SRNG_WBM2SW0_RELEASE,
+#ifdef IPA_WDI3_TX_TWO_PIPES
+		.max_rings = 5,
+#else
 		.max_rings = 4,
+#endif
 		.entry_size = sizeof(struct wbm_release_ring) >> 2,
 		.lmac_ring = FALSE,
 		.ring_dir = HAL_SRNG_DST_RING,