drm/amd/display: Skip 2 frames when first reading CRC
authorLeo (Sunpeng) Li <sunpeng.li@amd.com>
Tue, 6 Feb 2018 15:20:46 +0000 (10:20 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:20:11 +0000 (14:20 -0500)
commita0a31ec4ce6a8c8bc4f4b8619b537e4a9a0ddaf1
treea52fcd4bc73306e820d9a60b5ab32bea48e2dced
parentea41fb640dd8789db325b90ffa4142d808247de1
drm/amd/display: Skip 2 frames when first reading CRC

Skipping the first frame will prevent uncoooked values most of the time.
However, in some unlikely cases, the second frame will be uncooked as
well.

Signed-off-by: Leo (Sunpeng) Li <sunpeng.li@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c