Re: [PATCH v4 20/38] drm/i915: Added scheduler flush calls to ring throttle and idle functions

Chris Wilson
2016-01-11T22:20:56Z

On Mon, Jan 11, 2016 at 06:42:49PM +0000, John.C.Harrison@Intel.com wrote:
> From: John Harrison <John.C.Harrison@Intel.com>
>
> When requesting that all GPU work is completed, it is now necessary to
> get the scheduler involved in order to flush out work that queued and
> not yet submitted.

But why is this needed over and above waiting on the request? Why do we
actually need to flush the work as the scheduler will get to the request
eventually (one hopes!)? Why the priority bump? That would not be
intended for either the idle (wait until everybody has finished) or
throttling.
-Chris

--
Chris Wilson, Intel Open Source Technology Centre