aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
diff options
context:
space:
mode:
authorEmily Deng <[email protected]>2016-08-08 03:35:39 +0000
committerAlex Deucher <[email protected]>2016-08-08 18:07:18 +0000
commit46ac3622437692c371f3e647dc29f99e14b4f596 (patch)
tree57aa5896cfe1f21ba7696f8bd5ed991f6c342419 /drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
parentdrm/amdgpu: Disable VGA render and crtc when init GMC. (diff)
downloadkernel-46ac3622437692c371f3e647dc29f99e14b4f596.tar.gz
kernel-46ac3622437692c371f3e647dc29f99e14b4f596.zip
drm/amdgpu: Use software timer to generate vsync interrupt.
For virtual display feature, use the software timer to simulate the vsync interrupt. Signed-off-by: Emily Deng <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
index 6b1d7d306564..b1ae33bdbd84 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h
@@ -39,6 +39,8 @@
#include <drm/drm_plane_helper.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
+#include <linux/hrtimer.h>
+#include "amdgpu_irq.h"
struct amdgpu_bo;
struct amdgpu_device;
@@ -339,6 +341,8 @@ struct amdgpu_mode_info {
int num_dig; /* number of dig blocks */
int disp_priority;
const struct amdgpu_display_funcs *funcs;
+ struct hrtimer vblank_timer;
+ enum amdgpu_interrupt_state vsync_timer_enabled;
};
#define AMDGPU_MAX_BL_LEVEL 0xFF