diff mbox series

[RFC,2/2] drm/i915/dp: Retry AUX requests 7 times.

Message ID 20210210083338.100068-2-khaled.almahallawy@intel.com (mailing list archive)
State New, archived
Headers show
Series [RFC,1/2] drm/dp: Make number of AUX retries configurable by display drivers. | expand

Commit Message

Almahallawy, Khaled Feb. 10, 2021, 8:33 a.m. UTC
Given that intel_dp_aux_xfer retries 5 times, so configure drm_dpcd_access to retry only 7 times,
which means the max number of retries for i915 = 7 * 5 = 35 times.

Signed-off-by: Khaled Almahallawy <khaled.almahallawy@intel.com>
---
 drivers/gpu/drm/i915/display/intel_dp_aux.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/drivers/gpu/drm/i915/display/intel_dp_aux.c b/drivers/gpu/drm/i915/display/intel_dp_aux.c
index eaebf123310a..73d711a94000 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_aux.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_aux.c
@@ -688,5 +688,7 @@  void intel_dp_aux_init(struct intel_dp *intel_dp)
 					       encoder->base.name);
 
 	intel_dp->aux.transfer = intel_dp_aux_transfer;
+	/* Follow DP specs*/
+	intel_dp->aux.num_retries = 7;
 	cpu_latency_qos_add_request(&intel_dp->pm_qos, PM_QOS_DEFAULT_VALUE);
 }