hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
....@@ -3282,7 +3282,9 @@
32823282 if (pipe_ctx->stream_res.opp->mpcc_disconnect_pending[mpcc_inst]) {
32833283 struct hubp *hubp = get_hubp_by_inst(res_pool, mpcc_inst);
32843284
3285
- res_pool->mpc->funcs->wait_for_idle(res_pool->mpc, mpcc_inst);
3285
+ if (pipe_ctx->stream_res.tg &&
3286
+ pipe_ctx->stream_res.tg->funcs->is_tg_enabled(pipe_ctx->stream_res.tg))
3287
+ res_pool->mpc->funcs->wait_for_idle(res_pool->mpc, mpcc_inst);
32863288 pipe_ctx->stream_res.opp->mpcc_disconnect_pending[mpcc_inst] = false;
32873289 hubp->funcs->set_blank(hubp, true);
32883290 }