Skip to content

Commit

Permalink
drm/nouveau: fix unconditional return waiting on memory
Browse files Browse the repository at this point in the history
Typo in nv50_display_flip_wait allows page flipping to run ahead before
memory has time to settle.

Signed-off-by: Calvin Owens <jcalvinowens@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
  • Loading branch information
Calvin Owens authored and Ben Skeggs committed Apr 8, 2013
1 parent e4604d8 commit b1ea3e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/nv50_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b1ea3e6

Please sign in to comment.