<?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>2540</bug_id>
          
          <creation_ts>2012-06-05 19:59:44 +0000</creation_ts>
          <short_desc>Move sugarbay BSP to the 3.4 kernel</short_desc>
          <delta_ts>2012-07-30 20:02: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.3</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(P1)(Done)</status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tom Zanussi">tom.zanussi</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>dvhart</cc>
    
    <cc>laurentiu.serban</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</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>21855</commentid>
    <comment_count>0</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-06-05 19:59:44 +0000</bug_when>
    <thetext>This bug is a placeholder for 1.3 BSP-related work to be handed off (from Tom to Nitin).

In general, we want to move all the meta-intel BSPs to the new kernel version every cycle.

Of the four BSPs being handed over in the initial stage, the sugarbay and fishriver should be relatively straightforward. 

For sugarbay/huronriver, this should be a relatively straightforward task.  It basically entails modifying the kernel recipes and machine configuration to upgrade to the new kernel, along with verifying that all the kernel configuration related to the BSP in the meta branch of the 3.4 kernel repo exists and has been properly enabled.  Note that with 2-point kernel version jumps e.g. 3.2 -&gt; 3.4, the underlying kernel options may have changed and may no longer apply and therefore the corresponding features may no longer exist or their contents may have changed, etc.  Moving a BSP to a new kernel therefore entails testing all the functionality to make sure nothing&apos;s regressed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22012</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-06-11 23:34:57 +0000</bug_when>
    <thetext>Tom, I am able to build 3.4 kernel and core-image-sato for sugarbay BSP. I will like to know what is involved in testing a BSP to make sure it is complete. Can you give more details how to test a BSP ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22017</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-06-12 03:26:14 +0000</bug_when>
    <thetext>For testing, you should make sure basic functionality works before passing it off to QA, who will do more involved testing according to the QA plan.

Generally, for all the meta-intel BSPs, I build and boot a sato image.

For all the BSPs, the BSP should successfully boot into X with all icons, etc.  The mouse and keyboard should both work correctly.  If the box has PS/2 ports, you should also test using a PS/2 mouse and keyboard.

Open up the terminal application and you should get a functional terminal without error messages or anything unusual.  From the terminal window, I run ifconfig to get the machines IP address.  You should then be able to ssh into the box; this tests that network functionality is working.

You should check the dmesg output to make sure there&apos;s nothing unusual there, such as kernel oopsen.  You should also run &apos;uname -a&apos; and make sure you&apos;re running the expected kernel version.

For the BSPs you care about graphics for, you should also test that basic 3-d and video acceleration works.

To test 3-d acceleration, you need to add &apos;tools-testapps&apos; to EXTRA_IMAGE_FEATURES.  This will add &apos;glxgears&apos; and &apos;glxinfo&apos; to the image.  glxgears should run without any jumpiness when moving the mouse.  glxinfo should show that direct rendering is being used, along with an appropriate OpenGL renderer string i.e. not showing software rendering.

You should test this on the BSPs we care about 3d acceleration on:

crownbay
sugarbay
chiefriver
fri2

But not the -noemgd versions - we don&apos;t care about 3d on those.

To test video acceleration, you should download a 1080p h264 video and play it using gstreamer e.g.

gst-launch playbin2 uri=&quot;file:///home/root/dictator.mp4&quot;

The video should be smooth and high-definition and top should show low cpu utilization e.g. 5% on sugarbay and chiefriver, 25% or less on crownbay and fri2.  It will be obvious if acceleration isn&apos;t working on the atom machines as you&apos;ll get about 1/2 frame a second if not.

You should also hear sound when you play the videos, which provides a minimal sound test.  You can also upload a .wav file and play it using the media player app.

The video acceleration tests currently apply to the following BSPs:
crownbay
sugarbay
chiefriver
fri2

But not the -noemgd versions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22018</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-06-12 04:29:00 +0000</bug_when>
    <thetext>Tom, Thanks a lot for these detailed instructions. I can&apos;t ask for more clearer instructions. Now I need to find a good 1080p h264 video for testing :)

