qcacmn: Avoid read access to IPA TX doorbell address

Below signature is seen on sdxpinn when HOST reads IPA TX
doorbell address, which leads to HLOS crash.

Internal error: synchronous external abort: 96000010

Indeed IPA TX doorbell address is write-only. Behaviors
on such read access violation is arch-dependent. On
certains platforms, such violation is ignored but read
returns 0.

Hence remove the read access to IPA TX doorbell address
in hal_srng_dst_init_hp() to avoid arch-dependent
behavior.

Change-Id: I3486cd81741922e697e2b3d307db3209b710aa6a
CRs-Fixed: 3339302
此提交包含在:
Jia Ding
2022-11-17 15:04:11 +08:00
提交者 Madan Koyyalamudi
父節點 80db72a890
當前提交 a606a71b1e

查看文件

@@ -1407,10 +1407,9 @@ void hal_srng_dst_init_hp(struct hal_soc_handle *hal_soc,
if (vaddr) {
*srng->u.dst_ring.hp_addr = srng->u.dst_ring.cached_hp;
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
"hp_addr=%pK, cached_hp=%d, hp=%d",
"hp_addr=%pK, cached_hp=%d",
(void *)srng->u.dst_ring.hp_addr,
srng->u.dst_ring.cached_hp,
*srng->u.dst_ring.hp_addr);
srng->u.dst_ring.cached_hp);
}
}