mirror_ubuntu-kernels/drivers/gpu/drm/amd
Nicholas Kazlauskas 6d63fcc2a3 drm/amd/display: Reset link encoder assignments for GPU reset
[Why]
A warning appears in the log on GPU reset for
link_enc_cfg_link_encs_assign for the following condition:

ASSERT(state->res_ctx.link_enc_cfg_ctx.link_enc_assignments[i].valid == false);

This is not expected behavior and may result in link encoders being
incorrectly assigned.

[How]
The dc->current_state is backed up into dm->cached_dc_state before
we commit 0 streams.

DC will clear link encoder assignments on the real state but the
changes won't propagate over to the copy we made before the
0 streams commit.

DC expects that link encoder assignments are *not* valid
when committing a state, so as a workaround it needs to be cleared
before passing it back into DC.

Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-11-24 14:06:52 -05:00
..
acp
amdgpu drm/amdgpu: Fix double free of dmabuf 2021-11-22 14:59:08 -05:00
amdkfd drm/amdkfd: Remove unused entries in table 2021-11-22 14:59:05 -05:00
display drm/amd/display: Reset link encoder assignments for GPU reset 2021-11-24 14:06:52 -05:00
include drm/amd/pm: Add STB support in sienna_cichlid 2021-11-22 14:58:54 -05:00
pm drm/amd/pm: Add debugfs info for STB 2021-11-22 14:58:59 -05:00