Bug 53991 - Watchdog sc520_wdt, doesn't reset Soekris 4801
Summary: Watchdog sc520_wdt, doesn't reset Soekris 4801
Status: RESOLVED CODE_FIX
Alias: None
Product: Drivers
Classification: Unclassified
Component: Watchdog (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: Alan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-17 03:27 UTC by Seb Lu
Modified: 2014-01-20 16:59 UTC (History)
2 users (show)

See Also:
Kernel Version: 3.7.7
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description Seb Lu 2013-02-17 03:27:33 UTC
Hello,

On a soekris 4801[1], watchdog modules sc520_wdt claims it's initialized but doesn't reset the computer.

# modprobe sc520_wdt
# dmesg
...
[ 1511.794976] sc520_wdt: WDT driver for SC520 initialised. timeout=30 sec (nowayout=0)
...

# echo 1 > /dev/watchdog          
[ 1514.508204] sc520_wdt: Watchdog timer is now enabled
[ 1514.508491] sc520_wdt: Unexpected close, not stopping watchdog!
# dmesg
...
[ 1514.508491] sc520_wdt: Unexpected close, not stopping watchdog!
[ 1544.655543] sc520_wdt: Heartbeat lost! Will not ping the watchdog
...


Some internet page, suggest to use the watchdog driver sc1200wdt. Use it leads to the following trace:

[ 1343.205180] sc1200wdt: build 20020303
[ 1343.205247] ------------[ cut here ]------------
[ 1343.205345] WARNING: at drivers/base/driver.c:207 driver_unregister+0x6c/0x80()
[ 1343.205391] Unexpected driver unregister!
[ 1343.205425] Modules linked in: sc1200wdt(+) ip6table_filter ip6_tables xt_NFLOG nfnetlink_log xt_tcpudp xt_conntrack iptable_filter ipt_MASQUERADE iptable_nat nf_nat_ipv4 ip_tables x_tables tun sit tunnel4 bridge stp llc arc4 rt61pci rt2x00pci evdev rt2x00lib eeprom_93cx6 mac80211 cfg80211 pcspkr hifn_795x rfkill natsemi crc_itu_t des_generic sc520_wdt nf_nat_tftp nf_nat_snmp_basic nf_nat_sip nf_nat_proto_udplite nf_nat_proto_sctp crc32c libcrc32c nf_nat_proto_dccp nf_nat_pptp nf_nat_proto_gre nf_nat_irc nf_nat_h323 nf_nat_ftp nf_nat_amanda nf_nat nf_conntrack_tftp nf_conntrack_snmp nf_conntrack_sip nf_conntrack_sane nf_conntrack_proto_udplite nf_conntrack_proto_sctp nf_conntrack_proto_dccp nf_conntrack_pptp nf_conntrack_proto_gre nf_conntrack_netlink nfnetlink nf_conntrack_netbios_ns nf_conntrack_irc
[ 1343.206501]  nf_conntrack_ipv6 nf_defrag_ipv6 nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack_h323 nf_conntrack_ftp nf_conntrack_broadcast ts_kmp nf_conntrack_amanda nf_conntrack ext4 crc16 jbd2 mbcache sd_mod ata_generic pata_acpi pata_sc1200 libata ohci_hcd usbcore scsi_mod usb_common
[ 1343.206824] Pid: 2563, comm: modprobe Tainted: G        W    3.7.7-1-ARCH #1
[ 1343.206874] Call Trace:
[ 1343.206980]  [<c103b622>] warn_slowpath_common+0x72/0xa0
[ 1343.207088]  [<c12ba3cc>] ? driver_unregister+0x6c/0x80
[ 1343.207190]  [<c12ba3cc>] ? driver_unregister+0x6c/0x80
[ 1343.207290]  [<c103b6f3>] warn_slowpath_fmt+0x33/0x40
[ 1343.207390]  [<c12ba3cc>] driver_unregister+0x6c/0x80
[ 1343.207531]  [<c9004000>] ? 0xc9003fff
[ 1343.207634]  [<c12817b0>] pnp_unregister_driver+0x10/0x20
[ 1343.207760]  [<c900406e>] sc1200wdt_init+0x6e/0x157 [sc1200wdt]
[ 1343.207858]  [<c1001242>] do_one_initcall+0x112/0x160
[ 1343.207966]  [<c10617da>] ? __blocking_notifier_call_chain+0x4a/0x80
[ 1343.208067]  [<c109a10d>] sys_init_module+0x9bd/0x1f60
[ 1343.208283]  [<c10b6791>] ? cond_unmask_irq+0x31/0x40
[ 1343.208499]  [<c13f95cb>] syscall_call+0x7/0xb
[ 1343.208566] ---[ end trace 995690307ed0befe ]---
[ 1343.208628] sc1200wdt: Unable to register IO port 0x1

Regards,

[1] http://soekris.com/products/net4801.html
Comment 1 Alan 2013-12-04 15:44:26 UTC
Patch sent for the sc1200 crash case. No idea about the watchdog fail.
Comment 2 Guenter Roeck 2013-12-04 16:33:10 UTC
The Soekris system is based on an NSC SC1100 processor. The sc520 driver is for AMD Elan SC520. Not really surprising that it isn't working. The driver doesn't verify if it is running on the correct HW, so it doesn't notice that it is running on the wrong HW. So the bug as reported is not really a bug.

The SC1200 driver is for NSC SC1200, so there is at least some chance that it is working on SC1100.

Note You need to log in before you can comment on or make changes to this bug.