<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p>Pushed to drm-misc-next</p>
<p>Andrey<br>
</p>
<div class="moz-cite-prefix">On 2021-10-29 3:07 a.m., Christian
König wrote:<br>
</div>
<blockquote type="cite" cite="mid:6aa79474-e998-368b-bb53-b43f135f5a0c@amd.com">
<blockquote type="cite" style="color: #007cff;"><br>
Attached a patch. Give it a try please, I tested it on my side
and tried to generate the right conditions to trigger this code
path by repeatedly submitting commands while issuing GPU reset
to stop the scheduler and then killing command submissions
process in the middle. But for some reason looks like the
job_queue was always empty already at the time of entity kill.
<br>
</blockquote>
<br>
It was trivial to trigger with the stress utility I've hacked
together:
<br>
<br>
amdgpu_stress -b v 1g -b g 1g -c 1 2 1g 1k
<br>
<br>
Then while it is copying just cntrl+c to kill it.
<br>
<br>
The patch itself is:
<br>
<br>
Tested-by: Christian König <a class="moz-txt-link-rfc2396E" href="mailto:christian.koenig@amd.com" moz-do-not-send="true"><christian.koenig@amd.com></a>
<br>
Reviewed-by: Christian König <a class="moz-txt-link-rfc2396E" href="mailto:christian.koenig@amd.com" moz-do-not-send="true"><christian.koenig@amd.com></a>
<br>
<br>
Thanks,
<br>
Christian.
</blockquote>
</body>
</html>