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

drm/amd/display: add pipe lock during stream update

[why]
Stream update will adjust both info packets and stream params,
need to make sure all things are applied togather.

[how]
add pipe lock during stream update

Signed-off-by: Wenjing Liu <Wenjing.Liu@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Leo Li <sunpeng.li@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

Wenjing Liu and committed by
Alex Deucher
e6bddf6c 3af91bb1

+2
+2
drivers/gpu/drm/amd/display/dc/core/dc.c
··· 1672 1672 continue; 1673 1673 1674 1674 if (stream_update->dpms_off) { 1675 + dc->hwss.pipe_control_lock(dc, pipe_ctx, true); 1675 1676 if (*stream_update->dpms_off) { 1676 1677 core_link_disable_stream(pipe_ctx, KEEP_ACQUIRED_RESOURCE); 1677 1678 dc->hwss.optimize_bandwidth(dc, dc->current_state); ··· 1680 1679 dc->hwss.prepare_bandwidth(dc, dc->current_state); 1681 1680 core_link_enable_stream(dc->current_state, pipe_ctx); 1682 1681 } 1682 + dc->hwss.pipe_control_lock(dc, pipe_ctx, false); 1683 1683 } 1684 1684 1685 1685 if (stream_update->abm_level && pipe_ctx->stream_res.abm) {