qcacmn: Add logic for allocation and reset of vdev_stats_id
In BE architecture, HW provides basic vdev stats support for upto 48 vdevs. For each vdev, there is vdev_stats_id which represents the id of this vdev on HW. This vdev_stats_id is assigned by host and is conveyed to HW at the time of REO TID Queue setup for the peer. Add logic for allocation and deallocation of vdev_stats_id and convey this id to HW. Change-Id: If5611bf54d057ccf71c6444b5c79a26eb28df87e CRs-Fixed: 3067843
Этот коммит содержится в:

коммит произвёл
Madan Koyyalamudi

родитель
f76548dd04
Коммит
6c7fcf1d61
@@ -66,12 +66,12 @@ uint8_t hal_rx_ret_buf_manager_get_li(hal_ring_desc_t ring_desc);
|
||||
* @hw_qdesc_vaddr: Virtual address of REO queue descriptor memory
|
||||
* @hw_qdesc_paddr: Physical address of REO queue descriptor memory
|
||||
* @pn_type: PN type (one of the types defined in 'enum hal_pn_type')
|
||||
*
|
||||
* @vdev_stats_id: vdev_stats_id
|
||||
*/
|
||||
void hal_reo_qdesc_setup_li(hal_soc_handle_t hal_soc_hdl,
|
||||
int tid, uint32_t ba_window_size,
|
||||
uint32_t start_seq, void *hw_qdesc_vaddr,
|
||||
qdf_dma_addr_t hw_qdesc_paddr,
|
||||
int pn_type);
|
||||
int pn_type, uint8_t vdev_stats_id);
|
||||
|
||||
#endif /* _HAL_LI_API_H_ */
|
||||
|
@@ -42,7 +42,7 @@ void hal_reo_qdesc_setup_li(hal_soc_handle_t hal_soc_hdl, int tid,
|
||||
uint32_t ba_window_size,
|
||||
uint32_t start_seq, void *hw_qdesc_vaddr,
|
||||
qdf_dma_addr_t hw_qdesc_paddr,
|
||||
int pn_type)
|
||||
int pn_type, uint8_t vdev_stats_id)
|
||||
{
|
||||
uint32_t *reo_queue_desc = (uint32_t *)hw_qdesc_vaddr;
|
||||
uint32_t *reo_queue_ext_desc;
|
||||
|
Ссылка в новой задаче
Block a user