Linux Watchdog driver development
 help / color / mirror / Atom feed
* [PATCH 0/2] Add support for Gunyah Watchdog
@ 2025-09-03 19:33 Hrishabh Rajput via B4 Relay
  2025-09-03 19:33 ` [PATCH 1/2] dt-bindings: Add binding for gunyah watchdog Hrishabh Rajput via B4 Relay
                   ` (3 more replies)
  0 siblings, 4 replies; 39+ messages in thread
From: Hrishabh Rajput via B4 Relay @ 2025-09-03 19:33 UTC (permalink / raw)
  To: Bjorn Andersson, Konrad Dybcio, Wim Van Sebroeck, Guenter Roeck,
	Rob Herring, Krzysztof Kozlowski, Conor Dooley
  Cc: linux-arm-msm, linux-watchdog, devicetree, linux-kernel,
	Hrishabh Rajput

Gunyah is a Type-I hypervisor which was introduced in the patch series
[1]. It is an open source hypervisor. The source repo is available at
[2].

The Gunyah Hypervisor doesn't allow its Virtual Machines to directly
access the MMIO watchdog. It either provides the fully emulated MMIO
based watchdog interface or the SMC-based watchdog interface depending
on the hypervisor configuration.
The SMC-based watchdog follows ARM's SMC Calling Convention (SMCCC)
version 1.1 and uses Vendor Specific Hypervisor Service Calls space.

This patch series adds support for the SMC-based watchdog interface
provided by the Gunyah Hypervisor. The driver supports start/stop
operations, timeout and pretimeout configuration, pretimeout interrupt
handling and system restart via watchdog.

This series is tested on SM8750 platform.

[1]
https://lore.kernel.org/all/20240222-gunyah-v17-0-1e9da6763d38@quicinc.com/

[2]
https://github.com/quic/gunyah-hypervisor

Signed-off-by: Hrishabh Rajput <hrishabh.rajput@oss.qualcomm.com>
---
Hrishabh Rajput (2):
      dt-bindings: Add binding for gunyah watchdog
      watchdog: Add driver for Gunyah Watchdog

 .../bindings/watchdog/qcom,gh-watchdog.yaml        |  76 ++++++
 MAINTAINERS                                        |   3 +
 drivers/watchdog/Kconfig                           |  13 +
 drivers/watchdog/Makefile                          |   1 +
 drivers/watchdog/gunyah_wdt.c                      | 268 +++++++++++++++++++++
 include/linux/gunyah_errno.h                       |  77 ++++++
 6 files changed, 438 insertions(+)
---
base-commit: 038d61fd642278bab63ee8ef722c50d10ab01e8f
change-id: 20250903-gunyah_watchdog-2d2649438e29

Best regards,
-- 
Hrishabh Rajput <hrishabh.rajput@oss.qualcomm.com>



