From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sibi Sankar Subject: [PATCH v5 0/5] Add coredump support for Q6v5 Modem remoteproc Date: Wed, 17 Oct 2018 19:25:22 +0530 Message-ID: <20181017135527.30592-1-sibis@codeaurora.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: Sender: linux-kernel-owner@vger.kernel.org To: bjorn.andersson@linaro.org, ohad@wizery.com Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, tsoni@codeaurora.org, sricharan@codeaurora.org, akdwived@codeaurora.org, kyan@codeaurora.org, Sibi Sankar List-Id: linux-arm-msm@vger.kernel.org This patch series add coredump support for modem on SDM845, MSM8996 and MSM8916 SoCs. Modem requires the mba to be loaded before a coredump can be performed and this is achieved using a custom per segment dump function. V5: Add software bypass to avoid high MX current in mpss_load error path. Remove the proxy votes of clk/regs only after the active/reset clks/regs. Reclaim MBA memory after mpss_load failure in mba_reclaim func. Revert to dump_fn to as done with v3 with a mask based approach. V4: Addressed Bjorn's comments. V3: [bjorn]:replace prepare/unprepare ops with a more generalised per segment dump function V2: Introduce prepare/unprepare ops for rproc coredump Sibi Sankar (5): remoteproc: Introduce custom dump function for each remoteproc segment remoteproc: Add mechanism for custom dump function assignment remoteproc: qcom: q6v5-mss: Refactor mba load/unload sequence remoteproc: qcom: q6v5-mss: Add custom dump function for modem remoteproc: qcom: q6v5-mss: Register segments/dumpfn for coredump drivers/remoteproc/qcom_q6v5_mss.c | 379 +++++++++++++++++---------- drivers/remoteproc/remoteproc_core.c | 55 +++- include/linux/remoteproc.h | 11 + 3 files changed, 303 insertions(+), 142 deletions(-) -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project