From patchwork Wed Jun 14 18:06:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sarangdhar Joshi X-Patchwork-Id: 9787207 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 804E2602D9 for ; Wed, 14 Jun 2017 18:07:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6F37B28417 for ; Wed, 14 Jun 2017 18:07:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6411328438; Wed, 14 Jun 2017 18:07:34 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1545B28417 for ; Wed, 14 Jun 2017 18:07:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752777AbdFNSHW (ORCPT ); Wed, 14 Jun 2017 14:07:22 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:57402 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752403AbdFNSHJ (ORCPT ); Wed, 14 Jun 2017 14:07:09 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id D0C8860A0A; Wed, 14 Jun 2017 18:07:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1497463628; bh=7uSJRgA7BNcExXJKp8orhLsuQeEPbsbrhkdOY5GEymU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aPJMVkb3EthF2927UNC6SgFW5sXzr8loIBH0U253pzurwOhF4u8NrzZhJV/zoAtGP HGK2PkNItiJKvgb8XvHh9+3TYnjNhOr95gdkSi7FlxiJVrt4oRfTibOZ6flCA/NQbP tQKpTVCwAv49iibugiccziXUSESYT+Ed/KAq/X5E= Received: from spjoshi-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: spjoshi@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id BC0AE609FB; Wed, 14 Jun 2017 18:07:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1497463628; bh=7uSJRgA7BNcExXJKp8orhLsuQeEPbsbrhkdOY5GEymU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=aPJMVkb3EthF2927UNC6SgFW5sXzr8loIBH0U253pzurwOhF4u8NrzZhJV/zoAtGP HGK2PkNItiJKvgb8XvHh9+3TYnjNhOr95gdkSi7FlxiJVrt4oRfTibOZ6flCA/NQbP tQKpTVCwAv49iibugiccziXUSESYT+Ed/KAq/X5E= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BC0AE609FB Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=spjoshi@codeaurora.org From: Sarangdhar Joshi To: Ohad Ben-Cohen , Bjorn Andersson , Loic Pallardy Cc: Sarangdhar Joshi , linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, Stephen Boyd , Andy Gross , David Brown , Srinivas Kandagatla , Trilok Soni Subject: [PATCH 2/2] remoteproc: qcom: Register segments with remoteproc Date: Wed, 14 Jun 2017 11:06:56 -0700 Message-Id: <1497463616-19868-2-git-send-email-spjoshi@codeaurora.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1497463616-19868-1-git-send-email-spjoshi@codeaurora.org> References: <1497463616-19868-1-git-send-email-spjoshi@codeaurora.org> Sender: linux-remoteproc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-remoteproc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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)