|
@@ -618,6 +618,100 @@ qdf_size_t dp_get_soc_context_size_be(void)
|
|
return sizeof(struct dp_soc_be);
|
|
return sizeof(struct dp_soc_be);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#ifdef NO_RX_PKT_HDR_TLV
|
|
|
|
+/**
|
|
|
|
+ * dp_rxdma_ring_sel_cfg_be() - Setup RXDMA ring config
|
|
|
|
+ * @soc: Common DP soc handle
|
|
|
|
+ *
|
|
|
|
+ * Return: QDF_STATUS
|
|
|
|
+ */
|
|
|
|
+static QDF_STATUS
|
|
|
|
+dp_rxdma_ring_sel_cfg_be(struct dp_soc *soc)
|
|
|
|
+{
|
|
|
|
+ int i;
|
|
|
|
+ int mac_id;
|
|
|
|
+ struct htt_rx_ring_tlv_filter htt_tlv_filter = {0};
|
|
|
|
+ struct dp_srng *rx_mac_srng;
|
|
|
|
+ QDF_STATUS status = QDF_STATUS_SUCCESS;
|
|
|
|
+
|
|
|
|
+ /*
|
|
|
|
+ * In Beryllium chipset msdu_start, mpdu_end
|
|
|
|
+ * and rx_attn are part of msdu_end/mpdu_start
|
|
|
|
+ */
|
|
|
|
+ htt_tlv_filter.msdu_start = 0;
|
|
|
|
+ htt_tlv_filter.mpdu_end = 0;
|
|
|
|
+ htt_tlv_filter.attention = 0;
|
|
|
|
+ htt_tlv_filter.mpdu_start = 1;
|
|
|
|
+ htt_tlv_filter.msdu_end = 1;
|
|
|
|
+ htt_tlv_filter.packet = 1;
|
|
|
|
+ htt_tlv_filter.packet_header = 1;
|
|
|
|
+
|
|
|
|
+ htt_tlv_filter.ppdu_start = 0;
|
|
|
|
+ htt_tlv_filter.ppdu_end = 0;
|
|
|
|
+ htt_tlv_filter.ppdu_end_user_stats = 0;
|
|
|
|
+ htt_tlv_filter.ppdu_end_user_stats_ext = 0;
|
|
|
|
+ htt_tlv_filter.ppdu_end_status_done = 0;
|
|
|
|
+ htt_tlv_filter.enable_fp = 1;
|
|
|
|
+ htt_tlv_filter.enable_md = 0;
|
|
|
|
+ htt_tlv_filter.enable_md = 0;
|
|
|
|
+ htt_tlv_filter.enable_mo = 0;
|
|
|
|
+
|
|
|
|
+ htt_tlv_filter.fp_mgmt_filter = 0;
|
|
|
|
+ htt_tlv_filter.fp_ctrl_filter = FILTER_CTRL_BA_REQ;
|
|
|
|
+ htt_tlv_filter.fp_data_filter = (FILTER_DATA_UCAST |
|
|
|
|
+ FILTER_DATA_MCAST |
|
|
|
|
+ FILTER_DATA_DATA);
|
|
|
|
+ htt_tlv_filter.mo_mgmt_filter = 0;
|
|
|
|
+ htt_tlv_filter.mo_ctrl_filter = 0;
|
|
|
|
+ htt_tlv_filter.mo_data_filter = 0;
|
|
|
|
+ htt_tlv_filter.md_data_filter = 0;
|
|
|
|
+
|
|
|
|
+ htt_tlv_filter.offset_valid = true;
|
|
|
|
+
|
|
|
|
+ /* Not subscribing to mpdu_end, msdu_start and rx_attn */
|
|
|
|
+ htt_tlv_filter.rx_mpdu_end_offset = 0;
|
|
|
|
+ htt_tlv_filter.rx_msdu_start_offset = 0;
|
|
|
|
+ htt_tlv_filter.rx_attn_offset = 0;
|
|
|
|
+
|
|
|
|
+ htt_tlv_filter.rx_packet_offset = soc->rx_pkt_tlv_size;
|
|
|
|
+ /*Not subscribing rx_pkt_header*/
|
|
|
|
+ htt_tlv_filter.rx_header_offset = 0;
|
|
|
|
+ htt_tlv_filter.rx_mpdu_start_offset =
|
|
|
|
+ hal_rx_mpdu_start_offset_get(soc->hal_soc);
|
|
|
|
+ htt_tlv_filter.rx_msdu_end_offset =
|
|
|
|
+ hal_rx_msdu_end_offset_get(soc->hal_soc);
|
|
|
|
+
|
|
|
|
+ for (i = 0; i < MAX_PDEV_CNT; i++) {
|
|
|
|
+ struct dp_pdev *pdev = soc->pdev_list[i];
|
|
|
|
+
|
|
|
|
+ if (!pdev)
|
|
|
|
+ continue;
|
|
|
|
+
|
|
|
|
+ for (mac_id = 0; mac_id < NUM_RXDMA_RINGS_PER_PDEV; mac_id++) {
|
|
|
|
+ int mac_for_pdev =
|
|
|
|
+ dp_get_mac_id_for_pdev(mac_id, pdev->pdev_id);
|
|
|
|
+ /*
|
|
|
|
+ * Obtain lmac id from pdev to access the LMAC ring
|
|
|
|
+ * in soc context
|
|
|
|
+ */
|
|
|
|
+ int lmac_id =
|
|
|
|
+ dp_get_lmac_id_for_pdev_id(soc, mac_id,
|
|
|
|
+ pdev->pdev_id);
|
|
|
|
+
|
|
|
|
+ rx_mac_srng = dp_get_rxdma_ring(pdev, lmac_id);
|
|
|
|
+
|
|
|
|
+ if (!rx_mac_srng->hal_srng)
|
|
|
|
+ continue;
|
|
|
|
+
|
|
|
|
+ htt_h2t_rx_ring_cfg(soc->htt_handle, mac_for_pdev,
|
|
|
|
+ rx_mac_srng->hal_srng,
|
|
|
|
+ RXDMA_BUF, RX_DATA_BUFFER_SIZE,
|
|
|
|
+ &htt_tlv_filter);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return status;
|
|
|
|
+}
|
|
|
|
+#else
|
|
/**
|
|
/**
|
|
* dp_rxdma_ring_sel_cfg_be() - Setup RXDMA ring config
|
|
* dp_rxdma_ring_sel_cfg_be() - Setup RXDMA ring config
|
|
* @soc: Common DP soc handle
|
|
* @soc: Common DP soc handle
|
|
@@ -732,6 +826,7 @@ dp_rxdma_ring_sel_cfg_be(struct dp_soc *soc)
|
|
return status;
|
|
return status;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
|
|
|
|
#ifdef WLAN_FEATURE_NEAR_FULL_IRQ
|
|
#ifdef WLAN_FEATURE_NEAR_FULL_IRQ
|
|
/**
|
|
/**
|