This source file includes following definitions.
- tu102_mc_intr_hack
- tu102_mc_new
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #include "priv.h"
23
24 static void
25 tu102_mc_intr_hack(struct nvkm_mc *mc, bool *handled)
26 {
27 struct nvkm_device *device = mc->subdev.device;
28 u32 stat = nvkm_rd32(device, 0xb81010);
29 if (stat & 0x00000050) {
30 struct nvkm_subdev *subdev =
31 nvkm_device_subdev(device, NVKM_SUBDEV_FAULT);
32 nvkm_wr32(device, 0xb81010, stat & 0x00000050);
33 if (subdev)
34 nvkm_subdev_intr(subdev);
35 *handled = true;
36 }
37 }
38
39 static const struct nvkm_mc_func
40 tu102_mc = {
41 .init = nv50_mc_init,
42 .intr = gp100_mc_intr,
43 .intr_unarm = gp100_mc_intr_unarm,
44 .intr_rearm = gp100_mc_intr_rearm,
45 .intr_mask = gp100_mc_intr_mask,
46 .intr_stat = gf100_mc_intr_stat,
47 .intr_hack = tu102_mc_intr_hack,
48 .reset = gk104_mc_reset,
49 };
50
51 int
52 tu102_mc_new(struct nvkm_device *device, int index, struct nvkm_mc **pmc)
53 {
54 return gp100_mc_new_(&tu102_mc, device, index, pmc);
55 }