<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>1192</bug_id>
          
          <creation_ts>2011-06-22 22:21:54 +0000</creation_ts>
          <short_desc>mpc8315&apos;s tune file: &quot;tune-ppc603e.inc&quot;</short_desc>
          <delta_ts>2012-09-29 08:31:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BSPs</product>
          <component>bsps-configuration</component>
          <version>1.0</version>
          <rep_platform>mpc8315e-rdb</rep_platform>
          <op_sys>ppc</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="niqingliang2003">niqingliang2003</reporter>
          <assigned_to name="Bruce Ashfield">bruce.ashfield</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>dvhart</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>liming.wang</cc>
    
    <cc>niqingliang2003</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>song.liu</cc>
    
    <cc>yi.zhao</cc>
    
    <cc>yp.bsp.watcher</cc>
    
    <cc>yp.watcher</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>14391</commentid>
    <comment_count>0</comment_count>
    <who name="niqingliang2003">niqingliang2003</who>
    <bug_when>2011-06-22 22:21:54 +0000</bug_when>
    <thetext>the mpc8315&apos;s core is e300c3; for releasing its&apos; power, the tune file should like this(from openembedded):

TARGET_CC_ARCH = &quot;-mcpu=e300c3&quot;
BASE_PACKAGE_ARCH = &quot;ppce300c3&quot;
FEED_ARCH = &quot;ppce300c3&quot;
PACKAGE_EXTRA_ARCHS += &quot;ppce300c3&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18129</commentid>
    <comment_count>1</comment_count>
    <who name="Liming Wang">liming.wang</who>
    <bug_when>2012-01-13 01:29:59 +0000</bug_when>
    <thetext>I don&apos;t see where use the tune options. And I think it&apos;s not necessary for mpc8315e to use e300c3 options. Could we close this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18138</commentid>
    <comment_count>2</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-01-13 06:43:25 +0000</bug_when>
    <thetext>I see the tune files in:

  meta-yocto/conf/machine/mpc8315e-rdb.conf

and

  meta/conf/machine/include/tune-ppc603e.inc

Although not required, as a reference board it would be better to show the
best possible tuning is used for a board.

It should be as simple as pulling in the e300c3 tuning from open embedded,
putting it in the oe-core machine/include directory and then changing the
meta-yocto include for the mpc8315e-rdb to pick it up.

A build and boot should be sufficient after that.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18174</commentid>
    <comment_count>3</comment_count>
    <who name="Liming Wang">liming.wang</who>
    <bug_when>2012-01-17 01:29:54 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I see the tune files in:
&gt; 
&gt;   meta-yocto/conf/machine/mpc8315e-rdb.conf
&gt; 
&gt; and
&gt; 
&gt;   meta/conf/machine/include/tune-ppc603e.inc
&gt; 
&gt; Although not required, as a reference board it would be better to show the
&gt; best possible tuning is used for a board.
&gt; 
&gt; It should be as simple as pulling in the e300c3 tuning from open embedded,
I didn&apos;t find the tune files of e300c3  in open embedded.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18180</commentid>
    <comment_count>4</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-01-17 07:24:05 +0000</bug_when>
    <thetext>Should be this:

  http://cgit.openembedded.org/openembedded/tree/conf/machine/include/tune-ppce300c3.inc

and this board could be a reference:

  http://cgit.openembedded.org/openembedded/tree/conf/machine/mpc8315e-rdb.conf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18201</commentid>
    <comment_count>5</comment_count>
    <who name="Liming Wang">liming.wang</who>
    <bug_when>2012-01-18 01:49:09 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Should be this:
&gt; 
&gt;  
&gt; http://cgit.openembedded.org/openembedded/tree/conf/machine/include/tune-ppce300c3.inc
&gt; 
&gt; and this board could be a reference:
&gt; 
&gt;   http://cgit.openembedded.org/openembedded/tree/conf/machine/mpc8315e-rdb.conf
I copied a file tune-ppce300c3.inc from the tune-ppce300c2.inc in poky, and replaced 300c2 with 300c3 :
---------------------------------------------------------------------
DEFAULTTUNE ?= &quot;ppce300c3&quot;

