linux-watchdog.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* watchdog: iTCO_wdt: failed to load
@ 2019-07-24  7:34 Vignesh Raman
  2019-07-24  9:34 ` Guenter Roeck
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Vignesh Raman @ 2019-07-24  7:34 UTC (permalink / raw)
  To: linux-watchdog; +Cc: andriy.shevchenko, rajneesh.bhardwaj

Hi,

I'm seeing an issue where the iTCO_wdt module doesn't load with the below error,

[    3.827599] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[    3.828440] iTCO_wdt iTCO_wdt: can't request region for resource
[mem 0x00c5fffc-0x00c5ffff]
[    3.828803] iTCO_wdt: probe of iTCO_wdt failed with error -16

CPU and logs:
cpu: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz
dmesg logs: http://paste.debian.net/1092702/
lsmod output: https://paste.debian.net/1092703/
root@localhost:~# uname -a
Linux localhost.localdomain 4.14.103-rt55 #1 SMP PREEMPT RT Tue Jul 23
03:53:28 UTC 2019 x86_64 GNU/Linux

Please let me know if the error (can't request region for resource) is
related to the patches below,
https://patchwork.kernel.org/patch/9627085/
https://lore.kernel.org/patchwork/patch/770990/

I tested with the patch
https://lore.kernel.org/patchwork/patch/770990/ and it fixes the
issue.
root@localhost:/home/vignesh# dmesg | grep wdt
[    5.766470] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[    5.767104] iTCO_wdt: Found a Intel PCH TCO device (Version=4,
TCOBASE=0x0400)
[    5.767865] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)

But the patch was not merged upstream.

When testing the hardware watchdog, it doesn't trigger a reset even
after triggering a sysrq crash.
The system freezes and there is no reboot.

I noticed the timeleft value is not getting updated.
root@localhost:~# cat /sys/class/watchdog/watchdog0/timeleft
15
root@localhost:~# cat /sys/class/watchdog/watchdog0/timeleft
15
root@localhost:~# cat /sys/class/watchdog/watchdog0/timeleft
15

This issue has been discussed in below email thread,
http://lkml.iu.edu/hypermail/linux/kernel/1609.1/01979.html
https://lkml.org/lkml/2016/9/8/641

In another platform the hardware watchdog works.
root@debian:~# dmesg | grep wdt
[    3.901842] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.11
[    3.903415] iTCO_wdt: Found a Intel PCH TCO device (Version=4,
TCOBASE=0x0400)
[    3.937816] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)

CPU and logs
cpu: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
dmesg logs: http://paste.debian.net/1092845/
lsmod output: http://paste.debian.net/1092846/
root@debian:~# uname -a
Linux debian 4.14.103-rt55 #1 SMP PREEMPT RT Tue Jul 23 03:53:28 UTC
2019 x86_64 GNU/Linux

Hardware watchdog triggers a reset and the watchdog timer counter is
started and the value gets updated.
root@debian:~# cat /sys/class/watchdog/watchdog0/timeleft
13
root@debian:~# cat /sys/class/watchdog/watchdog0/timeleft
12
root@debian:~# cat /sys/class/watchdog/watchdog0/timeleft
11
root@debian:~#

My questions:
1. Please let me know if it is okay to take
https://lore.kernel.org/patchwork/patch/770990/ patch or will there be
an update to the original patch?
2. Could the hardware watchdog not triggering a reset (timeleft value
not getting updated) could be a hardware problem?

Thanks.

Regards,
Vignesh

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

end of thread, other threads:[~2019-08-01  4:43 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-24  7:34 watchdog: iTCO_wdt: failed to load Vignesh Raman
2019-07-24  9:34 ` Guenter Roeck
2019-07-24 13:27 ` Guenter Roeck
2019-07-25  5:12   ` Vignesh Raman
2019-07-25 13:10     ` Guenter Roeck
2019-08-01  4:18       ` Vignesh Raman
2019-08-01  4:43         ` Guenter Roeck
2019-07-24 16:06 ` Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).