[Bug 233070] New: hwclock hangs system on boot or shutdown
https://bugzilla.novell.com/show_bug.cgi?id=233070 Summary: hwclock hangs system on boot or shutdown Product: openSUSE 10.2 Version: Final Platform: x86-64 OS/Version: SuSE Other Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: clarkt@cnsp.com QAContact: qa@suse.de Machine is a HP dv6125se laptop. AMD TL-52 x2 processor (1.8GHz, 512 L2 cache) 2 GB memory. OpenSuSE 10.2 x86_64. Nvidia base motherboard with sata 100GB hard drive. Install worked correctly. After that system would randomly hang on boot or shutdown while setting clock. Tracked it down to hwclock in boot.clock. Added --debug to the hwclock lines and the location where the hang occurred was at: waiting for clock tick /dev/rtc does not have interrupt function. Waiting in loop for time from /dev/rtc to change. System is locked, cpu fan is running full speed. I have tried the following boot commands with no success: nohept, acpi=off, acpi_user_timer_override, pci=routeirq, noapic. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #1 from clarkt@cnsp.com 2007-01-09 18:12 MST ------- Created an attachment (id=112129) --> (https://bugzilla.novell.com/attachment.cgi?id=112129&action=view) Hardware list lspci -vt -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |mkoenig@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #2 from clarkt@cnsp.com 2007-01-19 20:33 MST ------- After googling the net, I found a thread on the Gentoo forums. There, one user replaced the 64 bit version of hwclock with the 32 bit version (also on an HP dv6000 series laptop with an AMD Turion dual core processor). I got the 32 bit version of hwclock from util-linux (i586) and used it to replace the 64 bit version. It looks to work without the system hangs that have plagued my system. There is a difference in the way the two versions look at /dev/rtc. The 32 bit version sees the interrupt while the 64 bit does not and tends to go into an infinite loop. Now the question is what is the difference between the two versions when compiled? I'll continue to test using the 32 bit version of hwclock. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |clarkt@cnsp.com ------- Comment #3 from mkoenig@novell.com 2007-01-22 04:15 MST ------- Which is the hwclock command that fails? Is it --hctosys? Does a hwclock--show work? Could you please then attach a strace on the hwclock command that fails? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #4 from clarkt@cnsp.com 2007-01-22 10:54 MST ------- Created an attachment (id=114233) --> (https://bugzilla.novell.com/attachment.cgi?id=114233&action=view) strace for 32 bit hwclock on boot 32 bit hwclock boot -- /sbin/hwclock --adjust $HWCLOCK --debug -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #5 from clarkt@cnsp.com 2007-01-22 10:55 MST ------- Created an attachment (id=114234) --> (https://bugzilla.novell.com/attachment.cgi?id=114234&action=view) 32 bit hwclock boot strace 32bit hwclock boot /sbin/hwclock --hctosys $HWCLOCK --debug -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #6 from clarkt@cnsp.com 2007-01-22 10:56 MST ------- Created an attachment (id=114235) --> (https://bugzilla.novell.com/attachment.cgi?id=114235&action=view) 32 bit hwclock shutdown strace 32 bit hwclock on shutdown /sbin/hwclock --systohc $HWCLOCK --debug -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #7 from clarkt@cnsp.com 2007-01-22 10:58 MST ------- Created an attachment (id=114238) --> (https://bugzilla.novell.com/attachment.cgi?id=114238&action=view) 64bit hwclock boot strace 64 bit hwclock strace on boot /sbin/hwclock --adjust $HWCLOCK --debug Note-- when it hangs on this routine there is no output -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #8 from clarkt@cnsp.com 2007-01-22 10:59 MST ------- Created an attachment (id=114239) --> (https://bugzilla.novell.com/attachment.cgi?id=114239&action=view) 64 bit hwclock boot strace 64 bit hwclock /sbin/hwclock --hctosys $HWCLOCK --debug -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #9 from clarkt@cnsp.com 2007-01-22 11:00 MST ------- Created an attachment (id=114241) --> (https://bugzilla.novell.com/attachment.cgi?id=114241&action=view) 64 bit hwclock shutdown strace 64 bit hwclock on shut down /sbin/hwclock --systohc $HWCLOCK --debug NOTE -- no output when this hangs. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED Info Provider|clarkt@cnsp.com | ------- Comment #10 from mkoenig@novell.com 2007-01-23 04:10 MST ------- Thanks. Yes there is a difference between the 32bit and the 64bit method. The 64bit version does not wait for update interrupts but rather polls the rtc. The busy wait rtc function reads the rtc in a loop and waits for a time change, this seems to be the location where your system hangs. Too bad, that we don't get a strace for this case. However, I still do not know why polling is used in general for 64bit, it does not seem to be necessary for be, though it does not explain why this fails. I would like to test your rtc functionality, I will attach a little test program, could you please compile this with gcc -o rtctest rtctest.c and provide the output of the program. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #11 from mkoenig@novell.com 2007-01-23 04:11 MST ------- Created an attachment (id=114363) --> (https://bugzilla.novell.com/attachment.cgi?id=114363&action=view) Test rtc functionality -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO Info Provider| |clarkt@cnsp.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 ------- Comment #12 from clarkt@cnsp.com 2007-01-23 07:43 MST ------- Created an attachment (id=114432) --> (https://bugzilla.novell.com/attachment.cgi?id=114432&action=view) interrupts after running rtctest Ran rtctest 6 times. 2 lockups. The first was after running rtctest for the first time. No output. The last lockup occured on the 6th run and it stopped on test 2 (select 2) at 4. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 mkoenig@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|mkoenig@novell.com |kernel-maintainers@forge.provo.novell.com Status|NEEDINFO |NEW Info Provider|clarkt@cnsp.com | ------- Comment #13 from mkoenig@novell.com 2007-01-23 08:01 MST ------- Ok, in this case it seems to be a problem with kernel or hardware. --> Reassigning to kernel-team -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070 lmb@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel- |ak@novell.com |maintainers@forge.provo.nove| |ll.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=233070
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=233070
User pavel@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=233070#c16
Pavel Machek
participants (1)
-
bugzilla_noreply@novell.com