Просмотр исходного кода

qcacmn: Assertion when detecting rx desc nbuf sanity check failure

Assertion when detecting rx desc nbuf sanity check failure to get more
info in the RX refill buffer ring for default version.

Change-Id: I8d0255e2f13e2b993f5651b788f895ea06187bf9
CRs-Fixed: 2800602
Tiger Yu 4 лет назад
Родитель
Сommit
eff1069f87
2 измененных файлов с 4 добавлено и 1 удалено
  1. 3 0
      dp/wifi3.0/dp_rx.c
  2. 1 1
      dp/wifi3.0/dp_rx.h

+ 3 - 0
dp/wifi3.0/dp_rx.c

@@ -2348,6 +2348,9 @@ more_data:
 		status = dp_rx_desc_nbuf_sanity_check(ring_desc, rx_desc);
 		if (qdf_unlikely(QDF_IS_STATUS_ERROR(status))) {
 			DP_STATS_INC(soc, rx.err.nbuf_sanity_fail, 1);
+			dp_info_rl("Nbuf sanity check failure!");
+			dp_rx_dump_info_and_assert(soc, hal_ring_hdl,
+						   ring_desc, rx_desc);
 			rx_desc->in_err_state = 1;
 			hal_srng_dst_get_next(hal_soc, hal_ring_hdl);
 			continue;

+ 1 - 1
dp/wifi3.0/dp_rx.h

@@ -1284,7 +1284,7 @@ int dp_wds_rx_policy_check(uint8_t *rx_tlv_hdr, struct dp_vdev *vdev,
  * @soc: core txrx main context
  * @hal_ring: opaque pointer to the HAL Rx Ring, which will be serviced
  * @ring_desc: opaque pointer to the RX ring descriptor
- * @rx_desc: host rs descriptor
+ * @rx_desc: host rx descriptor
  *
  * Return: void
  */