qcacmn: Add srng pointer register writing history support

Add srng pointer register writing history, it is helpful
for debugging srng HP/TP update issue from host side.
(1) if host faced UMAC source ring, record the HP value and timestamp
when host write the register.
(2) if host faced UMAC destination ring, record the TP value and
timestamp when host write the register.

Change-Id: Ib98e48e1d32defb0d8b30b854b5b0c23691cca59
CRs-Fixed: 3427908
此提交包含在:
Jinwei Chen
2023-03-07 22:11:31 -08:00
提交者 Madan Koyyalamudi
父節點 a9dbdc28df
當前提交 95dcc45ec2
共有 3 個檔案被更改,包括 85 行新增0 行删除

查看文件

@@ -467,6 +467,7 @@ static inline void hal_srng_write_address_32_mb(struct hal_soc *hal_soc,
uint32_t value)
{
qdf_iowrite32(addr, value);
hal_srng_reg_his_add(srng, value);
}
#elif defined(FEATURE_HAL_DELAYED_REG_WRITE)
static inline void hal_srng_write_address_32_mb(struct hal_soc *hal_soc,
@@ -483,6 +484,7 @@ static inline void hal_srng_write_address_32_mb(struct hal_soc *hal_soc,
uint32_t value)
{
hal_write_address_32_mb(hal_soc, addr, value, false);
hal_srng_reg_his_add(srng, value);
}
#endif