drm/amdgpu: Support DRM_MODE_PAGE_FLIP_ASYNC (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 20:03:57 +0000 (16:03 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 May 2016 16:31:25 +0000 (12:31 -0400)
commitcb9e59d7e999c68b79f23d6016b08fc5d0bb8a8d
treeb6a3f9e2d470c1f3cc259f6ddac599fbe58b5b94
parenta71dd897599c94d38eb1c4d6c8d9f8e3275e82ce
drm/amdgpu: Support DRM_MODE_PAGE_FLIP_ASYNC (v2)

When this flag is set, we program the hardware to execute the flip
during horizontal blank (i.e. for the next scanline) instead of during
vertical blank (i.e. for the next frame).

Ported from radeon commit:
drm/radeon: Support DRM_MODE_PAGE_FLIP_ASYNC

v2: drop DAL change for upstream

Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
drivers/gpu/drm/amd/amdgpu/dce_v8_0.c