]> git.baikalelectronics.ru Git - kernel.git/commitdiff
remoteproc: qcom_q6v5_mss: Update MBA log info
authorSibi Sankar <quic_sibis@quicinc.com>
Tue, 24 May 2022 12:45:34 +0000 (18:15 +0530)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 18 Jul 2022 20:32:33 +0000 (15:32 -0500)
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 <quic_sibis@quicinc.com>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/1653396335-6295-2-git-send-email-quic_sibis@quicinc.com
drivers/remoteproc/qcom_q6v5_mss.c

index 4b37e11fbb03f73bbbb1df3aaded7d7dce649ebb..46ca841371c8df4784df78d6c3042766e23f4ebe 100644 (file)
@@ -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");