ts-7000
[Top] [All Lists]

RES: [ts-7000] Re: kernel 2.6.24.4 for TS-72XX [take3]

To: <>
Subject: RES: [ts-7000] Re: kernel 2.6.24.4 for TS-72XX [take3]
From: "Fabio UOL" <>
Date: Tue, 29 Apr 2008 14:16:18 -0300

Charlie,

 

You are absolutely right. It worked just fine. I applied the patch and recompiled with the NFBit option on.

 

Thank you very much.

 

 


De: [mailto:] Em nome de charliem_1216
Enviada em: segunda-feira, 28 de abril de 2008 17:27
Para:
Assunto: [ts-7000] Re: kernel 2.6.24.4 for TS-72XX [take3]

 

--- In .com, Alexander Clouter <> wrote:
>
> Hi,
>
> Fabio Vaz <..> [20080428 19:34:08 -0000]:
> >
> > I'm facing a problem with kernel 2.6.23. In my Ts-7200 with kernel
> > 2.4 the /proc/cpuinfo BogoMIPS shows 99.94. With Kernel 2.6 it shows
> > 49.86.
> >
> /me points at the *name*
>
> *BOGO*mips....as in bogus. An emphasis of
> Meaningless-Instructions-Per-Second. It's nothing but a timing loop
that the
> kernel uses for scheduling if I remember correctly.
>
> http://en.wikipedia.org/wiki/BogoMips
>
> > It must be something in the kernel slowing down the CPU for power
> > savings purposes. Do you know where can I find this ?
> >
> Check that thar t'internet for more information.
>
> I vaguely recall somewhere in the middle of the 2.6 series things
halved...or
> doubled...or something.

Except in this case, it *is* a symptom of a real problem I found in
redboot quite some time ago. Your CPU *is* running half-speed. Apply
(and enable!) the following patch. It may already be in the patch set
you are using (I haven't checked); if so just enable it in your config.

Regards ......... Charlie

1) Set nF bit patch
Without this, your CPU will run at 100 MHz. May
be fixed in a future redboot release, but for now you need to patch
this and turn it on:

diff -ubr arm.orig/mach-ep93xx/Kconfig arm/mach-ep93xx/Kconfig
--- arm.orig/mach-ep93xx/Kconfig 2007-01-30 22:42:57.000000000
-0500
+++ arm/mach-ep93xx/Kconfig 2007-02-03 14:41:40.000000000 -0500
@@ -7,6 +7,15 @@
help
Enable kernel support for MaverickCrunch.

+config CR1_NFBIT
+ bool "Turn on nF bit in ControlRegister 1"
+ help
+ Say 'Y' here to force the nF bit on. Usually this is set
+ by the bootrom. If it is not set, then the CPU core will
+ run from HCLK instead of FCLK, and performance will suffer.
+ If you see BogoMIPS of about 1/4 of your CPU clock, try
+ turning this on; your performance should double.
+
comment "EP93xx Platforms"

config MACH_ADSSPHERE
diff -ubr arm.orig/mm/proc-arm920.S arm/mm/proc-arm920.S
--- arm.orig/mm/proc-arm920.S 2007-01-30 22:42:57.000000000 -0500
+++ arm/mm/proc-arm920.S 2007-02-03 14:29:00.000000000 -0500
@@ -395,6 +395,9 @@
mrc p15, 0, r0, c1, c0 @ get control register
v4
bic r0, r0, r5
orr r0, r0, r6
+#ifdef CONFIG_CR1_NFBIT
+ orr r0, r0, #0x40000000 @ set nF
+#endif
mov pc, lr
.size __arm920_setup, . - __arm920_setup

> Cheers
>
> Alex
>
> --
> ________________________________
> / Curiosity killed the cat, but \
> \ satisfaction brought her back. /
> --------------------------------
> \ ^__^
> \ (oo)\_______
> (__)\ )\/\
> ||----w |
> || ||
>

__._,_.___

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU