diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2010-01-08 03:53:40 +0300 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2010-01-11 02:06:44 +0300 |
commit | dff36321497b1130085820c81a44779b065c8d7e (patch) | |
tree | 90c66618be3b4f57728ecb3edf6c4c777899feb8 /drivers/gpu/drm/nouveau/nouveau_dma.c | |
parent | 1dee7a930bfddd69825fca3e3f9541c8a5333876 (diff) | |
download | linux-dff36321497b1130085820c81a44779b065c8d7e.tar.xz |
drm/nouveau: use dma.max rather than pushbuf size for checking GET validity
Some upcoming G80 DMA changes will depend on this, but it's split out for
bisectibility just in case it causes some unexpected issues.
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/nouveau/nouveau_dma.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nouveau_dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nouveau_dma.c b/drivers/gpu/drm/nouveau/nouveau_dma.c index f1fd3f2b9813..3f7f78e03d42 100644 --- a/drivers/gpu/drm/nouveau/nouveau_dma.c +++ b/drivers/gpu/drm/nouveau/nouveau_dma.c @@ -130,7 +130,7 @@ READ_GET(struct nouveau_channel *chan, uint32_t *get) val = nvchan_rd32(chan, chan->user_get); if (val < chan->pushbuf_base || - val >= chan->pushbuf_base + chan->pushbuf_bo->bo.mem.size) { + val > chan->pushbuf_base + (chan->dma.max << 2)) { /* meaningless to dma_wait() except to know whether the * GPU has stalled or not */ |