<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>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: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=48ad368a8a3ab2fd3c2bc2ccccc6e29b1acda1bb) , </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></div></div>