diff options
author | John Harrison <John.C.Harrison@Intel.com> | 2014-04-25 13:45:20 +0100 |
---|---|---|
committer | John Harrison <John.C.Harrison@Intel.com> | 2016-05-06 14:13:02 +0100 |
commit | 75988accb62589f9c11e379470ad283646ce40e3 (patch) | |
tree | 1776916eae8549ec1a0c0809c55552284f9b2547 /drivers/gpu/drm/i915/i915_debugfs.c | |
parent | 2e238916a75bea6142fea605c2e84d8a68c3174e (diff) |
drm/i915: Add early exit to execbuff_final() if insufficient ring space
One of the major purposes of the GPU scheduler is to avoid stalling
the CPU when the GPU is busy and unable to accept more work. This
change adds support to the ring submission code to allow a ring space
check to be performed before attempting to submit a batch buffer to
the hardware. If insufficient space is available then the scheduler
can go away and come back later, letting the CPU get on with other
work, rather than stalling and waiting for the hardware to catch up.
v3: Updated to use locally cached request pointer.
v4: Line wrapped some comments differently to keep the style checker
happy. Downgraded a BUG_ON to a WARN_ON as the latter is preferred.
Removed some obsolete, commented out code.
v6: Updated to newer nightly (lots of ring -> engine renaming).
Updated to use 'to_i915()' instead of dev_private. [review feedback
from Joonas Lahtinen]
For: VIZ-1587
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Diffstat (limited to 'drivers/gpu/drm/i915/i915_debugfs.c')
0 files changed, 0 insertions, 0 deletions