Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1608785ybk; Thu, 14 May 2020 13:16:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkannBQzkverdOkcbOxGUnA3649GYkWWgJzm8YNZkrSEkQO4KZEEIUZ5LML25WfymIlgc5 X-Received: by 2002:a50:c091:: with SMTP id k17mr5531554edf.106.1589487399677; Thu, 14 May 2020 13:16:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589487399; cv=none; d=google.com; s=arc-20160816; b=DkbJRlQh9FchQfftApcvfvUC4ntXw1dqMGhHQ4vciMPIj7Q4HmeiEvmz9lNTgXNosS Jm4hjd+Rfezf/f1R6S6/cp7BukjbAv5nIO962BSrLkzdQu8Nk4cuMJiAmNlCZtDRNGq7 /SvJoLc/Y4F2IqeZC9mjOPy/ix3bkpRWRn+QJQ06Cgk/PMlCogo3B4TpX9jTEH1dXP8N iR1N/oPjdj+e15HxW+F0OOGWRQz7d9K/2VJqxDXsQ4bEk7mWzqiEmuUxT9YgBY9w+NbP jmpYFGrzFEHqcYEbpxFzezME/Y2ZLLr5JZx24rLfHaS+N/SvJhcpl7diqILsFax3Bb4H vbhg== 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 :dmarc-filter:dkim-signature; bh=4YJ2XzG2JIi+LCwLrdlVxFzG02vS8JkhTTg9UN+mYy4=; b=Z8U7tXuQKm8r1rXLtBPCr3lvqyuyI+YJ4TkEpEt7oR3iC+EzVwKg3l1RK3yMD8DvGq Q8GSsQuRj7Y50I/k9GO7PoKgWym9D415RKqjeR4xpPXunI8wgZ2Ll1ntUZkW2txmDnx2 1CxkT5kmCMvscbsy5/WJl7/39ESPOQjmT5itimmsEYXbwH+OhPScV+T1uXeY1xmEs23l cxk4TKr1bzM/L/bCsZnurZ77Cb6HqRwuz1CfgjzwFUoJMtqKZeQmuTqg/r6A2wCwqPTm 21BCR6Os1r2Cif5Tj1uo7ZW2dyV4MXtMlyiYLonVQLDY2649l3+M30O1Qe8yLbwcnc9z XU7g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=ClPJZeER; 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 cw10si2383152edb.54.2020.05.14.13.16.16; Thu, 14 May 2020 13:16:39 -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=ClPJZeER; 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 S1729278AbgENUIZ (ORCPT + 99 others); Thu, 14 May 2020 16:08:25 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:57554 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728187AbgENUIY (ORCPT ); Thu, 14 May 2020 16:08:24 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589486904; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=4YJ2XzG2JIi+LCwLrdlVxFzG02vS8JkhTTg9UN+mYy4=; b=ClPJZeERQVc4KP0tfj37bhukVwSr/53LYxeNfJp3ro4xMH1yYiGVBstHYUUImLzkKcN23gc5 E9hn3o/4iiGk8IaL5538577/hVNHAn+LkVL0h8r2xQCLJX2YNLCKnV0GGgOTg/w6yvDoBkJF 7E9zQbTNQLJFgvsAJ9a+hJpJHFM= X-Mailgun-Sending-Ip: 104.130.122.27 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 mxa.mailgun.org with ESMTP id 5ebda537.7f793e833a08-smtp-out-n03; Thu, 14 May 2020 20:08:23 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id B4F95C072B7; Thu, 14 May 2020 20:08:22 +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=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from rishabhb-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: rishabhb) by smtp.codeaurora.org (Postfix) with ESMTPSA id 8AD8EC38561; Thu, 14 May 2020 20:08:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 8AD8EC38561 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=none smtp.mailfrom=rishabhb@codeaurora.org From: Rishabh Bhatnagar 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, Rishabh Bhatnagar Subject: [PATCH v3 0/3] Extend coredump functionality Date: Thu, 14 May 2020 13:07:33 -0700 Message-Id: <1589486856-23440-1-git-send-email-rishabhb@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 This patch series moves the coredump functionality to a separate file and adds "inline" coredump feature. Inline coredump directly copies segments from device memory during coredump to userspace. This avoids extra memory usage at the cost of speed. Recovery is stalled untill all data is read by userspace. Changelog: v3 -> v2: - Move entire coredump functionality to remoteproc_coredump.c - Modify rproc_coredump to perform dump according to conf. set by userspace - Move the userspace configuration to debugfs from sysfs. - Keep the default coredump implementation as is v2 -> v1: - Introduce new file for coredump. - Add userspace sysfs configuration for dump type. Rishabh Bhatnagar (3): remoteproc: Move coredump functionality to a new file remoteproc: Add inline coredump functionality remoteproc: Add coredump debugfs entry drivers/remoteproc/Makefile | 1 + drivers/remoteproc/remoteproc_core.c | 191 ------------------ drivers/remoteproc/remoteproc_coredump.c | 322 +++++++++++++++++++++++++++++++ drivers/remoteproc/remoteproc_debugfs.c | 86 +++++++++ drivers/remoteproc/remoteproc_internal.h | 4 + include/linux/remoteproc.h | 15 ++ 6 files changed, 428 insertions(+), 191 deletions(-) create mode 100644 drivers/remoteproc/remoteproc_coredump.c -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project