drm/i915/psr: Fall back to max. synchronization latency if DPCD read fails
authorDhinakaran Pandiyan <[email protected]>
Fri, 11 May 2018 19:51:44 +0000 (12:51 -0700)
committerJani Nikula <[email protected]>
Thu, 24 May 2018 13:33:35 +0000 (16:33 +0300)
commit264ff016cf0672f99f98ea853dbc7e45c3527bc2
tree89a125b38331d0e6826b61c1a5a9262ee27c8b98
parent1e8b251ebcbbfc6bfa826bca4d91a8e1bcad2e5f
drm/i915/psr: Fall back to max. synchronization latency if DPCD read fails

Noticed that we assume the best case of 0 latency when the DPCD read
fails, reasonable pessimism is safer.

eDP spec does say that if latency is greater than 8, the panel
supplier needs to provide it. I didn't see anything specific in the VBT
for this, so let's go with 8 frames as a fallback.

Cc: Jose Roberto de Souza <[email protected]>
Cc: Ville Syrjälä <[email protected]>
Reviewed-by: José Roberto de Souza <[email protected]>
Signed-off-by: Dhinakaran Pandiyan <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/i915/intel_psr.c