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 3E0DB41D201 for ; Mon, 27 Jul 2026 15:47:47 +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=1785167268; cv=none; b=svk+rfjkZ/vQ5mwVuIA9db/o3gYPzFmG6fD1zeq50rcAstYy4k0iVKvvVlxTAWzdUd9DHiL/rSuFyN9A8m8BLsk18mZjdEF9IJ8GrtDutminzJxY3Ix0aCUo7so/H8VUT4TGEMVm4/4BIvAmjpmf7tuud1+HCp4ylzy9ruVYIHI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785167268; c=relaxed/simple; bh=IsjrdH24CjSgc96IuCwaVspLRx+N6dGHCuJdewvIy3c=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=HATph4kvL4AnvYuqQj2Vf92zN+pd1VX+i4Se1oWiChikODPo418javv/6OzGxf+mYDzRRyQPBz8dxekvyS6BtgSymlbxXebnastqMeRYeM4/lA4x8GBl+RaRNTlq/AdOfqhNrEQeCMRQoMclRp1ClH5qpkGDaykYKalhibK/Zho= 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=Oxu5AgOG; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b=kb7d5+AN; 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="Oxu5AgOG"; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.b="kb7d5+AN" Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66RDlap84115096 for ; Mon, 27 Jul 2026 15:47:46 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=Z+43v1dS6IdmduzpcM3Ldi Bz89FaxkIy05MK0lyPXsM=; b=Oxu5AgOGg8ZUXiH6bnkDZaO708PkZZQ/v5BLtX 9fQsNsZVsYG7SXN/IWaINp/Q0pSqF7nfs8bAjdoNbTT4d5P6GYxpEnze102RyBGd kOC2OIZIz03UmR5rn4nF9KzvfyxFp0PpRgR0GZ8yB1PUAM5oWkJdmn8XNWtQ3bxE EKTVJoHcRB+aA+A9fP456iYR3BA6grMlpyS5T2CehoGqYKNi2RGRouqzzrf9CjeR TI/QELOIAHsLslpGNLsj/lQ4/Y/qGwqZlwsZamGJrR4TfaeHFK5O+zwy4klcHkr4 2WtpBMHBKvqtdUnO2H7ZbEA9ie/4wy4WoBQxDOA85CZ/WDNA== Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4fp4mrsj16-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 27 Jul 2026 15:47:46 +0000 (GMT) Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-84a3514f912so4966915b3a.3 for ; Mon, 27 Jul 2026 08:47:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1785167265; x=1785772065; darn=vger.kernel.org; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Z+43v1dS6IdmduzpcM3LdiBz89FaxkIy05MK0lyPXsM=; b=kb7d5+ANgtHGW+/bJoH8PPMSIqQsH6t+mVkaxFuzhb5M2F7JS5BL2bzEeunljLmF0/ rAxnM+ms3ZFxj1hGqMSCGN7RgpaSyTZqg983O48eihOncNXpGHlrATwjFAWiiA3UHrDo l63tarzzG17jg6nYKGX7UpA6XVak6OrWSPeLy6YSZThEs/+OY5cxXYD4s5HXtoATehT5 RFxL31+VfHTSA4nEEbyc1zTge+C7+OrVpyq2jwWIBcmhSZ7QGIHqJnxjRhrmSag5csr1 6YsUJQvy0sRddHbViVblCp0k14AkVw2M55MonSl6wAEope9v6FK5RHQyzCBS+PAYrFuy yEBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785167265; x=1785772065; h=cc:to:content-transfer-encoding:content-type:mime-version :message-id:date:subject:from:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to:content-type; bh=Z+43v1dS6IdmduzpcM3LdiBz89FaxkIy05MK0lyPXsM=; b=PQPq+Z3k6WDfX0d2wHOEkY9Y1OIDyMzAFd76NQ893it92ewuz7HRh1fHKM+ImnUpnW 6gGcUKzcGnsvaCjjcrutRiVIFMBKoxatVc6aiY5d+c5rMzWJ2LRw0iltcWU0aZT783f6 1vD9OVJ9VTbS7ondco6Gx8wEjbrxY5wdsYjjNYC4EXd84THEyn/Lp/x9tMm38Ro7+oY4 TARpHx9O3jZG2035PwROKiROkphfISrdz1opbftNrHU2l8P0kByeYkm6ZqKtg5jcVjx1 glCv2GsNux4rGBOKOdFKilEjqZ8nZiFXXbF6hz2HcpUosVNAZu49nGbO4zBiSmnrR2so dESg== X-Forwarded-Encrypted: i=1; AHgh+RoYOcI5Ax8Q16i2Z6Bo5XNT4CMoahmzGASz9bd0XjWOiQz6EhFnHY5lGrmIubIdgwN1HOoXX99NavMRHJg=@vger.kernel.org X-Gm-Message-State: AOJu0YzU8a5Me2SuDif33NU4vqZ5+JaAbQv1m2Nbn/A7rd7BVarvJDuh QgYoOzk9hqKHw+eSm+Bj9J8/xbVnrz6+R94uWXQKWY1P8jNfmjsqna5G7jxjNQOcm2v2TMto0BF YCt3K5I9fJ1L6maAQmYLPFa19p6mR1Bs9BF7W1uZYabA/LVra0gaeQ/pHpogXfntq990= X-Gm-Gg: AR+sD124R+XLkhcqNS/Du835GvCuY/974Lk7sCIEQS3xAk6yQFVlzCmJTIVSR3n+bVa TXQpPT4M/EAJaDKXLfLZxCtRV2mtqc9Azt9WwWM9a3HhsNsb87M3/PoseUg8bVUbbZn7YdD3xUD SbfUHEN11D7lT6epCUQhigq9nlacw3uXgsWRp/hVmCd45UCXElQS4bDgitkP+F2YqNDX27OFtrX lSQbPTlygrHmz1Zn31Xx78YfTifN/4wLFN+gm7456gHkX5UOXubS31nTfxzgdyl4LUvpnMIci8a kQaFTUypzZ7yYA2XhrxnwOBwHPj/6KwjE8C8v548GwY+Y365KdlpqK0ihkEH4815eOlS+ulHvhs 3BhqQQDeGHL7t0w9mFxvTBePmR5IAuZW1ye38rfx8PDv5Y9mG1BCCLktPAfFLPHcaLKn83AIaNH 7IJUF0bRxJGSra39zjzU1e1QISc/lxNdnyBns= X-Received: by 2002:a05:6a21:908f:b0:3bf:ba89:5236 with SMTP id adf61e73a8af0-3c6c7ce8785mr151114637.33.1785167265108; Mon, 27 Jul 2026 08:47:45 -0700 (PDT) X-Received: by 2002:a05:6a21:908f:b0:3bf:ba89:5236 with SMTP id adf61e73a8af0-3c6c7ce8785mr151081637.33.1785167264568; Mon, 27 Jul 2026 08:47:44 -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 5a478bee46e88-314bc4164ddsm32845204eec.9.2026.07.27.08.47.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2026 08:47:44 -0700 (PDT) From: Kathiravan Thirumoorthy Subject: [PATCH v11 0/3] Add support to read the watchdog bootstatus from IMEM Date: Mon, 27 Jul 2026 21:17:34 +0530 Message-Id: <20260727-wdt_reset_reason-v11-0-eeedb22beefe@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=H4sIAJZ9Z2oC/3XQTWoDMQwF4KsEr+sgeWrLyar3KKH4R9MYmnFrJ 9OWMHevJ5t04WwE74E+ga6icklcxX5zFYXnVFOeWkB82ohwdNM7yxRbIRQoDQZBfsfzW+HK63Q 1T5KcdiMTKCAt2tpn4TH93MzXQ8vHVM+5/N5OzGZtV8wADh1sNhLkM5LzZHch7ugl17r9uriPk E+nbRtiNWe6O0rpjkPNMTpqTzwwsn/g2P+O6Ti2OYAYBmeDN+P4wEG4QxqHDtReBzKwjw6s88g 9aVmWP6V136mSAQAA 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.2 X-Proofpoint-Spam-Info: AW1haW4tMjYwNzI3MDE0OCBTYWx0ZWRfX3mGWPgK3nehN 001CdFZYYbpetCdaNp2ZkNL4qfvgnYEjPj7FiSCd0OQyrBk7pC4vp310dVSozeRGFBwfviKWpMV Jht+kHEbY+Eh/T5xBn1Zeu/ZbvRDzFw= X-Authority-Analysis: v=2.4 cv=UYBhjqSN c=1 sm=1 tr=0 ts=6a677da2 cx=c_pps a=mDZGXZTwRPZaeRUbqKGCBw==:117 a=Ou0eQOY4+eZoSc0qltEV5Q==:17 a=IkcTkHD0fZMA:10 a=RAioF0-LDSMA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=bC-a23v3AAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=K0PYKaws7Cf5qQY9JUMA:9 a=QEXdDO2ut3YA:10 a=zc0IvFSfCIW2DFIPzwfm:22 a=FO4_E8m0qiDe52t0p3_H:22 X-Proofpoint-GUID: EWfvstk_9bsBcBHgdWsarcB0YiPIHWX7 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNzI3MDE0OCBTYWx0ZWRfX9AxdlXkL3Z/m 8SmpDgWje1ZARU3jBLM0WP+St5TDVGGGHL5jSXu3rY18jXFF9WFztjByzAkSaNCOEV1yZntIrDi 4eMkpxuxcCscuDvBooe71qlkYC6oeU9G74ahO8EIorEyweka6cAn0nEGJy0NDOvEUXT9vGtvNlS cZOVxTYa3wU+DaFRz5xbrdis08M7uiFOHp4j70MMIH3AybZ1IgAQ8P9s7SbIbo6jfxgo6a4rGAS 82nrdL1g9pDaqXXeFk5avnAEb53DHVsymOdPXGQgrzIIxNYBW2c6CrSFohU+vqnay58K68Gbgk3 Xft1XtdA7n5Lm+VFC8a0aAdh07aUjIZH/ERrEAibm7V4kuMCiM/9yneWLe9QtI52lzox7dDRYlh 9cyzcZuskd6kfVwEd3fqnwpt6vHKw/R61W+st+HrPFd9XqT7B/pd6y8E8RoSmol7YFPSEfOJIC6 +9hAVLINVziYkhjrpdA== X-Proofpoint-ORIG-GUID: EWfvstk_9bsBcBHgdWsarcB0YiPIHWX7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-27_04,2026-07-24_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 bulkscore=0 clxscore=1015 priorityscore=1501 phishscore=0 adultscore=0 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607270148 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 v7.2. Signed-off-by: Kathiravan Thirumoorthy --- Changes in v11: - Rebase on linux-next tag:next-20260726 - Link to v10: https://patch.msgid.link/20260513-wdt_reset_reason-v10-0-cebda08ab1ef@oss.qualcomm.com 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/ To: Rob Herring To: Krzysztof Kozlowski To: Conor Dooley To: Bjorn Andersson To: Konrad Dybcio Cc: linux-arm-msm@vger.kernel.org Cc: devicetree@vger.kernel.org Cc: linux-kernel@vger.kernel.org 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: c5e32e86ca02b003f86e095d379b38148999293d change-id: 20250610-wdt_reset_reason-7a5afe702075 Best regards, -- Kathiravan Thirumoorthy