aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSibi Sankar <[email protected]>2022-05-24 18:15:34 +0530
committerBjorn Andersson <[email protected]>2022-07-18 15:32:33 -0500
commit2aa9f1aaa0670ad3b15a0dfb50a8606694f21e25 (patch)
treebda790b6d6d1a4dfa3a3d00a6e10a40f7fc56a1d
parentd0c11db55d9bded61e17846ccf9b47c75717deb3 (diff)
remoteproc: qcom_q6v5_mss: Update MBA log info
Update MBA text logs location/size in IMEM to aid tools extract them after ramdump collection. The size of the MBA text logs is pre-determined and limited to 4K. Signed-off-by: Sibi Sankar <[email protected]> Signed-off-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected]
-rw-r--r--drivers/remoteproc/qcom_q6v5_mss.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c
index 4b37e11fbb03..46ca841371c8 100644
--- a/drivers/remoteproc/qcom_q6v5_mss.c
+++ b/drivers/remoteproc/qcom_q6v5_mss.c
@@ -1128,6 +1128,9 @@ static int q6v5_mba_load(struct q6v5 *qproc)
if (ret)
goto reclaim_mba;
+ if (qproc->has_mba_logs)
+ qcom_pil_info_store("mba", qproc->mba_phys, MBA_LOG_SIZE);
+
ret = q6v5_rmb_mba_wait(qproc, 0, 5000);
if (ret == -ETIMEDOUT) {
dev_err(qproc->dev, "MBA boot timed out\n");