drm/amd/display: Assign normalized_pix_clk when color depth = 14
authorAlex Hung <alex.hung@amd.com>
Thu, 27 Feb 2025 23:36:25 +0000 (16:36 -0700)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 10 Mar 2025 17:28:53 +0000 (13:28 -0400)
commit274a87eb389f58eddcbc5659ab0b180b37e92775
treebdbc56c2d49bb0c4086ec34443384988d206316c
parent15d1c2e6bf60511ba068d7d735d051911c6c5b92
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>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c