Quoting Chris Wilson (2018-05-06 23:47:28)
> +static void __submit_queue(struct intel_engine_cs *engine)
> +{
> + struct intel_engine_execlists * const execlists = &engine->execlists;
> +
> + GEM_BUG_ON(!engine->i915->gt.awake);
> +
> + /* Directly submit the first request to reduce the initial latency */
> + if (!intel_engine_has_guc(engine) &&
> + !port_isset(execlists->port) &&
> + tasklet_trylock(&execlists->tasklet)) {
> + if (__execlists_dequeue(engine))
> + execlists_submit_ports(engine);
> + tasklet_unlock(&execlists->tasklet);
> + return;
> + }
> +
> + __schedule_queue(engine);
> +}
> diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h
> b/drivers/gpu/drm/i915/intel_ringbuffer.h
> index 010750e8ee44..3d13835d4a87 100644
> --- a/drivers/gpu/drm/i915/intel_ringbuffer.h
> +++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
> @@ -569,6 +569,7 @@ struct intel_engine_cs {
> #define I915_ENGINE_NEEDS_CMD_PARSER BIT(0)
> #define I915_ENGINE_SUPPORTS_STATS BIT(1)
> #define I915_ENGINE_HAS_PREEMPTION BIT(2)
> +#define I915_ENGINE_HAS_GUC BIT(3)
I915_ENGINE_NO_DIRECT_SUBMISSION might be more apt, as I'll want this
bit for virtual engine as well
-Chris
_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx