<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<div class="moz-cite-prefix">On 23/06/2022 11:27, Tvrtko Ursulin
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:e6ed0d2f-ee2a-2219-c2cc-49efc32f0560@linux.intel.com">
<blockquote type="cite" style="color: #007cff;"><br>
After a vm_unbind, UMD can re-bind to same VA range against an
active VM.
<br>
Though I am not sue with Mesa usecase if that new mapping is
required for
<br>
running GPU job or it will be for the next submission. But
ensuring the
<br>
tlb flush upon unbind, KMD can ensure correctness.
<br>
</blockquote>
<br>
Isn't that their problem? If they re-bind for submitting <span
class="moz-txt-underscore"><span class="moz-txt-tag">_</span>new<span
class="moz-txt-tag">_</span></span> work then they get the
flush as part of batch buffer pre-amble.
</blockquote>
<p>In the non sparse case, if a VA range is unbound, it is invalid
to use that range for anything until it has been rebound by
something else.</p>
<p>We'll take the fence provided by vm_bind and put it as a wait
fence on the next execbuffer.</p>
<p>It might be safer in case of memory over fetching?</p>
<p><br>
</p>
<p>TLB flush will have to happen at some point right?</p>
<p>What's the alternative to do it in unbind?</p>
<p><br>
</p>
<p>-Lionel<br>
</p>
<p><br>
</p>
</body>
</html>