diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-03-22 17:50:50 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2017-03-29 03:50:38 -0400 |
commit | 41292b1fa13a894c1108d4a1c7f8a59fbb307aa6 (patch) | |
tree | cdd761085b4e9e67955bfddb6fd51d0e574d03f2 /drivers/gpu/drm/drm_atomic_helper.c | |
parent | 29dc0d1de18239cf3ef8bab578b8321ed340d81c (diff) |
drm: Add acquire ctx parameter to ->page_flip(_target)
Again just going through the motions, no functional changes in here.
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Ben Skeggs <bskeggs@redhat.com>
Cc: Russell King <linux@armlinux.org.uk>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: Eric Anholt <eric@anholt.net>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>t
Link: http://patchwork.freedesktop.org/patch/msgid/20170322215058.8671-12-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm/drm_atomic_helper.c')
-rw-r--r-- | drivers/gpu/drm/drm_atomic_helper.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c index cc6e2772b32f..96561ecf736f 100644 --- a/drivers/gpu/drm/drm_atomic_helper.c +++ b/drivers/gpu/drm/drm_atomic_helper.c | |||
@@ -2859,6 +2859,7 @@ static int page_flip_common( | |||
2859 | * @fb: DRM framebuffer | 2859 | * @fb: DRM framebuffer |
2860 | * @event: optional DRM event to signal upon completion | 2860 | * @event: optional DRM event to signal upon completion |
2861 | * @flags: flip flags for non-vblank sync'ed updates | 2861 | * @flags: flip flags for non-vblank sync'ed updates |
2862 | * @ctx: lock acquisition context | ||
2862 | * | 2863 | * |
2863 | * Provides a default &drm_crtc_funcs.page_flip implementation | 2864 | * Provides a default &drm_crtc_funcs.page_flip implementation |
2864 | * using the atomic driver interface. | 2865 | * using the atomic driver interface. |
@@ -2872,7 +2873,8 @@ static int page_flip_common( | |||
2872 | int drm_atomic_helper_page_flip(struct drm_crtc *crtc, | 2873 | int drm_atomic_helper_page_flip(struct drm_crtc *crtc, |
2873 | struct drm_framebuffer *fb, | 2874 | struct drm_framebuffer *fb, |
2874 | struct drm_pending_vblank_event *event, | 2875 | struct drm_pending_vblank_event *event, |
2875 | uint32_t flags) | 2876 | uint32_t flags, |
2877 | struct drm_modeset_acquire_ctx *ctx) | ||
2876 | { | 2878 | { |
2877 | struct drm_plane *plane = crtc->primary; | 2879 | struct drm_plane *plane = crtc->primary; |
2878 | struct drm_atomic_state *state; | 2880 | struct drm_atomic_state *state; |
@@ -2920,6 +2922,7 @@ EXPORT_SYMBOL(drm_atomic_helper_page_flip); | |||
2920 | * @event: optional DRM event to signal upon completion | 2922 | * @event: optional DRM event to signal upon completion |
2921 | * @flags: flip flags for non-vblank sync'ed updates | 2923 | * @flags: flip flags for non-vblank sync'ed updates |
2922 | * @target: specifying the target vblank period when the flip to take effect | 2924 | * @target: specifying the target vblank period when the flip to take effect |
2925 | * @ctx: lock acquisition context | ||
2923 | * | 2926 | * |
2924 | * Provides a default &drm_crtc_funcs.page_flip_target implementation. | 2927 | * Provides a default &drm_crtc_funcs.page_flip_target implementation. |
2925 | * Similar to drm_atomic_helper_page_flip() with extra parameter to specify | 2928 | * Similar to drm_atomic_helper_page_flip() with extra parameter to specify |
@@ -2933,7 +2936,8 @@ int drm_atomic_helper_page_flip_target( | |||
2933 | struct drm_framebuffer *fb, | 2936 | struct drm_framebuffer *fb, |
2934 | struct drm_pending_vblank_event *event, | 2937 | struct drm_pending_vblank_event *event, |
2935 | uint32_t flags, | 2938 | uint32_t flags, |
2936 | uint32_t target) | 2939 | uint32_t target, |
2940 | struct drm_modeset_acquire_ctx *ctx) | ||
2937 | { | 2941 | { |
2938 | struct drm_plane *plane = crtc->primary; | 2942 | struct drm_plane *plane = crtc->primary; |
2939 | struct drm_atomic_state *state; | 2943 | struct drm_atomic_state *state; |