]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/amd/display: Revised for Replay Pseudo vblank control
authorDennis Chan <dennis.chan@amd.com>
Mon, 23 Sep 2024 02:12:05 +0000 (10:12 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 10 Jan 2025 17:11:38 +0000 (12:11 -0500)
[why & how]
Revised Replay Full screen video Pseudo vblank control.

Reviewed-by: Allen Li <allen.li@amd.com>
Signed-off-by: Dennis Chan <dennis.chan@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/dc_types.h
drivers/gpu/drm/amd/display/modules/power/power_helpers.c
drivers/gpu/drm/amd/display/modules/power/power_helpers.h

index d7242dd83def95e6dbb59b32164854400e6340d5..0c2aa91f0a1113b9bfa96f17215b1e57233cf507 100644 (file)
@@ -1145,8 +1145,8 @@ struct replay_settings {
        uint32_t defer_update_coasting_vtotal_table[PR_COASTING_TYPE_NUM];
        /* Maximum link off frame count */
        uint32_t link_off_frame_count;
-       /* Replay pseudo vtotal for abm + ips on full screen video which can improve ips residency */
-       uint16_t abm_with_ips_on_full_screen_video_pseudo_vtotal;
+       /* Replay pseudo vtotal for low refresh rate*/
+       uint16_t low_rr_full_screen_video_pseudo_vtotal;
        /* Replay last pseudo vtotal set to DMUB */
        uint16_t last_pseudo_vtotal;
        /* Replay desync error */
index f4b86a63f25d95cdb6a2dcddf10e5408ae168880..29ccd3532d139b555b34b0e3481940b2efa91012 100644 (file)
@@ -996,9 +996,9 @@ void set_replay_coasting_vtotal(struct dc_link *link,
        link->replay_settings.coasting_vtotal_table[type] = vtotal;
 }
 
-void set_replay_ips_full_screen_video_src_vtotal(struct dc_link *link, uint16_t vtotal)
+void set_replay_low_rr_full_screen_video_src_vtotal(struct dc_link *link, uint16_t vtotal)
 {
-       link->replay_settings.abm_with_ips_on_full_screen_video_pseudo_vtotal = vtotal;
+       link->replay_settings.low_rr_full_screen_video_pseudo_vtotal = vtotal;
 }
 
 void calculate_replay_link_off_frame_count(struct dc_link *link,
index 94ade0ef18a3af46a6b66f2b6d771329bc6607fa..758a8aa31fbe81c909476e6cb0caab326f654ae9 100644 (file)
@@ -62,7 +62,7 @@ void set_replay_defer_update_coasting_vtotal(struct dc_link *link,
        uint32_t vtotal);
 void update_replay_coasting_vtotal_from_defer(struct dc_link *link,
        enum replay_coasting_vtotal_type type);
-void set_replay_ips_full_screen_video_src_vtotal(struct dc_link *link, uint16_t vtotal);
+void set_replay_low_rr_full_screen_video_src_vtotal(struct dc_link *link, uint16_t vtotal);
 void calculate_replay_link_off_frame_count(struct dc_link *link,
        uint16_t vtotal, uint16_t htotal);