OSDN Git Service

drm/amd/display: Block optimize on consecutive FAMS enables
authorWesley Chalmers <Wesley.Chalmers@amd.com>
Tue, 28 Feb 2023 18:48:00 +0000 (13:48 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Apr 2023 02:27:26 +0000 (22:27 -0400)
commitce560ac40272a5c8b5b68a9d63a75edd9e66aed2
tree365770256cab5ead4361ab17903b6ba90854b7b6
parent474f01015ffdb74e01c2eb3584a2822c64e7b2be
drm/amd/display: Block optimize on consecutive FAMS enables

[WHY]
It is possible to commit state multiple times in rapid succession with
FAMS enabled; if each of these commits were to set optimized_required,
then the user may see latency.

[HOW]
fw_based_mclk_switching is currently not used in dc->clk_mgr; use it
to track whether the current state has FAMS enabled;
if it has, then do not disable FAMS in prepare_bandwidth, and do not set
optimized_required.

Reviewed-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Wesley Chalmers <Wesley.Chalmers@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/dcn20/dcn20_hwseq.c
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c