]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Update DCN321 hook that deals with pipe aquire
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tue, 20 Sep 2022 17:29:19 +0000 (13:29 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2022 16:01:44 +0000 (12:01 -0400)
commit4628ab63f67326c4355e6ba77f886906bf59247c
treeaecaeee25601c90723166fea0b907ee186c3200c
parent5a5493b2b5765a869717e8105173a458b7df19b6
drm/amd/display: Update DCN321 hook that deals with pipe aquire

DCN provides a hook to check if we can have a new pipe allocation based
on some DC constraints. If the current configuration supports the new
pipe request, DC updates its context; otherwise, it will keep the same
configuration. This behavior is similar across multiple ASICs, and for
this reason, we reused DCN20 on DCN321. However, this DCN32x has some
peculiarities which require its function to avoid weird pipe split
issues. This commit update this issue by using
dcn32_acquire_idle_pipe_for_head_pipe_in_layer instead of
dcn20_acquire_idle_pipe_for_layer.

Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c