Merge "ath10k: update the Rx ring fill level for wcn3990 target"

This commit is contained in:
Linux Build Service Account 2017-01-30 07:04:47 -08:00 committed by Gerrit - the friendly Code Review server
commit 6c6796dc24

View file

@ -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;
htt->rx_ring.fill_level = HTT_RX_RING_FILL_LEVEL;
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");