forked from Minki/linux
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: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
eec9ffe47f
commit
7975dfc36a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user