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 36EA1369981 for ; Wed, 13 May 2026 05:03:24 +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=1778648606; cv=none; b=AwMHySGANXWBbQwI49O8B47QsD60AAW1o99XD2YDdWXZAZuyjqPnLh2us7aPamok3iBCxFxMH343rUIJ+5WugwQ6Zd/fEgjbVXdEAHOfUa3wySjJp8fidIggfVbhhd6OQSRc7gb6XxN1O/lCdYDsCWKSEmGHPtOvKRwnrLJtfoU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778648606; c=relaxed/simple; bh=3y2DTgGvaCN79v5u846mV4AvR5kKV3/9Ga6aVGHPK28=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=HxfQ9l3M8iha6JLemB3oFuaOAJK/VdLJquQG9QPgnjl3pz9VgyQ6SRFzgY4ewxq2uWeor2rgJltdfqvz1av+ayDY5RkBw4/AUvcl+5Fj1QWz4HnihnRkV+aUZ2tQ8CA+DjfL6ERWzuTmeQhdfv3RxYTPmUFf226rO8cBVHMQuCY= 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=gXGXy5fS; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=ZiVfsSs0; 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="gXGXy5fS"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="ZiVfsSs0" Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 64D4pH1p2933178 for ; Wed, 13 May 2026 05:03:24 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=d6j+XWNH1ImNatZS4xxXIB mLlEqL9OYbGkyb149+3Nc=; b=gXGXy5fSnUkytYNrRW8W0x5c+GW0Pm4WEeArZj gscfmRd7Ey8v/sfGsRHy4ep7zR2Iidh+Qooe6uz5HOguG/rnxJCBXubKQ/xxsUh1 8LdvM7qPSV6znYOdzx5bWhRZnVBr0a2NPSzACFI2Fr6ZNV0Qd2Lw0cer6SlhOBzO UG8bBVik4uhoyjKiaHnig7O1lQK7cvQQxu83q62KfPtY9+b5AFhKZg6TEPCL1c1B 2JMe1OuxchHbrliYWlYBijpl/MsrIywx7vOkXFWT/6udzhSK9PhdK1cBjl8FP9oN is80wpnhqw/2UuBR7mOO29swIpnTXfwuhxtlILZs9PrTqaVg== Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4e4319uq12-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 13 May 2026 05:03:23 +0000 (GMT) Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-836cfd84728so3759538b3a.0 for ; Tue, 12 May 2026 22:03:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1778648603; x=1779253403; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=d6j+XWNH1ImNatZS4xxXIBmLlEqL9OYbGkyb149+3Nc=; b=ZiVfsSs0qWrrmcyrNEMNGkBzIshUQaMShXSnboQuJ+DDSA8FoDF2U7U9t8vvGR6LnA oOkcfNWG0nvW5SkE7Y/17Yi/FZlxYmgocpuU1b8WtA486BGJx9LKA28jDM4A1BVm3wsg ESmVupd5Rh6FbyxLpMQLLVSc+1c2DduoAltLeJZ3oGjp6EfDcIrQ/EMOhjo9Y+CVcZ7r AiOxeoQ+oMO8oCi8ZvxnxyLEe8fE2uFqG7MywOxze3/EQ1k3/ICw1DhebE601QIDQGEo bdHAvDsEThsj+tjx3SCOjO57b9BS5eS3UcMENqZHv0T10EI9dW9CT/eGfZjHi2xM7N5/ Y1LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1778648603; x=1779253403; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=d6j+XWNH1ImNatZS4xxXIBmLlEqL9OYbGkyb149+3Nc=; b=CUq9Qc27m/ybChQxWP3txZY//aPj25jldcA5c+FhzozsrcZSrkugLK1WIlzlMV8fyk rT2eFbSyW3qFtLrR2oVtEYfnWl3yOqdxfov2h9Aw3QvJ4OqP547Sq0T9ByQsAvIAwRpW KSjpMKoe1gj79CqII+ER8SGxeIDoFuOvbSS8MKeaVubpIlcIXq8hN5EoCfYSRyrm3Hwh 5+2Cy4HbgoodwHth9IimzciH1TaUyjcd+++/Pjd4EngTeX0WWyYwomNTLUutE5K8gh3B bToPDmEvT0AMDferxcZxy1cjltn59/mx0CNBD3JA35rvxt29iOSdP5BtJ3XnxOuaYNVp 4MjA== X-Forwarded-Encrypted: i=1; AFNElJ+vivEATJmtc0K1D6R0Su67YqTCVsiGmM4APQoAwz/zSTUvqWL66ev30V8TLRAIzKO2f50z9LPinLYFR6o=@vger.kernel.org X-Gm-Message-State: AOJu0YwjH8DqkM83JGDXbPtQmi8poC+dthVtnTm9A0ryGjoTN5/mQ79a s0hRyKpab6RVsatLuyXNrWLbYgrUWPhebR3vym4ypk/iLCj81NHeUNhTdzuV7DOfLb//6XZU9ds d/ma85a0p67JLWJnA7Yt3Ua9jxDjejbFUePH10q5xkhilHZoCMOKD59qete6uosjUcL8= X-Gm-Gg: Acq92OH5JZBYtOwfHM2niCgW6jnI9aChDZcqnlWCshd0H038ix1763dBnwPXV1jSzLN IWfZHMIRk0J2R5bEGQEydtZWlhZER93tQ6T2d2HYmOy+tugC37hQiN9J/DtiimTEwuZs9tVLH3O lyGGsmY47BAuppp4VSkQrs/uIn9TK7q6iBoVONgH4UT9nGg5yOQGeG2zwNM8oIJaErhLiZy9+jX 8aSUsejR55v7JOaeVPK/kVhMB24UY4uLYkjNw3nefnU8/M0bDEI40huWEcejrUWkyWci6AEzCcx VMoYbbP27rYXT86ffFQOhTqekavDAv67N6/Cf3IzDXUfHRjD/7KZYxmYRjt/HvpkmbZ8AuGbpJg ZgjILhsfQxZ9WhGR4QYyxGF1Rm1P6bwQMUcz6UhwHxwE6FEwK7+oxOWAv7PHUsxpYVHeFFv3fTG dbsg+BlaYW63VlwAVwVpPf5Y9fe0ZxKWcDcCTP5XDDiI02Yc5qD2WZUZpP X-Received: by 2002:a05:6a00:1886:b0:829:b08f:7353 with SMTP id d2e1a72fcca58-83f02d2e731mr1711350b3a.7.1778648602797; Tue, 12 May 2026 22:03:22 -0700 (PDT) X-Received: by 2002:a05:6a00:1886:b0:829:b08f:7353 with SMTP id d2e1a72fcca58-83f02d2e731mr1711306b3a.7.1778648602257; Tue, 12 May 2026 22:03:22 -0700 (PDT) Received: from hu-kathirav-blr.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com. [103.229.18.19]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-83965945c1bsm26328020b3a.15.2026.05.12.22.03.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 May 2026 22:03:21 -0700 (PDT) From: Kathiravan Thirumoorthy Subject: [PATCH v10 0/3] Add support to read the watchdog bootstatus from IMEM Date: Wed, 13 May 2026 10:30:29 +0530 Message-Id: <20260513-wdt_reset_reason-v10-0-cebda08ab1ef@oss.qualcomm.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAG0FBGoC/3XNQQ7CIBAF0KsY1mIGKkzrynsYYyidKoktCrVqT O8uuNFF3fzk/2TevFik4CiyzeLFAo0uOt+nImC5YPZk+iNx16SBSZAKtAB+b4ZDoEg5TfQ9R6N MSwgSULF0dgnUusfH3O1TP7k4+PD8vBh1XjOmQRQz2Kg58LVAU2NZ2abCrY9xdb2Zs/Vdt0rBs jni15FSzTiYHK0aVSMVJKj+45S/jp5xyuSAELYwpa1128440zS9Aa9mlaRIAQAA X-Change-ID: 20250610-wdt_reset_reason-7a5afe702075 To: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Bjorn Andersson , Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Kathiravan Thirumoorthy , Krzysztof Kozlowski , Dmitry Baryshkov , Konrad Dybcio X-Mailer: b4 0.15.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1778648598; l=4515; i=kathiravan.thirumoorthy@oss.qualcomm.com; s=20230906; h=from:subject:message-id; bh=3y2DTgGvaCN79v5u846mV4AvR5kKV3/9Ga6aVGHPK28=; b=r96DTGicz2FBmzYyestGjnOSb8K1Y9lrge0HpZzvrNnOv77Ne2DuNxs3TDczLIAzDC8F+CWxa bcqCKsJVitYDpdT268EuCTe5N1Bf+HepRPFi6RLTTboX2VUyV5ughGf X-Developer-Key: i=kathiravan.thirumoorthy@oss.qualcomm.com; a=ed25519; pk=xWsR7pL6ch+vdZ9MoFGEaP61JUaRf0XaZYWztbQsIiM= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNTEzMDA0OCBTYWx0ZWRfX/23CfFrumMJy IdO9SIB9QTXseBzXWqLWtxj6oEGTWfzDy06d7QdzyJrFb5Ks1GUuDwJCQKJIxJBY3ATVfwUA7+Q RsbKIQpwGdcKJXBFiAp1rF+fzfHVdZlkp5Z2drtORXqxAPP3+KUBd4tfAKG9k6c7uExLN1kd9Jw FaeTDaF0jNV9WeUrFfDh3G+89/CqpN+tzvVbt7aXBS6WaeVhQV4vATuL5bRjRLzr/727VCKC5os UlUrIH6c94CEXDl6+RMehGKiXqrSQpf6LjFiAUXggk+UiRZsUjeo64LZtIILF1iFT6/zw8acOls VaQuZ8wZWFkZOAKD8NTb9TJ6NjOzukPZS6mkfkpDU0yrEz3BRhogAQoFoT6M5Hehbt2UeQukW1f Z9ev3CgTnSKr4kCLmKglr5+TS23NbezTsz2SmTTdo65JL25M1/Hh/23rxPufBp+3QG4XYSO3/jT 3XEeppFHgLcLRpwL0xA== X-Proofpoint-GUID: hBdS5vi04tapalZKQK7MpVyCijZDsWUd X-Authority-Analysis: v=2.4 cv=bp98wkai c=1 sm=1 tr=0 ts=6a04061b cx=c_pps a=m5Vt/hrsBiPMCU0y4gIsQw==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=NGcC8JguVDcA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=gEfo2CItAAAA:8 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=K0PYKaws7Cf5qQY9JUMA:9 a=QEXdDO2ut3YA:10 a=IoOABgeZipijB_acs4fv:22 a=sptkURWiP4Gy88Gu7hUp:22 X-Proofpoint-ORIG-GUID: hBdS5vi04tapalZKQK7MpVyCijZDsWUd X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.51,FMLib:17.12.100.49 definitions=2026-05-11_05,2026-05-08_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 clxscore=1015 bulkscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 phishscore=0 spamscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605050000 definitions=main-2605130048 In Qualcomm IPQ SoCs, if the system is rebooted due to the watchdog timeout, there is no way to identify it. Current approach of checking the EXPIRED_STATUS in WDT_STS is not working. To achieve this, if the system is rebooted due to watchdog timeout, the information is captured in the IMEM by the bootloader (along with other reason codes as well). This series attempts to address this by adding the support to read the IMEM and populate the information via bootstatus sysfs file. With the CONFIG_WATCHDOG_SYSFS enabled, user can extract the information as below: cat /sys/devices/platform/soc@0/f410000.watchdog/watchdog/watchdog0/bootstatus 32 Upto V9, this series has changes targeted for both qcom and watchdog tree. So V10 was sent with only watchdog changes and it is picked into watchdog tree[1]. For the remaining DTS patches, sending it as V10 again which needs to be picked via qcom tree. Since the watchdog changes are not yet reflected in linux-next yet, upon merging this before the linux-next gets refreshed, below DT binding warning will be seen arch/arm64/boot/dts/qcom/ipq5424-rdp466.dtb: watchdog@f410000: Unevaluated properties are not allowed ('sram' was unexpected) from schema $id: http://devicetree.org/schemas/watchdog/qcom-wdt.yaml# [1] https://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging.git/log/?h=watchdog-next Signed-off-by: Kathiravan Thirumoorthy --- Changes in v10: - Dropped the watchdog patches which are applied to watchdog's tree - Link to v9: https://lore.kernel.org/all/20260228-wdt_reset_reason-v9-0-f96d7a4825d3@oss.qualcomm.com Changes in v9: - Picked up the R-b tag for 1/5 - In 4/5, if fetching the boot status failed, just log the error instead of exiting the probe - Link to v8: https://lore.kernel.org/r/20260226-wdt_reset_reason-v8-0-011c3a8cb6ff@oss.qualcomm.com Changes in v8: - Collected the tags - Updated the commit msg with reasoning in 1/5 - Updated the comment in 4/5 - Link to v7: https://lore.kernel.org/r/20260225-wdt_reset_reason-v7-0-65d5b7e3e1eb@oss.qualcomm.com Changes in v7: - Collected the tags - Added the reference link in 1/5 - Added the flag 'no-memory-wc' in 2/5 - Link to v6: https://lore.kernel.org/r/20260130-wdt_reset_reason-v6-0-417ab789cd97@oss.qualcomm.com Changes in v6: - Moved the IMEM compatible from qcom,imem to sram binding - Updated the 'sram' property in watchdog binding to point to SRAM region and update the watchdog driver accordingly - Dropped the Konrad's R-b tag in 2/5 Changes in v5: - Rename property 'qcom,imem' to 'sram' - Use dev_err_probe instead of dev_err - Link to v4: https://lore.kernel.org/linux-arm-msm/20250519-wdt_reset_reason-v4-0-d59d21275c75@oss.qualcomm.com/ Changes in v4: - Kept only the WDIOF_CARDRESET and dropped other codes (Guenter) - Renamed qcom_wdt_get_restart_reason() to qcom_wdt_get_bootstatus() - Dropped the device data and describe the required information in the DT (Konrad) - Link to v3: https://lore.kernel.org/linux-arm-msm/20250502-wdt_reset_reason-v3-0-b2dc7ace38ca@oss.qualcomm.com/ Changes in v3: - Picked up the relevant tags - Dropped the fallback compatible handling - Split the driver changes into 2. Introduce the device data in one and extend the same in another for the use case - Link to v2: https://lore.kernel.org/linux-arm-msm/20250416-wdt_reset_reason-v2-0-c65bba312914@oss.qualcomm.com/ Changes in v2: - Dropped the RFC tag - Reworked the driver changes to use the syscon API - Link to v1: https://lore.kernel.org/linux-arm-msm/20250408-wdt_reset_reason-v1-0-e6ec30c2c926@oss.qualcomm.com/ Signed-off-by: Kathiravan Thirumoorthy --- Kathiravan Thirumoorthy (3): dt-bindings: sram: describe the IPQ5424 IMEM as mmio-sram arm64: dts: qcom: ipq5424: Add the IMEM node arm64: dts: qcom: ipq5424: add support to get watchdog bootstatus from IMEM Documentation/devicetree/bindings/sram/qcom,imem.yaml | 1 - Documentation/devicetree/bindings/sram/sram.yaml | 1 + arch/arm64/boot/dts/qcom/ipq5424.dtsi | 16 ++++++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) --- base-commit: e98d21c170b01ddef366f023bbfcf6b31509fa83 change-id: 20250610-wdt_reset_reason-7a5afe702075 Best regards, -- Kathiravan Thirumoorthy