diff options
author | Calvin Owens <jcalvinowens@gmail.com> | 2013-04-08 06:01:19 +0400 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-04-09 03:16:15 +0400 |
commit | b1ea3e6e3883c5191caa5be72b3a5b9c32812e38 (patch) | |
tree | 7106fa43ce888e04fd1bbae458dc160e37fbd71e | |
parent | e4604d8fe8492f8120cf92d4b60b3cc90ba87bd0 (diff) | |
download | linux-b1ea3e6e3883c5191caa5be72b3a5b9c32812e38.tar.xz |
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>
-rw-r--r-- | drivers/gpu/drm/nouveau/nv50_display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nv50_display.c b/drivers/gpu/drm/nouveau/nv50_display.c index 7f0e6c3f37d1..1ddc03e51bf4 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; |