<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - [icl] Cannot fix GPU frequency"
href="https://bugs.freedesktop.org/show_bug.cgi?id=110247">110247</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[icl] Cannot fix GPU frequency
</td>
</tr>
<tr>
<th>Product</th>
<td>DRI
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>DRM/Intel
</td>
</tr>
<tr>
<th>Assignee</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dmitry.ermilov@intel.com
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>CC</th>
<td>intel-gfx-bugs@lists.freedesktop.org
</td>
</tr></table>
<p>
<div>
<pre>Environment:
* ICL GT2 B4 , graphics id 0x8a52
* 5.1.0-rc2-drm-tip : 79df6ae8e7d6fc94965a14e1fa04898954d40316
* <a href="https://github.com/intel/media-driver/">https://github.com/intel/media-driver/</a> : 8773ef5
* <a href="https://github.com/intel/gmmlib">https://github.com/intel/gmmlib</a> : e65dff3 (includes GMM MOCS table fix)
* <a href="https://github.com/Intel-Media-SDK/MediaSDK">https://github.com/Intel-Media-SDK/MediaSDK</a> : 2c780ea
We're using the following script to fix CPU/GPU frequency on ICL:
#!/bin/bash
set -ex
cpupower frequency-set --governor performance
cpupower frequency-set --min 1000000
cpupower frequency-set --max 1000000
echo 400 > /sys/class/drm/card0/gt_min_freq_mhz
echo 400 > /sys/class/drm/card0/gt_max_freq_mhz
echo 400 > /sys/class/drm/card0/gt_boost_freq_mhz
However media workloads produce very different performance from run to run.
perf stat -a -e
i915/bcs0-busy/,i915/rcs0-busy/,i915/vcs0-busy/,i915/vecs0-busy/,i915/actual-frequency/,i915/requested-frequency/
./sample_encode h264 -i input.yuv -qpi 26 -qpp 26 -qpb 26 -async 1 -hw -w
720 -h 480 -n 300 -r 1 -vaapi -g 100
File output is disabled as -o option isn't specified
libva info: VA-API version 1.5.0
libva info: va_getDriverName() returns 0
libva info: User requested driver 'iHD'
libva info: Trying to open /opt/intel/mediasdk/lib64/iHD_drv_video.so
libva info: Found init function __vaDriverInit_1_4
libva info: va_openDriver() returns 0
Encoding Sample Version 8.3.26.
Input file format YUV420
Output video AVC
Source picture:
Resolution 720x480
Crop X,Y,W,H 0,0,720,480
Destination picture:
Resolution 720x480
Crop X,Y,W,H 0,0,720,480
Frame rate 30.00
Bit rate(Kbps) 2503
Gop size 100
Ref dist 1
Ref number 0
Idr Interval 0
Target usage balanced
Memory type vaapi
Media SDK impl hw
Media SDK version 1.29
Processing started
Processing finished
Performance counter stats for 'system wide':
0 ns i915/bcs0-busy/
4,078,817,486 ns i915/rcs0-busy/
748,226,339 ns i915/vcs0-busy/
0 ns i915/vecs0-busy/
791 MHz i915/actual-frequency/
3,137 MHz i915/requested-frequency/
7.912914519 seconds time elapsed
It looks like frequency is not actually fixed while the same approach works
fine on SKL.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are on the CC list for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>