<!DOCTYPE html><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p><br>
</p>
<div class="moz-cite-prefix">On 3/27/2025 2:54 PM, Christian König
wrote:<br>
</div>
<blockquote type="cite" cite="mid:fc461f19-44b8-4699-b3e6-c37e1b7dc76f@amd.com">
<br>
<blockquote type="cite" cite="mid:740940f4-055b-483b-88b7-072907539167@amd.com">
<blockquote type="cite">
<blockquote type="cite"> <span style="white-space: pre-wrap">Over all this change doesn't seem to make much sense to me.</span>
<pre class="moz-quote-pre" wrap="">Why exactly is isolation->spearhead not pointing to the dummy kernel job we submit?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">Does the owner check or gang_submit check in
amdgpu_device_enforce_isolation() fail to set up the spearhead?
</pre>
</blockquote>
<pre class="moz-quote-pre" wrap="">I'm currently debugging exactly that.
Good news is that I can reproduce the problem.</pre>
</blockquote>
<br>
I have to take that back. I've tested the cleaner shader
functionality a bit this morning and as far as I can see this
works exactly as intended.<br>
<br>
Srini, what exactly is your use case which doesn't work?<br>
</blockquote>
<p>Hi Christian, Good Morning!</p>
<p>The usecase is to trigger the cleaner shader, using sysfs
"run_cleaner_shader" independent of enabling "enforce_isolation",
so that cleaner shader packet gets submitted to COMP_1.0.0 ring by
default, without prior enabling any enforce_isolation via sysfs, </p>
<p>AFAIK, this "isolation->spearhead" initialization is not being
takencare in this <strong>path </strong><span data-teams="true"><strong>"amdgpu_gfx_run_cleaner_shader
-> amdgpu_gfx_run_cleaner_shader_job" (ie., when we trigger
</strong></span>cleaner shader, using sysfs
"run_cleaner_shader"), and this check "<span data-teams="true"><strong>&job->base.s_fence->scheduled
== isolation->spearhead;" </strong></span> is having the
problem ie., "<span data-teams="true"><strong>&job->base.s_fence->scheduled"
address are is not matching with</strong></span><span data-teams="true"><strong> "</strong></span><span data-teams="true"><strong>isolation->spearhead" address,
which results into zero & thus fails to emit cleaner
shader, when running using "run_cleaner_shader" sysfs entry, </strong></span><span data-teams="true"><strong>in "amdgpu_vm_flush()" function<br>
</strong></span></p>
<p>Best regards,</p>
<p>Srini<br>
</p>
<blockquote type="cite" cite="mid:fc461f19-44b8-4699-b3e6-c37e1b7dc76f@amd.com"> <br>
Regards,<br>
Christian.<br>
<br>
<blockquote type="cite" cite="mid:740940f4-055b-483b-88b7-072907539167@amd.com">
<pre class="moz-quote-pre" wrap="">Regards,
Christian.
</pre>
</blockquote>
</blockquote>
</body>
</html>