<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb18030">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Am 05.08.19 um 14:53 schrieb 孙南勇:<br>
    </div>
    <blockquote type="cite"
      cite="mid:tencent_03E0C311B11B64CA539D74F7174F5059E008@qq.com">
      <meta http-equiv="content-type" content="text/html;
        charset=gb18030">
      <div>Hi All,</div>
      <div>    Sometime dmesg show this log:</div>
      <div>
        <div>[10407.720988] [drm:amdgpu_ctx_mgr_entity_fini [amdgpu]]
          *ERROR* ctx 00000000189dec14 is still alive</div>
        <div>[10407.721054] [drm:amdgpu_ctx_mgr_entity_fini [amdgpu]]
          *ERROR* ctx 00000000189dec14 is still alive</div>
        <div>[10407.721120] [drm:amdgpu_ctx_mgr_entity_fini [amdgpu]]
          *ERROR* ctx 00000000189dec14 is still alive</div>
        <div>[10407.721187] [drm:amdgpu_ctx_mgr_entity_fini [amdgpu]]
          *ERROR* ctx 00000000189dec14 is still alive</div>
        <div>[10407.721418] [drm:amdgpu_ctx_mgr_fini [amdgpu]] *ERROR*
          ctx 00000000189dec14 is still alive</div>
      </div>
      <div><br>
      </div>
      <div>What are the side effects?</div>
      <div>Does this error will occur GPU hung(such as gfx timeout)?</div>
      <div>How to fix this?</div>
      <div><br>
      </div>
      <div>
        <div>My kernel : 4.19.36</div>
      </div>
    </blockquote>
    <br>
    That is hopelessly outdated code, please try to switch something
    newer and re-test.<br>
    <br>
    Christian.<br>
    <br>
    <blockquote type="cite"
      cite="mid:tencent_03E0C311B11B64CA539D74F7174F5059E008@qq.com">
      <div>
        <div>Mesa: 18.3.6</div>
        <div><br>
        </div>
        <div>And I find that in amdgpu_ctx.c, the
          function:amdgpu_ctx_mgr_entity_flush doesn't check the </div>
        <div>ctx->refcount(the check is stopped in this patch:
<a class="moz-txt-link-freetext" href="https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=48ad368a8a3ab2fd3c2bc2ccccc6e29b1acda1bb">https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=48ad368a8a3ab2fd3c2bc2ccccc6e29b1acda1bb</a>)
          , </div>
        <div> why amdgpu_ctx_mgr_entity_fini still need
          check ctx->refcount?</div>
        <div>Can i stop check ctx->refcount in 
          amdgpu_ctx_mgr_entity_fini ?</div>
        <div>
          <div><br>
          </div>
          <div>Thanks!</div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
amd-gfx mailing list
<a class="moz-txt-link-abbreviated" href="mailto:amd-gfx@lists.freedesktop.org">amd-gfx@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/amd-gfx">https://lists.freedesktop.org/mailman/listinfo/amd-gfx</a></pre>
    </blockquote>
    <br>
  </body>
</html>