<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 20, 2016 at 11:10 PM, Chris Wilson <span dir="ltr"><<a href="mailto:chris@chris-wilson.co.uk" target="_blank">chris@chris-wilson.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Thu, Oct 20, 2016 at 10:19:05PM +0100, Robert Bragg wrote:<br>
> +int i915_gem_context_pin_legacy_<wbr>rcs_state(struct drm_i915_private *dev_priv,<br>
> + struct i915_gem_context *ctx,<br>
> + u64 flags)<br>
<br>
</span>This is still no.<br></blockquote><div><br></div><div>Okay, but it's a little frustrating for me to go in circles here :-/<br><br></div><div>I didn't originally do it this way; I originally looked at pinning the context when opening the stream so I didn't have to consider it being relocated. The feedback from Daniel Vetter was to look at doing it this way I think because of some concern to do with some shrinker corner cases.<br><br></div><div>... just dug up the archive:<br><a href="https://lists.freedesktop.org/archives/intel-gfx/2014-November/055385.html">https://lists.freedesktop.org/archives/intel-gfx/2014-November/055385.html</a><br><br></div><div>Can you maybe please explain what's wrong with the current approach and provide some justification for a different approach with some reassurance that Daniel's original concern with the shrinker unpinning contexts isn't actually a problem? I don't currently understand the concern with this, and this approach seems to have been working well for quite a long time now.<br><br></div></div><div class="gmail_quote">- Robert<br></div><br></div></div>