qcacmn: Add support to map generic shadow regs

Add apis to map generic registers to shadow region. Existing
logic includes mapping only srng based regs to the shadow
region.
Add support to map REO control regs and WBM2SW2 rel
ring HP reg address to the shadow region in case the direct
reg writes in IPA enable/disable autonomy fail due to UMAC
block being in a power collapsed state.
Shadow reg mapping for these regs is provided to FW during
init. Add stat shadow_reg_write_fail to track shadow reg
write failure and shadow_reg_write_succ to track successful
shadow writes.

Change-Id: I04790765a3de80047689657e2cad0b73123440b9
CRs-Fixed: 2790321
这个提交包含在:
Nisha Menon
2020-10-10 21:05:47 -07:00
提交者 snandini
父节点 43757caf1b
当前提交 a377301c78
修改 9 个文件,包含 363 行新增29 行删除

查看文件

@@ -31,6 +31,9 @@
#include "dp_rx.h"
#include "dp_ipa.h"
/* Ring index for WBM2SW2 release ring */
#define IPA_TX_COMP_RING_IDX HAL_IPA_TX_COMP_RING_IDX
/* Hard coded config parameters until dp_ops_cfg.cfg_attach implemented */
#define CFG_IPA_UC_TX_BUF_SIZE_DEFAULT (2048)
@@ -1766,7 +1769,9 @@ QDF_STATUS dp_ipa_enable_pipes(struct cdp_soc_t *soc_hdl, uint8_t pdev_id)
}
if (soc->ipa_first_tx_db_access) {
hal_srng_dst_init_hp(wbm_srng, ipa_res->tx_comp_doorbell_vaddr);
hal_srng_dst_init_hp(
soc->hal_soc, wbm_srng,
ipa_res->tx_comp_doorbell_vaddr);
soc->ipa_first_tx_db_access = false;
}