Add support to read the watchdog bootstatus from IMEM
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20250408-wdt_reset_reason-e12921963fa6Versions newest first
- v11 Latest3 patches 4 repliesApplied
- v10 posting 2/23 patches 2 repliesSuperseded
- v10 posting 1/22 patches 0 repliesSuperseded
Earlier versions · 9
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v9 | 5 patches | 2 replies | Superseded | |
| v8 | 5 patches | 4 replies | Superseded | |
| v7 | 5 patches | 6 replies | Superseded | |
| v6 | 5 patches | 15 replies | Superseded | |
| v5 | 5 patches | 6 replies | Superseded inferred link | |
| v4 | 5 patches | 9 replies | Superseded | |
| v3 | 4 patches | 22 replies | Applied | |
| v2 | 5 patches | 11 replies | Superseded | |
| v1 RFC | 6 patches | 15 replies | Superseded |
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 files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | dt-bindings: sram: describe the IPQ5424 IMEM as mmio-sramDocumentation/ Documentation/ | +1 | 0 replies | |
| 2/3 | arm64: dts: qcom: ipq5424: Add the IMEM nodearch/ | +11 | 0 replies | |
| 3/3 | arm64: dts: qcom: ipq5424: add support to get watchdog bootstatus from IMEMarch/ | +5 | 2 replies |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Krzysztof Kozlowski | Dmitry Baryshkov | Konrad Dybcio |
|---|---|---|---|
| 1/3 | R-b | ||
| 2/3 | R-b | R-b | |
| 3/3 | R-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.
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]>