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 <jcalvinowens@gmail.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
e4604d8fe8
commit
b1ea3e6e38
|
@ -479,7 +479,7 @@ nv50_display_flip_wait(void *data)
|
||||||
{
|
{
|
||||||
struct nv50_display_flip *flip = data;
|
struct nv50_display_flip *flip = data;
|
||||||
if (nouveau_bo_rd32(flip->disp->sync, flip->chan->addr / 4) ==
|
if (nouveau_bo_rd32(flip->disp->sync, flip->chan->addr / 4) ==
|
||||||
flip->chan->data);
|
flip->chan->data)
|
||||||
return true;
|
return true;
|
||||||
usleep_range(1, 2);
|
usleep_range(1, 2);
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue