[PATCH 07/16] drm/sti: Store correct CRTC index in events
Vincent ABRIOU
vincent.abriou at st.com
Thu Oct 1 07:06:07 PDT 2015
On 09/24/2015 06:35 PM, Thierry Reding wrote:
> From: Thierry Reding <treding at nvidia.com>
>
> A negative pipe causes a special case to be triggered for drivers that
> don't have proper VBLANK support. STi does support VBLANKs, so there is
> no need for the fallback code.
>
> Cc: Benjamin Gaignard <benjamin.gaignard at linaro.org>
> Cc: Vincent Abriou <vincent.abriou at st.com>
> Signed-off-by: Thierry Reding <treding at nvidia.com>
> ---
> drivers/gpu/drm/sti/sti_crtc.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/sti/sti_crtc.c b/drivers/gpu/drm/sti/sti_crtc.c
> index 018ffc970e96..81c56ea9d87f 100644
> --- a/drivers/gpu/drm/sti/sti_crtc.c
> +++ b/drivers/gpu/drm/sti/sti_crtc.c
> @@ -274,7 +274,7 @@ int sti_crtc_vblank_cb(struct notifier_block *nb,
>
> spin_lock_irqsave(&drm_dev->event_lock, flags);
> if (compo->mixer[*crtc]->pending_event) {
> - drm_send_vblank_event(drm_dev, -1,
> + drm_send_vblank_event(drm_dev, *crtc,
> compo->mixer[*crtc]->pending_event);
> drm_vblank_put(drm_dev, *crtc);
> compo->mixer[*crtc]->pending_event = NULL;
>
Successfully tested on next-20151001
Ack-by: Vincent Abriou <vincent.abriou at st.com>
Vincent
More information about the dri-devel
mailing list