OSDN Git Service

drm/i915: Skip the execlists CSB scan and rewrite if the ring is untouched
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 11:00:06 +0000 (11:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 24 Jan 2017 15:56:18 +0000 (15:56 +0000)
commita37951ac9f9642819e400814f6f30689db233c24
tree26fc89da50390b97f47b970d99a4079eea95e463
parentf747026c2b350fdb3c2d6fad51b7ebed4851183e
drm/i915: Skip the execlists CSB scan and rewrite if the ring is untouched

If the CSB head/tail pointers are unchanged, we can skip the update of
the CSB register afterwards.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170124110009.28947-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_lrc.c