Commit 18019e95 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/ibus: switch to subdev printk macros

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 1cb57d25
...@@ -26,33 +26,36 @@ ...@@ -26,33 +26,36 @@
static void static void
gf100_ibus_intr_hub(struct nvkm_ibus *ibus, int i) gf100_ibus_intr_hub(struct nvkm_ibus *ibus, int i)
{ {
struct nvkm_device *device = ibus->subdev.device; struct nvkm_subdev *subdev = &ibus->subdev;
struct nvkm_device *device = subdev->device;
u32 addr = nvkm_rd32(device, 0x122120 + (i * 0x0400)); u32 addr = nvkm_rd32(device, 0x122120 + (i * 0x0400));
u32 data = nvkm_rd32(device, 0x122124 + (i * 0x0400)); u32 data = nvkm_rd32(device, 0x122124 + (i * 0x0400));
u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0400)); u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0400));
nv_error(ibus, "HUB%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); nvkm_error(subdev, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat);
nvkm_mask(device, 0x122128 + (i * 0x0400), 0x00000200, 0x00000000); nvkm_mask(device, 0x122128 + (i * 0x0400), 0x00000200, 0x00000000);
} }
static void static void
gf100_ibus_intr_rop(struct nvkm_ibus *ibus, int i) gf100_ibus_intr_rop(struct nvkm_ibus *ibus, int i)
{ {
struct nvkm_device *device = ibus->subdev.device; struct nvkm_subdev *subdev = &ibus->subdev;
struct nvkm_device *device = subdev->device;
u32 addr = nvkm_rd32(device, 0x124120 + (i * 0x0400)); u32 addr = nvkm_rd32(device, 0x124120 + (i * 0x0400));
u32 data = nvkm_rd32(device, 0x124124 + (i * 0x0400)); u32 data = nvkm_rd32(device, 0x124124 + (i * 0x0400));
u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0400)); u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0400));
nv_error(ibus, "ROP%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); nvkm_error(subdev, "ROP%d: %06x %08x (%08x)\n", i, addr, data, stat);
nvkm_mask(device, 0x124128 + (i * 0x0400), 0x00000200, 0x00000000); nvkm_mask(device, 0x124128 + (i * 0x0400), 0x00000200, 0x00000000);
} }
static void static void
gf100_ibus_intr_gpc(struct nvkm_ibus *ibus, int i) gf100_ibus_intr_gpc(struct nvkm_ibus *ibus, int i)
{ {
struct nvkm_device *device = ibus->subdev.device; struct nvkm_subdev *subdev = &ibus->subdev;
struct nvkm_device *device = subdev->device;
u32 addr = nvkm_rd32(device, 0x128120 + (i * 0x0400)); u32 addr = nvkm_rd32(device, 0x128120 + (i * 0x0400));
u32 data = nvkm_rd32(device, 0x128124 + (i * 0x0400)); u32 data = nvkm_rd32(device, 0x128124 + (i * 0x0400));
u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0400)); u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0400));
nv_error(ibus, "GPC%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); nvkm_error(subdev, "GPC%d: %06x %08x (%08x)\n", i, addr, data, stat);
nvkm_mask(device, 0x128128 + (i * 0x0400), 0x00000200, 0x00000000); nvkm_mask(device, 0x128128 + (i * 0x0400), 0x00000200, 0x00000000);
} }
......
...@@ -26,33 +26,36 @@ ...@@ -26,33 +26,36 @@
static void static void
gk104_ibus_intr_hub(struct nvkm_ibus *ibus, int i) gk104_ibus_intr_hub(struct nvkm_ibus *ibus, int i)
{ {
struct nvkm_device *device = ibus->subdev.device; struct nvkm_subdev *subdev = &ibus->subdev;
struct nvkm_device *device = subdev->device;
u32 addr = nvkm_rd32(device, 0x122120 + (i * 0x0800)); u32 addr = nvkm_rd32(device, 0x122120 + (i * 0x0800));
u32 data = nvkm_rd32(device, 0x122124 + (i * 0x0800)); u32 data = nvkm_rd32(device, 0x122124 + (i * 0x0800));
u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0800)); u32 stat = nvkm_rd32(device, 0x122128 + (i * 0x0800));
nv_error(ibus, "HUB%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); nvkm_error(subdev, "HUB%d: %06x %08x (%08x)\n", i, addr, data, stat);
nvkm_mask(device, 0x122128 + (i * 0x0800), 0x00000200, 0x00000000); nvkm_mask(device, 0x122128 + (i * 0x0800), 0x00000200, 0x00000000);
} }
static void static void
gk104_ibus_intr_rop(struct nvkm_ibus *ibus, int i) gk104_ibus_intr_rop(struct nvkm_ibus *ibus, int i)
{ {
struct nvkm_device *device = ibus->subdev.device; struct nvkm_subdev *subdev = &ibus->subdev;
struct nvkm_device *device = subdev->device;
u32 addr = nvkm_rd32(device, 0x124120 + (i * 0x0800)); u32 addr = nvkm_rd32(device, 0x124120 + (i * 0x0800));
u32 data = nvkm_rd32(device, 0x124124 + (i * 0x0800)); u32 data = nvkm_rd32(device, 0x124124 + (i * 0x0800));
u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0800)); u32 stat = nvkm_rd32(device, 0x124128 + (i * 0x0800));
nv_error(ibus, "ROP%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); nvkm_error(subdev, "ROP%d: %06x %08x (%08x)\n", i, addr, data, stat);
nvkm_mask(device, 0x124128 + (i * 0x0800), 0x00000200, 0x00000000); nvkm_mask(device, 0x124128 + (i * 0x0800), 0x00000200, 0x00000000);
} }
static void static void
gk104_ibus_intr_gpc(struct nvkm_ibus *ibus, int i) gk104_ibus_intr_gpc(struct nvkm_ibus *ibus, int i)
{ {
struct nvkm_device *device = ibus->subdev.device; struct nvkm_subdev *subdev = &ibus->subdev;
struct nvkm_device *device = subdev->device;
u32 addr = nvkm_rd32(device, 0x128120 + (i * 0x0800)); u32 addr = nvkm_rd32(device, 0x128120 + (i * 0x0800));
u32 data = nvkm_rd32(device, 0x128124 + (i * 0x0800)); u32 data = nvkm_rd32(device, 0x128124 + (i * 0x0800));
u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0800)); u32 stat = nvkm_rd32(device, 0x128128 + (i * 0x0800));
nv_error(ibus, "GPC%d: 0x%06x 0x%08x (0x%08x)\n", i, addr, data, stat); nvkm_error(subdev, "GPC%d: %06x %08x (%08x)\n", i, addr, data, stat);
nvkm_mask(device, 0x128128 + (i * 0x0800), 0x00000200, 0x00000000); nvkm_mask(device, 0x128128 + (i * 0x0800), 0x00000200, 0x00000000);
} }
......
...@@ -53,7 +53,7 @@ gk20a_ibus_intr(struct nvkm_subdev *subdev) ...@@ -53,7 +53,7 @@ gk20a_ibus_intr(struct nvkm_subdev *subdev)
u32 status0 = nvkm_rd32(device, 0x120058); u32 status0 = nvkm_rd32(device, 0x120058);
if (status0 & 0x7) { if (status0 & 0x7) {
nv_debug(ibus, "resetting ibus ring\n"); nvkm_debug(subdev, "resetting ibus ring\n");
gk20a_ibus_init_ibus_ring(ibus); gk20a_ibus_init_ibus_ring(ibus);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment