Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3111373ybt; Mon, 22 Jun 2020 15:28:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjL8L7QWvoPQTuHoGg2A73IkGvXe+vStP/JXkd7dH05aLkiZlykvClxhmqAL1EiKJMthLX X-Received: by 2002:a17:906:8393:: with SMTP id p19mr9278832ejx.210.1592864920229; Mon, 22 Jun 2020 15:28:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592864920; cv=none; d=google.com; s=arc-20160816; b=nI/kQbM+4bVMd3nzl2kXkEd06vA9tVZ5EUniAoQc7fKN9PIoVVtYhh19rkxCceUj6g gsorJxbslUmEuIGU3uaFKv1t6roks0ywkjlw/7qII0Xf7m/ZN2SVtoo6PlBtfz1pEfdz 1nDt55aAJh8CR/HSm7uBci5H3ynGf8Qf7+aSA7V/yvRm/YqLopuGPSh+mryN6SaBScdN UxRBfXCtp9BTVpDhm6Zo5GZ/YgSBLqcdwQVRukp06hoQZ25yfS85mljXwNVXIZwXd8Ig HFb4kVPr/H0ZX1dgYEpLvQdb1XV5a1SmZPDxlokgG/JQYWaLcsrV22fWVj95GBMEfhsk iL6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Whj9pPjVdxqNoQPO3/j1uYot6iyKYAdZJXRmnTL5xO8=; b=vMYSi+4mYZm9LAgEwj85fztxiBDScnhTVPke9Hpp+xHS0mDcs/5eWhMR0a3Iy52qrS J5Zf4MivBdyvbJwAnTyNwYm0IgxnXnzyU+aPRDmMu+smBHtrGhkZao7LLfApUPEBmabV Qmw/ndULCzmHF+SDs70QIUttXkBjAVqvYUA5DjeKZGtwDV+NO89bL6hafiq07FghmM7t OMtpiqcNEAyQgm+kNqKWEwcre7/RPe96ywDEe9Bk92eQp9k7gisoFTGuZbTc0pGlEYvT dKWVjIZGZz/NWh0CD1KDSXJkH5pmcF3PH9Ojnox2OcnSpbbql/jl+/CMaFu/ADRlryYt 8d2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p7Qxqg5d; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds15si13834807ejc.14.2020.06.22.15.28.16; Mon, 22 Jun 2020 15:28: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=pass header.i=@linaro.org header.s=google header.b=p7Qxqg5d; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730908AbgFVW0R (ORCPT + 99 others); Mon, 22 Jun 2020 18:26:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730777AbgFVW0Q (ORCPT ); Mon, 22 Jun 2020 18:26:16 -0400 Received: from mail-ot1-x343.google.com (mail-ot1-x343.google.com [IPv6:2607:f8b0:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2529AC061573 for ; Mon, 22 Jun 2020 15:26:16 -0700 (PDT) Received: by mail-ot1-x343.google.com with SMTP id v13so14581817otp.4 for ; Mon, 22 Jun 2020 15:26:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=Whj9pPjVdxqNoQPO3/j1uYot6iyKYAdZJXRmnTL5xO8=; b=p7Qxqg5dSBmq2hSsNLlQ5+RQja1zy1WyYt7A69O13Qz64ge9PlX6tdodta5m1mOyoJ fiN5mS59lG0/DHWLxyJ9fd6KgT+4T2u8M+Zym1mEOB2eT60Whl+ktEDA7Siy1kfUs+pT RTJKTDghbBAAP0xM0ZAogIU5UbG7kBnbN5TOrz+IU39QodAFe3Z+JdLSeGMjAEOq3OX6 tpHADkHQ6kFosnXVXny6G1T41zqnx80pSGoiTAgGTdFI/7qsaJcMRNt3NjrppdPtcJvg /5k3CS58NDCDoEPLweGzunQJ2GpmotulLtyhI5asWN0alRZp6X5DSbnYKp98UKA7wwgw 4ftw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=Whj9pPjVdxqNoQPO3/j1uYot6iyKYAdZJXRmnTL5xO8=; b=bh1JqI7ZIYHSZuqPEtcVGH7PplqaW3ON7m1vtS8u/jJjr+Wrh/e45EcfanlihDbLHu 5pgazswWVtN5orpoBy85XNXFBZdz4io5m9vQAd8oCNT1vqUyGIRP9/IXaTZ4D+19adJY kYlWY3ZBiMb3SZuLLn0ugRtvMLwijZ/TnuUks5Vsj2e8I+SV2TJJLbK4ForqetSkxaOV B2q+jFy2gs8E/hxypbB+vsu12TtwDwNX7PA8Kx/IlT+fOxoxenfId8z4GdXsdF8trFGd AR+yIf0Ih9kMi3mp5W6As5NjpLtWYXmdWNUkJMvuP7iBgCwCHOi22vqXNFugM5SyCocc IeFg== X-Gm-Message-State: AOAM530CipnqKYIo7csApxFoAOjeLxkegPHRUbMUBhv7eAn2ba0LrJ1B r9qpbwLODpzBhxRuwmROiwenbw== X-Received: by 2002:a05:6830:1dbb:: with SMTP id z27mr15880575oti.340.1592864775362; Mon, 22 Jun 2020 15:26:15 -0700 (PDT) Received: from builder.lan (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id p1sm3753330oot.34.2020.06.22.15.26.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 15:26:14 -0700 (PDT) Date: Mon, 22 Jun 2020 15:23:30 -0700 From: Bjorn Andersson To: Rishabh Bhatnagar 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 Message-ID: <20200622222330.GN149351@builder.lan> References: <1590611177-15826-1-git-send-email-rishabhb@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1590611177-15826-1-git-send-email-rishabhb@codeaurora.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > 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 >