]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Skip live context execution test without logical contexts
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 10:19:23 +0000 (11:19 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 13:05:23 +0000 (14:05 +0100)
commit6145987d6f825cdb143460e6f82f8c1dc33fa2a5
treec323f83cc4e0cd598fa943ca8661060f123ca7eb
parent8886c43465cfa4ac96aa03a9c22ee42e7c96aa67
drm/i915/selftests: Skip live context execution test without logical contexts

If the HW (or driver) doesn't support logical contexts, don't pretend we
gain anything from trying to execute GPU commands with them. At best it
reports -ENODEV, which is an unhelpful failure that we should just skip.

v2: Be more specific and check the driver/engine caps for logical (HW)
context support.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180706101923.28548-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_context.c