qcacmn: Reset the mask for rx err ring
Reset the mask for rx error ring when wlan nss offload is enabled Change-Id: Ieebcb9c1b6f47f255c8d193c8c0068b1cab9b22f
This commit is contained in:

committed by
snandini

parent
864714139c
commit
857e8a7579
@@ -2948,6 +2948,7 @@ static uint8_t dp_soc_ring_if_nss_offloaded(struct dp_soc *soc, enum hal_ring_ty
|
|||||||
case WBM2SW_RELEASE:
|
case WBM2SW_RELEASE:
|
||||||
case REO_DST:
|
case REO_DST:
|
||||||
case RXDMA_BUF:
|
case RXDMA_BUF:
|
||||||
|
case REO_EXCEPTION:
|
||||||
status = ((nss_config) & (1 << ring_num));
|
status = ((nss_config) & (1 << ring_num));
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@@ -3109,6 +3110,28 @@ static void dp_soc_reset_intr_mask(struct dp_soc *soc)
|
|||||||
wlan_cfg_set_host2rxdma_ring_mask(soc->wlan_cfg_ctx,
|
wlan_cfg_set_host2rxdma_ring_mask(soc->wlan_cfg_ctx,
|
||||||
group_number, mask);
|
group_number, mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
grp_mask = &soc->wlan_cfg_ctx->int_rx_err_ring_mask[0];
|
||||||
|
|
||||||
|
for (j = 0; j < num_ring; j++) {
|
||||||
|
if (!dp_soc_ring_if_nss_offloaded(soc, REO_EXCEPTION, j)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Group number corresponding to rx err ring.
|
||||||
|
*/
|
||||||
|
group_number = dp_srng_find_ring_in_mask(j, grp_mask);
|
||||||
|
if (group_number < 0) {
|
||||||
|
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_DEBUG,
|
||||||
|
FL("ring not part of any group; ring_type: %d,ring_num %d"),
|
||||||
|
REO_EXCEPTION, j);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
wlan_cfg_set_rx_err_ring_mask(soc->wlan_cfg_ctx,
|
||||||
|
group_number, 0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef IPA_OFFLOAD
|
#ifdef IPA_OFFLOAD
|
||||||
|
Reference in New Issue
Block a user