drm/amd/display: Do not update DRR while BW optimizations pending
authorAric Cyr <aric.cyr@amd.com>
Thu, 9 Feb 2023 00:51:42 +0000 (19:51 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Feb 2023 19:30:55 +0000 (14:30 -0500)
commit32953485c558cecf08f33fbfa251e80e44cef981
treecd602b8f98b1a17fd69446ae9551575b70be6880
parent82a10aff9428f1d190de55ef7971fdb84303cc7a
drm/amd/display: Do not update DRR while BW optimizations pending

[why]
While bandwidth optimizations are pending, it's possible a pstate change
will occur.  During this time, VSYNC handler should not also try to update
DRR parameters causing pstate hang

[how]
Do not adjust DRR if optimize bandwidth is set.

Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Aric Cyr <aric.cyr@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.c