drm/nvf0/fifo: enable support
authorBen Skeggs <bskeggs@redhat.com>
Thu, 2 May 2013 02:37:38 +0000 (12:37 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 5 Jul 2013 03:43:25 +0000 (13:43 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/device/nve0.c
drivers/gpu/drm/nouveau/core/engine/fifo/nve0.c

index 78ae397c3eee1a3f432f09eaa839f061606bdd64..10a4ee208009e24d95afd95c4dc8a26c42533433 100644 (file)
@@ -163,8 +163,8 @@ nve0_identify(struct nouveau_device *device)
                device->oclass[NVDEV_SUBDEV_VM     ] = &nvc0_vmmgr_oclass;
                device->oclass[NVDEV_SUBDEV_BAR    ] = &nvc0_bar_oclass;
                device->oclass[NVDEV_ENGINE_DMAOBJ ] = &nvd0_dmaeng_oclass;
-#if 0
                device->oclass[NVDEV_ENGINE_FIFO   ] = &nve0_fifo_oclass;
+#if 0
                device->oclass[NVDEV_ENGINE_SW     ] = &nvc0_software_oclass;
                device->oclass[NVDEV_ENGINE_GR     ] =  nvf0_graph_oclass;
 #endif
index 0338e66bc6201c21dab2040dd676684ec4c5c003..09644fa9602ca09d7a788d147465a3dbd5dbd17c 100644 (file)
@@ -221,8 +221,10 @@ nve0_fifo_chan_ctor(struct nouveau_object *parent,
                }
        }
 
-       if (i == FIFO_ENGINE_NR)
+       if (i == FIFO_ENGINE_NR) {
+               nv_error(priv, "unsupported engines 0x%08x\n", args->engine);
                return -ENODEV;
+       }
 
        ret = nouveau_fifo_channel_create(parent, engine, oclass, 1,
                                          priv->user.bar.offset, 0x200,