Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1921622ybv; Thu, 6 Feb 2020 12:18:46 -0800 (PST) X-Google-Smtp-Source: APXvYqyzkgbT4odSC4y7XbwKzGqbanb9e32boNV/XMXWTQprRKGoasMY6mPixNvFpM+Wl89hQGvG X-Received: by 2002:aca:ab51:: with SMTP id u78mr8167231oie.21.1581020326325; Thu, 06 Feb 2020 12:18:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581020326; cv=none; d=google.com; s=arc-20160816; b=hiAtAjpYAzL9aIuCKEOyTqmqhB+lgIB+w7GO2cE6HoXZx75ENuVHfMZyRuxBCNKYho AwVnz3RJ0I0J5nsNNGMR2PVdHCkB8c2bbt2ANOA6sVbxLyc381GT1au2AKwlunjLABWa FT3GQblBNXXxEc3zUhQ+ApIvO6TxyRB0sTSseGA1Vvw6KkSBkk1SwEvPGL7OQ2zWQCv/ aZcjhJbmaoYuVGcvNWsGCAmdwSwtAv1mMMQW9Rjjtne8cGxNaBdvjJRlIx14RC/ZRiSd Ye0pbDPMZs9BqniU1lG0xPtBuvySqi4iCxDNRGTnLk3/GAJA9wl8z3ZIC8GfSN7IfaxL 2AKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dmarc-filter :dkim-signature; bh=+Lr0ag6PJr7p2Q4hz+BuThC09scWtqJ2UecN/NDVE0U=; b=yxSUpdfccKknWlZxfUEf0yXEHvWHESt/TpvMJbBI01p9CQInIxX1Eb2OOTho36Dw5B vhsPNaElNz/DcmK5hw364nd7+BYUJTyeA+7PG9iLz8dzCZAGVDN0ucpkT6MQvgbtxEzd A+qfzmcn6AMeRIwJrP9PZbUswWSM9z8P2FueS8gXU9UlHi1/9AtXOCRMdNItn0JAt2tp fMaQmD/gd2lRdTWIXBFRh16m4ciwgLbju8qaQhION3j8o+O3fNR3qIgCnSazfghv8Cvj K7pzyWummp87YCMu9lCo0L8kLkEJ/JoTFB/q8gZ442ejvydt71B5309icDV1Q9VR4sxk nuhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=jePWL0O0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si396844otc.104.2020.02.06.12.18.34; Thu, 06 Feb 2020 12:18:46 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=jePWL0O0; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727877AbgBFURh (ORCPT + 99 others); Thu, 6 Feb 2020 15:17:37 -0500 Received: from mail26.static.mailgun.info ([104.130.122.26]:27074 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727773AbgBFURh (ORCPT ); Thu, 6 Feb 2020 15:17:37 -0500 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1581020256; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: References: Cc: To: From: Subject: Sender; bh=+Lr0ag6PJr7p2Q4hz+BuThC09scWtqJ2UecN/NDVE0U=; b=jePWL0O04+rCx7h9FOxZlKFisD3M7hSp4PNnI6SqftM2Lq7YwH1C4y4Qx7E4cgpv1vZq1KA0 xirIb1R/OAmJcV+puWXnLw1iWpwJjJymJAxALxYAC5z+ap5CFFpuS1IL3mCXobOBkjX70aXu U+z0RgWiD/VPBG1jY5x19sUaeYw= X-Mailgun-Sending-Ip: 104.130.122.26 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 5e3c7455.7f291d8c1e68-smtp-out-n03; Thu, 06 Feb 2020 20:17:25 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 26699C433A2; Thu, 6 Feb 2020 20:17:24 +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 [10.226.58.28] (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jhugo) by smtp.codeaurora.org (Postfix) with ESMTPSA id CEAACC433CB; Thu, 6 Feb 2020 20:17:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org CEAACC433CB 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=jhugo@codeaurora.org Subject: Re: [PATCH v2 09/16] bus: mhi: core: Add support for downloading RDDM image during panic From: Jeffrey Hugo To: Manivannan Sadhasivam , gregkh@linuxfoundation.org, arnd@arndb.de Cc: smohanad@codeaurora.org, kvalo@codeaurora.org, bjorn.andersson@linaro.org, hemantk@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20200131135009.31477-1-manivannan.sadhasivam@linaro.org> <20200131135009.31477-10-manivannan.sadhasivam@linaro.org> Message-ID: Date: Thu, 6 Feb 2020 13:17:22 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/6/2020 9:41 AM, Jeffrey Hugo wrote: > On 1/31/2020 6:50 AM, Manivannan Sadhasivam wrote: >> MHI protocol supports downloading RDDM (RAM Dump) image from the >> device through BHIE. This is useful to debugging as the RDDM image >> can capture the firmware state. >> >> This is based on the patch submitted by Sujeev Dias: >> https://lkml.org/lkml/2018/7/9/989 >> >> Signed-off-by: Sujeev Dias >> Signed-off-by: Siddartha Mohanadoss >> [mani: splitted the data transfer patch and cleaned up for upstream] >> Signed-off-by: Manivannan Sadhasivam >> --- >>   drivers/bus/mhi/core/boot.c     | 157 +++++++++++++++++++++++++++++++- >>   drivers/bus/mhi/core/init.c     |  38 ++++++++ >>   drivers/bus/mhi/core/internal.h |   2 + >>   drivers/bus/mhi/core/pm.c       |  31 +++++++ >>   include/linux/mhi.h             |  24 +++++ >>   5 files changed, 249 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/bus/mhi/core/boot.c b/drivers/bus/mhi/core/boot.c >> index 36956fb6eff2..564d61f98257 100644 >> --- a/drivers/bus/mhi/core/boot.c >> +++ b/drivers/bus/mhi/core/boot.c >> @@ -20,7 +20,159 @@ >>   #include >>   #include "internal.h" >> -/* Download AMSS image to device */ > > Seems a bit odd to add this line in patch 8, only to remove it here in > patch 9.  Feels like never adding it in the first place would be better. >  Not something to warrant a v3 through. > Since my nit is minor- Reviewed-by: Jeffrey Hugo Tested-by: Jeffrey Hugo -- Jeffrey Hugo Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project.