]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Enable frame skipping in 0x37B
authorChuntao Tso <chuntao.tso@amd.com>
Mon, 16 Mar 2026 07:21:39 +0000 (15:21 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 3 Jun 2026 17:31:29 +0000 (13:31 -0400)
[Why & How]
Enable frame skipping in 0x37B

Reviewed-by: Wenjing Liu <wenjing.liu@amd.com>
Signed-off-by: Chuntao Tso <chuntao.tso@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_dp_types.h
drivers/gpu/drm/amd/display/dc/link/protocols/link_edp_panel_control.c

index 7fa336bf1115d1288fca7d556fb2e49140a6a48c..7e5c118b2f20c2d4031182513e040101541255cf 100644 (file)
@@ -1363,7 +1363,10 @@ union replay_enable_and_configuration {
                unsigned char FREESYNC_PANEL_REPLAY_MODE              :1;
                unsigned char TIMING_DESYNC_ERROR_VERIFICATION        :1;
                unsigned char STATE_TRANSITION_ERROR_DETECTION        :1;
-               unsigned char RESERVED                                :5;
+               unsigned char FSFT_ENABLED                            :1;
+               unsigned char FRAME_SKIPPING_ERROR_DETECTION          :1;
+               unsigned char FRAME_SKIPPING_ENABLE                   :1;
+               unsigned char RESERVED                                :2;
        } bits;
        unsigned char raw;
 };
index e06a9ac652860e365674f4b06d3d442531385c10..3db4f10d1654803cce69e1785726316cc537b6e5 100644 (file)
@@ -1052,6 +1052,8 @@ bool edp_setup_freesync_replay(struct dc_link *link, const struct dc_stream_stat
                replay_config.bits.FREESYNC_PANEL_REPLAY_MODE = 1;
                replay_config.bits.TIMING_DESYNC_ERROR_VERIFICATION = 0;
                replay_config.bits.STATE_TRANSITION_ERROR_DETECTION = 1;
+               replay_config.bits.FRAME_SKIPPING_ERROR_DETECTION = 1;
+               replay_config.bits.FRAME_SKIPPING_ENABLE = 1;
                dm_helpers_dp_write_dpcd(link->ctx, link,
                        DP_SINK_PR_ENABLE_AND_CONFIGURATION,
                        (uint8_t *)&(replay_config.raw), sizeof(uint8_t));