Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2628020pxa; Fri, 7 Aug 2020 16:33:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJZmBOCdz6kC41dUrfky/P9pU5BNYo8HdwQJUg31/bHsTkAeL7YmT7Ch79555mpY0FOu91 X-Received: by 2002:a17:906:6146:: with SMTP id p6mr11987064ejl.211.1596843188236; Fri, 07 Aug 2020 16:33:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596843188; cv=none; d=google.com; s=arc-20160816; b=inQrSZrlnMci/ji6/CL/wSHyS1xE7Bv/iS0qtC4TnsAgd515UMSC8RIRYZQF/jbf9o wRSy0hBWrHwBB0arasBoITgRqUqTIg7dOaQ9UXsgJWS0bh0cGUaYpDnlBG11Q+4YpXZy uDKD8Op7OXJSmo6Mm0IxdBKMC+5WJf0D+yUpKvYiA1Af+JSm/ussWHfcJbCxpo+k20K4 e+ydd1FyDS1oyw5O+M4NKSS3VKA6tkkPFPTdFc554UNeNQPqmK4DB+1iIhBQonLYBi+v KUAr3uukggFjhIB5KleVBumLoYIa+XFUCH0H480C3VbSkgYsQxobAH1dWV+4WLVJLO2R v2Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=JKdZ37tijfwJkAwiI1gmWbdhF/015CP3XybB65mEsqg=; b=g5EqY2QQBW1usd+QCU7w6JGFHjDN9FPPYgQv96Ug7emOXmQXCwKbMpca56f/cYbJdI eYHJ7wx51mCRRIrTAOivT7lEisHopoP+AeWx+OiYAf7m7/86Op6+LrWFg9a3etwa18Hf mKYo0eC1SiuePzjUGkfAQiF9QO0i1pyjxzxDmfuTtWPRVKRIxWrsS8Mcz/tuctdOweL9 7t6wJm8ZGJhq4sRWsIO9GrJ3v4pnqEwOU40ujdBkD/jrkHafgzvUG6D5yAn8TX1EpInB 3LxkvSic19u44fOhqO8N1oVFEGQllXXSjvMtX1BN7vdh44ILG42tZLkr4PC3egMIE+kj NQOA== ARC-Authentication-Results: i=1; mx.google.com; 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 aq7si6308719ejc.562.2020.08.07.16.32.45; Fri, 07 Aug 2020 16:33:08 -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; 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 S1726233AbgHGXcT (ORCPT + 99 others); Fri, 7 Aug 2020 19:32:19 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:24146 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726066AbgHGXcS (ORCPT ); Fri, 7 Aug 2020 19:32:18 -0400 Received: from unknown (HELO ironmsg05-sd.qualcomm.com) ([10.53.140.145]) by alexa-out-sd-02.qualcomm.com with ESMTP; 07 Aug 2020 16:32:18 -0700 Received: from th-lint-015.qualcomm.com ([10.63.177.64]) by ironmsg05-sd.qualcomm.com with ESMTP; 07 Aug 2020 16:32:17 -0700 Received: by th-lint-015.qualcomm.com (Postfix, from userid 2383757) id 0C4B4174E; Fri, 7 Aug 2020 16:32:16 -0700 (PDT) From: Gurbir Arora To: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: bjorn.andersson@linaro.org, mathieu.poirier@linaro.org, tsoni@codeaurora.org, psodagud@codeaurora.org, sidgup@codeaurora.org, rishabhb@codeaurora.org, Gurbir Arora Subject: [PATCH 0/3] Introduce mini-dump support for remoteproc. Date: Fri, 7 Aug 2020 16:31:58 -0700 Message-Id: <1596843121-82576-1-git-send-email-gurbaror@codeaurora.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Gurbir Arora (2): remoteproc: core: Add coredump to remoteproc ops remoteproc: qcom: Add capability to collect minidumps Rishabh Bhatnagar (1): remoteproc: qcom: Add minidump id for sm8150 modem remoteproc drivers/remoteproc/qcom_minidump.h | 64 +++++++++ drivers/remoteproc/qcom_q6v5_pas.c | 21 ++- drivers/remoteproc/remoteproc_core.c | 7 +- drivers/remoteproc/remoteproc_coredump.c | 211 +++++++++++++++++++++++++++- drivers/remoteproc/remoteproc_elf_helpers.h | 27 ++++ drivers/remoteproc/remoteproc_internal.h | 2 + include/linux/remoteproc.h | 3 + 7 files changed, 331 insertions(+), 4 deletions(-) create mode 100644 drivers/remoteproc/qcom_minidump.h -- 1.9.1