]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Replay Video Conferencing V2
authorChunTao Tso <chuntao.tso@amd.com>
Mon, 1 Dec 2025 07:47:50 +0000 (15:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 16 Dec 2025 18:23:50 +0000 (13:23 -0500)
[WHY&HOW]
Add new coasting vtotal type and an union to optimize
the video conference for more power saving.

Reviewed-by: Robin Chen <robin.chen@amd.com>
Signed-off-by: ChunTao Tso <chuntao.tso@amd.com>
Signed-off-by: Chenyu Chen <chen-yu.chen@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

index f46039f642034fd3fb49dbb454657b98bd8a1342..cf4bf0faf1cd909935bc051e539e2275bb8000c1 100644 (file)
@@ -1078,6 +1078,7 @@ enum replay_coasting_vtotal_type {
        PR_COASTING_TYPE_STATIC,
        PR_COASTING_TYPE_FULL_SCREEN_VIDEO,
        PR_COASTING_TYPE_TEST_HARNESS,
+       PR_COASTING_TYPE_VIDEO_CONFERENCING_V2,
        PR_COASTING_TYPE_NUM,
 };
 
@@ -1134,6 +1135,17 @@ union replay_low_refresh_rate_enable_options {
        unsigned int raw;
 };
 
+union replay_optimization {
+       struct {
+               //BIT[0-3]: Replay Teams Optimization
+               unsigned int TEAMS_OPTIMIZATION_VER_1           :1;
+               unsigned int TEAMS_OPTIMIZATION_VER_2           :1;
+               unsigned int RESERVED_2_3                       :2;
+       } bits;
+
+       unsigned int raw;
+};
+
 struct replay_config {
        /* Replay version */
        enum dc_replay_version replay_version;
@@ -1171,6 +1183,8 @@ struct replay_config {
        enum dc_alpm_mode alpm_mode;
        /* Replay full screen only */
        bool os_request_force_ffu;
+       /* Replay optimization */
+       union replay_optimization replay_optimization;
 };
 
 /* Replay feature flags*/