Skip to content

Add support to read the watchdog bootstatus from IMEM

Kathiravan Thirumoorthy linux-arm-msm linux-devicetree lkml 12 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20250408-wdt_reset_reason-e12921963fa6

Versions newest first

  1. v11 Latest3 patches 4 repliesApplied
  2. v10 posting 2/23 patches 2 repliesSuperseded
  3. v10 posting 1/22 patches 0 repliesSuperseded
Earlier versions · 9
VersionPostedPatchesRepliesStatus
v95 patches2 repliesSuperseded
v85 patches4 repliesSuperseded
v75 patches6 repliesSuperseded
v65 patches15 repliesSuperseded
v55 patches6 repliesSuperseded inferred link
v45 patches9 repliesSuperseded
v34 patches22 repliesApplied
v25 patches11 repliesSuperseded
v1 RFC6 patches15 repliesSuperseded

Changes in v11 from the cover letter

- Rebase on linux-next tag:next-20260726
- Link to v10: https://patch.msgid.link/[email protected]

Patches in v11 Applied

#Subject and filesSizeRepliesApplied
1/3dt-bindings: sram: describe the IPQ5424 IMEM as mmio-sramDocumentation/devicetree/bindings/sram/qcom,imem.yaml Documentation/devicetree/bindings/sram/sram.yaml+1 -10 replies
2/3arm64: dts: qcom: ipq5424: Add the IMEM nodearch/arm64/boot/dts/qcom/ipq5424.dtsi+11 -00 replies
3/3arm64: dts: qcom: ipq5424: add support to get watchdog bootstatus from IMEMarch/arm64/boot/dts/qcom/ipq5424.dtsi+5 -02 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchKrzysztof KozlowskiDmitry BaryshkovKonrad Dybcio
1/3R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v11 thread

Cover letter [PATCH v11 0/3] Add support to read the watchdog bootstatus from IMEM

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.

---
Changes in v11:
- Rebase on linux-next tag:next-20260726
- Link to v10: https://patch.msgid.link/[email protected]

Changes in v10:
- Dropped the watchdog patches which are applied to watchdog's tree
- Link to v9: https://lore.kernel.org/all/[email protected]

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/[email protected]

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/[email protected]

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/[email protected]

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/[email protected]/

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/[email protected]/

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/[email protected]/

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/[email protected]/

To: Rob Herring <[email protected]>
To: Krzysztof Kozlowski <[email protected]>
To: Conor Dooley <[email protected]>
To: Bjorn Andersson <[email protected]>
To: Konrad Dybcio <[email protected]>

---
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,

Signature · 1 line
Kathiravan Thirumoorthy <[email protected]>