blob: e759f641182c36d04c21caf2f1f6d04c3152764c [file] [log] [blame]
From 6e96a8827f29b0a271e329514df348aeb93f309b Mon Sep 17 00:00:00 2001
From: Daniel Vetter <>
Date: Tue, 28 Jan 2020 17:09:52 +0100
Subject: [PATCH] radeon: insert 10ms sleep in dce5_crtc_load_lut
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
commit ec3d65082d7dabad6fa8f66a8ef166f2d522d6b2 upstream.
Per at least one tester this is enough magic to recover the regression
introduced for some people (but not all) in
commit b8e2b0199cc377617dc238f5106352c06dcd3fa2
Author: Peter Rosin <>
Date: Tue Jul 4 12:36:57 2017 +0200
drm/fb-helper: factor out pseudo-palette
which for radeon had the side-effect of refactoring out a seemingly
redudant writing of the color palette.
10ms in a fairly slow modeset path feels like an acceptable form of
duct-tape, so maybe worth a shot and see what sticks.
Cc: Alex Deucher <>
Cc: Michel Dรคnzer <>
Signed-off-by: Daniel Vetter <>
Signed-off-by: Alex Deucher <>
Signed-off-by: Paul Gortmaker <>
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c
index 433df7036f96..68743c78b486 100644
--- a/drivers/gpu/drm/radeon/radeon_display.c
+++ b/drivers/gpu/drm/radeon/radeon_display.c
@@ -122,6 +122,8 @@ static void dce5_crtc_load_lut(struct drm_crtc *crtc)
DRM_DEBUG_KMS("%d\n", radeon_crtc->crtc_id);
+ msleep(10);
WREG32(NI_INPUT_CSC_CONTROL + radeon_crtc->crtc_offset,