aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c
diff options
context:
space:
mode:
authorBen Skeggs <bskeggs@redhat.com>2016-03-11 13:09:28 +1000
committerBen Skeggs <bskeggs@redhat.com>2016-03-14 10:13:41 +1000
commit41e5171ba84f4aa6d37825218d299dca5d10e9a8 (patch)
tree734c1e2bc5b7adef7b1a5d533f4af93abdd24cda /drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c
parentdrm/nouveau/fifo/gk104: cosmetic engine->runlist changes (diff)
downloadlinux-rng-41e5171ba84f4aa6d37825218d299dca5d10e9a8.tar.xz
linux-rng-41e5171ba84f4aa6d37825218d299dca5d10e9a8.zip
drm/nouveau/fifo/gk104: read device topology information from hw
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c
index c8093417c64b..dcc1445bce1a 100644
--- a/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c
+++ b/drivers/gpu/drm/nouveau/nvkm/engine/fifo/gpfifogk104.c
@@ -227,7 +227,7 @@ gk104_fifo_gpfifo_new(struct nvkm_fifo *base, const struct nvkm_oclass *oclass,
return ret;
/* determine which downstream engines are present */
- for (i = 0, engines = 0; i < ARRAY_SIZE(fifo->runlist); i++) {
+ for (i = 0, engines = 0; i < fifo->runlist_nr; i++) {
u64 subdevs = gk104_fifo_engine_subdev(i);
if (!nvkm_device_engine(device, __ffs64(subdevs)))
continue;