linux_dsm_epyc7002/drivers/gpu/drm/amd
Noah Abradjian b9f1246df1 drm/amd/display: Collapse resource arrays when pipe is disabled
[Why]
Currently, pipe resources are assigned to an index that matches the pipe position.
However, if pipe 1 or 2 is disabled, there will be a gap in the arrays which causes a crash when iterating based on pipe_count.

[How]
Fix resource construct to assign resources to minimum available array index.

Signed-off-by: Noah Abradjian <noah.abradjian@amd.com>
Reviewed-by: Yongqiang Sun <yongqiang.sun@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2019-12-18 16:09:08 -05:00
..
acp drm/amdgpu: fix license on Kconfig and Makefiles 2019-12-11 15:22:08 -05:00
amdgpu drm/amdgpu/vcn: remove JPEG related code from idle handler and begin use 2019-12-18 16:09:07 -05:00
amdkfd drm/amdkfd: queue kfd interrupt work to different CPU 2019-12-18 16:09:05 -05:00
display drm/amd/display: Collapse resource arrays when pipe is disabled 2019-12-18 16:09:08 -05:00
include drm/amdgpu: add dpcs20 registers 2019-12-18 16:09:06 -05:00
powerplay drm/amdgpu/sriov: Tonga sriov also need load firmware with smu 2019-12-18 16:09:06 -05:00