Skip to content

Commit 79e3139

Browse files
Alex Hungalexdeucher
authored andcommitted
drm/amd/display: Assign normalized_pix_clk when color depth = 14
[WHY & HOW] A warning message "WARNING: CPU: 4 PID: 459 at ... /dc_resource.c:3397 calculate_phy_pix_clks+0xef/0x100 [amdgpu]" occurs because the display_color_depth == COLOR_DEPTH_141414 is not handled. This is observed in Radeon RX 6600 XT. It is fixed by assigning pix_clk * (14 * 3) / 24 - same as the rests. Also fixes the indentation in get_norm_pix_clk. Reviewed-by: Harry Wentland <harry.wentland@amd.com> Signed-off-by: Alex Hung <alex.hung@amd.com> Signed-off-by: Tom Chung <chiahsuan.chung@amd.com> Tested-by: Daniel Wheeler <daniel.wheeler@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> (cherry picked from commit 274a87e) Cc: stable@vger.kernel.org
1 parent 5760388 commit 79e3139

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

drivers/gpu/drm/amd/display/dc/core/dc_resource.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3389,10 +3389,13 @@ static int get_norm_pix_clk(const struct dc_crtc_timing *timing)
33893389
break;
33903390
case COLOR_DEPTH_121212:
33913391
normalized_pix_clk = (pix_clk * 36) / 24;
3392-
break;
3392+
break;
3393+
case COLOR_DEPTH_141414:
3394+
normalized_pix_clk = (pix_clk * 42) / 24;
3395+
break;
33933396
case COLOR_DEPTH_161616:
33943397
normalized_pix_clk = (pix_clk * 48) / 24;
3395-
break;
3398+
break;
33963399
default:
33973400
ASSERT(0);
33983401
break;

0 commit comments

Comments
 (0)