Sfoglia il codice sorgente

qcacld-3.0: Initialize page size of DP cacheable resource

Set DP_BLOCKMEM_SIZE for cacheable dp multipage prealloc resource

Change-Id: I610cb3b78f8413dfbc52eee9d8b690c7bac38db0
CRs-Fixed: 3240041
Ming Jiang 2 anni fa
parent
commit
5ba58f5e9c
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      core/dp/txrx3.0/dp_txrx.c

+ 3 - 0
core/dp/txrx3.0/dp_txrx.c

@@ -724,6 +724,9 @@ QDF_STATUS dp_prealloc_init(struct cdp_ctrl_objmgr_psoc *ctrl_psoc)
 		mp->in_use = false;
 		dp_update_num_elements_by_desc_type(&cfg, mp->desc_type,
 						    &mp->element_num);
+		if (mp->cacheable)
+			mp->pages.page_size = DP_BLOCKMEM_SIZE;
+
 		qdf_mem_multi_pages_alloc(qdf_ctx, &mp->pages,
 					  mp->element_size,
 					  mp->element_num,