OSDN Git Service

drm/i915/selftests: Hold the rpm wakeref for the reset tests
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Oct 2017 11:03:00 +0000 (12:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 9 Oct 2017 16:07:28 +0000 (17:07 +0100)
commitff97d3ae6951101a85e5153cb128292d7119d15c
tree7ac6af8eb93d7ae15fdbab86dce179ed2a394cd0
parent1749d90ff6e0cd0fc97aac5b08782ca1ac9665cf
drm/i915/selftests: Hold the rpm wakeref for the reset tests

The lowlevel reset functions expect the caller to be holding the rpm
wakeref for the device access across the reset. We were not explicitly
doing this in the sefltest, so for simplicity acquire the wakeref for
the duration of all subtests.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171009110301.21705-4-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
drivers/gpu/drm/i915/selftests/intel_hangcheck.c