]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Make sure PSR is ready for been re-enabled.
authorRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 24 Sep 2014 22:16:58 +0000 (18:16 -0400)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 29 Sep 2014 12:21:49 +0000 (14:21 +0200)
commit8d7f4fe9f561f4e3253478332192d88f6f135c41
treec9ff9989c8d274cded0ad80e806f4ea46923343d
parent1d73c2a8f218be3e8b6aa884740fc67110660b54
drm/i915: Make sure PSR is ready for been re-enabled.

Let's make sure PSR is propperly disabled before to re-enabled it.

According to Spec, after disabled PSR CTL, the Idle state might occur
up to 24ms, that is one full frame time (1/refresh rate),
plus SRD exit training time (max of 6ms),
plus SRD aux channel handshake (max of 1.5ms).

So if something went wrong PSR will be disabled until next full
enable/disable setup.

v2: The 24ms above takes in account 16ms for refresh rate on 60Hz mode. However
on low frequency modes this can take longer. So let's use 50ms for safeness.

v3: Move wait out of psr.lock critical area.

Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_dp.c