forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
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 }