drm/radeon: Support DRM_MODE_PAGE_FLIP_ASYNC
authorMichel Dänzer <michel.daenzer@amd.com>
Fri, 1 Apr 2016 09:51:34 +0000 (18:51 +0900)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:19:03 +0000 (20:19 -0400)
commitc63dd758589b1f7e8398841d1f443f06ebfbcefc
tree8dd086669a8d3dd74f8bab0b8e4def9e5e3b08ae
parenta4333b4c9960a8f8d699910d4ae11c5eaefd8c25
drm/radeon: Support DRM_MODE_PAGE_FLIP_ASYNC

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).

Currently this is only supported on ASICs which have a page flip
completion interrupt (>= R600), and only if the use_pflipirq parameter
has value 2 (the default).

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/atombios_crtc.c
drivers/gpu/drm/radeon/evergreen.c
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_asic.h
drivers/gpu/drm/radeon/radeon_display.c
drivers/gpu/drm/radeon/rs600.c
drivers/gpu/drm/radeon/rv770.c