OSDN Git Service

drm/i915/psr: Always wait for idle state when disabling PSR
authorJosé Roberto de Souza <jose.souza@intel.com>
Tue, 6 Nov 2018 19:08:41 +0000 (11:08 -0800)
committerJosé Roberto de Souza <jose.souza@intel.com>
Fri, 9 Nov 2018 18:49:38 +0000 (10:49 -0800)
commitb2fc2252ce41d004a23be7dd90ab3b88394df4d6
tree0b719c7bca96ee27b2f63bc1818171cba547e140
parent26f9ec9a9a4a2d97a86f6bd0084dcda4d88b89ef
drm/i915/psr: Always wait for idle state when disabling PSR

It should always wait for idle state when disabling PSR because PSR
could be inactive due a call to intel_psr_exit() and while PSR is
still being disabled asynchronously userspace could change the
modeset causing a call to psr_disable() that will not wait for PSR
idle and then PSR will be enabled again while PSR is still not idle.

v2: rebased on top of the patch reusing psr_exit()

Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181106190843.18009-2-jose.souza@intel.com
drivers/gpu/drm/i915/intel_psr.c