@@ -3216,57 +3216,3 @@ struct hpo_dp_link_encoder *resource_get_hpo_dp_link_enc_for_det_lt(
3216
3216
return hpo_dp_link_enc ;
3217
3217
}
3218
3218
#endif
3219
-
3220
- void reset_syncd_pipes_from_disabled_pipes (struct dc * dc ,
3221
- struct dc_state * context )
3222
- {
3223
- int i , j ;
3224
- struct pipe_ctx * pipe_ctx_old , * pipe_ctx , * pipe_ctx_syncd ;
3225
-
3226
- /* If pipe backend is reset, need to reset pipe syncd status */
3227
- for (i = 0 ; i < dc -> res_pool -> pipe_count ; i ++ ) {
3228
- pipe_ctx_old = & dc -> current_state -> res_ctx .pipe_ctx [i ];
3229
- pipe_ctx = & context -> res_ctx .pipe_ctx [i ];
3230
-
3231
- if (!pipe_ctx_old -> stream )
3232
- continue ;
3233
-
3234
- if (pipe_ctx_old -> top_pipe || pipe_ctx_old -> prev_odm_pipe )
3235
- continue ;
3236
-
3237
- if (!pipe_ctx -> stream ||
3238
- pipe_need_reprogram (pipe_ctx_old , pipe_ctx )) {
3239
-
3240
- /* Reset all the syncd pipes from the disabled pipe */
3241
- for (j = 0 ; j < dc -> res_pool -> pipe_count ; j ++ ) {
3242
- pipe_ctx_syncd = & context -> res_ctx .pipe_ctx [j ];
3243
- if ((GET_PIPE_SYNCD_FROM_PIPE (pipe_ctx_syncd ) == pipe_ctx_old -> pipe_idx ) ||
3244
- !IS_PIPE_SYNCD_VALID (pipe_ctx_syncd ))
3245
- SET_PIPE_SYNCD_TO_PIPE (pipe_ctx_syncd , j );
3246
- }
3247
- }
3248
- }
3249
- }
3250
-
3251
- void check_syncd_pipes_for_disabled_master_pipe (struct dc * dc ,
3252
- struct dc_state * context ,
3253
- uint8_t disabled_master_pipe_idx )
3254
- {
3255
- int i ;
3256
- struct pipe_ctx * pipe_ctx , * pipe_ctx_check ;
3257
-
3258
- pipe_ctx = & context -> res_ctx .pipe_ctx [disabled_master_pipe_idx ];
3259
- if ((GET_PIPE_SYNCD_FROM_PIPE (pipe_ctx ) != disabled_master_pipe_idx ) ||
3260
- !IS_PIPE_SYNCD_VALID (pipe_ctx ))
3261
- SET_PIPE_SYNCD_TO_PIPE (pipe_ctx , disabled_master_pipe_idx );
3262
-
3263
- /* for the pipe disabled, check if any slave pipe exists and assert */
3264
- for (i = 0 ; i < dc -> res_pool -> pipe_count ; i ++ ) {
3265
- pipe_ctx_check = & context -> res_ctx .pipe_ctx [i ];
3266
-
3267
- if ((GET_PIPE_SYNCD_FROM_PIPE (pipe_ctx_check ) == disabled_master_pipe_idx ) &&
3268
- IS_PIPE_SYNCD_VALID (pipe_ctx_check ) && (i != disabled_master_pipe_idx ))
3269
- DC_ERR ("DC: Failure: pipe_idx[%d] syncd with disabled master pipe_idx[%d]\n" ,
3270
- i , disabled_master_pipe_idx );
3271
- }
3272
- }
0 commit comments