Few more things I would like to know are, how the hand-off to QA for testing is performed. Is it one BSP hadded-off to QA at a time or is it performed when all BSPs are ready ? What is the process to initiate this hand-off ?


Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22021</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-06-12 05:12:07 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; Tom, Thanks a lot for these detailed instructions. I can&apos;t ask for more
&gt; clearer instructions. Now I need to find a good 1080p h264 video for testing
&gt; :)
&gt; 
&gt; Few more things I would like to know are, how the hand-off to QA for testing
&gt; is performed. Is it one BSP hadded-off to QA at a time or is it performed
&gt; when all BSPs are ready ? What is the process to initiate this hand-off ?
&gt; 
&gt; 
&gt; Thanks,
&gt; Nitin

I can send you one that I use if you can tell me where to upload it.

As for handing off, there really isn&apos;t a handoff process - QA will test whatever&apos;s in meta-intel - some of the BSPs may be &apos;old&apos; and some may be recent upgrades.  They&apos;ll take whatever&apos;s in meta-intel/master at each milestone, and also at release time, whatever&apos;s in the new release e.g. meta-intel/denzil.

Essentially, the goal is to get them all working properly for each release, which you do by gradually upgrading them in master and then capturing them all in a release branch for release testing, then starting the whole process over for the next release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22022</commentid>
    <comment_count>5</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-06-12 05:36:03 +0000</bug_when>
    <thetext>
&gt; 
&gt; I can send you one that I use if you can tell me where to upload it.

Tome,  you can put it in /tmp of yocto-hm1, I will move it from there.

Thanks,
Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22052</commentid>
    <comment_count>6</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-06-12 13:53:02 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; &gt; 
&gt; &gt; I can send you one that I use if you can tell me where to upload it.
&gt; 
&gt; Tome,  you can put it in /tmp of yocto-hm1, I will move it from there.
&gt; 
&gt; Thanks,
&gt; Nitin

OK, the file is /tmp/dictator.mp4</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22217</commentid>
    <comment_count>7</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-06-14 20:18:58 +0000</bug_when>
    <thetext>Tom and Nitin, please provide an estimate and specify the target milestone. Obviously this HAS to happen for the 1.3 release, so marking as a P1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22443</commentid>
    <comment_count>8</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-06-20 20:17:00 +0000</bug_when>
    <thetext>I am trying this, and finding that, with the linux-yocto3.4 kernel init is  failing to come up and throwing seg-fault. The same setup with 3.2 linux yocto kernel boots fine. 
  Not reached to the root cause of this issue yet. Looking at config differences between 3.2 &amp; 3.4 kerneles.
  Also notice that on FRI1 the 3.4 kernel is unable to bring up &quot;login&quot; process, due to dynamic linking issues.

Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22483</commentid>
    <comment_count>9</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-06-21 23:55:24 +0000</bug_when>
    <thetext>Today I tested linux-yocto kernel v3.4.3 from Bruces&apos;s contrib branch on sugarbay. And it booted fine, and also all the tests mentioned in this bug passed.

Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22510</commentid>
    <comment_count>10</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-06-22 20:49:30 +0000</bug_when>
    <thetext>Once Bruce&apos;s 3.4.3 changes goes in, I will be able to push my changes on top.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22937</commentid>
    <comment_count>11</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-07-10 07:36:38 +0000</bug_when>
    <thetext>This work is upstreamed now:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-intel/commit/?id=1fc06d4e90d728ff8260f8595d78497c9fc5864a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23489</commentid>
    <comment_count>12</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2012-07-25 14:07:03 +0000</bug_when>
    <thetext>Hi,
I have verified the version change to 3.4 with the Sugarbay build 0712-1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>23613</commentid>
    <comment_count>13</comment_count>
    <who name="Laurentiu Serban">laurentiu.serban</who>
    <bug_when>2012-07-30 20:02:25 +0000</bug_when>
    <thetext>Verified after last comment</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>