Commit 17fb2807 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/fault/tu104: initial support



New registers.

Currently uncertain how exactly to mask fault buffer interrupts.  This will
likely be corrected at around the same time as the new MC interrupt stuff
has been properly figured out and implemented.

For the moment, it shouldn't matter too much.

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 838efaa5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -30,4 +30,5 @@ struct nvkm_fault_data {

int gp100_fault_new(struct nvkm_device *, int, struct nvkm_fault **);
int gv100_fault_new(struct nvkm_device *, int, struct nvkm_fault **);
int tu104_fault_new(struct nvkm_device *, int, struct nvkm_fault **);
#endif
+1 −0
Original line number Diff line number Diff line
@@ -2441,6 +2441,7 @@ nv164_chipset = {
	.bios = nvkm_bios_new,
	.bus = gf100_bus_new,
	.devinit = tu104_devinit_new,
	.fault = tu104_fault_new,
	.fb = gv100_fb_new,
	.fuse = gm107_fuse_new,
	.gpio = gk104_gpio_new,
+1 −0
Original line number Diff line number Diff line
nvkm-y += nvkm/subdev/fault/base.o
nvkm-y += nvkm/subdev/fault/gp100.o
nvkm-y += nvkm/subdev/fault/gv100.o
nvkm-y += nvkm/subdev/fault/tu104.o
+1 −1
Original line number Diff line number Diff line
@@ -188,7 +188,7 @@ gv100_fault_init(struct nvkm_fault *fault)
	nvkm_notify_get(&fault->nrpfb);
}

static int
int
gv100_fault_oneinit(struct nvkm_fault *fault)
{
	return nvkm_notify_init(&fault->buffer[0]->object, &fault->event,
+2 −0
Original line number Diff line number Diff line
@@ -35,4 +35,6 @@ struct nvkm_fault_func {
		void (*intr)(struct nvkm_fault_buffer *, bool enable);
	} buffer;
};

int gv100_fault_oneinit(struct nvkm_fault *);
#endif
Loading