open-power / hostboot

System initialization firmware for Power systems
Apache License 2.0
75 stars 97 forks source link

CPU is limited to wofbase frequency #226

Closed lili-lilili closed 1 year ago

lili-lilili commented 1 year ago

When we tested OPAL on Raninier, we found that the CPU can only run at wofbase frequency. We tested several CPUs and the results were the same; CPU list: 12 big core-380W, 12 big core-305W, 40 small core-224W.

analyzing CPU 0:
  driver: powernv-cpufreq
  CPUs which run at the same hardware frequency: 0 1 2 3 4 5 6 7
  CPUs which need to have their frequency coordinated by software: 0 1 2 3 4 5 6 7
  maximum transition latency:  Cannot determine or is not supported.
  hardware limits: 2.00 GHz - 4.00 GHz
  available frequency steps:  3.15 GHz, 3.13 GHz, 3.12 GHz, 3.10 GHz, 3.08 GHz, 3.07 GHz, 3.05 GHz, 3.03 GHz, 3.02 GHz, 3.00 GHz, 2.98 GHz, 2.97 GHz, 2.95 GHz, 2.93 GHz, 2.92 GHz, 2.90 GHz, 2.88 GHz, 2.87 GHz, 2.85 GHz, 2.83 GHz, 2.82 GHz, 2.80 GHz, 2.78 GHz, 2.77 GHz, 2.75 GHz, 2.73 GHz, 2.72 GHz, 2.70 GHz, 2.68 GHz, 2.67 GHz, 2.65 GHz, 2.63 GHz, 2.62 GHz, 2.60 GHz, 2.58 GHz, 2.57 GHz, 2.55 GHz, 2.53 GHz, 2.52 GHz, 2.50 GHz, 2.48 GHz, 2.47 GHz, 2.45 GHz, 2.43 GHz, 2.42 GHz, 2.40 GHz, 2.38 GHz, 2.37 GHz, 2.35 GHz, 2.33 GHz, 2.32 GHz, 2.30 GHz, 2.28 GHz, 2.27 GHz, 2.25 GHz, 2.23 GHz, 2.22 GHz, 2.20 GHz, 2.18 GHz, 2.17 GHz, 2.15 GHz, 2.13 GHz, 2.12 GHz, 2.10 GHz, 2.08 GHz, 2.07 GHz, 2.05 GHz, 2.03 GHz, 2.02 GHz, 2.00 GHz
  available cpufreq governors: conservative ondemand userspace powersave performance schedutil
  current policy: frequency should be within 2.00 GHz and 4.00 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency: 3.15 GHz (asserted by call to hardware)
  boost frequency steps: 4.00 GHz, 3.98 GHz, 3.97 GHz, 3.95 GHz, 3.93 GHz, 3.92 GHz, 3.90 GHz, 3.88 GHz, 3.87 GHz, 3.85 GHz, 3.83 GHz, 3.82 GHz, 3.80 GHz, 3.78 GHz, 3.77 GHz, 3.75 GHz, 3.73 GHz, 3.72 GHz, 3.70 GHz, 3.68 GHz, 3.67 GHz, 3.65 GHz, 3.63 GHz, 3.62 GHz, 3.60 GHz, 3.58 GHz, 3.57 GHz, 3.55 GHz, 3.53 GHz, 3.52 GHz, 3.50 GHz, 3.48 GHz, 3.47 GHz, 3.45 GHz, 3.43 GHz, 3.42 GHz, 3.40 GHz, 3.38 GHz, 3.37 GHz, 3.35 GHz, 3.33 GHz, 3.32 GHz, 3.30 GHz, 3.28 GHz, 3.27 GHz, 3.25 GHz, 3.23 GHz, 3.22 GHz, 3.20 GHz, 3.18 GHz, 3.17 GHz

For more logs: https://github.com/lili-lilili/share_files/blob/main/console-log-12BC.log https://github.com/lili-lilili/share_files/blob/main/cpupower%20frequency-info(12BC).txt

dcrowell77 commented 1 year ago

If the PM logic is disabled (as I believe it currently is) then you cannot run above the base frequency. None of the WOF-enabled frequencies can be used.