Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4178644pxf; Tue, 30 Mar 2021 00:56:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLUu9pDosLoCZ4CxpisxfFnX0AXAUygjI9j1Om+bwr3kyqw5l0kCHcY8+Je2CD7pfmF782 X-Received: by 2002:a17:906:2759:: with SMTP id a25mr32612493ejd.122.1617090985254; Tue, 30 Mar 2021 00:56:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617090985; cv=none; d=google.com; s=arc-20160816; b=rGnPmD3GvSrRsuYieHWjvCrgJH6t3bgq5euaT9NSmljDEGZhedxmVtapmIjCqbyF/6 ugMvAtKQVC2ceUd12nbuGy/gPgOwp8OflULHGP9n6eDHycFrseb1PhRCunqNtODzRC2B Vjy9zanl04MTLvfT0vGzI2LdJMCdo+38VjyfTGT2HjsY6sxNt6Z4mo1QbjoMUuDMv45s VEXyzgguYeDkLhNqrZTb9TRHiSmmCT5Y7L7LynmaG+vmQGrYtu4N4H2C9ci7OZBL7o1Q nrtClATnuF/x/ciMnZtuGtJRYk4k+VYjf2SrMQYPBn62ebhn0xXbHNfcq0OZcOatFaQQ bxTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=b6xBOtMDdbxr5HDgap10cXG5BRbETw5pQ3C/OZJonZs=; b=KcQAOHYWrPxShplrWmtTFVO9qNNMm+ne0ochwGjLX/LGR/6lOCkBV8TfGBVqxUVPd3 7EMPVWP7o3hjEZAjTScbP2jgxDWF/8/ZQIUgyRREv+YdIAzHqS5vKomxJZ4EAz1MJfK6 sdJfhONz5OapvOqA8/6By+hr/GiJR9Xf0lvnIyyAVfK0d7cOsh/zzkU6GdQ8tLkyYfTs ksvolG5ypJtq0IdznuE39OEmIBA8PMu6dQ4wAs5Q5+ka9p6VSIAcDouSpdHUAj7TvZCe a6JlDIM/fOwEtvLO5Yu3kMi1XW0ql2hJ4ick8UPr4fM1aYyeJVbufA6K8iXhMOPKd4zE Qw5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Uci26Z2m; 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 gl1si14239902ejc.456.2021.03.30.00.56.01; Tue, 30 Mar 2021 00:56:25 -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=Uci26Z2m; 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 S230344AbhC3Hy2 (ORCPT + 99 others); Tue, 30 Mar 2021 03:54:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231301AbhC3HyZ (ORCPT ); Tue, 30 Mar 2021 03:54:25 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A031C061764 for ; Tue, 30 Mar 2021 00:54:25 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id 11so11578178pfn.9 for ; Tue, 30 Mar 2021 00:54:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=b6xBOtMDdbxr5HDgap10cXG5BRbETw5pQ3C/OZJonZs=; b=Uci26Z2mtd+jak/mQGH98QD/nBDMgwpBGMutIO6S94hfdIGHR6uklHOJVkDEpDe2/J MaOeQyhL1b8FUnR3zzP2gcTSB8qybI2CKrI7si3nngLQvpk6pfIil23mkMLzVXEfHHOU blEkO9tDRjVln1OhEAGx55/1TA6eq4bcEML8zPhZsYZ5uZcPG8BQkf87klt7Km6n46k7 wixUAq7nifFDBfbr1ntx6YaNIjo45W6hxM9BU78keHo+4bxhJlyX+GXfugVS/O2w1gm0 RrDbKm31bQjKxWkK47z27qMgji1tYt/noQTaHyEtFpyWvXMCxH7HiGJNK5PbGZiHysNn 7zMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=b6xBOtMDdbxr5HDgap10cXG5BRbETw5pQ3C/OZJonZs=; b=Z8vx4oIy8XYv0ZBJYoz0sIoXSDFD7Qdq4TTJsy5MbV534l3Hqt9af4Kk2BcDA+aek1 Wv+2DOjysYLhzYU82cihiWF8SggiL3xGzgF4Jch/kY7N4QdCu14fPujY0YFoTcYQ4G5w AZeRxDj5nbkibIo/u3gKs4lHfkFa67iibQ5J0+08Ht/opkzpOIyuv4Pp94BWfzT4vc5u n+0l1a5thaEzEhTetcBfNeJkqBtoP6DiHooYCS8Y4OQN3smf+eDu+Ulp2sNNz8x3YOFd lJzA5ZM+KQbZ0T7YjJ/Xv6ec0zHWjpDQ0/1F2cbwYl8FPGdNOoPXOmhkYi2p4FsyW9Sl VBww== X-Gm-Message-State: AOAM530qJ+F7bYtwr+ychfpru0PWegFvdLsardnhbcetfm/f3FGu1kIV GwW8vBOGnwRlWD2PW74ICAsoz9Cici1x1ATsXqGE6Q== X-Received: by 2002:a63:f903:: with SMTP id h3mr7821483pgi.443.1617090864752; Tue, 30 Mar 2021 00:54:24 -0700 (PDT) MIME-Version: 1.0 References: <1617067704-28850-1-git-send-email-bbhatt@codeaurora.org> <1617067704-28850-5-git-send-email-bbhatt@codeaurora.org> In-Reply-To: <1617067704-28850-5-git-send-email-bbhatt@codeaurora.org> From: Loic Poulain Date: Tue, 30 Mar 2021 10:02:33 +0200 Message-ID: Subject: Re: [PATCH v1 4/7] bus: mhi: core: Add support for Flash Programmer execution environment To: Bhaumik Bhatt Cc: Manivannan Sadhasivam , linux-arm-msm , Hemant Kumar , Jeffrey Hugo , open list , =?UTF-8?B?Q2FybCBZaW4o5q635byg5oiQKQ==?= , Naveen Kumar , abickett@codeaurora.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 30 Mar 2021 at 03:28, Bhaumik Bhatt wrote: > > From: Carl Yin > > MHI WWAN modems support downloading firmware to NAND or eMMC > using Firehose protocol with process as follows: > 1. Modem boots up, enters AMSS execution environment and the > device later enters EDL (Emergency Download) mode through any > mechanism host can use such as a diag command. > 2. Modem enters SYS_ERROR, MHI host handles SYS_ERROR transition. > 3. EDL image for device to enter 'Flash Programmer' execution > environment is then flashed via BHI interface from host. > 4. Modem enters MHI READY -> M0 and sends the Flash Programmer > execution environment change to host. > 5. Following that, EDL/FIREHOSE channels (34, 35) are made > available from the host. > 6. User space tool for downloading firmware image to modem over > the EDL channels using Firehose protocol. Link to USB flashing > tool: https://git.linaro.org/landing-teams/working/qualcomm/qdl.git/ > > Make the necessary changes to allow for this sequence to occur and > allow using the Flash Programmer execution environment. > > Signed-off-by: Carl Yin > Co-developed-by: Bhaumik Bhatt > Signed-off-by: Bhaumik Bhatt Reviewed-by: Loic Poulain