From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.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 AAD4E31A7F9 for ; Tue, 17 Feb 2026 09:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771322095; cv=none; b=tjTps7hp2+0VVGaWf1u87Qwozj89ttas1UQ35f91/9thRY4JtcquZ3yutWWqa6VRbsl30jhBquJIOHt1UTcOrcsgM222K9wQIVfXVU605XjX1IDOoxGQf0YLxNWP1qfbZkI/a7x/ZtPy34oFpDnSRsoF2vJtUav/v7VvDju+mdI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771322095; c=relaxed/simple; bh=NajylIh4wU6QxHDoZpZCd4doUZfOSptyiHaPIk8P1FU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=kwNDOdfPvixVAsasgKYXDdsuya3U6RfMPNa0e1hPIAqkoaMMpDo4GDOPZcs3MBZ4UUDe6B/aOrf7Om/axWRtbFVY5XFkFUnRxYLjNoTECb1LHudP0qLP8pSF1UNE1Ew5fFaT6sWJge486reSb3rzfnc8eExA1/IlLFicDWe8ySk= 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=Pg30BQZt; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=eDJ6huIm; arc=none smtp.client-ip=205.220.180.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="Pg30BQZt"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="eDJ6huIm" Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61GI9rKg2801723 for ; Tue, 17 Feb 2026 09:54:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= z3pQFaahyW/H3T1LaSIHvK20xeUyryfazpOHa5zl7rg=; b=Pg30BQZtOXr9+rCv DUCVmkd+CSHfwgY9At0Rc9vVL/E7/u8X/Yjdkb04kIqkzFEmXyAYSBNOVEd0w1Ah RunFVw9OvbJRv5Q1qCTDSQR+JrQWpgiVhVSwX/YLjd20JAZHOQgfwI/axnlspm6o 6SIoJRAyFpmx5oUz0BdFTdPOKNMof7VfrZEzF4dDh5ROOx0XKtp/zcH4FeZK4H0M NVtE5wsRS6vnYT/Ce0IaZgnm+zBi4sDy3TsNUHmVZi0ao0qcgI6l31ye5Wsnj03o 5xGAbfI9Mwhx/gtLvTFT3M9kkk9x0xbJgAOWH/MNI8nPSOqPB/F7hVxKpw6BVztc e9Saww== Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cbyxujy8k-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 17 Feb 2026 09:54:53 +0000 (GMT) Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-8954ab64c65so41558576d6.3 for ; Tue, 17 Feb 2026 01:54:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1771322093; x=1771926893; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=z3pQFaahyW/H3T1LaSIHvK20xeUyryfazpOHa5zl7rg=; b=eDJ6huImguToDipt9fic6IK7tU7/4NYV40wbY7DldAU76Dmts4YQ2A+SMu0MJFG0nF w+k+j8O8OnzEC/TMEfLr/UtqwndTwaGRarRZw5NiV2avYfKGniPlPH2CXHYiwMHN6b0D RU5ScrFRnhY1jC6VKunK9FOduzOaxe2qL1uKgdyrHB777kScD45HrrVpm7vpLScy/uZ0 1ltdmSXUSp5tQcvvceZUW3hLWOq7UidP3rkQIrpaVCdiHQcmC+nouipr5qNsGlU03Vs0 pMNYW4TYKyq+7obRlShxEvtnz1/kH1vXrj9Zb4oOahPetHoFtXjBEjWYtpAiR6w2Woma /9WQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1771322093; x=1771926893; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=z3pQFaahyW/H3T1LaSIHvK20xeUyryfazpOHa5zl7rg=; b=sl0Bv4IJZ3mhH/6dfQmoTQoU3cq/q80yzLPxmXA8h6fclHUDOGYm4desk+NT/UMTG4 3WFvWgVcfwMV2rRjjG0CRseFjP7yPNlUL5k13s7lQHtmY/pm2ZVFSQSCU2DrUqIETFwl cYYWMwOUHFzkADfatqMRjiMmgT6Su+YEDKSnqjXCffzzwZmcAUGy5fEJgZgAht6WhmQw 7F3YVoF18cBBoM8/fy9Z6//gFc6PAuE+Z0bz7xrETrduf0CTEKR6/n5eWNens/l7e6Rm 9Jw2Kzh4SfAIU6C2Yx+3eooYl61L6HInGfwz+ILTL8aUK0yJShA5bFnRjEBphriPHQi/ nU/A== X-Forwarded-Encrypted: i=1; AJvYcCUqgLYLZzQP9Wq9DwEQE0jL1hcduAkOnGmhuaUB/i3lXu2ueDHzROVR9DpL7fUnQ2FnmPjatAYt3HqhRHA=@vger.kernel.org X-Gm-Message-State: AOJu0YzUoWRUQ2R+w+ZzLtZ/TNNvcHjjoi3/usUyl7iz4Nw+NusUjz+V 0dl4mtNkhXW1iNcjSG4ymxA8lwn4kgRN/RlDZHXXDnuCfsor3k4781BCRr640igu82eyWjJbEK7 lpN07p3l4Ckr1uDceaC+6D/OT+NdqBOXlrHKLceXNuRghy6pOqikn4rDTZuXlUK6Dg2Y= X-Gm-Gg: AZuq6aJSmW/Rr++oRRI7ifHnEy2oLc+qkmf0IDRfVpAQkvlNV9yi7sVeap4LeKdJrd4 1jnZwds7MGV2appVO34rtAC60WqNtc7XX9vQRkMgc+W5o6/xx/TebEv5hpxEuRIH3VVdw6kesv+ Ljgxq0fYleVrHAFgmDuxal2J9L8zTV9QOuusJObt2FlfW9a+bDVUwKrdz81eRKUUueJgSZAXYEH aeSMZrvEBWVLMyG9TkWRWy6aGRjEtvOHaSzlouA1b9XW8uz9uqNPMF+0ezmQ+D6Q6RZiBLR+SIu GhhRihS7bli1tCA30/bQlaiCdkfRX+eLryCwR5ZC63I1LRtWzXy7+Z3eKqcuq1/qGr6tVVz3Smb QB46q3ILdjhybgV6ck7dUZSEIMr14pwqecFetT06da6GVnZ42QhdX+klYMoSDBsr9ZHi67V6mfC ZlOpE= X-Received: by 2002:a05:6214:8008:b0:894:de0a:4cf1 with SMTP id 6a1803df08f44-89734819033mr136689896d6.8.1771322092928; Tue, 17 Feb 2026 01:54:52 -0800 (PST) X-Received: by 2002:a05:6214:8008:b0:894:de0a:4cf1 with SMTP id 6a1803df08f44-89734819033mr136689566d6.8.1771322091671; Tue, 17 Feb 2026 01:54:51 -0800 (PST) Received: from [192.168.119.254] (078088045245.garwolin.vectranet.pl. [78.88.45.245]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b8fc76c7015sm325219966b.66.2026.02.17.01.54.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 17 Feb 2026 01:54:51 -0800 (PST) Message-ID: Date: Tue, 17 Feb 2026 10:54:48 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 5/5] arm64: dts: qcom: ipq5424: add support to get watchdog bootstatus from IMEM To: Mukesh Ojha Cc: Dmitry Baryshkov , Kathiravan Thirumoorthy , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio , Wim Van Sebroeck , Guenter Roeck , Rajendra Nayak , linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-watchdog@vger.kernel.org References: <20260130-wdt_reset_reason-v6-0-417ab789cd97@oss.qualcomm.com> <20260130-wdt_reset_reason-v6-5-417ab789cd97@oss.qualcomm.com> <5zqxloovexknbuhknbafc2trf66d6zwtvtkhjbchmbndxg2j6u@3giwqjkd2vl7> <20260202134402.ochfxv3lnju3dioa@hu-mojha-hyd.qualcomm.com> <20260206182207.3e5a2ui472lqzg7f@hu-mojha-hyd.qualcomm.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: <20260206182207.3e5a2ui472lqzg7f@hu-mojha-hyd.qualcomm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Proofpoint-GUID: RhB-jTadUrY-C1m2pB8zpQu8RH7kFLZ4 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwMjE3MDA4MiBTYWx0ZWRfXzDOJuTjb8sw6 gUBKkBHzP/AWywFoOZc9x5yBnUVOZi3iaqfNn7zqZTh0cC9nA1Ic3+mRiZH2zD0R98qeoL3oPZe WFiFUBNiUdCErYYxskaZZDapO9K8zQds5HiSIxSjC5xT5iYjKFEU+XT+f9DN8AwV7p3eZ+3GgYy mDNVM10ZObR3iTAiTI/uYhwKY/mIhqQMoQgAjE0yeiO7N9PrMjv0ZIDhPHnSUQVE1TbUizUyRRB jXP30IqVQG7D/H8LWMHMhY7eygMocqN38UOI/PAzfMqVW/iowREha23dt5HpZoJgBhWD7c1z7xS nyHPtsXqpjSdWCITXuMPcvGu77eeeetf9jGzn73WnZIKcHTk3ESf53MDVN4YbXuzsieRIzGMWNW mfRUnUBmI3lxR6Fcf8CU1IjP4MwqTOUixSlVYCYgOF0yxgi5wxIFlG416GL4p4GGhx8MlReqgth Fka8sjjh2oA+kCZRpEw== X-Authority-Analysis: v=2.4 cv=BpuQAIX5 c=1 sm=1 tr=0 ts=69943aed cx=c_pps a=UgVkIMxJMSkC9lv97toC5g==:117 a=FpWmc02/iXfjRdCD7H54yg==:17 a=IkcTkHD0fZMA:10 a=HzLeVaNsDn8A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=Mpw57Om8IfrbqaoTuvik:22 a=GgsMoib0sEa3-_RKJdDe:22 a=EUspDBNiAAAA:8 a=XiLjxmYdAC64a43f8_sA:9 a=QEXdDO2ut3YA:10 a=1HOtulTD9v-eNWfpl4qZ:22 X-Proofpoint-ORIG-GUID: RhB-jTadUrY-C1m2pB8zpQu8RH7kFLZ4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1121,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-02-17_01,2026-02-16_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 priorityscore=1501 adultscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 suspectscore=0 spamscore=0 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2601150000 definitions=main-2602170082 On 2/6/26 7:22 PM, Mukesh Ojha wrote: > On Wed, Feb 04, 2026 at 01:39:43PM +0100, Konrad Dybcio wrote: >> On 2/2/26 2:44 PM, Mukesh Ojha wrote: >>> On Sat, Jan 31, 2026 at 10:18:29AM +0200, Dmitry Baryshkov wrote: >>>> On Fri, Jan 30, 2026 at 04:14:34PM +0530, Kathiravan Thirumoorthy wrote: >>>>> Add the "sram" property to the watchdog device node to enable >>>>> retrieval of the system restart reason from IMEM, populated by XBL. >>>>> Parse this information in the watchdog driver and update the bootstatus >>>>> sysFS if the restart was triggered by a watchdog timeout. >>>>> >>>>> Signed-off-by: Kathiravan Thirumoorthy >>>>> --- >>>>> Changes in v6: >>>>> - Update the 'sram' property to point to the SRAM region >>>>> Changes in v5: >>>>> - Rename the property 'qcom,imem' to 'sram' >>>>> Changes in v4: >>>>> - New patch >>>>> --- >>>>> arch/arm64/boot/dts/qcom/ipq5424.dtsi | 5 +++++ >>>>> 1 file changed, 5 insertions(+) >>>>> >>>> >>>> Reviewed-by: Dmitry Baryshkov >>> >>> >>> I have a few more cookies (stored in a fixed IMEM location supported >>> downstream) that I want to add, and they are available on all Qualcomm >>> mobile SoCs. Should it be added under SMEM now? >> >> FWIW currently they won't be probed (if you wanted to give them a compatible >> string and bind a driver based on that), since drivers/misc/sram.c lacks an >> of_platform_populate(), but that's trivial to change >> >> I think getting agreement on dt-bindings may be the tougher part.. >> >> Are the cookies you want to use attached to any other part of the hardware >> (e.g. in case of pil-info it's directly connected to the rprocs), or are >> they general debug information? > > It is attached to Minidump collection storage type selection like USB or UFS/eMMC. > When we change dload mode (in SCM driver) to mini and change this IMEM to UFS > then the Minidump will be stored in UFS. > > It has to be SCM driver which should host this but it does not need to > be driver or device creation. Then I think something along these lines should be good: sram@f00bar { compatible = "qcom,xxx-imem".... minidump_config: minidump-config@baz { reg = <0xbaz 0x1234>; }; }; ... scm { compatible = ... sram = <&minidump_config>; // perhaps "sram-names" too? doesn't exist today but scm seems // too broad to rely on an index-based lookup that works for everyone }; Konrad