From: Calvin Owens Date: Mon, 8 Apr 2013 02:01:19 +0000 (-0500) Subject: drm/nouveau: fix unconditional return waiting on memory X-Git-Tag: v3.9~75^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1ea3e6e3883c5191caa5be72b3a5b9c32812e38;p=platform%2Fkernel%2Flinux-amlogic.git drm/nouveau: fix unconditional return waiting on memory Typo in nv50_display_flip_wait allows page flipping to run ahead before memory has time to settle. Signed-off-by: Calvin Owens Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 7f0e6c3..1ddc03e 100644 --- a/drivers/gpu/drm/nouveau/nv50_display.c +++ b/drivers/gpu/drm/nouveau/nv50_display.c @@ -479,7 +479,7 @@ nv50_display_flip_wait(void *data) { struct nv50_display_flip *flip = data; if (nouveau_bo_rd32(flip->disp->sync, flip->chan->addr / 4) == - flip->chan->data); + flip->chan->data) return true; usleep_range(1, 2); return false;