require conf/machine/include/powerpc/arch-powerpc.inc

TUNEVALID[ppce300c3] = &quot;Enable ppce300c3 specific processor optimizations&quot;
TUNE_CCARGS += &quot;${@bb.utils.contains(&quot;TUNE_FEATURES&quot;, &quot;ppce300c3&quot;, &quot;-mcpu=e300c3&quot;, &quot;&quot;, d)}&quot;
TUNE_PKGARCH = &quot;${@bb.utils.contains(&quot;TUNE_FEATURES&quot;, &quot;ppce300c3&quot;, &quot;ppce300c3&quot;, &quot;${PPCPKGARCH}&quot;, d)}&quot;

AVAILTUNES += &quot;ppce300c3&quot;
TUNE_FEATURES_tune-ppce300c3 = &quot;m32 fpu-soft ppce300c3&quot;
PACKAGE_EXTRA_ARCHS_tune-ppce300c3 = &quot;${PACKAGE_EXTRA_ARCHS_tune-powerpc-nf} ppce300c3&quot;
---------------------------------------------------------------------

I built the kernel, it can boot on the target successfully. 

But when I built the core-image-sato, flac package prompted error messages:

powerpc-poky-linux-libtool: compile:  powerpc-poky-linux-gcc -m32 -msoft-float -mcpu=e300c3 --sysroot=/buildarea1/walimis/poky-test.git/build/tmp/sysroots/mpc8315e-rdb -DHAVE_CONFIG_H -I. -I../.. -DFLaC__INLINE=__inline__ -DNDEBUG -I../.. -I./include -I../../include -maltivec -mabi=altivec -DFLAC__NO_ASM -I/buildarea1/walimis/poky-test.git/build/tmp/sysroots/mpc8315e-rdb/usr/include -O3 -funroll-loops -finline-functions -Wall -W -Winline -O2 -pipe -g -feliminate-unused-debug-types -c crc.c  -fPIC -DPIC -o .libs/crc.o
crc.c:1:0: error: AltiVec not supported in this target

I noted a patch &quot;meta/recipes-multimedia/flac/flac-1.2.1/0001-No-AltiVec-on-SPE.patch&quot; and maybe I need more time to dig this failure.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>18209</commentid>
    <comment_count>6</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-01-18 06:17:54 +0000</bug_when>
    <thetext>Liming: thanks for the update.

We can take more time on this, it is a more minor change, and if we had errors, 
I would have expected them on some of the graphics/mathematical userspace
apps that have inline asm or other lower level assumptions.

Good progress, keep working on this in the background, and now we have a
better scope / understanding of the effort.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24895</commentid>
    <comment_count>7</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-09-06 18:31:22 +0000</bug_when>
    <thetext>I&apos;ll take this bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24897</commentid>
    <comment_count>8</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-09-06 19:26:26 +0000</bug_when>
    <thetext>patches submitted to the mailing lists</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>24924</commentid>
    <comment_count>9</comment_count>
    <who name="Bruce Ashfield">bruce.ashfield</who>
    <bug_when>2012-09-07 12:30:00 +0000</bug_when>
    <thetext>Patches have been merged to master:

a32f551c968dee86a801d8421e19ed7da92e6ac9 (meta-yocto-bsp)
72dc770cd926988b045cfff92ab30c89d6a417c1 (meta)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25958</commentid>
    <comment_count>10</comment_count>
    <who name="Yi Zhao">yi.zhao</who>
    <bug_when>2012-09-29 08:31:25 +0000</bug_when>
    <thetext>Verified. 

git info: 718eb85806e080d0b165344b272e531ef19421eb
git branch: poky/1.3_M5</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>