drm/amd/display: disable desktop VRR when using older flip model
authorhvanzyll <hvanzyll@amd.com>
Sun, 9 May 2021 00:50:05 +0000 (20:50 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 May 2021 16:24:34 +0000 (12:24 -0400)
commit4932d17697f243976286350a272d59a1b7cdb72b
tree7ee41210a6496c6345d526c08cabb9c23b76735a
parent6e568e438b4d4e9754bdf361a91e0a774ca082ed
drm/amd/display: disable desktop VRR when using older flip model

[WHY]
OS uses older flip model which does not work with desktop
VRR causing memory allocations at the wrong IRQ level.

[HOW]
Checks added to flip model to verify model is 2.2 or greater when
doing any of the desktop VRR checks for full updates. This
prevents full updates when VRR changes until a mode change.

Signed-off-by: Harry VanZyllDeJong <hvanzyll@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@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/dc_stream.h
drivers/gpu/drm/amd/display/modules/freesync/freesync.c