|
@@ -74,12 +74,16 @@ gm107_ltc_intr_lts(struct nvkm_ltc *ltc, int c, int s)
|
|
|
struct nvkm_subdev *subdev = <c->subdev;
|
|
|
struct nvkm_device *device = subdev->device;
|
|
|
u32 base = 0x140400 + (c * 0x2000) + (s * 0x200);
|
|
|
- u32 stat = nvkm_rd32(device, base + 0x00c);
|
|
|
+ u32 intr = nvkm_rd32(device, base + 0x00c);
|
|
|
+ u16 stat = intr & 0x0000ffff;
|
|
|
+ char msg[128];
|
|
|
|
|
|
if (stat) {
|
|
|
- nvkm_error(subdev, "LTC%d_LTS%d: %08x\n", c, s, stat);
|
|
|
- nvkm_wr32(device, base + 0x00c, stat);
|
|
|
+ nvkm_snprintbf(msg, sizeof(msg), gf100_ltc_lts_intr_name, stat);
|
|
|
+ nvkm_error(subdev, "LTC%d_LTS%d: %08x [%s]\n", c, s, intr, msg);
|
|
|
}
|
|
|
+
|
|
|
+ nvkm_wr32(device, base + 0x00c, intr);
|
|
|
}
|
|
|
|
|
|
void
|