<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="en-DE" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi all,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I would like to monitor the frequency of the iGPU of my TGL platform while running glmark2 in bursts which means glmark2 is 5sec</span><span lang="EN-US" style="mso-fareast-language:#2000">
</span><span lang="EN-US" style="mso-fareast-language:#2000">running and 5sec not running.
</span><span lang="EN-US">I disabled RC6 by </span><span lang="EN-US" style="font-family:"Courier New"">echo 0 > /sys/class/drm/card0/gt_rc6_enable for my tests</span><span lang="EN-US">. Furthermore, I tried to lock the iGPU frequency to min, RP0 or RP1 by
setting e.g. <o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">echo 1300 > /sys/class/drm/card0/gt_min_freq_mhz<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">echo 1300 > /sys/class/drm/card0/gt_max_freq_mhz<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">echo 1300 > /sys/class/drm/card0/gt_boost_freq_mhz</span><span lang="EN-US">.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">For frequency monitoring I am using </span>
<span lang="EN-US" style="font-family:"Courier New"">intel_gpu_top</span><span lang="EN-US"> and
</span><span lang="EN-US" style="font-family:"Courier New"">/sys/class/drm/card0/gt_cur_freq_mhz</span><span lang="EN-US">. I am a bit confused if I compare the output because
</span><span lang="EN-US" style="font-family:"Courier New"">intel_gpu_top</span><span lang="EN-US"> and
</span><span lang="EN-US" style="font-family:"Courier New"">/sys/class/drm/card0/gt_cur_freq_mhz
</span><span lang="EN-US">show different results</span><span lang="EN-US" style="font-family:"Courier New"">.</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">These are my results if I lock gpu Frequency to 1300MHz
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">### </span><span lang="EN-US" style="font-family:"Courier New"">/sys/class/drm/card0/gt_cur_freq_mhz</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">Every 0.1s: cat /sys/class/drm/card0/gt_cur_freq_mhz node4-tglu-rvp: Mon Jan 10 20:22:59
2022<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">1300<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">### intel_gpu_top<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">root@node4-tglu-rvp:~/fGvPOC# intel_gpu_top -l<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">Freq MHz IRQ RC6 RCS/0 BCS/0 VCS/0 VCS/1 VECS/0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">req act /s % % se wa % se wa % se wa % se wa % se wa<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""> 0 0 15 100 0.08 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""> 0 0 16 100 0.08 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""> 0 0 10 100 0.05 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">188 172 6045 86 13.22 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">1300 1189 44907 0 99.25 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">1300 1201 44702 0 99.05 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">1300 1182 44873 0 99.23 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">1300 1193 44830 0 99.08 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">1066 988 36336 19 80.24 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""> 6 6 10 100 0.05 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""> 13 13 15 100 0.08 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""> 13 13 16 100 0.08 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New""> 0 0 13 100 0.05 0 0 0.00 0 0 0.00 0 0 0.00 0 0 0.00 0 0</span><span lang="EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Can someone help me to understand why </span>
<span lang="EN-US" style="font-family:"Courier New"">/sys/class/drm/card0/gt_cur_freq_mhz</span><span lang="EN-US"> always shows 1300MHz and intel_gpu_top (req and act)is dropping to almost 0Hz when glmark2 is not running?
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">My final goal is to figure out if render p-state transitions can impact the timeliness of my real-time workload running on a RT core.
<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Kernel Info:<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Courier New"">Linux node4-tglu-rvp 5.10.41-rt42-intel-ese-standard-lts-rt #1 SMP PREEMPT_RT Thu Sep 23 10:21:35 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Intel Yocto BKC MR3<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">Thx, Markus<o:p></o:p></span></p>
</div>
<p>Intel Deutschland GmbH<br>Registered Address: Am Campeon 10, 85579 Neubiberg, Germany<br>Tel: +49 89 99 8853-0, <a href="http://www.intel.de">www.intel.de</a><br>Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva <br>Chairperson of the Supervisory Board: Nicole Lau<br>Registered Office: Munich<br>Commercial Register: Amtsgericht Muenchen HRB 186928<br>
</p></body>
</html>