qcacmn: Add rind id info in TX HW descriptor history

Add ring id info in TX HW descriptor event history,
this helps to map history event to corresponding HW TX
ring in multi TX queue enabled case.

Change-Id: I82dcece76b1342f4086d489ba489da7c20ea6cad
CRs-Fixed: 3294177
This commit is contained in:
Karthik Kantamneni
2022-09-14 15:43:27 +05:30
committed by Madan Koyyalamudi
parent 8be4fef5d9
commit 276f3b27ac
4 changed files with 6 additions and 4 deletions

View File

@@ -902,7 +902,7 @@ dp_set_rtpm_tput_policy_requirement(struct cdp_soc_t *soc_hdl,
static inline void
dp_tx_hw_desc_update_evt(uint8_t *hal_tx_desc_cached,
hal_ring_handle_t hal_ring_hdl,
struct dp_soc *soc)
struct dp_soc *soc, uint8_t ring_id)
{
struct dp_tx_hw_desc_history *tx_hw_desc_history =
&soc->tx_hw_desc_history;
@@ -922,13 +922,14 @@ dp_tx_hw_desc_update_evt(uint8_t *hal_tx_desc_cached,
evt = &tx_hw_desc_history->entry[slot][idx];
qdf_mem_copy(evt->tcl_desc, hal_tx_desc_cached, HAL_TX_DESC_LEN_BYTES);
evt->posted = qdf_get_log_timestamp();
evt->tcl_ring_id = ring_id;
hal_get_sw_hptp(soc->hal_soc, hal_ring_hdl, &evt->tp, &evt->hp);
}
#else
static inline void
dp_tx_hw_desc_update_evt(uint8_t *hal_tx_desc_cached,
hal_ring_handle_t hal_ring_hdl,
struct dp_soc *soc)
struct dp_soc *soc, uint8_t ring_id)
{
}
#endif