All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: mtn disapprove
@ 2008-01-11 20:57 QMan
  2008-01-12 10:42 ` Rolf Leggewie
  0 siblings, 1 reply; 21+ messages in thread
From: QMan @ 2008-01-11 20:57 UTC (permalink / raw)
  To: openembedded-devel

While we're on the subject of the collie machine stuff, we need to make sure
the tune-strongarm.inc that collie calls doesn't use the -mtune=xscale, as
is the current case, and instead use -mtune=strongarm1100 (not collie) or
-mtune=strongarm1110 (collie).  Also, the collie installkit script should
make "zImage" not "zImage.bin"

-John

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On Behalf
> Of Rolf Leggewie
> Sent: Friday, January 11, 2008 8:54 AM
> To: openembedded-devel@openembedded.org
> Subject: Re: [oe] mtn disapprove
>
> Koen Kooi schrieb:
> > It's the thing I had in mind, but never worked up the motivation of
> > doing :)
>
> OK, here it is: http://oz.leggewie.org/wip/machine-config.diff
>
> * drop unused poodle-2.6.inc
> * work contents of collie-2.6.inc into collie.conf
> * require zaurus-2.6.inc for collie.conf
> * deleted entries from collie.conf that seem superfluous
> * made some changes to zaurus-2.6.inc to make sure it applies
>   to all Zaurus models
> * define SERIAL_CONSOLE in zaurus-2.6.inc as ?=
>
> RP and hrw have given their OK.  I have locally committed it as
> 49cb87ce3fb4d9857d853d9e54f38fa88e9ccc85.  If there are no objections,
> I will eventually push it.
>
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 21+ messages in thread
* Re: mtn disapprove
@ 2008-01-13 20:26 QMan
  2008-01-28 13:51 ` Rolf Leggewie
  0 siblings, 1 reply; 21+ messages in thread
From: QMan @ 2008-01-13 20:26 UTC (permalink / raw)
  To: openembedded-devel

Comment inline down below.

-John

> -----Original Message-----
> From: openembedded-devel-bounces@lists.openembedded.org
> [mailto:openembedded-devel-bounces@lists.openembedded.org] On
> Behalf Of Koen Kooi
> Sent: Sunday, January 13, 2008 8:31 AM
> To: Using the OpenEmbedded metadata to build Distributions
> Subject: Re: [oe] mtn disapprove
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Rolf Leggewie schreef:
> | Thomas Kunze schrieb:
> |> Have only things in zaurus-2.6.inc that are common to all zaurus.
> |
> | Hehe, have a look at
> 4989371c8e7cec943a964b459ec3e71c0f547204 which I
> | committed yesterday. It already does exactly as you
> suggest.  My mail
> | about it has not made it to the list, though.  There seems
> to be a few
> | hours backlog with the OE ml.
>
> I suspect spamassassin.
>
> | From the commit message
> |
> | conf/machine/: fix configuration for Strongarm devices
> | * replace erroneous TARGET_CC_ARCH line optimising for
> xscale instead of
> |   strongarm
> | * remove inclusion of tune-strongarm.inc from collie.conf
> and replace it
> |   with the correct TARGET_CC_ARCH.  Collie is the only
> Strongarm 1110
> |   device in OE and thus needs special treatment
>
> Is it? Wikipedia[2] Tells a different story, and AFAIK simpad
> and htcwallaby are sa1110 as well.
>
> | * rename tune-strongarm.inc to tune-strongarm1100.inc and
> leave a short
> |   note to make it clear the file only applies to Strongarm
> 1100 devices.
> |
> | collie is apparently Strongarm 1110, all other Zaurus are 1100.
>
> ~From the gcc 4.1.2 manual[1]:
>
> - -->8------
> - -mcpu=name
> This specifies the name of the target ARM processor. GCC uses
> this name to determine what kind of instructions it can emit
> when generating assembly code. Permissible names are: `arm2',
> `arm250', `arm3', `arm6', `arm60', `arm600', `arm610',
> `arm620', `arm7', `arm7m', `arm7d', `arm7dm', `arm7di',
> `arm7dmi', `arm70', `arm700', `arm700i', `arm710', `arm710c',
> `arm7100', `arm7500', `arm7500fe', `arm7tdmi', `arm7tdmi-s',
> `arm8', `strongarm', `strongarm110', `strongarm1100', `arm8',
> `arm810', `arm9', `arm9e', `arm920', `arm920t', `arm922t',
> `arm946e-s', `arm966e-s', `arm968e-s', `arm926ej-s',
> `arm940t', `arm9tdmi', `arm10tdmi', `arm1020t',
> `arm1026ej-s', `arm10e', `arm1020e', `arm1022e',
> `arm1136j-s', `arm1136jf-s', `mpcore', `mpcorenovfp',
> `arm1176jz-s', `arm1176jzf-s', `xscale', `iwmmxt', `ep9312'.
>
> - -mtune=name
> This option is very similar to the -mcpu= option, except that
> instead of specifying the actual target processor type, and
> hence restricting which instructions can be used, it
> specifies that GCC should tune the performance of the code as
> if the target were of the type specified in this option, but
> still choosing the instructions that it will generate based
> on the cpu specified by a -mcpu= option. For some ARM
> implementations better performance can be obtained by using
> this option.
>
> - --8<------
>
> There's no 'strongarm1110' (four digits of which 3 ones)
> entry only strongarm (no digits) strongarm110 (three digits
> of which 2 ones) and strongarm1100 (four digits of which 2 ones)

It turns out a bunch of aliases were added for specific models that use the
same options as the generic family they belong to.  These aliases never made
it to the documentation.


> So I suggest using -mtune=strongarm for all strongarm
> devices, since that's the safest *documented* gcc tune option
> for strongarm CPUs. As for why OE was using -mtune=xscale:

