On 6/10/20 12:54 AM, Dilip Kota wrote:[...]
On 6/9/2020 9:46 PM, Guenter Roeck wrote:
On 6/9/20 1:57 AM, Dilip Kota wrote:
On 6/8/2020 9:37 PM, Guenter Roeck wrote:
On 6/7/20 10:49 PM, Dilip Kota wrote:
I am a bit confused here.No, the watchdog subsystem does not monitor "all cores".My bad here, complete hardware reset happens on watchdog timeout not a single CPU or core.A system watchdog driver should not duplicate functionalityIntel Atom based Lightning Mountain SoC, system has four CPUs. On Lightning Mountain SoC ,Watchdog subsystem is combination of GPTC timers and reset controller unit. On Lightning Mountain SoC, each CPU is configured with one GPTC timer, so that if any of the CPU hangs or freezes, the watchdog daemon running on respective CPU cannot reset/ping or pet the watchdog timer. This causes the watchdog timeout. On watchdog timeout, reset controller triggers the reset to respective CPU.+Why not just one ? The watchdog subsystem does not monitor individual CPUs,
+description: |
+Â Intel Lightning Mountain SoC has General Purpose Timer Counter(GPTC) which can
+Â be configured as Clocksource, real time clock and Watchdog timer.
+Â Each General Purpose Timer Counter has three timers. And total four General
+Â Purpose Timer Counters are present on Lightning Mountain SoC which sums up
+Â to 12 timers.
+Â Lightning Mountain has four CPUs and each CPU is configured with one GPTC
+Â timer as watchdog timer. Total four timers are configured as watchdog timers
+Â on Lightning Mountain SoC.
+
it monitors the system.
from kernel/watchdog.c, which monitors individual CPUs.
If the SoC does nto provide a system watchdog timer (which
I think is unlikely), it should stick with that. A watchdog
resetting an individual CPU instead of the entire system
isn't something I would want to see in the watchdog subsystem.
Could you please clarify: The complete system means, you mean, "a watchdog susbsystem should monitor all the cores/cpus in the SoC. Not like each core/cpu in SoC having a wdt".
Again, that is the responsibility of kernel/watchdog.c.
Guenter
Regards,
Dilip
Guenter