drm/i915/psr: Set frames before SU entry for psr2
authorvathsala nagaraju <[email protected]>
Tue, 26 Sep 2017 09:59:13 +0000 (15:29 +0530)
committerRodrigo Vivi <[email protected]>
Thu, 28 Sep 2017 16:40:34 +0000 (09:40 -0700)
commit977da084cc3c1791ecd6faed55e0ab41e7231660
treeeffec147002faf49e0f76016ab48cda133d4a8aa
parentae59e633b52cccf5761ac3012378fec2480c49aa
drm/i915/psr: Set frames before SU entry for psr2

Set frames before SU entry value for max resync frame count of
dpcd register 2009, bit field 0:3.

v2 :
 - add macro  EDP_PSR2_FRAME_BEFORE_SU (Rodrigo)
 - remove EDP_FRAMES_BEFORE_SU_ENTRY (Rodrigo)
 - add check ==1 for dpcd_read call (ville)

v3 : (Rodrigo)
 - move macro EDP_PSR2_FRAME_BEFORE_SU after EDP_PSR2_FRAME_BEFORE_SU
 - replace with &=

v4 :
 - change the macro to shift value (jani)
 - updated register names

Cc: Rodrigo Vivi <[email protected]>
CC: Puthikorn Voravootivat <[email protected]>
Reviewed-by: Rodrigo Vivi <[email protected]>
Signed-off-by: Vathsala Nagaraju <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_psr.c