<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, 14 Jun 2017 at 13:09 Deucher, Alexander <<a href="mailto:Alexander.Deucher@amd.com">Alexander.Deucher@amd.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="white" lang="EN-US" link="blue" vlink="purple">
<div class="m_-2481367577652910062WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif";color:windowtext"> amd-gfx [mailto:<a href="mailto:amd-gfx-bounces@lists.freedesktop.org" target="_blank">amd-gfx-bounces@lists.freedesktop.org</a>]
<b>On Behalf Of </b>Christian König<br>
<b>Sent:</b> Wednesday, June 14, 2017 12:37 PM<br>
<b>To:</b> Alexandre Demers; Freedesktop - AMD-gfx<br>
<b>Subject:</b> Re: Question about porting VCE1 to amdgpu<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div></div></div></div></div><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">- Would we need a different firmware version with a different "hdr" for the amdgpu driver?<u></u><u></u></p>
</blockquote>
<p class="MsoNormal">Yes, we should probably release the latest one instead of reusing the one used with radeon.<br>
<br>
<span style="color:#1f497d"><u></u><u></u></span></p>
</div></div></div></div><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Actually, we should probably stick the same one as radeon for now until we can verify the new firmware in general. Easier to start with a known working case.</span></p></div></div></div></div></blockquote><div> </div><div>OK. Then, is it expected to have a validation failure with the current firmware? Is the header compatible with how the validation is done under VCE2 and others or should I keep how it was done under radeon?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p></div></div></div></div><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><br>
BTW: Does VCE work on CIK? Alex, don't we run into the same issue there as well?<br>
<br>
<span style="color:#1f497d"><u></u><u></u></span></p>
</div></div></div></div><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">VCE works on CIK. We ported VCE and UVD to CIK as part of the initial amdgpu bring up.</span></p></div></div></div></div></blockquote><div> </div><div>I've been using VCE2 port as my template for VCE1. My initial intention was to work on UVD, but I ended up plugging in VCE in the first place. UVD is on my todo list right next, I was expecting to working on it after fixing the VCE part.</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Alex<u></u><u></u></span></p></div></div></div></div><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
<div>
<p class="MsoNormal">- Wouldn't it be better to continue loading the driver while having VCE disabled IF we fail when loading or validating the FW? Completely failing to load the driver for this reason seems overkill IMO, since nothing has been loaded in memory
and no registry have been modified up to that point.<u></u><u></u></p>
</div>
<p class="MsoNormal">UVD and VCE are actually needed for correct power management. When the blocks fail to initialize you usually sooner or later run into problems with power management (e.g. stuck inside a certain power level).<br>
<br></p></div></div></div></div></blockquote><div> </div><div>OK, but right now it is disabled, so the situation wouldn't be worst isn't it?</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><p class="MsoNormal">
<br>
<u></u><u></u></p>
<div>
<p class="MsoNormal">- Would it be a good idea to send a patch as a RFC so some of you could help me finish the job and maybe pinpoint where the last modifications need to be done?<u></u><u></u></p>
</div>
<p class="MsoNormal">Well you could, but to be honest without AMD releasing new firmware that is most likely a futile effort.<br></p></div></div></div></div></blockquote><div><br></div><div>I'll send a patch then, and we'll navigate from there. This will allow me to work on UVD in parallel.</div><div><br></div><div>Alexandre Demers</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt"><div><p class="MsoNormal">
<br>
Regards,<br>
Christian.<br>
<br>
Am 14.06.2017 um 18:22 schrieb Alexandre Demers:<u></u><u></u></p>
</div></div></div></div><div bgcolor="white" lang="EN-US" link="blue" vlink="purple"><div class="m_-2481367577652910062WordSection1"><div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Hi, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">I've been working on porting VCE1 from radeon to amdgpu in the last few weeks. I'm pretty much done and I've enabled the functionality to see how it goes. However, I ended up with an error on the firmware validation (size doesn't seem to
fit), thus failing completely in loading the driver. I'm testing on a R9 280X (Tahiti).<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Three questions then:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">- Would we need a different firmware version with a different "hdr" for the amdgpu driver?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">- Wouldn't it be better to continue loading the driver while having VCE disabled IF we fail when loading or validating the FW? Completely failing to load the driver for this reason seems overkill IMO, since nothing has been loaded in memory
and no registry have been modified up to that point.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">- Would it be a good idea to send a patch as a RFC so some of you could help me finish the job and maybe pinpoint where the last modifications need to be done?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you!<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Alexandre Demers<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<br>
<u></u><u></u></p>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>amd-gfx mailing list<u></u><u></u></pre>
<pre><a href="mailto:amd-gfx@lists.freedesktop.org" target="_blank">amd-gfx@lists.freedesktop.org</a><u></u><u></u></pre>
<pre><a href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx" target="_blank">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a><u></u><u></u></pre>
</blockquote>
<p><u></u> <u></u></p>
</div></div></div></blockquote></div></div>