qcacmn: Avoid using small buffer address

On some third-party platforms, we observe the memory physical
address below 0x2000 is allocated will cause HW/FW NOC error,
so this region memory should not use by host.

This change will hold the memory if the allocated memory physical
address below 0x2000 until driver unload.

Change-Id: I9d5df20cbdf23c230d7c910cce9b9489dd9dd614
CRs-Fixed: 3419648
这个提交包含在:
Zhiwei Yang
2023-02-20 18:39:33 +08:00
提交者 Gerrit - the friendly Code Review server
父节点 d7d85dfad9
当前提交 f52c8b1f36
修改 2 个文件,包含 202 行新增0 行删除

查看文件

@@ -1487,4 +1487,45 @@ int
qdf_iommu_domain_get_attr(qdf_iommu_domain_t *domain,
enum qdf_iommu_attr attr, void *data);
#endif
#define DEFAULT_DEBUG_DOMAIN_INIT 0
#ifdef QCA_DMA_PADDR_CHECK
/**
* qdf_dma_invalid_buf_list_init() - Initialize dma invalid buffer list
*
* Return: none
*/
void qdf_dma_invalid_buf_list_init(void);
/**
* qdf_dma_invalid_buf_list_deinit() - Deinitialize dma invalid buffer list
*
* Return: none
*/
void qdf_dma_invalid_buf_list_deinit(void);
/**
* qdf_dma_invalid_buf_free() - Free dma invalid buffer
* @dev: Pointer to device handle
* @domain: Debug domain
*
* Return: none
*/
void qdf_dma_invalid_buf_free(void *dev, uint8_t domain);
#else
static inline void
qdf_dma_invalid_buf_list_init(void)
{
}
static inline void
qdf_dma_invalid_buf_list_deinit(void)
{
}
static inline void
qdf_dma_invalid_buf_free(void *dev, uint8_t domain)
{
}
#endif /* QCA_DMA_PADDR_CHECK */
#endif /* __QDF_MEMORY_H */