aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorNicholas Kazlauskas <[email protected]>2022-01-25 17:04:34 +0000
committerAlex Deucher <[email protected]>2022-02-07 23:01:17 +0000
commit6d33f0e820bfbc4f0b9b2f23d0d30df4bd6c3001 (patch)
tree934c190f9a8bb4f3d0b22a830a7add9319a655e7 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentdrm/amd/display: Fix for variable may be used uninitialized error (diff)
downloadkernel-6d33f0e820bfbc4f0b9b2f23d0d30df4bd6c3001.tar.gz
kernel-6d33f0e820bfbc4f0b9b2f23d0d30df4bd6c3001.zip
drm/amd/display: Fix stream->link_enc unassigned during stream removal
[Why] Found when running igt@kms_atomic. Userspace attempts to do a TEST_COMMIT when 0 streams which calls dc_remove_stream_from_ctx. This in turn calls link_enc_unassign which ends up modifying stream->link = NULL directly, causing the global link_enc to be removed preventing further link activity and future link validation from passing. [How] We take care of link_enc unassignment at the start of link_enc_cfg_link_encs_assign so this call is no longer necessary. Fixes global state from being modified while unlocked. Reviewed-by: Jimmy Kizito <[email protected]> Acked-by: Jasdeep Dhillon <[email protected]> Signed-off-by: Nicholas Kazlauskas <[email protected]> Tested-by: Daniel Wheeler <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions