qcacmn: Add Cached Descriptor support for DP SRNGs
Add support to configure any HAL SRNG descriptor to be allocated from cached memory area. This is to optimize of CPU cycles spent on uncached memory accesses. Also added prefetch of cached descriptors Change-Id: I2544e8596d48e2f5549bf687a764c16d73397545 CRs-fixed: 2267945
This commit is contained in:

committed by
Nitesh Shrivastav

부모
e8aab3b8ca
커밋
ab234e56f6
@@ -310,6 +310,7 @@ void *qdf_aligned_mem_alloc_consistent_fl(
|
||||
void **vaddr_unaligned, qdf_dma_addr_t *paddr_unaligned,
|
||||
qdf_dma_addr_t *paddr_aligned, uint32_t ring_base_align,
|
||||
const char *func, uint32_t line);
|
||||
#define qdf_mem_virt_to_phys(vaddr) virt_to_phys(vaddr)
|
||||
|
||||
void qdf_mem_set_io(void *ptr, uint32_t num_bytes, uint32_t value);
|
||||
|
||||
@@ -414,6 +415,14 @@ static inline uint32_t qdf_mem_map_nbytes_single(qdf_device_t osdev, void *buf,
|
||||
#endif
|
||||
}
|
||||
|
||||
static inline void qdf_mem_dma_cache_sync(qdf_device_t osdev,
|
||||
qdf_dma_addr_t buf,
|
||||
qdf_dma_dir_t dir,
|
||||
int nbytes)
|
||||
{
|
||||
__qdf_mem_dma_cache_sync(osdev, buf, dir, nbytes);
|
||||
}
|
||||
|
||||
/**
|
||||
* qdf_mem_unmap_nbytes_single() - un_map memory for DMA
|
||||
* @osdev: pomter OS device context
|
||||
|
Reference in New Issue
Block a user