drm/nouveau/falcon/msgqueue: add SEC2 support
authorAlexandre Courbot <acourbot@nvidia.com>
Thu, 23 Feb 2017 09:14:30 +0000 (18:14 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 7 Mar 2017 07:05:13 +0000 (17:05 +1000)
Add support for running a msgqueue on the SEC2 falcon.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/falcon/msgqueue.c

index 8583fe1c2183891e0d7d49f9a3bafeedf6168a9c..59ed1c45bd657f95e57673badaf50687ee76afea 100644 (file)
@@ -396,6 +396,9 @@ msgqueue_handle_init_msg(struct nvkm_msgqueue *priv,
        case NVKM_SUBDEV_PMU:
                tail_reg = 0x4cc;
                break;
+       case NVKM_ENGINE_SEC2:
+               tail_reg = 0xa34;
+               break;
        default:
                nvkm_error(subdev, "falcon %s unsupported for msgqueue!\n",
                           nvkm_subdev_name[falcon->owner->index]);