]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Fix null timing generator resource
authorEric Bernstein <eric.bernstein@amd.com>
Mon, 30 Jul 2018 21:43:23 +0000 (17:43 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 5 Jul 2022 20:16:43 +0000 (16:16 -0400)
commit3397b697c6d9273331a18e70e326a37bd059d454
treec5f49c697dcab6459505a2a1eaaf09de987b9aea
parentfb64ecc0a473c2a880f197a05242f543246294ae
drm/amd/display: Fix null timing generator resource

[Why]
For some customer blending transition cases, the
available pipe for second stream is a pipe index that is
greater than the number of timing generators, which
can cause a problem in acquire_first_free_pipe since it
assumes same index for pipe and timing generator

[How]
Added logic to use last timing generator index
if the pipe index is greater than number of timing generators.

Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Eric Bernstein <eric.bernstein@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc_resource.c