qcacld-3.0: increase htt_htc_misc_pkt_list_trim trim level

2048 packets could be pending in the ce and the tx_queue
depth could be pending in the htc queue.

Change-Id: I2eedd9dd7300058a4b3024dd97c826c08f8c44bd
CRs-Fixed: 2019589
This commit is contained in:
Houston Hoffman
2017-03-14 16:17:03 -07:00
committed by Sandeep Puligilla
부모 91e7613911
커밋 13f4be5fb8
2개의 변경된 파일12개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@@ -149,6 +149,9 @@ htt_htc_misc_pkt_list_trim(struct htt_pdev_t *pdev, int level)
void htt_htc_misc_pkt_list_add(struct htt_pdev_t *pdev, struct htt_htc_pkt *pkt)
{
struct htt_htc_pkt_union *u_pkt = (struct htt_htc_pkt_union *)pkt;
int misclist_trim_level = htc_get_tx_queue_depth(pdev->htc_pdev,
pkt->htc_pkt.Endpoint)
+ HTT_HTC_PKT_MISCLIST_SIZE;
HTT_TX_MUTEX_ACQUIRE(&pdev->htt_tx_mutex);
if (pdev->htt_htc_pkt_misclist) {
@@ -159,7 +162,10 @@ void htt_htc_misc_pkt_list_add(struct htt_pdev_t *pdev, struct htt_htc_pkt *pkt)
}
HTT_TX_MUTEX_RELEASE(&pdev->htt_tx_mutex);
htt_htc_misc_pkt_list_trim(pdev, HTT_HTC_PKT_MISCLIST_SIZE);
/* only ce pipe size + tx_queue_depth could possibly be in use
* free older packets in the msiclist
*/
htt_htc_misc_pkt_list_trim(pdev, misclist_trim_level);
}
void htt_htc_misc_pkt_pool_free(struct htt_pdev_t *pdev)

파일 보기

@@ -48,7 +48,11 @@
#endif
#endif /* QCA_TX_HTT2_SUPPORT */
#define HTT_HTC_PKT_MISCLIST_SIZE 32
/* Set the base misclist size to the size of the htt tx copy engine
* to guarantee that a packet on the misclist wont be freed while it
* is sitting in the copy engine.
*/
#define HTT_HTC_PKT_MISCLIST_SIZE 2048
struct htt_htc_pkt {
void *pdev_ctxt;