<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">What regression was that? The difference between VDPAU and VA-API is only marginal for codec support.<br></blockquote><div><br></div><div>The regression revolved around deinterlacing the content. If we had to deinterlace 1080i for instance, the playback was very choppy and dropped frames.</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">Well how was the stack configured then? Pure software playback?<br></blockquote><div><br></div><div>In 19.10, yes the whole stack was told to use software playback and decoding. </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">As long as you don't do any high resolution H264 decoding the CPU in that package should be capable of decoding both MPEG2 and MPEG4 with software decode.<br></blockquote><div><br></div><div>That's part of the problem. We do have high resolution (1920x1080) mpeg2 at the places we are installed. We have no control over what content is available but have to support it. </div><div><br></div><div>Our older Gentoo based setup with the old software stack worked fine but the Ubuntu 16.04 stack does not playback the same content without having to switch to VDPAU and thus introduce the GPU thread lockup issue. Ubuntu 18.04 looks to have the same VDPAU GPU lockup issue as well and cannot use software playback/decoding successfully. </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":"13","compose-window":{"secure":false}}"></div><br><div class="gmail_quote" style=""><div dir="ltr" class="gmail_attr">On Mon, Dec 2, 2019 at 9:16 AM Christian König <<a href="mailto:christian.koenig@amd.com" target="_blank">christian.koenig@amd.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>
      <blockquote type="cite">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.</blockquote>
      What regression was that? The difference between VDPAU and VA-API
      is only marginal for codec support.<br>
      <br>
      <blockquote type="cite">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.</blockquote>
      Well how was the stack configured then? Pure software playback?<br>
      <br>
      As long as you don't do any high resolution H264 decoding the CPU
      in that package should be capable of decoding both MPEG2 and MPEG4
      with software decode.<br>
      <br>
      In general I would also try with mpv instead of vlc to rule out
      player issues.<br>
      <br>
      Regards,<br>
      Christian.<br>
      <br>
      Am 02.12.19 um 15:06 schrieb Will DeBerry:<br>
    </div>
    <blockquote type="cite">
      
      <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>
          </div>
        <br>
        <div class="gmail_quote">
          <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" target="_blank">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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.getwellnetwork.com%2F&data=02%7C01%7Cchristian.koenig%40amd.com%7C36f9952a3d504940e82c08d77730d203%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637108923906349531&sdata=iS6WwpRpq4rCFVu8mpKuohVVILL%2Biuv7feM66Pmsgo4%3D&reserved=0" 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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.getconnected2020.com%2F&data=02%7C01%7Cchristian.koenig%40amd.com%7C36f9952a3d504940e82c08d77730d203%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637108923906359486&sdata=%2B3e3AgeJMIumIheea5TdTixV4EMNZEoCSAzM5lj33ng%3D&reserved=0" 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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.freedesktop.org%2Fmailman%2Flistinfo%2Fmesa-dev&data=02%7C01%7Cchristian.koenig%40amd.com%7C36f9952a3d504940e82c08d77730d203%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637108923906359486&sdata=bTEUS8%2FnzkCA7vPyiabYzkjBaGfdK24CDzdFWSrLxOA%3D&reserved=0" 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">
          <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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.getwellnetwork.com%2F&data=02%7C01%7Cchristian.koenig%40amd.com%7C36f9952a3d504940e82c08d77730d203%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637108923906369447&sdata=%2BRvmP3vJ4yhskJfQEe1fxXrl9PtiztAuOGhhBL3jNY4%3D&reserved=0" 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://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.getconnected2020.com%2F&data=02%7C01%7Cchristian.koenig%40amd.com%7C36f9952a3d504940e82c08d77730d203%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637108923906369447&sdata=MhjxxW1ToOH%2Fuxb%2FbVOxNz2omDLWShFcjwCPV7yeR9g%3D&reserved=0" 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>
    </blockquote>
    <br>
  </div>

</blockquote></div><br clear="all"><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" 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>