^ permalink raw reply	[flat|nested] 39+ messages in thread
* Re: [PATCH 0/2] Add support for Gunyah Watchdog
@ 2025-12-22 19:02 Alexander Koskovich
  2025-12-23 17:50 ` Konrad Dybcio
  0 siblings, 1 reply; 39+ messages in thread
From: Alexander Koskovich @ 2025-12-22 19:02 UTC (permalink / raw)
  To: Pavan Kondeti, Bjorn Andersson
  Cc: Neil Armstrong, hrishabh.rajput, Konrad Dybcio, Wim Van Sebroeck,
	Guenter Roeck, Rob Herring, Krzysztof Kozlowski, Conor Dooley,
	linux-arm-msm, linux-watchdog, devicetree, linux-kernel


On 9/4/25 1:05 PM, Pavan Kondeti wrote:
> Thanks for asking this question. I believe the overlay part needs some
> discussion here.
>
> I have tried this series on 8550 MTP. The overlay failed, so watchdog
> device did not probe. same is the case with 8750 too. It works only
> after applying this patch. I will test and report my observation on 8650
> later.

Hi Pavan, was linked this thread after seeing what I think to be the 
same issue on another platform,
but issue is a bit more serious here since bootloader fails to find a 
DTB at all, not just overlay fails.
When the "arch_timer" label is missing from the base DTB on Milos, 
ufdt_apply_overlay in bootloader
will fail and it looks like the DTB memory gets corrupted. If you are 
booting without a dtbo image,
then you don't see the issue. Couple logs from bootloader when it happens:

     ApplyOverlay: ufdt apply overlay failed
     Error: Dtb overlay failed

After this happens, the DTB memory seems to get corrupted:

     ERROR: Invalid device tree header ...
     Device Tree update failed Status:Not Found

But it doesn't seem to have anything to do with the DTBO image itself 
(despite only happening with one),
as it happens even the dtbo is effectively empty with the exception of a 
dummy fixups so the old version
of libufdt in bootloader doesn't fail.

This seems to have only started happening on recent versions of the 
proprietary hypervisor (don't see any
dtb handling in https://github.com/quic/gunyah-hypervisor), since I 
don't see the same issue on Blair but I
do on Milos.

Should the label be applied to all QCOM platforms that have a timer node 
to prevent the issue from appearing
elsewhere? It looks like it's already applied to lemans & sm6150.

Thanks,
Alex



^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2026-01-13 17:46 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-03 19:33 [PATCH 0/2] Add support for Gunyah Watchdog Hrishabh Rajput via B4 Relay
2025-09-03 19:33 ` [PATCH 1/2] dt-bindings: Add binding for gunyah watchdog Hrishabh Rajput via B4 Relay
2025-09-03 23:27   ` Rob Herring (Arm)
2025-09-04  9:52   ` Krzysztof Kozlowski
2025-09-04 10:16     ` Pavan Kondeti
2025-09-04 10:49       ` Krzysztof Kozlowski
2025-09-04 10:59         ` Krzysztof Kozlowski
2025-09-04 12:29           ` Pavan Kondeti
2025-09-04 13:07     ` Hrishabh Rajput
2025-09-04 13:17       ` Krzysztof Kozlowski
2025-09-04 19:03         ` Hrishabh Rajput
2025-09-03 19:34 ` [PATCH 2/2] watchdog: Add driver for Gunyah Watchdog Hrishabh Rajput via B4 Relay
2025-09-03 20:13   ` Bjorn Andersson
2025-09-04 11:40     ` Hrishabh Rajput
2025-09-04 13:47       ` Bjorn Andersson
2025-09-04 17:11   ` Pavan Kondeti
2025-09-05  9:19     ` Konrad Dybcio
2025-09-04  0:10 ` [PATCH 0/2] Add support " Rob Herring
2025-09-04 11:31   ` Konrad Dybcio
2025-09-04 22:51     ` Rob Herring
2025-09-05  0:00       ` Pavan Kondeti
2025-09-05 10:18         ` Konrad Dybcio
2025-09-08  5:49           ` Pavan Kondeti
2025-09-12 11:16             ` Konrad Dybcio
2025-09-04 14:39   ` Hrishabh Rajput
2025-09-04  7:13 ` Neil Armstrong
2025-09-04  9:18   ` Pavan Kondeti
2025-09-04 13:53     ` Bjorn Andersson
2025-09-04 17:05       ` Pavan Kondeti
  -- strict thread matches above, loose matches on Subject: below --
2025-12-22 19:02 Alexander Koskovich
2025-12-23 17:50 ` Konrad Dybcio
2026-01-06  1:29   ` Alexander Koskovich
2026-01-13 14:46     ` Konrad Dybcio
2026-01-13 15:07       ` Alexander Koskovich
2026-01-13 15:58         ` Mukesh Ojha
2026-01-13 16:09           ` Alexander Koskovich
2026-01-13 16:47             ` Mukesh Ojha
2026-01-13 16:55               ` Alexander Koskovich
2026-01-13 17:46                 ` Mukesh Ojha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox