<div dir="ltr"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">well that's the very first APU generation and unfortunately nobody is working on that old hardware any more.<br></blockquote><div><br></div><div>Agreed, definitely old hardware. Unfortunately we have 10,000 of these things in production and they have been playing hardware accelerated mpeg2 fine until we upgraded to Ubuntu 16.04 and the new mesa package. Now to be specific, our previous version of linux on these systems we were using an older software stack and video acceleration pipeline but it worked perfectly, so we know the hardware is capable.</div><div><br></div><div><b>Old Software Stack:</b></div><div><ul><li>vlc 2.1.5</li><li>mesa 11.0.6<br></li><li>va-api hardware acceleration</li><li>libva info: VA-API version 0.38.1<br>libva info: va_getDriverName() returns 0<br>libva info: Trying to open /usr/lib/va/drivers/r600_drv_video.so<br>libva info: Found init function __vaDriverInit_0_35<br>libva info: va_openDriver() returns 0<br>vainfo: VA-API version: 0.38 (libva 1.6.2)<br>vainfo: Driver version: Splitted-Desktop Systems VDPAU backend for VA-API - 0.7.4<br>vainfo: Supported profile and entrypoints<br>      VAProfileMPEG2Simple            :       VAEntrypointVLD<br>      VAProfileMPEG2Main              :      VAEntrypointVLD<br>      VAProfileMPEG4Simple            :       VAEntrypointVLD<br>      VAProfileMPEG4AdvancedSimple    :   VAEntrypointVLD<br>      VAProfileH264Baseline           :        VAEntrypointVLD<br>      VAProfileH264Main               :      VAEntrypointVLD<br>      VAProfileH264High               :      VAEntrypointVLD<br>      VAProfileVC1Simple              :      VAEntrypointVLD<br>      VAProfileVC1Main                :     VAEntrypointVLD<br>      VAProfileVC1Advanced            :       VAEntrypointVLD<br></li></ul><b>New Software Stack:</b><br></div><div><ul><li>vlc 2.2.2</li><li>mesa 18.2.8-2~bpo9+1</li><li>vdpau hardware acceleration</li></ul><div>The reason we had to switch to VDPAU with Ubuntu 16.04 is that we saw a major regression with mpeg2 playback using va-api. It was capable of playing back mpeg4 without any issues. Now that we have switched to VDPAU however, we are seeing this GPU thread lockup bug and thus causing X and other GUI related programs to crash and requiring a reboot to recover.</div></div><div><br></div><div>Changing out hardware for the next best thing is not an option at our scale and we know that the hardware is capable due to past experiences. We are just in need of assistance with someone or some party that knows that stack a lot more than us to help dig to the core issue of the lockup or help us get VA-API working for mpeg2 in 16.04.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">So the best approach is probably to not use hardware acceleration for MPEG2 clips in general.<br></blockquote><div><br></div><div>With software decoding, the performance doesn't produce something that is watchable. One interesting tidbit to note. During our testing we put Ubuntu 19.10 on one of these boxes and noticed that full software acceleration has improved to the point that VA-API nor VDPAU was required for VLC to render the mpeg2 and mpeg4 streams correctly. Is this something that could potentially be backported to Ubuntu 16.04? I know this is a much bigger task that the one sentence ask alludes to, but figured I'd ask anyway.</div><div><br></div><div>We are more than welcome to work together on this, especially since the hardware is older and probably hard to find. Just needing to find a solution so we can move forward on upgrading the software and on these older hardware.</div><input name="virtru-metadata" type="hidden" value="{"email-policy":{"state":"closed","expirationUnit":"days","disableCopyPaste":false,"disablePrint":false,"disableForwarding":false,"enableNoauth":false,"persistentProtection":false,"expandedWatermarking":false,"expires":false,"isManaged":false},"attachments":{},"compose-id":"3","compose-window":{"secure":false}}"></div><br><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr">On Thu, Nov 28, 2019 at 7:15 AM Christian König <<a href="mailto:ckoenig.leichtzumerken@gmail.com">ckoenig.leichtzumerken@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <div>Hi Will,<br>
      <br>
      well that's the very first APU generation and unfortunately nobody
      is working on that old hardware any more.<br>
      <br>
      MPEG2 is known to not be fully supported by that chipset in
      general. So the best approach is probably to not use hardware
      acceleration for MPEG2 clips in general.<br>
      <br>
      Regards,<br>
      Christian.<br>
      <br>
      Am 27.11.19 um 18:35 schrieb Will DeBerry:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">Hi all,
        <div><br>
        </div>
        <div>I am reaching out hoping to get some assistance with
          resolving a bug/crash that we see with the GPU when using
          VDPAU hardware acceleration on Ubuntu 16.04. This is specific
          to the r600 drivers interacting with VDPAU when trying to
          playback certain mpeg2 content.</div>
        <div><br>
        </div>
        <div><b>GPU in question per lscpi: </b></div>
        <div>00:01.0 VGA compatible controller: Advanced Micro Devices,
          Inc. [AMD/ATI] Wrestler [Radeon HD 6320]</div>
        <div><br>
        </div>
        <div>We are highly invested in this GPU and would love to get
          this addressed as soon as possible and are also willing to
          sponsor this work if needed.</div>
        <div><br>
        </div>
        <div><b>Steps to Recreate:</b></div>
        <div>
          <ol>
            <li>Launch VLC with VDPAU hardware acceleration and
              deinterlacing enabled</li>
            <li>Play the attached piece of known bad content</li>
            <li>Wait for GPU lockup</li>
          </ol>
          <div>Per dmesg, the GPU thread gets locked up within the
            kernel and thus breaks all GUI related activities until the
            PC is rebooted.</div>
        </div>
        <div><br>
        </div>
        <div><b>Mesa Version Tested:</b></div>
        <div>18.0.5-0ubuntu0~16.04.1<br>
        </div>
        <div>18.2.8-2~bpo9+1<br>
        </div>
        <div><br>
        </div>
        <div>Let me know if you have any questions or are interested in
          discussing this further.</div>
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>
          <div><br>
          </div>
          -- <br>
          <div dir="ltr">
            <div dir="ltr">
              <div>
                <div dir="ltr">
                  <div dir="ltr">
                    <div dir="ltr">
                      <div dir="ltr">
                        <div dir="ltr"><span>
                            <p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><b style="font-size:14.6667px;white-space:pre-wrap;color:rgb(117,59,189);font-family:Arial">Will DeBerry</b><br>
                            </p>
                            <div dir="ltr" style="margin-left:0pt"><span>
                                <p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Manager, Client Devices</span></p>
                                <p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(117,59,189);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">GetWellNetwork</span></p>
                                <p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">o: 240.482.4237 | m: 813.330.0121 | g</span><a href="https://www.getwellnetwork.com/" target="_blank"><span style="font-size:9pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">etwellnetwork.com</span></a></p>
                                <p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">_______________________________________________________</span></p>
                                <div dir="ltr">
                                  <table style="border:none;border-collapse:collapse">
                                    <colgroup><col width="57"><col width="366"></colgroup><tbody>
                                      <tr style="height:26pt">
                                        <td style="vertical-align:middle;padding:5pt">
                                          <p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh3.googleusercontent.com/-yjb9qDIxz1CqoxomdhbY98nBAxLyMvsz0SqoFVv7LgOfQ_HViS7CiUcbEGRXTVO213Orv8SFF-cEr_aXnN2wFCuMKiRBIZw-reaEXZM_FdayOZRor3s9PyZdZ7xT5kmGIftRZiJ" style="border: none;" width="46" height="23"></span></p>
                                        </td>
                                        <td style="vertical-align:middle;padding:5pt">
                                          <p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href="https://www.getconnected2020.com/" target="_blank"><span style="font-size:9pt;font-family:Arial;color:rgb(117,59,189);vertical-align:baseline;white-space:pre-wrap">Join us for GetConnected 2020!  </span><span style="font-size:9pt;font-family:Arial;color:rgb(117,59,189);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">REGISTER TODAY</span></a></p>
                                        </td>
                                      </tr>
                                    </tbody>
                                  </table>
                                </div>
                              </span></div>
                            <p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><br>
                              <br>
                            </p>
                          </span></div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          </div>
      </div>
      <br>
      <fieldset></fieldset>
      <pre>_______________________________________________
