drm/nouveau/top/gv100: initial support

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2018-05-08 20:39:47 +10:00
parent 8769dc989c
commit a1c771a5cb
2 changed files with 3 additions and 1 deletions

View file

@ -2400,6 +2400,7 @@ nv140_chipset = {
.bios = nvkm_bios_new,
.devinit = gv100_devinit_new,
.pci = gp100_pci_new,
.top = gk104_top_new,
};
static int

View file

@ -48,7 +48,8 @@ gk104_top_oneinit(struct nvkm_top *top)
case 0x00000001: /* DATA */
inst = (data & 0x3c000000) >> 26;
info->addr = (data & 0x00fff000);
info->fault = (data & 0x000000f8) >> 3;
if (data & 0x00000004)
info->fault = (data & 0x000003f8) >> 3;
break;
case 0x00000002: /* ENUM */
if (data & 0x00000020)