Uptime timer-wrap

From: Richard B. Johnson (root@chaos.analogic.com)
Date: Thu Sep 05 2002 - 15:16:52 EST


On Thu, 5 Sep 2002, Peter Surda wrote:

> Dear kernel developers and other guys with deep linux knowledge,
>
> I am posting here because I think this is an interesting story, and even if
> noone can find a answer now, maybe this can serve as a reference for future.
>
> I am not sure what information is relevant to the story, so I'll try to
> mention anything I consider relevant.
[SNIPPED timer-wrap story]

I tried to simulate your observation by making a driver that
set the 'jiffies' count upon an 'open'. The idea was to get
the jiffies count to something close to wrap so I didn't have to
wait a long time.

Anyway, I found that setting the jiffies count to more than a
few hundred counts into the future, causes the machine to halt
with no interrupts (no Capslock, no NumLock, no network ping, etc).

The machine just stops and I don't understand why.

        spin_lock_irqsave(&xlock, flags);
        jiffies += 0x1000;
        spin_lock_irqrestore(&xlock, flags);

        ... works just fine, but, changing 0x1000 to 0x7fffffff causes
the machine to stop as reported.

Does anybody have a clue?

Cheers,
Dick Johnson
Penguin : Linux version 2.4.18 on an i686 machine (797.90 BogoMips).
The US military has given us many words, FUBAR, SNAFU, now ENRON.
Yes, top management were graduates of West Point and Annapolis.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Sep 07 2002 - 22:00:26 EST