]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915/selftests: Distinguish mock device from no wakeref
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Sep 2019 21:17:48 +0000 (22:17 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 27 Sep 2019 22:25:30 +0000 (23:25 +0100)
commit4e18ca703f2167d8bcb7f736271744131e3c390b
treee5ce22179ddae7ff9d5a1853005834324ddb43d4
parent260e6b712769d74304093a699796ebf134aef095
drm/i915/selftests: Distinguish mock device from no wakeref

On systems that have no runtime-pm, we mark the wakeref as being -1. We
therefore cannot use that value for the mock-gt indicator, so opt for
-ENODEV instead. The wakeref should never be an error value -- one
hopes!

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Andi Shyti <andi.shyti@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190927211749.2181-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_gt_pm.h
drivers/gpu/drm/i915/selftests/mock_gem_device.c