[PATCH] nouveau/drm/fifo: fix ENG_RUNLIST register address (original) (raw)

Ben Skeggs skeggsb at gmail.com
Sun Feb 9 20:25:19 PST 2014


On Fri, Feb 7, 2014 at 11:22 PM, Alexandre Courbot <acourbot at nvidia.com> wrote:

Address of the ENGRUNLIST register should be 0x002284 + (engine * 8), not 0x002284 + (engine * 4).

Signed-off-by: Alexandre Courbot <acourbot at nvidia.com> --- Stumbled upon this one and I'm quite certain the offset was not correct. This is inconsequential for GK20A which only features one runlist, but other GPUs might run into troubles because of this. Not tested, just reported for your consideration. I noticed this also while doing some other work I haven't committed yet. I'll push this patch ahead of that other work though.

Thanks, Ben.

FWIW, the Android GK20A driver uses the same offset calculation. drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c b/drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c index 99c9dee..dbc3ff6 100644 --- a/drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c +++ b/drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c @@ -112,7 +112,7 @@ nve0fiforunlistupdate(struct nve0fifopriv *priv, u32 engine) nvwr32(priv, 0x002270, cur->addr >> 12); nvwr32(priv, 0x002274, (engine << 20) | (p >> 3)); - if (!nvwait(priv, 0x002284 + (engine * 4), 0x00100000, 0x00000000)) + if (!nvwait(priv, 0x002284 + (engine * 8), 0x00100000, 0x00000000)) nverror(priv, "runlist %d update timeout\n", engine); mutexunlock(&nvsubdev(priv)->mutex); } -- 1.8.5.3


dri-devel mailing list dri-devel at lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/dri-devel



More information about the dri-devel mailing list