drm/amd/display: Try to acquire a free OTG master not used in cur ctx first
authorWenjing Liu <wenjing.liu@amd.com>
Fri, 20 Oct 2023 20:26:19 +0000 (16:26 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 17 Nov 2023 14:30:50 +0000 (09:30 -0500)
commit68cfc5d8e459f50e5f46dca3b0f3c97a75f39975
tree383343ef77de5ce58d2c1a349eded1d5ab1c6db5
parent8b8eed05a1c650c27e78bc47d07f7d6c9ba779e8
drm/amd/display: Try to acquire a free OTG master not used in cur ctx first

[WHY & HOW]
The current otg master pipe allocation logic is not optimized based
current resource context. We should try to acquire a free OTG master not
used in cur cts first to avoid unnecessary pipe switch from current
state.

Acked-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Wenjing Liu <wenjing.liu@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