Merge "ath10k: update the Rx ring fill level for wcn3990 target"
This commit is contained in:
commit
6c6796dc24
1 changed files with 10 additions and 1 deletions
|
@ -27,6 +27,7 @@
|
|||
|
||||
#define HTT_RX_RING_SIZE HTT_RX_RING_SIZE_MAX
|
||||
#define HTT_RX_RING_FILL_LEVEL (((HTT_RX_RING_SIZE) / 2) - 1)
|
||||
#define HTT_RX_RING_FILL_LEVEL_DUAL_MAC (HTT_RX_RING_SIZE - 1)
|
||||
|
||||
/* when under memory pressure rx ring refill may fail and needs a retry */
|
||||
#define HTT_RX_RING_REFILL_RETRY_MS 50
|
||||
|
@ -471,7 +472,15 @@ int ath10k_htt_rx_alloc(struct ath10k_htt *htt)
|
|||
*/
|
||||
htt->rx_ring.size = HTT_RX_RING_SIZE;
|
||||
htt->rx_ring.size_mask = htt->rx_ring.size - 1;
|
||||
|
||||
switch (ar->hw_rev) {
|
||||
case ATH10K_HW_WCN3990:
|
||||
htt->rx_ring.fill_level = HTT_RX_RING_FILL_LEVEL_DUAL_MAC;
|
||||
break;
|
||||
default:
|
||||
htt->rx_ring.fill_level = HTT_RX_RING_FILL_LEVEL;
|
||||
break;
|
||||
}
|
||||
|
||||
if (!is_power_of_2(htt->rx_ring.size)) {
|
||||
ath10k_warn(ar, "htt rx ring size is not power of 2\n");
|
||||
|
|
Loading…
Add table
Reference in a new issue