linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: spjoshi@codeaurora.org (Sarangdhar Joshi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] remoteproc: qcom: Register segments with remoteproc
Date: Wed, 14 Jun 2017 11:06:56 -0700	[thread overview]
Message-ID: <1497463616-19868-2-git-send-email-spjoshi@codeaurora.org> (raw)
In-Reply-To: <1497463616-19868-1-git-send-email-spjoshi@codeaurora.org>

Register the firmware segments with remoteproc framework to ensure
that the coredumps can be collected in the event of fatal failures.

Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
---
 drivers/remoteproc/qcom_adsp_pil.c | 1 +
 drivers/remoteproc/qcom_wcnss.c    | 1 +
 2 files changed, 2 insertions(+)

diff --git a/drivers/remoteproc/qcom_adsp_pil.c b/drivers/remoteproc/qcom_adsp_pil.c
index 335066e..f6d5ceac 100644
--- a/drivers/remoteproc/qcom_adsp_pil.c
+++ b/drivers/remoteproc/qcom_adsp_pil.c
@@ -86,6 +86,7 @@ static int adsp_load(struct rproc *rproc, const struct firmware *fw)
 static const struct rproc_fw_ops adsp_fw_ops = {
 	.find_rsc_table = qcom_mdt_find_rsc_table,
 	.load = adsp_load,
+	.register_segments = qcom_register_dump_segments,
 };
 
 static int adsp_start(struct rproc *rproc)
diff --git a/drivers/remoteproc/qcom_wcnss.c b/drivers/remoteproc/qcom_wcnss.c
index 253f152e..efa295f 100644
--- a/drivers/remoteproc/qcom_wcnss.c
+++ b/drivers/remoteproc/qcom_wcnss.c
@@ -160,6 +160,7 @@ static int wcnss_load(struct rproc *rproc, const struct firmware *fw)
 static const struct rproc_fw_ops wcnss_fw_ops = {
 	.find_rsc_table = qcom_mdt_find_rsc_table,
 	.load = wcnss_load,
+	.register_segments = qcom_register_dump_segments,
 };
 
 static void wcnss_indicate_nv_download(struct qcom_wcnss *wcnss)
-- 
The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum,
a Linux Foundation Collaborative Project

  reply	other threads:[~2017-06-14 18:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-14 18:06 [PATCH 1/2] remoteproc: Add remote processor coredump support Sarangdhar Joshi
2017-06-14 18:06 ` Sarangdhar Joshi [this message]
2017-06-15 18:48 ` Suman Anna
2017-06-15 23:11   ` Sarangdhar Joshi
2017-06-21 20:54     ` Suman Anna
2017-07-07  0:02       ` Sarangdhar Joshi
2017-07-12 23:47       ` Bjorn Andersson
2017-07-12 23:28   ` Bjorn Andersson
2017-07-12 23:14 ` Bjorn Andersson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1497463616-19868-2-git-send-email-spjoshi@codeaurora.org \
    --to=spjoshi@codeaurora.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).