mirror_ubuntu-kernels/drivers/gpu/drm/amd
Jimmy Kizito 64d283cb37 drm/amd/display: Fix dynamic link encoder access.
[Why]
Assuming DIG link encoders are statically mapped to links can cause
system instability due to null pointer accesses.

[How]
- Add checks for non-null link encoder pointers before trying to access
them.
- When a hardware platform uses dynamic DIG assignment (i.e. resource
function 'link_encs_assign' defined) and a link supports flexible
mapping to DIGs, use the link_enc_cfg API to access the DIG assigned to
a link or stream.

Reviewed-by: Meenakshikumar Somasundaram <meenakshikumar.somasundaram@amd.com>
Acked-by: Mikita Lipski <mikita.lipski@amd.com>
Signed-off-by: Jimmy Kizito <Jimmy.Kizito@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-09-14 15:57:09 -04:00
..
acp
amdgpu drm/amdgpu: Increase direct IB pool size 2021-09-14 15:56:49 -04:00
amdkfd drm/amdkfd: make needs_pcie_atomics FW-version dependent 2021-09-14 15:56:50 -04:00
display drm/amd/display: Fix dynamic link encoder access. 2021-09-14 15:57:09 -04:00
include drm/amd/display: Add DP 2.0 BIOS and DMUB Support 2021-09-01 16:55:10 -04:00
pm drm/amdgpu: add manual sclk/vddc setting support for cyan skilfish(v3) 2021-09-14 15:39:40 -04:00