Devicetree
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
Cc: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konradybcio@kernel.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Robert Marko <robimarko@gmail.com>,
	Guru Das Srinagesh <linux@gurudas.dev>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/4] dt-bindings: firmware: qcom,scm: Add minidump SRAM property
Date: Fri, 22 May 2026 11:15:22 +0200	[thread overview]
Message-ID: <04465873-17bd-4c84-ad51-29e648a88b4c@kernel.org> (raw)
In-Reply-To: <20260522075200.lzpj3cfqvrpzv7r3@hu-mojha-hyd.qualcomm.com>

On 22/05/2026 09:52, Mukesh Ojha wrote:
> On Wed, May 20, 2026 at 12:17:21PM +0200, Krzysztof Kozlowski wrote:
>> On Tue, May 19, 2026 at 10:44:39PM +0530, Mukesh Ojha wrote:
>>> On most Qualcomm SoCs where minidump is supported, a word in always-on
>>> SRAM is shared between the kernel and boot firmware. Before DDR is
>>> initialised on the warm reset following a crash, firmware reads this
>>> word to decide if minidump is enabled and collect a minidump and where
>>>  to deliver it (USB upload to a host, or save to local storage).
>>>
>>> Add a 'sram' property to the SCM binding to describe a region in
>>> always-on SRAM where the minidump download destination value could be
>>> written. Boot firmware reads it before DDR is initialised on a warm
>>> reset to decide where to store the minidump either to host PC or to
>>> on device storage.
>>>
>>> Signed-off-by: Mukesh Ojha <mukesh.ojha@oss.qualcomm.com>
>>> ---
>>>  .../devicetree/bindings/firmware/qcom,scm.yaml   | 16 ++++++++++++++++
>>>  1 file changed, 16 insertions(+)
>>>
>>> diff --git a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
>>> index 25f62bacbc91..27422d00b8fc 100644
>>> --- a/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
>>> +++ b/Documentation/devicetree/bindings/firmware/qcom,scm.yaml
>>> @@ -129,6 +129,13 @@ properties:
>>>            - description: offset of the download mode control register
>>>      description: TCSR hardware block
>>>  
>>> +  sram:
>>> +    description:
>>> +      Phandle to a region in always-on SRAM used to store the download
>>> +      mode value for boot firmware to read before DDR is initialised on
>>> +      the next warm reset.
>>> +    maxItems: 1
>>> +
>>>  allOf:
>>>    # Clocks
>>>    - if:
>>> @@ -250,3 +257,12 @@ examples:
>>>              clock-names = "core", "bus", "iface";
>>>          };
>>>      };
>>> +
>>> +  - |
>>> +    firmware {
>>> +        scm {
>>> +            compatible = "qcom,scm-kaanapali", "qcom,scm";
>>
>> Incomplete, missing interrupts.
> 
> Interrupt number comes from firmware and has not even been described
> statically for SCM  for any SoC and so I am not sure to include it in
> the example. Perhaps I took the wrong example here and should have taken
> some pre-Gunyah Qualcomm SoC.

Then you do not need a new example. Difference in one property (reset
cells) does not justify new example.


Best regards,
Krzysztof

  reply	other threads:[~2026-05-22  9:15 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-19 17:14 [PATCH v2 0/4] firmware: qcom: scm: Add minidump SRAM destination support Mukesh Ojha
2026-05-19 17:14 ` [PATCH v2 1/4] dt-bindings: firmware: qcom,scm: Add minidump SRAM property Mukesh Ojha
2026-05-19 17:34   ` sashiko-bot
2026-05-20 10:17   ` Krzysztof Kozlowski
2026-05-22  7:52     ` Mukesh Ojha
2026-05-22  9:15       ` Krzysztof Kozlowski [this message]
2026-05-22 15:43         ` Mukesh Ojha
2026-05-19 17:14 ` [PATCH v2 2/4] firmware: qcom: scm: use dev_err_probe() for dload address failure Mukesh Ojha
2026-05-19 17:14 ` [PATCH v2 3/4] firmware: qcom: scm: Add minidump SRAM support Mukesh Ojha
2026-05-19 18:04   ` sashiko-bot
2026-05-21 10:21   ` Konrad Dybcio
2026-05-22 15:58     ` Mukesh Ojha
2026-05-21 10:21   ` Konrad Dybcio
2026-05-22 15:56     ` Mukesh Ojha
2026-05-19 17:14 ` [PATCH v2 4/4] arm64: dts: qcom: kaanapali: Add minidump SRAM config to SCM node Mukesh Ojha
2026-05-21 10:16   ` Konrad Dybcio

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=04465873-17bd-4c84-ad51-29e648a88b4c@kernel.org \
    --to=krzk@kernel.org \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=konradybcio@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@gurudas.dev \
    --cc=mukesh.ojha@oss.qualcomm.com \
    --cc=robh@kernel.org \
    --cc=robimarko@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox