[PATCH] drm/i915/gvt: Use force single submit flag to distinguish gvt request from i915 request
Du, Changbin
changbin.du at intel.com
Wed Mar 22 03:36:36 UTC 2017
On Sun, Mar 19, 2017 at 03:06:57PM +0800, Zhenyu Wang wrote:
> >
> > +static inline bool is_gvt_request(struct drm_i915_gem_request *req)
> > +{
> > + return i915_gem_context_force_single_submission(req->ctx);
> > +}
> > +
> > static int shadow_context_status_change(struct notifier_block *nb,
> > unsigned long action, void *data)
> > {
> > @@ -137,7 +142,7 @@ static int shadow_context_status_change(struct notifier_block *nb,
> > struct intel_vgpu_workload *workload =
> > scheduler->current_workload[req->engine->id];
> >
> > - if (unlikely(!workload))
> > + if (unlikely(!workload) || !is_gvt_request(req))
> > return NOTIFY_OK;
> >
>
> This should be put before valid workload check and return early if not.
>
Reasonable, will update.
> --
> Open Source Technology Center, Intel ltd.
>
> $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
--
Thanks,
Changbin Du
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/intel-gvt-dev/attachments/20170322/01fb98c0/attachment.sig>
More information about the intel-gvt-dev
mailing list