Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/amd/display: Agument live + capture with CVT case.

1. Add LIVE_CAPTURE_WITH_CVT bit (bit[2]) in union replay_optimization
to control this feature via DalRegKey_ReplayOptimization.
2. Check the bit in mod_power_set_live_capture_with_cvt_activate function
before enabling live capture with CVT.
3. Use LIVE_CAPTURE_WITH_CVT to control if Replay want to send CVT in
live + capture or not.

Reviewed-by: Leon Huang <leon.huang1@amd.com>
Signed-off-by: ChunTao Tso <chuntao.tso@amd.com>
Signed-off-by: Chuanyu Tseng <chuanyu.tseng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

ChunTao Tso and committed by
Alex Deucher
0e4e84de a1d840a5

+7 -2
+6 -2
drivers/gpu/drm/amd/display/dc/dc_types.h
··· 1144 1144 1145 1145 union replay_optimization { 1146 1146 struct { 1147 - //BIT[0-3]: Replay Teams Optimization 1147 + //BIT[0-1]: Replay Teams Optimization 1148 1148 unsigned int TEAMS_OPTIMIZATION_VER_1 :1; 1149 1149 unsigned int TEAMS_OPTIMIZATION_VER_2 :1; 1150 - unsigned int RESERVED_2_3 :2; 1150 + //BIT[2]: Replay Live Capture with CVT 1151 + unsigned int LIVE_CAPTURE_WITH_CVT :1; 1152 + unsigned int RESERVED_3 :1; 1151 1153 } bits; 1152 1154 1153 1155 unsigned int raw; ··· 1198 1196 bool frame_skip_supported; 1199 1197 /* Replay Received Frame Skipping Error HPD. */ 1200 1198 bool received_frame_skipping_error_hpd; 1199 + /* Live capture with CVT is activated */ 1200 + bool live_capture_with_cvt_activated; 1201 1201 }; 1202 1202 1203 1203 /* Replay feature flags*/
+1
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h
··· 4437 4437 REPLAY_GENERAL_CMD_VIDEO_CONFERENCING, 4438 4438 REPLAY_GENERAL_CMD_SET_CONTINUOUSLY_RESYNC, 4439 4439 REPLAY_GENERAL_CMD_SET_COASTING_VTOTAL_WITHOUT_FRAME_UPDATE, 4440 + REPLAY_GENERAL_CMD_LIVE_CAPTURE_WITH_CVT, 4440 4441 }; 4441 4442 4442 4443 struct dmub_alpm_auxless_data {