Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp616491pxk; Thu, 17 Sep 2020 11:24:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9rfXgJCmt6vVJRqf5U67e1lvJW5NvC75hnLaaNNTm2iE7T/XbRk4yUUY/I/QoyJJXd8f8 X-Received: by 2002:a17:906:3957:: with SMTP id g23mr33557387eje.24.1600367080093; Thu, 17 Sep 2020 11:24:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600367080; cv=none; d=google.com; s=arc-20160816; b=lrh3bqtI6Ht68FfKuKkoIYfsNVlQm+19lsVHmGJd7FlYHm4bSJmIkKfQyZefVCNeax +2fO8Y6doVNp8HxFj2jckJhXQ7SGaQ8BbpaBeBNM95OL8q/XO6RCFUQEviKr2p4L3mrm xWPWW6k6WQr2P5lTYpQrrZS3wkc4lgGLtvAapXyQTMpq2Xn8rRfboLo7yQgbJQuFlt7v dLQn3I6bayUakom9F+piuVbBdVz7Pz50ang/xrWxXuIh4Vw/LuTYx4J2oqaACJeKxCQ2 A9J0xifhrIVda7IMDccuvOCn3eN4u93S0amtmBvXdHb8ZZC67r4fJ8yZTAL0rgc9YegO HvMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dmarc-filter:dkim-signature; bh=2Awvd0docYELA3/VOnVrhxEnBWW9DSBcjwiYbeE9eKM=; b=gO+UoNxA895MrkVv4V/cEbvzx/SMpOgCof4fd19IDa5gVYqEdZjoDgI6nAsyY/i2ag WVxhdu3a0Ncs/Qs1mjV2+qeoCRg50g5SciA8jG2F7HEnos6bgKNPKEJhhAvRzZ0jqoYu NMAt5tupR4WIDPGygaEXtImzguXJfFPkT6HO5zY8O2K9BzWVgj+ZYXLlKyg9pV17OwNk FnyQrQu6DutZB5V2XoeZxJlZ5Pfe8WrRYE5m9aLKMoY7TfW3PsRJnqJI/DlmZGgR+O3v gGf+tJAWhfzwGgkwNvucICi/w6Z3qL7fh18EaTaCrNXgYYkK7FG80DwymWvJOH6iynRE svvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=pM4KX74r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p8si396495edi.48.2020.09.17.11.24.16; Thu, 17 Sep 2020 11:24:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=pM4KX74r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726596AbgIQSVy (ORCPT + 99 others); Thu, 17 Sep 2020 14:21:54 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:18026 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726438AbgIQSU5 (ORCPT ); Thu, 17 Sep 2020 14:20:57 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1600366822; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=2Awvd0docYELA3/VOnVrhxEnBWW9DSBcjwiYbeE9eKM=; b=pM4KX74rJnmgWF+NPvK2Buz5+Si7HHxRJZ0clYcafPmcZTxPrrEYcEA28XaWoJ4ASCmKF7bM lRfh4GqAOQm8Xz7VM+CVziQ24786u8KWQMMaSDjQutzli95xIoT0jy1e0B/g+mWnAa85MS/X G6IqI9zLikmRJKdcLIaa0PHv4gg= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n03.prod.us-west-2.postgun.com with SMTP id 5f63a8daea858627d51edc3f (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Thu, 17 Sep 2020 18:20:10 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 76D50C433FF; Thu, 17 Sep 2020 18:20:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=ALL_TRUSTED,BAYES_00, NICE_REPLY_A,SPF_FAIL autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.10] (cpe-75-83-25-192.socal.res.rr.com [75.83.25.192]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: sidgup) by smtp.codeaurora.org (Postfix) with ESMTPSA id 0AEE5C433CA; Thu, 17 Sep 2020 18:20:08 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 0AEE5C433CA Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=fail smtp.mailfrom=sidgup@codeaurora.org Subject: Re: [PATCH v4 0/3] Introduce mini-dump support for remoteproc To: agross@kernel.org, bjorn.andersson@linaro.org, ohad@wizery.com Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, tsoni@codeaurora.org, psodagud@codeaurora.org, rishabhb@codeaurora.org, linux-doc@vger.kernel.org References: <01010174796142bd-a595147b-833a-48fe-b692-f8b6fe466146-000000@us-west-2.amazonses.com> From: Siddharth Gupta Message-ID: <5a8002bd-2eaa-5acd-d7ad-b651dd5e4fbb@codeaurora.org> Date: Thu, 17 Sep 2020 11:20:08 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <01010174796142bd-a595147b-833a-48fe-b692-f8b6fe466146-000000@us-west-2.amazonses.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Gentle remind to review this patch series. Thanks, Sid On 9/10/2020 11:57 AM, Siddharth Gupta wrote: > Sometimes firmware sizes can be in ten's of MB's and reading > all the memory during coredump can consume lot of time and > memory. > Introducing support for mini-dumps. Mini-dump contains smallest > amount of useful information, that could help to debug subsystem > crashes. > During bootup memory is allocated in SMEM (Shared memory) > in the form of a table that contains the physical > addresses and sizes of the regions that are supposed to be > collected during coredump. This memory is shared amongst all > processors in a Qualcomm platform, so all remoteprocs > fill in their entry in the global table once they are out > of reset. > This patch series adds support for parsing the global minidump > table and uses the current coredump frameork to expose this memory > to userspace during remoteproc's recovery. > > This patch series also integrates the patch: > https://patchwork.kernel.org/patch/11695541/ sent by Siddharth. > > Changelog: > v3 -> v4: > - Made adsp_priv_cleanup a static function. > > v2 -> v3: > - Refactored code to remove dependency on Qualcomm configs. > - Renamed do_rproc_minidump to rproc_minidump and marked as exported > symbol. > > v1 -> v2: > - 3 kernel test robot warnings have been resolved. > - Introduced priv_cleanup op in order to making the cleaning of > private elements used by the remoteproc more readable. > - Removed rproc_cleanup_priv as it is no longer needed. > - Switched to if/else format for rproc_alloc in order to keep > the static const decalaration of adsp_minidump_ops. > > Siddharth Gupta (3): > remoteproc: core: Add ops to enable custom coredump functionality > remoteproc: qcom: Add capability to collect minidumps > remoteproc: qcom: Add minidump id for sm8150 modem remoteproc > > drivers/remoteproc/qcom_minidump.h | 64 +++++++++++++ > drivers/remoteproc/qcom_q6v5_pas.c | 107 ++++++++++++++++++++- > drivers/remoteproc/remoteproc_core.c | 6 +- > drivers/remoteproc/remoteproc_coredump.c | 138 ++++++++++++++++++++++++++++ > drivers/remoteproc/remoteproc_elf_helpers.h | 27 ++++++ > include/linux/remoteproc.h | 5 + > 6 files changed, 344 insertions(+), 3 deletions(-) > create mode 100644 drivers/remoteproc/qcom_minidump.h >