drm/amd/display: Expose new CRC window property
authorWayne Lin <Wayne.Lin@amd.com>
Mon, 19 Oct 2020 08:32:14 +0000 (16:32 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 16 Nov 2020 17:19:44 +0000 (12:19 -0500)
commitc920888c604d72799d057bbcd9e28a6c003ccfbe
tree6bd163e32b34c002aef096cc3c00c6756e07eeeb
parentc88840f342c985433ff9286dbb3083fdce85170f
drm/amd/display: Expose new CRC window property

[Why]
Instead of calculating CRC on whole frame, add flexibility to calculate
CRC on specific frame region.

[How]
Add few crc window coordinate properties. By default, CRC is calculated
on whole frame unless user space specifies the CRC calculation window.

Signed-off-by: Wayne Lin <Wayne.Lin@amd.com>
Acked-by: Bindu Ramamurthy <bindu.r@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.h
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crc.h
drivers/gpu/drm/amd/display/dc/core/dc_link.c