mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
ICNSS2: Send MSA address range to firmware
Send MSA segment of DDR to FW with IOVA range as part of Host Capability. So that FW detect invalid host DDR access before SMMU fault happens. Change-Id: I21c011b50c54f37dd7b5a942e1914c1afdf6d766 Signed-off-by: Naman Padhiar <npadhiar@codeaurora.org>
This commit is contained in:
parent
9297104f83
commit
3566a6afd5
1 changed files with 4 additions and 0 deletions
|
|
@ -2321,8 +2321,12 @@ int wlfw_host_cap_send_sync(struct icnss_priv *priv)
|
|||
req->ddr_range_valid = 1;
|
||||
req->ddr_range[0].start = iova_start;
|
||||
req->ddr_range[0].size = iova_size + iova_ipa_size;
|
||||
req->ddr_range[1].start = priv->msa_pa;
|
||||
req->ddr_range[1].size = priv->msa_mem_size;
|
||||
icnss_pr_dbg("Sending iova starting 0x%llx with size 0x%llx\n",
|
||||
req->ddr_range[0].start, req->ddr_range[0].size);
|
||||
icnss_pr_dbg("Sending msa starting 0x%llx with size 0x%llx\n",
|
||||
req->ddr_range[1].start, req->ddr_range[1].size);
|
||||
}
|
||||
|
||||
req->host_build_type_valid = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue