]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit074148743f82889014538994aa31966f2d07406d
tree7ee41210a6496c6345d526c08cabb9c23b76735a
parent9dbd9ffb8cfc140eb857dcac3c36f8ebd792669a
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