<html>
    <head>
      <base href="https://bugs.dpdk.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8" class="bz_new_table">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Intel uncore power library fails because of too many frequencies"
   href="https://bugs.dpdk.org/show_bug.cgi?id=1499">1499</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Intel uncore power library fails because of too many frequencies
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>DPDK
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>24.07
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>core
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>dev@dpdk.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>stephen@networkplumber.org
          </td>
        </tr>

        <tr>
          <th>Target Milestone</th>
          <td>---
          </td>
        </tr></table>
      <p>
        <div class="bz_comment_block">
          <pre class="bz_comment_text">Running 24.07-rc2 on Intel core box fails the power uncore test because:

RTE>>power_intel_uncore_autotest
POWER: Too many available uncore frequencies: 33
POWER: Cannot get available uncore frequencies of pkg 00 die 00
Cannot initialise uncore power management for pkg 0 die 0, this may occur if
environment is not configured correctly(APCI cpufreq) or operating in another
valid Power management environment


The CPU is: 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
initial_max_freq_khz:3600000
initial_min_freq_khz:400000
max_freq_khz:3600000
min_freq_khz:400000

Which leads to this expression:
        num_uncore_freqs = (ui->init_max_freq - ui->init_min_freq) / BUS_FREQ +
1;
        if (num_uncore_freqs >= MAX_UNCORE_FREQS) {
                POWER_LOG(ERR, "Too many available uncore frequencies: %d",
                                num_uncore_freqs);

I.e:
        num_uncore_freqs = (3600000 - 400000) / 100000 + 1
                         = 33

Looks like an off-by-one error, was this ever tested?
          </pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
      <div itemscope itemtype="http://schema.org/EmailMessage">
        <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
          
          <link itemprop="url" href="https://bugs.dpdk.org/show_bug.cgi?id=1499">
          <meta itemprop="name" content="View bug">
        </div>
        <meta itemprop="description" content="Bugzilla bug update notification">
      </div>
    </body>
</html>