]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Pretend the engine is always idle when mocking
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Apr 2017 23:44:26 +0000 (00:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Apr 2017 12:37:24 +0000 (13:37 +0100)
commit661ea567a512134ec7adcfa73165621a5edbb0b5
treeae6203409dcb993911845a59970299e4f1089d85
parent00792892bda39b2d3cfd6b389287ec8deee5245e
drm/i915: Pretend the engine is always idle when mocking

If we have a mock engine and it has no more requests in flight, report
it as idle as there is no hardware to contradict us! Otherwise we
attempt to query the hw that doesn't exist and find that the hw hasn't
set its idle bit and we get upset.

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