* [Linux-ia64] 2.4.1 + 010131 patch: sys_nanosleep sleeps... infinitely!
@ 2001-02-26 12:52 Francis Galiegue
2001-02-26 15:21 ` Jack Steiner
0 siblings, 1 reply; 2+ messages in thread
From: Francis Galiegue @ 2001-02-26 12:52 UTC (permalink / raw)
To: linux-ia64
This is on a single B2 step CPU BigSur, 1G RAM, with kernel version mentioned
in subject. In order to prevent too long fscks on hangs, I did a little script
which syncs and then sleeps for 1 sec, infinitely. At some point which I could
not isolate, sys_nanosleep would sleep forever....
Anyone else having hit that problem?
--
Francis Galiegue, fg@mandrakesoft.com - Normand et fier de l'être
"Programming is a race between programmers, who try and make more and more
idiot-proof software, and universe, which produces more and more remarkable
idiots. Until now, universe leads the race" -- R. Cook
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Linux-ia64] 2.4.1 + 010131 patch: sys_nanosleep sleeps... infinitely!
2001-02-26 12:52 [Linux-ia64] 2.4.1 + 010131 patch: sys_nanosleep sleeps... infinitely! Francis Galiegue
@ 2001-02-26 15:21 ` Jack Steiner
0 siblings, 0 replies; 2+ messages in thread
From: Jack Steiner @ 2001-02-26 15:21 UTC (permalink / raw)
To: linux-ia64
We have also been seeing hangs running with the latest BIOS. The problem
was isolated to a tiny window in arch/ia64/kernel/time.c where
itm could get loaded with a value that is in the past.
The problems occurs more frequently in recent BIOSs. I saw a reference
to use of PMI interrupts by the new BIOS but am not certain.
We see frequent hangs. Somes it is a hard hang but more often, the
system runs almost OK but any "sleep()" will fail. Also, time stop
advancing for obvious reasons.
I dont know if this could be related to what you see but it is worth a shot....
--- /home/steiner/WA/work240-trillian/linux/arch/ia64/kernel/time.c Wed Jan 31 13:29:32 2001
+++ arch/ia64/kernel/time.c Thu Feb 8 12:14:44 2001
@@ -188,10 +250,21 @@
* because that would force us to call do_timer() which in
* turn would let our clock run too fast (with the potentially
* devastating effect of losing monotony of time).
+ *
+ * Note: there is a tiny window between reading itc &
+ * setting itm. It is possible to take a PMI or MCA in this
+ * window. If that happens, we will lose clock interrupts.
+ * To close the window, after writing itm, we reread itc & verify
+ * that the interrupt is still scheduled for the future.
*/
+again:
while (!time_after(new_itm, ia64_get_itc() + cpu_data[cpu].itm_delta/2))
new_itm += cpu_data[cpu].itm_delta;
ia64_set_itm(new_itm);
+
+ if (new_itm <= ia64_get_itc())
+ goto again;
+
}
--
Thanks
Jack Steiner (651-683-5302) (vnet 233-5302) steiner@sgi.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-02-26 15:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-26 12:52 [Linux-ia64] 2.4.1 + 010131 patch: sys_nanosleep sleeps... infinitely! Francis Galiegue
2001-02-26 15:21 ` Jack Steiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox