All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amdgpu/display: adjust msleep limit in dp_wait_for_training_aux_rd_interval
@ 2022-01-20 18:04 Alex Deucher
  2022-01-20 18:04 ` [PATCH 2/2] drm/amdgpu/display: use msleep rather than udelay for long delays Alex Deucher
  2022-01-21  1:49 ` [PATCH 1/2] drm/amdgpu/display: adjust msleep limit in dp_wait_for_training_aux_rd_interval Chen, Guchun
  0 siblings, 2 replies; 9+ messages in thread
From: Alex Deucher @ 2022-01-20 18:04 UTC (permalink / raw)
  To: amd-gfx; +Cc: Alex Deucher

Some architectures (e.g., ARM) have relatively low udelay limits.
On most architectures, anything longer than 2000us is not recommended.
Change the check to align with other similar checks in DC.

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
---
 drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
index 1f8831156bc4..aa1c67c3c386 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
@@ -202,7 +202,7 @@ void dp_wait_for_training_aux_rd_interval(
 	uint32_t wait_in_micro_secs)
 {
 #if defined(CONFIG_DRM_AMD_DC_DCN)
-	if (wait_in_micro_secs > 16000)
+	if (wait_in_micro_secs > 1000)
 		msleep(wait_in_micro_secs/1000);
 	else
 		udelay(wait_in_micro_secs);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-01-25 16:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-20 18:04 [PATCH 1/2] drm/amdgpu/display: adjust msleep limit in dp_wait_for_training_aux_rd_interval Alex Deucher
2022-01-20 18:04 ` [PATCH 2/2] drm/amdgpu/display: use msleep rather than udelay for long delays Alex Deucher
2022-01-20 21:52   ` Harry Wentland
2022-01-25 11:32   ` Lazar, Lijo
2022-01-25 15:33     ` Harry Wentland
2022-01-25 16:23     ` Alex Deucher
2022-01-21  1:49 ` [PATCH 1/2] drm/amdgpu/display: adjust msleep limit in dp_wait_for_training_aux_rd_interval Chen, Guchun
2022-01-21 16:59   ` Deucher, Alexander
2022-01-23 13:48     ` Chen, Guchun

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.