Commit 7975dfc3 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/top/gv100-: translate entry for the GSP

So we're able to connect fault/interrupt handling to the GSP subdev.
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent eec9ffe4
...@@ -73,6 +73,7 @@ gk104_top_oneinit(struct nvkm_top *top) ...@@ -73,6 +73,7 @@ gk104_top_oneinit(struct nvkm_top *top)
#define A_(A) if (inst == 0) info->index = NVKM_ENGINE_##A #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) \ #define B_(A) if (inst + NVKM_ENGINE_##A##0 < NVKM_ENGINE_##A##_LAST + 1) \
info->index = NVKM_ENGINE_##A##0 + inst info->index = NVKM_ENGINE_##A##0 + inst
#define C_(A) if (inst == 0) info->index = NVKM_SUBDEV_##A
switch (type) { switch (type) {
case 0x00000000: A_(GR ); break; case 0x00000000: A_(GR ); break;
case 0x00000001: A_(CE0 ); break; case 0x00000001: A_(CE0 ); break;
...@@ -88,6 +89,7 @@ gk104_top_oneinit(struct nvkm_top *top) ...@@ -88,6 +89,7 @@ gk104_top_oneinit(struct nvkm_top *top)
case 0x0000000f: A_(NVENC1); break; case 0x0000000f: A_(NVENC1); break;
case 0x00000010: B_(NVDEC ); break; case 0x00000010: B_(NVDEC ); break;
case 0x00000013: B_(CE ); break; case 0x00000013: B_(CE ); break;
case 0x00000014: C_(GSP ); break;
break; break;
default: default:
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment