drm/nouveau/top/gv100-: translate entry for the GSP
authorBen Skeggs <bskeggs@redhat.com>
Tue, 12 Feb 2019 12:28:13 +0000 (22:28 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Tue, 19 Feb 2019 22:59:58 +0000 (08:59 +1000)
So we're able to connect fault/interrupt handling to the GSP subdev.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/top/gk104.c

index 39081eadfd84cd29422c612ae715593bb8940b0c..e01746ce9fc4e3361285e3408b2dbc71e9df2cb5 100644 (file)
@@ -73,6 +73,7 @@ gk104_top_oneinit(struct nvkm_top *top)
 #define A_(A) if (inst == 0) info->index = NVKM_ENGINE_##A
 #define B_(A) if (inst + NVKM_ENGINE_##A##0 < NVKM_ENGINE_##A##_LAST + 1)      \
                info->index = NVKM_ENGINE_##A##0 + inst
+#define C_(A) if (inst == 0) info->index = NVKM_SUBDEV_##A
                switch (type) {
                case 0x00000000: A_(GR    ); break;
                case 0x00000001: A_(CE0   ); break;
@@ -88,6 +89,7 @@ gk104_top_oneinit(struct nvkm_top *top)
                case 0x0000000f: A_(NVENC1); break;
                case 0x00000010: B_(NVDEC ); break;
                case 0x00000013: B_(CE    ); break;
+               case 0x00000014: C_(GSP   ); break;
                        break;
                default:
                        break;