From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9E7A305E28 for ; Wed, 24 Jun 2026 19:08:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.168.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782328123; cv=none; b=hsPNyFnm1REtiYoAqmNIH7OezSgBpvM5eTCz1Qb/MsK1Vwu2c6nEf/Qz2IFyF/JRPdwWZplczL2Ol7yXSJDQEiZu1URRlpze84VDKnQwI75ZKalTIcLsfBJaiqHZpqgErynUS/YhDJXgPY0KA054ZWNo/p7mpPcrX+Nnr7z7ARM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782328123; c=relaxed/simple; bh=VwWzfAW5Y3rtN94V8GT+TiSFlqqWwD4sFhgs5ySHZ+g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SMqTA878hcUy8PqTDgKzHAFaawbo/mA4HOpRVPMYLHQ+imYc5IRlfDoMXZjSsz/+nMJokmwyF3z33aNhbc4t+m6M5QKNuFAyzulF0PMFKY/fnTe5CkZDC8WcPGXmwklbv+PMky+XauzyZuloZosTBUQkMPtyIrIDS96P47lrJ/E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b=YBmqaRTr; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=AnjND9mD; arc=none smtp.client-ip=205.220.168.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.b="YBmqaRTr"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="AnjND9mD" Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65OHj1MS978369 for ; Wed, 24 Jun 2026 19:08:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:message-id:mime-version :subject:to; s=qcppdkim1; bh=bcLj/8grHtyEunak906CP6boFR5bOdJvWa5 DwUNzQYA=; b=YBmqaRTrsnQ4Ez0Z227rNEchLw2VBUhRvOb5VbXVwMLU7xTFGpH Dy9u0Aa33RqjJyp1zb1/31/q2Xo3EPQbSPz4XlODXxNsXqs8YKozyQ1VUS8uCB0B KaABOIyEPB8ubunVIRvskg5CaDMqBXgOG+njg94mvmc5iVQEjomyUF94DMAi1gEc tKVV0cJwSqD3fBsINMxh2ZkWsU/1mSAG0z6zhyrP9C37/f+piUTG20oq+U+myvQT Ke9F/v47H3vZ22r0YdtGhdoMzB/qI9yPj4z8TLqIfn5X/jH4FCyQOk1TOatfUuv6 8vjhVtdCvRr7IrEwRBQ6P+xRaQ/iEYyiowg== Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4f0aqpau32-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 24 Jun 2026 19:08:40 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-c88cfe287e1so1131469a12.1 for ; Wed, 24 Jun 2026 12:08:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1782328119; x=1782932919; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=bcLj/8grHtyEunak906CP6boFR5bOdJvWa5DwUNzQYA=; b=AnjND9mDRqwhQCATsUkHaH24oblxUvFqjYWDNWzjwnTpXcpR1OZ9RpTER3WbfT1Jap DT4Wkf6dUX9EgfJPSb5/BWwAdCOybN2j0rinkRPrpgFz4LSc3EAJeq+n8nsL3TxZFtFr lmWDnln/3IZGMlwvlmGjv9h8FVq2Cuh5MeY7DSVEThJB58YdNsJT02VtkSPkS8KbSP1E Jr6nQp62VbG8K6aRkEI1uEA7GnzzRnXvuWtqAwajQozFx5wO0ICRYQDx4H6a6OU56jNQ jsilXtvyvgEcFs5eVfVPoZ7FgeEQ2+9hTKBIgUQQAS2x/rLPNafFcTN2sMag88VWHkyB D5YA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1782328119; x=1782932919; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bcLj/8grHtyEunak906CP6boFR5bOdJvWa5DwUNzQYA=; b=X/FNCJX4TkPBOvQOPAtJqANYfL476Liawhhmxj9VtFviO5Y9PgCjFB+vbi16G9tM6c qM/yZsydqa6dvpSnSiPz2QoTYk2vdx1NgnlOL/6HfxyuZXIhKzfzAZgh/EI3ZW8Vec71 uzOhEOF2bH5mzlSqUyXo2BVCDg1YhNPnLgkmbmOcddcwha3GqdJ18kLC/RgaQSVwJ2KD 0Q2R8X/9FCXr3Imvn8P+pri1qFhqCQGR8BSOphK8hn7HZIuhZJHVKeuWSfwJDsT2mpN1 YJ0FcQ/15NUVpQ56U+sd42/HYlhFqqKjTKsCdYNWT2WSdCQ2E5rbVYQyiqpFtdWfvNfl Abmg== X-Forwarded-Encrypted: i=1; AHgh+Rqb7TAlqVOjhK2cHqwI/vV9zBSBiBHhl9dg4A4TCDDewOlSfleDA1kcnDZxdNRFkpjnMapXkKCUOHRmzy4=@vger.kernel.org X-Gm-Message-State: AOJu0YymKU/cyaE4nF44cCkzgaj3QXKOVLn9iIvhqW5p3BLoPAR+JvJC 1OeZlrG6hrhS9AYwNYOhi1y/I9GYDeLZTf8Fq3fElcuzJUfE07wWQYp6BUVog/5c3aTBU6hkJAo Yl6UqHiKHj7O6Wlb0VrFKifYy5Poi5jBJGEKpR+NmbBzqvFdGM5iHLaRSxKnqDyR55vk= X-Gm-Gg: AfdE7ckylpWryBzCpSnXb7arZU6NSD2CzgjYykxOI2Zpz/pAvTSac2ay2w532QGdTrs Eu8wR7FzR97uViUVnanHEQyLUhU14KwFN/GR70o/cU1rd019rS85BX4bvfR2aBiKwrfnVfCgHlc RDM9KP/fYk551oU5kXJPunNTK7mXvM5M97r1EPdx/mltxADjHtQTE8GNPwx8GjcoswlfDFwELZT 9m5PgQIPWcRaMsOfxP51S1RNDEgQ+Kpt81SQYYJXC9/drodAdpXv+Yo8sidh7rsYZi041RTPWYk wge3hliO3gkR2G89WgSlZdzpLSuQBXxQigPwlJf8cDst/oGnyOmN2pp77HRx1aemIdYEW5m2B5o W616QgAMWnufxD8J2mwXVE3Ck6mwGWN4clsz+3g== X-Received: by 2002:a05:6a00:182a:b0:845:2f67:a0e6 with SMTP id d2e1a72fcca58-845a2ca7ccbmr5417320b3a.46.1782328119308; Wed, 24 Jun 2026 12:08:39 -0700 (PDT) X-Received: by 2002:a05:6a00:182a:b0:845:2f67:a0e6 with SMTP id d2e1a72fcca58-845a2ca7ccbmr5417279b3a.46.1782328118722; Wed, 24 Jun 2026 12:08:38 -0700 (PDT) Received: from hu-mojha-hyd.qualcomm.com ([202.46.23.25]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-845a412e5e9sm2932120b3a.54.2026.06.24.12.08.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Jun 2026 12:08:38 -0700 (PDT) From: Mukesh Ojha To: Bjorn Andersson , Konrad Dybcio , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Robert Marko , Guru Das Srinagesh Cc: cros-qcom-dts-watchers@chromium.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Mukesh Ojha Subject: [PATCH v4 00/19] firmware: qcom: scm: Add minidump SRAM destination support Date: Thu, 25 Jun 2026 00:38:11 +0530 Message-ID: <20260624190830.3131112-1-mukesh.ojha@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: DXbOEe4fRlZ5l2NTTUC7-GTmYKpDwL2z X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjI0MDE2MCBTYWx0ZWRfX0Fb4p1EX+v7E VcfoOBswj7CUzAa6Pm7e3ecWP4Bg07eyq7K44D5pha+bvMvuTQ27Jo30FMT+LXzaihFMBhteOS6 2XaqTm4Y2R5dmRr89K2tBE99kihCPBoSDmldwMAIMelvu2qW3W5wXrIgMpQbBFYsoU9w3HGZAyQ bqt8JrnxGGX7B4bnhIzEIFzP7oYlY3FFlpfB41p+Vq7dd4+Yva8DmN7d7nH5KCj/NSzC4lAfgZi FMfaK5RxWPZypv4Z6SnQx3I6sNj4JFAaqTosNAWj+eC0I/dJ393ZB8qBxs5W13tLyH4C7ldjcpJ 1a0v8xd2/wb1wvkMwo09XIXGRaw2TD/sw57BQxwb8dCYfOHmMKZsKL7uKmX0YNfozaFuwa3oXy1 MRZwaAEOfQeLtsnkyBY4VXqqwy/Kew== X-Authority-Analysis: v=2.4 cv=QLhYgALL c=1 sm=1 tr=0 ts=6a3c2b38 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=ZePRamnt/+rB5gQjfz0u9A==:17 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=CSD38U4Wc0CwKdJc0hQA:9 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-Spam-Info: AW1haW4tMjYwNjI0MDE2MCBTYWx0ZWRfX4u+mi6PCMiJ9 wmuBxRKvpscGdbnuJ4HHVlN0w2wPqReT8jtmEaNlvqZ2pBi02Dn909pnju51V42oZCYR0XeIrXC sxaZuVXiSP/v4Xc5JcMBU4AdJZcAe5I= X-Proofpoint-GUID: DXbOEe4fRlZ5l2NTTUC7-GTmYKpDwL2z X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-24_03,2026-06-24_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 malwarescore=0 adultscore=0 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2606240160 On most Qualcomm SoCs where minidump is supported, a word in always-on SRAM is shared between the operating system (OS) 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: destination (USB upload to a host, or save to local storage) and OS is expected to select one destination. This series wires that mechanism into the SCM driver: [1]- The SRAM word location is described via a 'sram' phandle on the SCM DT node. [2]- Add minidump-sram pattern property for older soc which supports minidump destination support. [3-4]- Trivial change for consistency. [5]- A 'minidump_dest' module parameter (default: usb) selects the destination. Custom kernel_param_ops expose it as the human- readable strings "usb" or "storage". [6-19]- Add the support for Kaanapali and other various SoCs. Change in v4: https://lore.kernel.org/all/20260522195009.2961022-1-mukesh.ojha@oss.qualcomm.com/ - Refactor commit text for 1, 2, 5. - added new commit(3/19) for existing issue reported by Sasiko . Changes in v3: https://lore.kernel.org/lkml/20260519171442.1582987-1-mukesh.ojha@oss.qualcomm.com/ - Addressed some code improvement comments. - Removed example from scm binding. - Added minidump-sram binding which follows qcom,imem binding. - Added some more SoCs which supports this . Changes in v2: https://lore.kernel.org/lkml/20260507080727.3227367-1-mukesh.ojha@oss.qualcomm.com/ - Remove the restriction on the binding change done in v1. - Remove sram-name from binding. - sram definition is introduced and merged, so removed the refs from v1. - Minor change in the log as per comment s/find/get/ - remove reference of sram-names - use minidump-sram instead of minidump-config. Mukesh Ojha (19): dt-bindings: firmware: qcom,scm: Add minidump SRAM property dt-bindings: sram: qcom,imem: Add minidump-sram pattern property firmware: qcom: scm: Fix missing smp_load_acquire() firmware: qcom: scm: use dev_err_probe() for dload address failure firmware: qcom: scm: Add minidump SRAM support arm64: dts: qcom: kaanapali: Add minidump SRAM config to SCM node arm64: dts: qcom: sm8450: Add minidump SRAM config to SCM node arm64: dts: qcom: sa8775p: Add minidump SRAM config to SCM node arm64: dts: qcom: qcs8300: Add minidump SRAM config to SCM node arm64: dts: qcom: qdu1000: Add minidump SRAM config to SCM node arm64: dts: qcom: sm8550: Add minidump SRAM config to SCM node arm64: dts: qcom: sm8650: Add minidump SRAM config to SCM node arm64: dts: qcom: sc7280: Add minidump SRAM config to SCM node arm64: dts: qcom: sm8350: Add minidump SRAM config to SCM node arm64: dts: qcom: sc7180: Add minidump SRAM config to SCM node arm64: dts: qcom: sm6350: Add minidump SRAM config to SCM node arm64: dts: qcom: sm6375: Add minidump SRAM config to SCM node arm64: dts: qcom: qcs615: Add minidump SRAM config to SCM node arm64: dts: qcom: sdm845: Add minidump SRAM config to SCM node .../bindings/firmware/qcom,scm.yaml | 7 + .../devicetree/bindings/sram/qcom,imem.yaml | 16 +++ arch/arm64/boot/dts/qcom/kaanapali.dtsi | 5 + arch/arm64/boot/dts/qcom/kodiak.dtsi | 5 + arch/arm64/boot/dts/qcom/lemans.dtsi | 5 + arch/arm64/boot/dts/qcom/monaco.dtsi | 5 + arch/arm64/boot/dts/qcom/qdu1000.dtsi | 5 + arch/arm64/boot/dts/qcom/sc7180.dtsi | 5 + arch/arm64/boot/dts/qcom/sdm845.dtsi | 5 + arch/arm64/boot/dts/qcom/sm6350.dtsi | 5 + arch/arm64/boot/dts/qcom/sm6375.dtsi | 5 + arch/arm64/boot/dts/qcom/sm8350.dtsi | 5 + arch/arm64/boot/dts/qcom/sm8450.dtsi | 5 + arch/arm64/boot/dts/qcom/sm8550.dtsi | 5 + arch/arm64/boot/dts/qcom/sm8650.dtsi | 5 + arch/arm64/boot/dts/qcom/talos.dtsi | 5 + drivers/firmware/qcom/qcom_scm.c | 120 ++++++++++++++++-- 17 files changed, 201 insertions(+), 12 deletions(-) -- 2.53.0