* [V4 1/2] remoteproc: qcom_q6v5_mss: Update MBA log info
2022-05-24 12:45 [V4 0/2] Add modem debug features Sibi Sankar
@ 2022-05-24 12:45 ` Sibi Sankar
2022-05-24 12:45 ` [V4 2/2] remoteproc: qcom_q6v5: Introduce panic handler for MSS Sibi Sankar
` (2 subsequent siblings)
3 siblings, 0 replies; 6+ messages in thread
From: Sibi Sankar @ 2022-05-24 12:45 UTC (permalink / raw)
To: bjorn.andersson
Cc: agross, mathieu.poirier, linux-arm-msm, linux-remoteproc,
linux-kernel, Sibi Sankar
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>
---
We update the imem only for remoteprocs that support mba logging
otherwise the post mortem tools will show garbled data while
reading the first 4K region from MBA on unsupported SoCs.
(MBA logs are officially supported on SC7180/SC7280 SoCs only)
drivers/remoteproc/qcom_q6v5_mss.c | 3 +++
1 file changed, 3 insertions(+)
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");
--
2.7.4
^ permalink raw reply related [flat|nested] 6+ messages in thread* [V4 2/2] remoteproc: qcom_q6v5: Introduce panic handler for MSS
2022-05-24 12:45 [V4 0/2] Add modem debug features Sibi Sankar
2022-05-24 12:45 ` [V4 1/2] remoteproc: qcom_q6v5_mss: Update MBA log info Sibi Sankar
@ 2022-05-24 12:45 ` Sibi Sankar
2022-05-26 11:08 ` [V4 0/2] Add modem debug features Pavel Machek
2022-07-18 22:59 ` Bjorn Andersson
3 siblings, 0 replies; 6+ messages in thread
From: Sibi Sankar @ 2022-05-24 12:45 UTC (permalink / raw)
To: bjorn.andersson
Cc: agross, mathieu.poirier, linux-arm-msm, linux-remoteproc,
linux-kernel, Sibi Sankar
Make the MSS q6v5 remoteproc drivers implement the panic handler
that will invoke a stop to prepare the remoteprocs for post mortem
debugging.
Signed-off-by: Sibi Sankar <quic_sibis@quicinc.com>
---
drivers/remoteproc/qcom_q6v5_mss.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/drivers/remoteproc/qcom_q6v5_mss.c b/drivers/remoteproc/qcom_q6v5_mss.c
index 46ca841371c8..8a66e70e3bfd 100644
--- a/drivers/remoteproc/qcom_q6v5_mss.c
+++ b/drivers/remoteproc/qcom_q6v5_mss.c
@@ -1623,11 +1623,19 @@ static int qcom_q6v5_register_dump_segments(struct rproc *rproc,
return ret;
}
+static unsigned long q6v5_panic(struct rproc *rproc)
+{
+ struct q6v5 *qproc = (struct q6v5 *)rproc->priv;
+
+ return qcom_q6v5_panic(&qproc->q6v5);
+}
+
static const struct rproc_ops q6v5_ops = {
.start = q6v5_start,
.stop = q6v5_stop,
.parse_fw = qcom_q6v5_register_dump_segments,
.load = q6v5_load,
+ .panic = q6v5_panic,
};
static void qcom_msa_handover(struct qcom_q6v5 *q6v5)
--
2.7.4
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [V4 0/2] Add modem debug features
2022-05-24 12:45 [V4 0/2] Add modem debug features Sibi Sankar
2022-05-24 12:45 ` [V4 1/2] remoteproc: qcom_q6v5_mss: Update MBA log info Sibi Sankar
2022-05-24 12:45 ` [V4 2/2] remoteproc: qcom_q6v5: Introduce panic handler for MSS Sibi Sankar
@ 2022-05-26 11:08 ` Pavel Machek
2022-05-26 11:27 ` Sibi Sankar
2022-07-18 22:59 ` Bjorn Andersson
3 siblings, 1 reply; 6+ messages in thread
From: Pavel Machek @ 2022-05-26 11:08 UTC (permalink / raw)
To: Sibi Sankar
Cc: bjorn.andersson, agross, mathieu.poirier, linux-arm-msm,
linux-remoteproc, linux-kernel
Hi!
> The series adds support for the following modem debug features:
> * Pass on MBA log info to imem
> * Add panic handler for mss
Can I get you to cc phone-devel mailing list?
Thanks,
Pavel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [V4 0/2] Add modem debug features
2022-05-26 11:08 ` [V4 0/2] Add modem debug features Pavel Machek
@ 2022-05-26 11:27 ` Sibi Sankar
0 siblings, 0 replies; 6+ messages in thread
From: Sibi Sankar @ 2022-05-26 11:27 UTC (permalink / raw)
To: Pavel Machek
Cc: bjorn.andersson, agross, mathieu.poirier, linux-arm-msm,
linux-remoteproc, linux-kernel
On 5/26/22 4:38 PM, Pavel Machek wrote:
> Hi!
>
>> The series adds support for the following modem debug features:
>> * Pass on MBA log info to imem
>> * Add panic handler for mss
>
> Can I get you to cc phone-devel mailing list?
Pavel,
I picked up the series when I noticed one of the patch had fallen
through the cracks. IIRC you had already requested for the cc before
as well, will make sure I cc the group if there is a re-spin.
-Sibi
>
> Thanks,
> Pavel
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [V4 0/2] Add modem debug features
2022-05-24 12:45 [V4 0/2] Add modem debug features Sibi Sankar
` (2 preceding siblings ...)
2022-05-26 11:08 ` [V4 0/2] Add modem debug features Pavel Machek
@ 2022-07-18 22:59 ` Bjorn Andersson
3 siblings, 0 replies; 6+ messages in thread
From: Bjorn Andersson @ 2022-07-18 22:59 UTC (permalink / raw)
To: quic_sibis
Cc: linux-kernel, agross, mathieu.poirier, linux-remoteproc,
linux-arm-msm
On Tue, 24 May 2022 18:15:33 +0530, Sibi Sankar wrote:
> The series adds support for the following modem debug features:
> * Pass on MBA log info to imem
> * Add panic handler for mss
>
> V4:
> * Restart the update mba info to imem patch that was dropped from V2
> * Add panic handler for mss driver
> * Drop patches that have already landed
>
> [...]
Applied, thanks!
[1/2] remoteproc: qcom_q6v5_mss: Update MBA log info
commit: 347c51ba5e49e35c5f4ee78f8664f08429b52b6d
[2/2] remoteproc: qcom_q6v5: Introduce panic handler for MSS
commit: 3b1d265a846292464f6716b8c3a546252f73a7d7
Best regards,
--
Bjorn Andersson <bjorn.andersson@linaro.org>
^ permalink raw reply [flat|nested] 6+ messages in thread