diff options
author | Ben Skeggs <bskeggs@redhat.com> | 2011-01-21 12:34:13 (GMT) |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2011-01-25 01:05:01 (GMT) |
commit | 5d07929808a6430d3d844db4da828dfadbc49cd2 (patch) | |
tree | 67079bb5e51938dfcfe3c53cb0a06a25c254d529 | |
parent | 34311c730147def6862304488ee1f7c3f4acd74b (diff) | |
download | linux-fsl-qoriq-5d07929808a6430d3d844db4da828dfadbc49cd2.tar.xz |
drm/nvc0/grctx: correct an off-by-one
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r-- | drivers/gpu/drm/nouveau/nvc0_grctx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvc0_grctx.c b/drivers/gpu/drm/nouveau/nvc0_grctx.c index b9e68b2..f880ff7 100644 --- a/drivers/gpu/drm/nouveau/nvc0_grctx.c +++ b/drivers/gpu/drm/nouveau/nvc0_grctx.c @@ -1830,7 +1830,7 @@ nvc0_grctx_generate(struct nouveau_channel *chan) for (tp = 0, id = 0; tp < 4; tp++) { for (gpc = 0; gpc < priv->gpc_nr; gpc++) { - if (tp <= priv->tp_nr[gpc]) { + if (tp < priv->tp_nr[gpc]) { nv_wr32(dev, TP_UNIT(gpc, tp, 0x698), id); nv_wr32(dev, TP_UNIT(gpc, tp, 0x4e8), id); nv_wr32(dev, GPC_UNIT(gpc, 0x0c10 + tp * 4), id); |