qcacmn: Limit the desc pools limit avoid crossing cc ppt max entries

Limit the desc pools such that the max ppt entries
do not cross limit for the hardware cookie conversion.

Change-Id: I9149b20bea0d72b466ef8c3e2ee9c0b536ffe24e
CRs-Fixed: 3201792
此提交包含在:
Pavankumar Nandeshwar
2022-05-22 22:37:38 -07:00
提交者 Madan Koyyalamudi
父節點 aeacfe3922
當前提交 5885ff85be
共有 3 個檔案被更改,包括 9 行新增7 行删除

查看文件

@@ -405,6 +405,10 @@ dp_hw_cookie_conversion_init(struct dp_soc_be *be_soc,
DP_CC_PPT_ENTRY_HW_APEND_BITS_4K_ALIGNED));
ppt_index = ppt_id_start + i;
if (ppt_index >= DP_CC_PPT_MAX_ENTRIES)
qdf_assert_always(0);
spt_desc[i].ppt_index = ppt_index;
be_soc->page_desc_base[ppt_index].page_v_addr =