Skip to contentSkip to conversation

watchdog timeout in sub-seconds?

DISCUSSION Alexander Stein 2 participants 3 messages Apr 13, 2015 – Apr 14, 2015 Watchdog device drivers

lore
Share & tools
lore
#0 lore raw

Hi,

is there a specific reason that the timeout in the linux watchdog drivers is only provided in seconds resolution? What about timeouts in ms area/precision?

Best regards,
Alexander

Signature · 12 lines
Dipl.-Inf. Alexander Stein

SYS TEC electronic GmbH
Am Windrad 2
08468 Heinsdorfergrund
Tel.: 03765 38600-1156
Fax: 03765 38600-4100
Email: [email protected]
Website: www.systec-electronic.com
 
Managing Director: Dipl.-Phys. Siegmar Schmidt
Commercial registry: Amtsgericht Chemnitz, HRB 28082
maintainer
#1 lore raw
Quoted 5 lines · Alexander Stein

Hi,

is there a specific reason that the timeout in the linux watchdog drivers is only provided in seconds resolution? What about timeouts in ms area/precision?

The question would probably be why not. On a loaded system, sub-second watchdog timeouts are quite unreasonable.

In other words, you would have to provide a very good argument for sub-second timeouts if you see the need for it. That some hardware may require it is not really an argument here - this is all about user space - kernel interface, not about limitations of specific hardware.

Guenter

#2 lore raw
Quoted 7 lines · Guenter Roeck
Quoted 5 lines · Alexander Stein

Hi,

is there a specific reason that the timeout in the linux watchdog drivers is only provided in seconds resolution? What about timeouts in ms area/precision?

Quoted 8 lines

The question would probably be why not. On a loaded system, sub-second watchdog timeouts are quite unreasonable.

In other words, you would have to provide a very good argument for sub-second timeouts if you see the need for it. That some hardware may require it is not really an argument here - this is all about user space - kernel interface, not about limitations of specific hardware.

Well, after discussing this a bit why the hardware watchdog has ms resolution support it turns out this is mainly for safety related devices which seem to require such short timeouts. It doesn't seem to be required on this linux based board though. So this issue has been cleared itself.

Best regards,
Alexander

Signature · 12 lines
Dipl.-Inf. Alexander Stein

SYS TEC electronic GmbH
Am Windrad 2
08468 Heinsdorfergrund
Tel.: 03765 38600-1156
Fax: 03765 38600-4100
Email: [email protected]
Website: www.systec-electronic.com
 
Managing Director: Dipl.-Phys. Siegmar Schmidt
Commercial registry: Amtsgericht Chemnitz, HRB 28082