]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Report engines are idle if already parked
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 27 Feb 2019 21:41:59 +0000 (21:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 Feb 2019 09:16:39 +0000 (09:16 +0000)
commit04df857d90fdee95d657cb4294061f35019ab070
tree8069a72e36d4dd58e2904189d45dec885456c014
parentb8ccee78a4b0fb09574106af19bacdddf8b0c492
drm/i915: Report engines are idle if already parked

If we have parked, then we must have passed an idleness test and still
be idle. We chose not to use this shortcut in the past so that we could
use the idleness test at any time and inspect HW. However, some HW like
Sandybridge, doesn't like being woken up frivolously, so avoid doing so.

References: 7da8aeec5e68 ("drm/i915: Avoid waking the engines just to check if they are idle")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190227214159.7946-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_engine_cs.c