[PATCH v3 01/11] drm/i915/gvt: parse init context to update cmd accessible reg whitelist
Yan Zhao
yan.y.zhao at intel.com
Wed Dec 23 01:58:28 UTC 2020
<...>
> > +out:
> > + if (!ret)
> > + gvt->is_reg_whitelist_updated = true;
> > +
> > + for (id = 0; id < I915_NUM_ENGINES ; id++) {
> > + if (!requests[id])
> > + continue;
> > + i915_request_put(requests[id]);
> > +
> > + if (!is_ctx_pinned[id])
> > + continue;
> > + intel_context_unpin(s->shadow[id]);
>
> In error path, these two steps looks inconsistent which could skip ctx unpin...
>
sorry, will fix it!
> > + }
<...>
More information about the intel-gvt-dev
mailing list