Agreed.  Also, looking at the gcc source, it's pretty obvious that the
compiler uses the same options for all of the strongarm* tune options
anyway:

ARM_CORE("strongarm",     strongarm,    4,                   FL_MODE26 |
FL_LDSCHED | FL_STRONG, fastmul)
ARM_CORE("strongarm110",  strongarm110, 4,                   FL_MODE26 |
FL_LDSCHED | FL_STRONG, fastmul)
ARM_CORE("strongarm1100", strongarm1100, 4,                  FL_MODE26 |
FL_LDSCHED | FL_STRONG, fastmul)
ARM_CORE("strongarm1110", strongarm1110, 4,                  FL_MODE26 |
FL_LDSCHED | FL_STRONG, fastmul)

>
> ~  In a past a long time ago where bitbake needed 1GB of
> memory and multimachine wasn't around yet the distributions
> targeting strongarm devices (openzaurus and familiar) wanted
> to have a single feed for all devices (strongarm and pxa)
> without having a big speed penalty on xscale devices with a
> bigger pipeline. So the binaries run on both strongarm and
> xscale, but without the ~60% speedhit you would get without
> - -mtune-xscale. The downside is that the binaries are slower
> on actual strongarm cpus.
>
> But AFAIK nowadays all strongarm targetting distros use
> multimachine, so we can replace the xscale with strongarm and
> get a slight speed boost since gcc will optimize for a 5
> stage pipeline instead of a seven stage one.
>
> Summary:
> ~ * don't use undocumented gcc options
> ~ * tune for the correct cpu family
>
> regards,
>
> Koen
>
> [1] http://gcc.gnu.org/onlinedocs/gcc-4.1.2/gcc/ARM-Options.html
> [2] http://en.wikipedia.org/wiki/IPAQ
> [3] http://gcc.gnu.org/ml/gcc/2002-02/msg00508.html
>
> PS: there also is a sa1111, but that's a companion chip to
> the sa11x0 for things like usbhost.
>
> - --
> koen@dominion.kabel.utwente.nl will go go away in december
> 2007, please use k.kooi@student.utwente.nl instead.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (Darwin)
>
> iD8DBQFHijynMkyGM64RGpERAi7/AJ4vqWIdoCb57PY14AfyXlsfRwr3ogCeKw3L
> 0nxgQT9yk0GcS6APZFzaPyo=
> =jmYG
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> Openembedded-devel mailing list
> Openembedded-devel@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel
>


^ permalink raw reply	[flat|nested] 21+ messages in thread
* mtn disapprove
@ 2008-01-11  7:36 Koen Kooi
  2008-01-11  8:30 ` Rolf Leggewie
  2008-01-11 11:06 ` ohviey1
  0 siblings, 2 replies; 21+ messages in thread
From: Koen Kooi @ 2008-01-11  7:36 UTC (permalink / raw)
  To: Using the OpenEmbedded metadata to build Distributions

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

~From the commit messages:

- --
Zaurus machine config: fix code for creation of installkit for collie
* remove the code from collie config.  It is present in collie-2.6.inc
- --

That is factually correct, however instead of collie-2.6.inc you mean
zaurus-2.6.inc. Lets see:

koen@bitbake:~/OE/.dev/conf/machine$ grep require collie.conf
require conf/machine/include/collie-${MACHINE_KERNEL_VERSION}.inc
require conf/machine/include/tune-strongarm.inc
koen@bitbake:~/OE/.dev/conf/machine$ grep include collie.conf
require conf/machine/include/collie-${MACHINE_KERNEL_VERSION}.inc
require conf/machine/include/tune-strongarm.inc
koen@bitbake:~/OE/.dev/conf/machine$ grep require include/collie-2.*
koen@bitbake:~/OE/.dev/conf/machine$ grep include include/collie-2.*
koen@bitbake:~/OE/.dev/conf/machine$

Collie doesn't include zaurus-2.6.inc, which is why I added the code to
collie-2.6.inc a while ago so it would actually make an installkit,
which you broke now. Since I want an installkit (I wrote the installkit
code for that reason) I disapproved that commit.


- --
koen@dominion.kabel.utwente.nl will go go away in december 2007, please
use k.kooi@student.utwente.nl instead.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFHhxxxMkyGM64RGpERAjMwAJ9hLuwaCm7LczNWhE6ZxfGuOTeP2wCfUlDB
QSKivkNms6TjC/7CFL2g43g=
=TAlG
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2008-01-28 13:51 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 20:57 mtn disapprove QMan
2008-01-12 10:42 ` Rolf Leggewie
2008-01-12 11:41   ` Richard Purdie
  -- strict thread matches above, loose matches on Subject: below --
2008-01-13 20:26 QMan
2008-01-28 13:51 ` Rolf Leggewie
2008-01-11  7:36 Koen Kooi
2008-01-11  8:30 ` Rolf Leggewie
2008-01-11  8:38   ` Koen Kooi
2008-01-11 16:53     ` Rolf Leggewie
2008-01-11 18:48       ` Rolf Leggewie
2008-01-11 19:20         ` Koen Kooi
2008-01-11 19:32           ` Rolf Leggewie
2008-01-11 23:22             ` Thomas Kunze
2008-01-12 10:39               ` Rolf Leggewie
2008-01-13 13:09                 ` Thomas Kunze
2008-01-13 15:06                   ` Rolf Leggewie
2008-01-13 16:30                     ` Koen Kooi
2008-01-14 11:21                       ` Florian Boor
2008-01-14 11:44                       ` Rolf Leggewie
2008-01-11 19:36       ` Rolf Leggewie
2008-01-11 11:06 ` ohviey1

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.