<?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>6121</bug_id>
          
          <creation_ts>2014-04-04 13:09:10 +0000</creation_ts>
          <short_desc>powertop --calibrate does not work on QemuPPC</short_desc>
          <delta_ts>2015-01-20 11:52:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>11</classification_id>
          <classification>Runtime</classification>
          <product>General Runtime</product>
          <component>General Runtime</component>
          <version>1.6</version>
          <rep_platform>x86</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>normal</bug_severity>
          <target_milestone>1.7.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Catalin Scrieciu">catalin.scrieciu</reporter>
          <assigned_to name="Chunrong Guo">b40290</assigned_to>
          <cc>alexandra.safta</cc>
    
    <cc>alexandru.c.georgescu</cc>
    
    <cc>sgw</cc>
          
          <qa_contact name="Catalin Scrieciu">catalin.scrieciu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Found by QA test)</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>42290</commentid>
    <comment_count>0</comment_count>
    <who name="Catalin Scrieciu">catalin.scrieciu</who>
    <bug_when>2014-04-04 13:09:10 +0000</bug_when>
    <thetext>While executing the tools on target tests we discovered an issue when executing the &quot;powertop --calibrate&quot; command. Basically, after the calibration starts and a few steps are finished the calibration sequence freezes at the following step:
&quot;Calibrating: CPU wakeup power consumption&quot;. 

root@qemuppc:~# powertop --calibrate
Cannot load from file /var/cache/powertop/saved_results.powertop
Cannot load from file /var/cache/powertop/saved_parameters.powertop
RAPL device for cpu 0
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
RAPL device for cpu 0
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Model-specific registers (MSR)                   not found (try enabling CONFIG_X86_MSR).
Cannot load from file /var/cache/powertop/saved_parameters.powertop
Starting PowerTOP power estimate calibration
Calibrating idle
  function ktime_to_ns not defined
Calibrating: disk usage
Calibrating backlight
Calibrating idle
Calibrating: CPU usage on 1 threads
Calibrating: CPU usage on 4 threads
Calibrating: CPU wakeup power consumption
Calibrating: CPU wakeup power consumption
Calibrating: CPU wakeup power consumption


If the calibration process is stopped (ctrl+c) the target behaves strangely: it either freezes or it takes a lot of times to run any command (other tests may fail, like perf --time=x if the target is used after the calibration issue).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42360</commentid>
    <comment_count>1</comment_count>
    <who name="Alexandra Safta">alexandra.safta</who>
    <bug_when>2014-04-08 07:13:37 +0000</bug_when>
    <thetext>Test object: 1.6_M5_RC2:3e528d3e4bc542ca2f654c54363c56af0fb9f61b
Test target: qemuPPC
Test host: Ubuntu 12.04</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42538</commentid>
    <comment_count>2</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2014-04-10 14:47:50 +0000</bug_when>
    <thetext>This works correctly for 3.10, but fails 3.14</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43348</commentid>
    <comment_count>3</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2014-05-15 04:00:29 +0000</bug_when>
    <thetext>poky: commit 50067e069c8cbc0d339819494f22ae7623d47aa6
branch : master

The issue can not be reproduced on qemuppc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43349</commentid>
    <comment_count>4</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2014-05-15 05:09:15 +0000</bug_when>
    <thetext>poky: commit 50067e069c8cbc0d339819494f22ae7623d47aa6
branch : master

The issue can not be reproduced on qemuppc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44267</commentid>
    <comment_count>5</comment_count>
    <who name="Catalin Scrieciu">catalin.scrieciu</who>
    <bug_when>2014-07-01 14:50:17 +0000</bug_when>
    <thetext>We have encountered this issue again when testing Yocto 1.7 M1 RC1 (poky 68824d9b8f6e290da078383316b3f4b732585f2b).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47198</commentid>
    <comment_count>6</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2014-11-26 07:53:27 +0000</bug_when>
    <thetext>poky: commit 67261e2d7a2acd2646b4e25ab1456bec07e93834

branch  :  master


The issue can not be reproduced on qemuppc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47272</commentid>
    <comment_count>7</comment_count>
    <who name="Chunrong Guo">b40290</who>
    <bug_when>2014-12-02 02:28:29 +0000</bug_when>
    <thetext>poky: commit 67261e2d7a2acd2646b4e25ab1456bec07e93834

branch  :  master


The issue can not be reproduced on qemuppc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>47610</commentid>
    <comment_count>8</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2014-12-18 12:27:48 +0000</bug_when>
    <thetext>Catalin, can you verify this?

Thanks,
Alex.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>48062</commentid>
    <comment_count>9</comment_count>
    <who name="Catalin Scrieciu">catalin.scrieciu</who>
    <bug_when>2015-01-20 11:52:59 +0000</bug_when>
    <thetext>This bug is fixed. Verified on yocto-1.8_M2.rc1 and this issue is no longer reproducible. 

Poky: commit d9d5b8b499af3ae01a1e33d0d3969c54c2d4ab1b
Target: QemuPPC
Test Host: Ubuntu 14.04 LTS</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>