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 A6C79318121 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=1771322096; cv=none; b=YnG1pjrjyRikH4Y7oSmn2Y/LSm1IMNgAXphkyLd1vKSYR8OmgSr8r25AGXR148LEyVMLSBabtzHaSHN5HfaeG81DaXAVtjzWK3ep2CFoYTSz4IZD6o5wI3cyVbjYeHecEhqLJStwFASPT/rLoZ9rADAvwiyUhDM6y4/oAILLfa8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771322096; c=relaxed/simple; bh=NajylIh4wU6QxHDoZpZCd4doUZfOSptyiHaPIk8P1FU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=edZIlxkVu6aCo+CWruILz3E8CyWSOFaFOjlf0Dia7W3dhhb5vFeNZqxzZZvEa+FIwitQb8VbaHsq+YbxKS4Bnn12r4+t/N0PNnIKhvJlv1oH6IKeTPVHjgoOHRD0DMTk+o1IJ58jkr47ENUN/9cMdqEB9ciYsmYU+tSXVgfHOuo= 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 (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 61GL7fIL1613301 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-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4cc662swqe-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-f69.google.com with SMTP id 6a1803df08f44-8966be97747so28112176d6.2 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=XLR7Lq0812+UMsWOYWF1TYD93umCkr3jD2nMenR3VgltCzmZT2DkCJy8n0uXp1ghkZ xbpcW5cvgbYRjfW6l/XHhjr9V5/9Iut6IvNhGfXj6I1TigvE7/J04oTG7id5k5gFYZ/K ysF9kUs65yWHydGOuQEWcNWNwQhJf0SIdqkOm0erDN/HwOEPrVX3g/9utj1rNjQpQtbI 2aJZpW+/ZNm4TYNav47P82s+hVHIksM6JpOyYWCLWpEBzIYgTtP8sICvNMPy6Jc8QFsI gH2zkpev0/2AsOCP7J6SLzvYyK9LzwnAFepFi64t2R4y32fGBrrUzMoOqlBtwA2K8hID qXdQ== X-Forwarded-Encrypted: i=1; AJvYcCX6d8xadvmNyh81LIr9nUIN7gm0B3fQ/AmrJLFPBIibqiQayfpBG4jXxxzd7sjAD1wHnS7eKsQYYWPahgVZ@vger.kernel.org X-Gm-Message-State: AOJu0Yzjo1j8tns5/94iT6fIbxQtideUoeQ+eiWcIhgZnwT+v5JEIZzk ddWgub0+zbobx+RvkpAaeTh9lqH+QOdA3U2CIvfE7kE53UmBEW4uBHJdt4+948Xq0TdQw5j2+ld S4Pa8SlNbrgLLVTJCgBguVzdhvLZSytd/feVDSOEXBLrrKj7oXuGsY0kGcPaWgD68COCz X-Gm-Gg: AZuq6aIZOIPbOA2xFQGPVv3Zlc3SdXUJp/MzrPXlvxkF0W9KbhnFFAAc+cBRrLUt9Vh EesHjHxvmHJH1L5Yu+Ig5h26MLxh9B4cFup7YWh4uB0xS/07kfwBEHjVTBcSHD52veGY42iUk9D yFs4eTdvR5/VFieF1byCdfDHBbYK+HWfd7+EHGztWRvxLr+flAd/1mmptNuRsbnB++auodsFq1X EAfl/DUTxO9XEdSeE2etfbAF/N5neiGY7XUFG5hJ2XRJYKae0xT8PH2eXhaWfNoRpIvNnUU0QV6 vQKkW5dDuTMtFSfLjda+l/b3A+0+b8XVev59aIXuXhMnmmK6pnv+HLLGJBukg6TgqIgZ0KxUNQW 5PGe5d72tXnGEUVATr6gaDV33EQBQDET5Z1nZulNMesfWb5CQzxSZC/lkUM1q7ILSNhprM9FPOe myG/k= X-Received: by 2002:a05:6214:8008:b0:894:de0a:4cf1 with SMTP id 6a1803df08f44-89734819033mr136689856d6.8.1771322092927; 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-arm-msm@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-Spam-Details-Enc: AW1haW4tMjYwMjE3MDA4MiBTYWx0ZWRfX7FrH2teixy7G w9OdJUqCvV9Cacw4DkeHB0cQFHaJ7p9MBFVCpVpnET2/t/GccwnBO8Wj+7557WH05LczeS5WWAv qRp2Cz6/N2fJXi+PhJmoRpGILmfosq8oQE51qyBpU0bZ+v5AzI5Q3nAbLT2/UqhD8ZlcCxzHUn0 PwRXhZyNCzvLTocMEWXPkGSTvQAg5Uwr2olizdXT8AFpWDWtv85qC3WnOH2S4VSCR3qHG90aDNS pZwdNAVD61cX8mZlZc7JE5L/1/HKM+bPdK/t/vaI1snD/3p59gOpiEPamlce9tl/gYzuH80DDao LKZCuca6NQjJtzfeDqBTo+CRUUOTHg2ZvmFXMNPXhXcj2WEqV97aEGL+5Pyb7PmDuehbRq+JuNI N0EfxKyylIVO2LpQbclkvL3syGYsTm4+hmY1noYzQ3ADNuJkH3f6z2SeqiHqL7gW6h0Uzbwf76Y Fk/7LiA2P70cWbAHN3A== X-Authority-Analysis: v=2.4 cv=Y6b1cxeN c=1 sm=1 tr=0 ts=69943aed cx=c_pps a=wEM5vcRIz55oU/E2lInRtA==: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=OIgjcC2v60KrkQgK7BGD:22 X-Proofpoint-GUID: 8IxU0VQB6bQzG7HoIubvS3vtS0ZzYlQ_ X-Proofpoint-ORIG-GUID: 8IxU0VQB6bQzG7HoIubvS3vtS0ZzYlQ_ 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 clxscore=1015 suspectscore=0 adultscore=0 priorityscore=1501 impostorscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 phishscore=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