]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/psr: Set frames before SU entry for psr2
authorvathsala nagaraju <vathsala.nagaraju@intel.com>
Tue, 26 Sep 2017 09:59:13 +0000 (15:29 +0530)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
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 <rodrigo.vivi@intel.com>
CC: Puthikorn Voravootivat <puthik@chromium.org>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Vathsala Nagaraju <vathsala.nagaraju@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/1506419953-32605-2-git-send-email-vathsala.nagaraju@intel.com
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_psr.c