Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3245922ybt; Mon, 22 Jun 2020 19:46:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxXtz2c9n0mvf9WDapQj7sdgFqLm/J49IGw8LjHfkwXLhinf8ltXx7WMgBFP5zTvBI74xGr X-Received: by 2002:a50:fe18:: with SMTP id f24mr5003330edt.14.1592880383777; Mon, 22 Jun 2020 19:46:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592880383; cv=none; d=google.com; s=arc-20160816; b=vr4vDzBehW80uSmcBvVuiQGV6jivSs+E+lDZbJzY2qQ35PgGscaJ1ePQbBFu6WWusB vqnFZgPogPq6XzR0Zi1A40ercg9AQ0AsLM0JixbTNoSXW+dl4lWRHkVhJ9qD3PUNZVv3 cL8KRF23TaxNXzM4bB7J9kaqfsX/9+62nbPRgt/sTGP98UfQ0c1YRNGjE3bupqZcNYW4 OO4zqTwC2cm2YwLJ5EYKVTynhna7qMIhQMxGFxJFdX0Fmrqln3dqy2bwiJQLkPCNEyA/ be98Jf9TIxms5C10qz4tcKQ/sSKV1HQydzTZsELnm8+6xToJVnIdEmIkTbfGp7EL7XfV d0Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:message-id:references :in-reply-to:subject:cc:to:from:date:content-transfer-encoding :mime-version:dkim-signature; bh=WfFCzgOO13CqCxPazC8JqcGDUy+ilIoTv/tjzdvEEtg=; b=a8ut/wfL939icghKppofHnGoiGi16qk6/qa/3fOrzbYS36SuyFvU5WkIpkPS2OhHtN QBRUQzu9R1KUJicP65F5nLdGfFnNKdtWQn9nf49vizsvFyt7n4jr7+JcNNqI1XxdGcpz 8YestI6hnJHBfcAeZAaKWyRG505CJMcQTVBrJAFKicp+mIabuAR4Ad7nOW7Y5dIeAx/J gd37kqruTtYvHBhBRTRwqbcqmODJs71/zIPh3HlfEv3YEG574MLZdmqkhi1S5Nh/GyO0 +94MJ/A9XuXh0n+vnaJPBm8I64bFjmyB2qr/bSw6/OegF3ZaxC1pwMrbGIT1nH2ioLuj kUVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=tVt8fAIT; 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 i11si9774427ejv.272.2020.06.22.19.46.01; Mon, 22 Jun 2020 19:46:23 -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=tVt8fAIT; 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 S1731695AbgFWCoB (ORCPT + 99 others); Mon, 22 Jun 2020 22:44:01 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:27462 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731647AbgFWCoA (ORCPT ); Mon, 22 Jun 2020 22:44:00 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592880240; h=Message-ID: References: In-Reply-To: Subject: Cc: To: From: Date: Content-Transfer-Encoding: Content-Type: MIME-Version: Sender; bh=WfFCzgOO13CqCxPazC8JqcGDUy+ilIoTv/tjzdvEEtg=; b=tVt8fAITW3Mif0qIJIs3AKY1DD/BW8lZ+NVZOQQCID+WPjukqQfRfcewxV9+WjTxjVQf630K /LZG5wQ4dC4t/u1GvvIfEaJFR7GXIh2P6bx2apZPfnCFX7xnvtwOadq31ggabW+qYxtIPhXK G6ebd5z6311kQZuud/MKDB6Tbx0= 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-n10.prod.us-east-1.postgun.com with SMTP id 5ef16c5a356bcc26aba8d024 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 23 Jun 2020 02:43:38 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id CDD37C433CA; Tue, 23 Jun 2020 02:43:37 +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 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.codeaurora.org (localhost.localdomain [127.0.0.1]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: rishabhb) by smtp.codeaurora.org (Postfix) with ESMTPSA id 5009FC433C6; Tue, 23 Jun 2020 02:43:37 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Mon, 22 Jun 2020 19:43:37 -0700 From: rishabhb@codeaurora.org To: Bjorn Andersson Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org, tsoni@codeaurora.org, psodagud@codeaurora.org, sidgup@codeaurora.org, mathieu.poirier@linaro.org Subject: Re: [v4 PATCH 0/3] Extend coredump functionality In-Reply-To: <20200622222330.GN149351@builder.lan> References: <1590611177-15826-1-git-send-email-rishabhb@codeaurora.org> <20200622222330.GN149351@builder.lan> Message-ID: X-Sender: rishabhb@codeaurora.org User-Agent: Roundcube Webmail/1.3.9 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020-06-22 15:23, Bjorn Andersson wrote: > On Wed 27 May 13:26 PDT 2020, Rishabh Bhatnagar wrote: > >> 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 until all data is read by userspace. >> >> Changelog: >> > > Hi Rishabh, > > This looks good to me, but it doesn't apply cleanly on linux-next. Can > you please take a look? > > Regards, > Bjorn > Yes some more gerrits have been merged in the meantime. I'll rebase on top of Linux-next and send out another patchset. >> v4 -> v3: >> - Write a helper function to copy segment memory for every dump format >> - Change segment dump fn to add offset and size adn covert mss driver >> >> 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/qcom_q6v5_mss.c | 9 +- >> drivers/remoteproc/remoteproc_core.c | 191 ------------------ >> drivers/remoteproc/remoteproc_coredump.c | 328 >> +++++++++++++++++++++++++++++++ >> drivers/remoteproc/remoteproc_debugfs.c | 86 ++++++++ >> drivers/remoteproc/remoteproc_internal.h | 4 + >> include/linux/remoteproc.h | 21 +- >> 7 files changed, 443 insertions(+), 197 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 >>