From patchwork Tue Oct 9 16:23:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sibi Sankar X-Patchwork-Id: 10632915 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9156B15E8 for ; Tue, 9 Oct 2018 16:23:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8592E28BE1 for ; Tue, 9 Oct 2018 16:23:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7993228F1C; Tue, 9 Oct 2018 16:23:56 +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=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 02FCD28BE1 for ; Tue, 9 Oct 2018 16:23:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726568AbeJIXlh (ORCPT ); Tue, 9 Oct 2018 19:41:37 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42040 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbeJIXlh (ORCPT ); Tue, 9 Oct 2018 19:41:37 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id ADC3E6024C; Tue, 9 Oct 2018 16:23:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539102234; bh=YF6XxzJK5EOqlmoew/f5gsYBczOdmqtHfP9zTcrkAGE=; h=From:To:Cc:Subject:Date:From; b=GaVPuMcv1I9iV0fU+VwqWLbbIRqVDivwvqvs91gElNzO4MxYzNZ8Qv04H0USpxTpw B2wwyLTA2MpWGSIf2CP28pnFhZAF7FLhFwNZ7PwnzDkknPI+iQv/9D2206MrOpSTsl N9odNhoPFPfLUElKuivHFHo0Waf3g6FJKrPPgXtw= Received: from blr-ubuntu-87.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sibis@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id E92B360388; Tue, 9 Oct 2018 16:23:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1539102234; bh=YF6XxzJK5EOqlmoew/f5gsYBczOdmqtHfP9zTcrkAGE=; h=From:To:Cc:Subject:Date:From; b=GaVPuMcv1I9iV0fU+VwqWLbbIRqVDivwvqvs91gElNzO4MxYzNZ8Qv04H0USpxTpw B2wwyLTA2MpWGSIf2CP28pnFhZAF7FLhFwNZ7PwnzDkknPI+iQv/9D2206MrOpSTsl N9odNhoPFPfLUElKuivHFHo0Waf3g6FJKrPPgXtw= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E92B360388 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=sibis@codeaurora.org From: Sibi Sankar 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 Subject: [PATCH v4 0/5] Add coredump support for Q6v5 Modem remoteproc Date: Tue, 9 Oct 2018 21:53:34 +0530 Message-Id: <20181009162339.30522-1-sibis@codeaurora.org> X-Mailer: git-send-email 2.19.1 MIME-Version: 1.0 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 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. 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 | 307 ++++++++++++++++++--------- drivers/remoteproc/remoteproc_core.c | 55 ++++- include/linux/remoteproc.h | 11 + 3 files changed, 268 insertions(+), 105 deletions(-)