Skip to content

OMAP: WDT: Implement WDT in hwmod way

Varadarajan, Charulatha linux-arm-kernel linux-omap linux-watchdog 11 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest posting 3/30 of 6 patches 0 repliesNew
  2. v8 posting 2/30 of 6 patches 0 repliesSuperseded
  3. v8 posting 1/36 patches 0 repliesSuperseded
Earlier versions · 8
VersionPostedPatchesRepliesStatus
v76 patches0 repliesSuperseded
v6 posting 2/213 patches12 repliesSuperseded
v6 posting 1/27 patches6 repliesSuperseded
v56 patches20 repliesSuperseded
v46 patches4 repliesSuperseded
v35 patches4 repliesSuperseded
v26 patches2 repliesSuperseded
v16 patches4 repliesSuperseded

Patches in v8 posting 3/3 No applies recorded yet

None of the 6 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v8 yet.

Read the v8 thread

Cover letter [PATCH v8 0/6] OMAP: WDT: Implement WDT in hwmod way

Kevin,

Quoted 2 lines

-----Original Message-----
From: Kevin Hilman [mailto:khilman at deeprootsystems.com]

<<snip>>

Quoted 17 lines
Quoted 17 lines
Quoted 6 lines

I found a little snag with this series. Try testing with omap2plus_defconfig and changing CONFIG_OMAP_WATCHDOG=n.

If CONFIG_OMAP_WATCHDOG is not enabled in the kernel config, the system will reboot soon after bootup.

Thanks for finding this issue.

After watchdog module reset, the WDTs are enabled. The default time for a system reset after a watchdog module reset is ~10s as per the default value of the WDT registers. Hence the above problem is observed.

If CONFIG_OMAP_WATCHDOG is defined, wdt's probe is called within this 10s time and watchdog_disable is called during probe. Hence we are not finding this issue if CONFIG_OMAP_WATCHDOG is defined.

Quoted 8 lines
Quoted 5 lines

Ideally, because of the above, watchdog should be with HWMOD_INIT_NO_RESET flag.

If agreed, I would send the below patch (extended to other OMAPs) on top of my watchdog timer hwmod series with proper change log.

Using HWMOD_INIT_NO_RESET makes us still dependent on the bootloader settings.

Agreed.

Quoted 10 lines

Instead, I would rather have a small piece of code in omap_init_wdt() which disarms the watchdog so we don't have any assumptions about bootloader behavior.

The question remains whether this disarm should be
#ifndef CONFIG_OMAP_WATCHDOG or if it should happen all the time. In case the watchdog is a module, it's probe may not happen within the timeout period and they system may reboot also, so I lean towards disarming the watchdog unconditionally.

Agreed. But this shall be handled in mach-omap2/devices.c by directly accessing the watchdog registers and disabling it, as the watchdog driver would not be available by this time. If this okay, I would send a separate patch on top my hwmod series to handle this.

-V Charulatha

<<snip>>