drm/i915: Increase timeout for Encrypt status change
authorRamalingam C <ramalingam.c@intel.com>
Wed, 5 Dec 2018 11:44:43 +0000 (17:14 +0530)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 6 Dec 2018 08:17:15 +0000 (09:17 +0100)
commit7e90e8d0c0ea211241ba42390bc7602debdff90e
tree12295449f8f3669766b4e748a19fbf34ef1d6a09
parent4cf74aafc55bef8725d1d30f7d3449fb86c1710f
drm/i915: Increase timeout for Encrypt status change

At enable/disable of the HDCP encryption, for encryption status change
we need minimum one frame duration. And we might program this bit any
point(start/End) in the previous frame.

With 20mSec, observed the timeout for change in encryption status.
Since this is not time critical operation and we need to hold on
until the status is changed, fixing the timeout to 50mSec. (Based on
trial and error method!)

v2:
  %s/TIME_FOR_ENCRYPT_STATUS_CHANGE/ENCRYPT_STATUS_CHANGE_TIMEOUT_MS
[Sean Paul]

Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Reviewed-by: Sean Paul <sean@poorly.run>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/1544010283-20223-5-git-send-email-ramalingam.c@intel.com
drivers/gpu/drm/i915/intel_hdcp.c