Received: by 2002:a05:6a10:8a4d:0:0:0:0 with SMTP id dn13csp457211pxb; Thu, 12 Aug 2021 21:53:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxl9pEle8h8GU5w6F3yC0b/vihJehFZ84A2AVfy0g0xKPQ1CiRiEBrhviKBKSx0ZGP/s3i4 X-Received: by 2002:a02:90cb:: with SMTP id c11mr492355jag.53.1628830432660; Thu, 12 Aug 2021 21:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628830432; cv=none; d=google.com; s=arc-20160816; b=I0P1WBkkjn1LLhSXXGt5FIx54xNiIgWBmkGV0v7OHmJZk0Mr3naUX8MedkD7hBp5Q2 oOOlE6VxDgm5sZJQXTJFVEfs+P90r6SrEkqfAJESi5gomtTXTklLrf/1RvGkkRa9VBw/ zIc0jIDCPClk21q7zhwETUlv9MpGYaauCJqQwp8C8FnLQ13iM3Sfaj5S64XRIF/2l34I MY0lEn2UNbxshg1gdGMC3Y5te7ZnBryrQT4gHhxUvKTFKgPI346/u3I3jmS0z+UTHcrk wXUBMPmsNsCalWOT8A+CgEOiSowkgQB9dIBi029bqcpBBl63y8XwTwIdQjAAu0ufCYrd JtlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=2k43uW9LMuL3U2THqT7r6awIWDZafPJd+dGe3tao1UY=; b=UkBhzcOo+BnS8u9ovl2IaOhWDLTLl1KI1UgyuSESl5+cW31v+IIN1pDWavnEfvaYqh TWyn/AMO9o2P9KvtRNYqjpA60rq9Y+Hx8fUej90B9BECmYb7vjt/VYgTQWazte32KzeL JY+1GxnkrKz+xuIhU6NyjmTW2NeeTKdzH97sq+rW2HuK7MUioNqyBAdI+f3FLHsMLKbC ioXs43JQ2/qV5+YY/Nu/YfRs5izzGXKazsSZHGl0Z+e19hgT+RZQplADF/nOlLqmMbsU MmfVdkP7x7QHgGY/Obo2K/JygQDqowTfZFUcTz11Rh39rK5c/psCV7O/eaFQhXT/AIuu DQAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=nx+zmMAE; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m10si358036ilu.53.2021.08.12.21.53.37; Thu, 12 Aug 2021 21:53:52 -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=@quicinc.com header.s=qcdkim header.b=nx+zmMAE; 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=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238228AbhHMEbh (ORCPT + 99 others); Fri, 13 Aug 2021 00:31:37 -0400 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:22715 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235002AbhHMEbh (ORCPT ); Fri, 13 Aug 2021 00:31:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1628829071; x=1660365071; h=subject:to:cc:references:from:message-id:date: mime-version:in-reply-to:content-transfer-encoding; bh=2Qn8uclZhD6XPeMfCxSgFOazhwYXJ3l60HI88f+/yDc=; b=nx+zmMAEQd/puFCvKJdkqVdHQ5QRn+iX7m1nZQ/kl3Z7KOOneuNCqbYO 1WW18YbMzpHqLTbaB1l8CpnYU8KkyKh5JHmtMnMyXem7Sd9he3NAkAv2m EWQ8IisaYLJ0NvH3Vy531rdHyNMn09hCSwaipp9Pf9Yh72tr4YDP9Ltwo Q=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 12 Aug 2021 21:31:10 -0700 X-QCInternal: smtphost Received: from unknown (HELO nasanex01a.na.qualcomm.com) ([10.52.223.231]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Aug 2021 21:31:10 -0700 Received: from [10.110.12.68] (10.80.80.8) by nasanex01a.na.qualcomm.com (10.52.223.231) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.858.15; Thu, 12 Aug 2021 21:31:09 -0700 Subject: Re: [PATCH 0/3] soc: qcom: Add download mode support for QTI platforms To: Stephen Boyd , Andy Gross , "Bjorn Andersson" , Rob Herring , "Sai Prakash Ranjan" CC: , , , , "Rajendra Nayak" , Sibi Sankar , References: From: Trilok Soni Message-ID: <0178821e-a8cd-87c8-640c-4928201a3b5a@quicinc.com> Date: Thu, 12 Aug 2021 21:31:08 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanexm03f.na.qualcomm.com (10.85.0.47) To nasanex01a.na.qualcomm.com (10.52.223.231) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Stephen, On 8/12/2021 5:16 PM, Stephen Boyd wrote: > Quoting Sai Prakash Ranjan (2021-08-12 02:17:39) >> Collecting ramdumps on QTI platforms mainly require two things, >> SDI (System Debug Image) enabled firmware and kernel support to >> configure download mode cookies and SDI settings. Ramdumps can >> be collected once the system enters the download mode. To enter >> download mode, magic values or cookies need to be set in IMEM >> which is used by firmware to decide to enter download mode or not. >> Download mode cookies remain the same across targets and SDI disable >> register needs to be set or SDI needs to be disabled in case of normal >> reboot since ramdumps are supposed to be for crash debugging and >> not for every reboot. This series adds the kernel support required >> to enter download mode. > > I don't recall if we discussed this on the list, but I'd really prefer > that we don't make kernel changes to support this beyond implementing > PSCI SYSTEM_RESET2 support and then some sort of vendor specific (or if > ARM is willing to update the spec then ARM specific) reset command on > panic reboot paths. The idea is to set the cookie in the bootloader > before the kernel is booted, then any insta-reboots/watchdogs would go > into download mode, no special init code required to lay down the cookie >> create mode 100644 drivers/soc/qcom/download_mode.c Some discussion by Elliot on the PSCI_SYSTEM_RESET2 and vendor bits was done here. You may want to check. https://lkml.org/lkml/2020/2/24/1137 ---Trilok Soni