RE: Bogomips and loops_per_jiffy

2 messages, 2 authors, 2002-05-07 · open the first message on its own page

RE: Bogomips and loops_per_jiffy

From: Jean-Denis Boyer <hidden>
Date: 2002-05-06 21:17:40

Jim,

I have found a fix for the hanging "Calibrating delay loop...".

I added the following line at the beginning of
the function "time_init" in arch/ppc/kernel/time.c

  set_tb(0, 0);

This resets the time base register and avoids the timer interrupt
to set the second decrementer value to a very large one.
It happens only when the TBL is large.

This is a quick fix. Because I think it should work
for any value of TB. It looks like that part of the code
does not correctly support the overflow.

Looking through the code, I wonder why the return value of
the function "tb_delta" is signed.


--------------------------------------------
 Jean-Denis Boyer, B.Eng., System Architect
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------

-----Original Message-----
From: Jean-Denis Boyer [mailto:jdboyer@mediatrix.com]
Sent: 22 avril, 2002 11:58
To: 'Jim Thompson'
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: RE: Bogomips and loops_per_jiffy



Jim
quoted
I've noticed that about half the time, the kernels I build
take what I
quoted
think is a long time (> 20 seconds) in calibrate_delay().
I have exactly the same problem with my custom board using an 8260.
At every 5-10 times I start the kernel, it hangs on
'Calibrating delay loop...' for about 1 minute, and then yields
the same result (130.66 BogoMips).

I begun to try to debug that problem, but without any success yet. :-(
I've searched through the mailing lists, but did not find anything of
interest.

This problem is very annoying and I really want to fix it!


--------------------------------------------
 Jean-Denis Boyer, B.Eng., System Architect
 Mediatrix Telecom Inc.
 4229 Garlock Street
 Sherbrooke (Québec)
 J1L 2C8  CANADA
 (819)829-8749 x241
--------------------------------------------
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

MPC823: Video non-interlace mode

From: jari <hidden>
Date: 2002-05-07 02:55:28

Hi all,

I'm using MPC823 (a Development kit from Mvista more than 1 year ago.).
Now I have a problem with the video. The image when showing in TV is
blinking.

I'd like to try non-interlace mode, but I could not find any example for this
mode. (Motorola only provides examples for interlace PAL and NTSC)

Is there anyone has tried it before?
Please help me.
Jari


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help