Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#78499 - 07/03/2002 21:17 Stuck Jiffies: fix #2
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
(second try.. lost the attachment first time around)

Okay, I have attached the second half of the "stuck jiffies" patch. This part isn't strictly needed for fixing the lockups, but does fix related bugs in time keeping.

This code has also been part of the Hijack kernels for some time now.

Cheers


Attachments
76694-jiffiefix.patch2 (166 downloads)


Top
#78500 - 11/03/2002 18:13 Re: Stuck Jiffies: fix #2 [Re: mlord]
dclesse
member

Registered: 31/01/2001
Posts: 112
Loc: Belgium/Luxembourg
What does 'stuck jiffies' mean?
_________________________
David Clesse Belgium/Lux [blue]Mk2[/blue]-36g-tuner-stick-aug00 [orange]Riocar[/orange]-60g-jan02

Top
#78501 - 11/03/2002 18:35 Re: Stuck Jiffies: fix #2 [Re: dclesse]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31571
Loc: Seattle, WA
What does 'stuck jiffies' mean?

If you don't know, don't worry about it. This patch is only for those modifying the source code of the kernel.
_________________________
Tony Fabris

Top
#78502 - 11/03/2002 19:16 Re: Stuck Jiffies: fix #2 [Re: dclesse]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
>What does 'stuck jiffies' mean?

You don't need to know this, but a "jiffie" is the basic unit of time-keeping and scheduling in the Linux Kernel. On the RioCar/Empeg, one jiffie == 1/100 second.

The recent v2 beta software releases have been suffering from a number of malfunctions due to a bug in the RioCar/Empeg Linux kernel, where the hardware timer that generates "jiffies" is reset. This bug results in the jiffie timer not being reset correctly, requiring it to count all the way up to 0xffffffff and then wrap around again, a complete 32-bit cycle at 3.6Mhz, before the next "jiffie" is triggered.

Since this locks up many parts of the machine for the 19-20 minutes it takes, the condition has been referred to as "stuck jiffies". The recent Hijack replacement kernels include fixes for this bug, as do upcoming releases (someday) from the manufacturer.

Cheers

Top
#78503 - 11/03/2002 19:20 Re: Stuck Jiffies: fix #2 [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14482
Loc: Canada
And as an aside for everyone, the same bug has been there for a long time, even in the 1.02/1.03 player releases. But for stuck jiffies to actually happen, other system interrupts have to do a lot of processing (more than a jiffie's worth).

The Hijack kernels perform more processing per interrupt than the "stock" kernels, causing the condition to arise more often than it otherwise might have. The ethernet and USB drivers (in the kernel) are also relatively slow at times, triggering the condition.

Cheers

Top
#78504 - 12/03/2002 01:22 Re: Stuck Jiffies: fix #2 [Re: tfabris]
dclesse
member

Registered: 31/01/2001
Posts: 112
Loc: Belgium/Luxembourg
human nature is very curious by default U know ;-)
...and maybe one day I'll deal with it.
_________________________
David Clesse Belgium/Lux [blue]Mk2[/blue]-36g-tuner-stick-aug00 [orange]Riocar[/orange]-60g-jan02

Top