Maarten Lankhorst
2013-Mar-28 15:16 UTC
[Nouveau] [PATCH v2] drm/nouveau: wait for vblank on page flipping
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com> --- Oops, fixed to apply this time.. diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index 4610c3a..020542e 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -593,7 +597,7 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb, /* Emit a page flip */ if (nv_device(drm->device)->card_type >= NV_50) { - ret = nv50_display_flip_next(crtc, fb, chan, 0); + ret = nv50_display_flip_next(crtc, fb, chan, 1); if (ret) { mutex_unlock(&chan->cli->mutex); goto fail_unreserve;
Peter Hurley
2013-Mar-28 21:33 UTC
[Nouveau] [PATCH v2] drm/nouveau: wait for vblank on page flipping
On Thu, 2013-03-28 at 16:16 +0100, Maarten Lankhorst wrote:> Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com> > --- > Oops, fixed to apply this time.. > > diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c > index 4610c3a..020542e 100644 > --- a/drivers/gpu/drm/nouveau/nouveau_display.c > +++ b/drivers/gpu/drm/nouveau/nouveau_display.c > @@ -593,7 +597,7 @@ nouveau_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb, > > /* Emit a page flip */ > if (nv_device(drm->device)->card_type >= NV_50) { > - ret = nv50_display_flip_next(crtc, fb, chan, 0); > + ret = nv50_display_flip_next(crtc, fb, chan, 1);Why would this work?> if (ret) { > mutex_unlock(&chan->cli->mutex); > goto fail_unreserve;
Possibly Parallel Threads
- mesa vdpau regression with "dri2: Fix potential race and crash for swap at next vblank."
- [PATCH] drm/nouveau: handle same-fb page flips
- [RFC PATCH] drm/nv50-nvd0: implement precise vblank timing support on nv50/nvc0.
- [PATCH] drm/nouveau: fix locking in nouveau_crtc_page_flip
- [PATCH 01/14] drm/nouveau: use drm_crtc_send_vblank_event() v2