]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amd/display: fix 4K stereo screen flash issue
authorCharlene Liu <charlene.liu@amd.com>
Wed, 12 Sep 2018 22:22:16 +0000 (18:22 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 9 Oct 2018 22:01:39 +0000 (17:01 -0500)
[Why]
HDMI_scramber is not enabled for pixel rate >340Mhz.
[How]
Calculate the phy clock to include the Hw frame packing factor.

Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Chris Park <Chris.Park@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c

index 2d6a4300bfa4086166425ecfc815053eff18a44f..a3fee3769f4dd40e8f9aabb4d2c361f317f21f8b 100644 (file)
@@ -1975,6 +1975,9 @@ static void calculate_phy_pix_clks(struct dc_stream_state *stream)
        else
                stream->phy_pix_clk =
                        stream->timing.pix_clk_khz;
+
+       if (stream->timing.timing_3d_format == TIMING_3D_FORMAT_HW_FRAME_PACKING)
+               stream->phy_pix_clk *= 2;
 }
 
 enum dc_status resource_map_pool_resources(