From: Ben Skeggs Date: Fri, 21 Jan 2011 12:34:13 +0000 (+1000) Subject: drm/nvc0/grctx: correct an off-by-one X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d07929808a6430d3d844db4da828dfadbc49cd2;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git drm/nvc0/grctx: correct an off-by-one Signed-off-by: Ben Skeggs --- diff --git a/drivers/gpu/drm/nouveau/nvc0_grctx.c b/drivers/gpu/drm/nouveau/nvc0_grctx.c index b9e68b2d30aa..f880ff776db8 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);