mesa-dev mailing list
<a href="mailto:mesa-dev@lists.freedesktop.org" target="_blank">mesa-dev@lists.freedesktop.org</a>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" target="_blank">https://lists.freedesktop.org/mailman/listinfo/mesa-dev</a></pre>
    </blockquote>
    <br>
  </div>

</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><span><p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><b style="font-size:14.6667px;white-space:pre-wrap;color:rgb(117,59,189);font-family:Arial">Will DeBerry</b><br></p><div dir="ltr" style="margin-left:0pt"><span><p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Manager, Client Devices</span></p><p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(117,59,189);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">GetWellNetwork</span></p><p dir="ltr" style="line-height:1.8;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">o: 240.482.4237 | m: 813.330.0121 | g</span><a href="https://www.getwellnetwork.com/" target="_blank"><span style="font-size:9pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">etwellnetwork.com</span></a></p><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:8pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">_______________________________________________________</span></p><div dir="ltr"><table style="border:none;border-collapse:collapse"><colgroup><col width="57"><col width="366"></colgroup><tbody><tr style="height:26pt"><td style="vertical-align:middle;padding:5pt"><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><span style="font-size:9pt;font-family:Arial;color:rgb(153,153,153);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"><img src="https://lh3.googleusercontent.com/-yjb9qDIxz1CqoxomdhbY98nBAxLyMvsz0SqoFVv7LgOfQ_HViS7CiUcbEGRXTVO213Orv8SFF-cEr_aXnN2wFCuMKiRBIZw-reaEXZM_FdayOZRor3s9PyZdZ7xT5kmGIftRZiJ" width="46" height="23" style="border: none;"></span></p></td><td style="vertical-align:middle;padding:5pt"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><a href="https://www.getconnected2020.com/" target="_blank"><span style="font-size:9pt;font-family:Arial;color:rgb(117,59,189);vertical-align:baseline;white-space:pre-wrap">Join us for GetConnected 2020!  </span><span style="font-size:9pt;font-family:Arial;color:rgb(117,59,189);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">REGISTER TODAY</span></a></p></td></tr></tbody></table></div></span></div><p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt"><br><br></p></span></div></div></div></div></div></div></div></div></div>